From e929bdd13370d87e76b80517776c4b50649a7eba Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Thu, 18 Apr 2024 17:38:32 +0100 Subject: [PATCH] fix up --- .../camera-options/CameraOptionsExample.tsx | 10 +-- .../image-annotator/ImageAnnotationEditor.tsx | 4 +- packages/editor/api-report.md | 10 +-- packages/editor/api/api.json | 11 +-- packages/editor/src/index.ts | 8 +- packages/editor/src/lib/editor/Editor.ts | 82 ++++++++----------- .../editor/src/lib/editor/types/misc-types.ts | 21 ++++- 7 files changed, 70 insertions(+), 76 deletions(-) diff --git a/apps/examples/src/examples/camera-options/CameraOptionsExample.tsx b/apps/examples/src/examples/camera-options/CameraOptionsExample.tsx index 9ff5a2d21..e3100b8ad 100644 --- a/apps/examples/src/examples/camera-options/CameraOptionsExample.tsx +++ b/apps/examples/src/examples/camera-options/CameraOptionsExample.tsx @@ -18,12 +18,12 @@ const CAMERA_OPTIONS: TLCameraOptions = { zoomSpeed: 1, zoomSteps: [0.1, 0.25, 0.5, 1, 2, 4, 8], constraints: { - fit: 'max', + resetDimension: 'max', bounds: { x: 0, y: 0, - w: 1200, - h: 800, + w: 1600, + h: 900, }, fitX: 'contain', fitY: 'contain', @@ -281,12 +281,12 @@ const CameraOptionsControlPanel = track(() => {