@tldraw/editor 3.8.0-canary.fa7c40c0a965 → 3.8.0-canary.fcad75fe42f9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist-cjs/index.d.ts +155 -49
  2. package/dist-cjs/index.js +11 -8
  3. package/dist-cjs/index.js.map +2 -2
  4. package/dist-cjs/lib/components/default-components/DefaultCanvas.js +1 -1
  5. package/dist-cjs/lib/components/default-components/DefaultCanvas.js.map +2 -2
  6. package/dist-cjs/lib/config/TLSessionStateSnapshot.js.map +2 -2
  7. package/dist-cjs/lib/config/createTLStore.js +3 -1
  8. package/dist-cjs/lib/config/createTLStore.js.map +2 -2
  9. package/dist-cjs/lib/editor/Editor.js +28 -17
  10. package/dist-cjs/lib/editor/Editor.js.map +2 -2
  11. package/dist-cjs/lib/editor/managers/SnapManager/BoundsSnaps.js.map +2 -2
  12. package/dist-cjs/lib/editor/managers/TextManager.js +1 -0
  13. package/dist-cjs/lib/editor/managers/TextManager.js.map +2 -2
  14. package/dist-cjs/lib/editor/shapes/ShapeUtil.js.map +2 -2
  15. package/dist-cjs/lib/editor/shapes/shared/resizeScaled.js +66 -0
  16. package/dist-cjs/lib/editor/shapes/shared/resizeScaled.js.map +7 -0
  17. package/dist-cjs/lib/editor/types/emit-types.js.map +1 -1
  18. package/dist-cjs/lib/editor/types/external-content.js.map +1 -1
  19. package/dist-cjs/lib/exports/StyleEmbedder.js.map +2 -2
  20. package/dist-cjs/lib/hooks/useDocumentEvents.js +1 -3
  21. package/dist-cjs/lib/hooks/useDocumentEvents.js.map +2 -2
  22. package/dist-cjs/lib/hooks/useLocalStore.js +1 -1
  23. package/dist-cjs/lib/hooks/useLocalStore.js.map +2 -2
  24. package/dist-cjs/lib/hooks/usePassThroughWheelEvents.js +4 -0
  25. package/dist-cjs/lib/hooks/usePassThroughWheelEvents.js.map +3 -3
  26. package/dist-cjs/lib/options.js +3 -1
  27. package/dist-cjs/lib/options.js.map +2 -2
  28. package/dist-cjs/lib/utils/dom.js +6 -0
  29. package/dist-cjs/lib/utils/dom.js.map +2 -2
  30. package/dist-cjs/version.js +3 -3
  31. package/dist-cjs/version.js.map +1 -1
  32. package/dist-esm/index.d.mts +155 -49
  33. package/dist-esm/index.mjs +5 -1
  34. package/dist-esm/index.mjs.map +2 -2
  35. package/dist-esm/lib/components/default-components/DefaultCanvas.mjs +1 -1
  36. package/dist-esm/lib/components/default-components/DefaultCanvas.mjs.map +2 -2
  37. package/dist-esm/lib/config/TLSessionStateSnapshot.mjs.map +2 -2
  38. package/dist-esm/lib/config/createTLStore.mjs +3 -1
  39. package/dist-esm/lib/config/createTLStore.mjs.map +2 -2
  40. package/dist-esm/lib/editor/Editor.mjs +28 -17
  41. package/dist-esm/lib/editor/Editor.mjs.map +2 -2
  42. package/dist-esm/lib/editor/managers/SnapManager/BoundsSnaps.mjs.map +2 -2
  43. package/dist-esm/lib/editor/managers/TextManager.mjs +1 -0
  44. package/dist-esm/lib/editor/managers/TextManager.mjs.map +2 -2
  45. package/dist-esm/lib/editor/shapes/ShapeUtil.mjs.map +2 -2
  46. package/dist-esm/lib/editor/shapes/shared/resizeScaled.mjs +46 -0
  47. package/dist-esm/lib/editor/shapes/shared/resizeScaled.mjs.map +7 -0
  48. package/dist-esm/lib/exports/StyleEmbedder.mjs.map +2 -2
  49. package/dist-esm/lib/hooks/useDocumentEvents.mjs +2 -4
  50. package/dist-esm/lib/hooks/useDocumentEvents.mjs.map +2 -2
  51. package/dist-esm/lib/hooks/useLocalStore.mjs +1 -1
  52. package/dist-esm/lib/hooks/useLocalStore.mjs.map +2 -2
  53. package/dist-esm/lib/hooks/usePassThroughWheelEvents.mjs +4 -0
  54. package/dist-esm/lib/hooks/usePassThroughWheelEvents.mjs.map +3 -3
  55. package/dist-esm/lib/options.mjs +3 -1
  56. package/dist-esm/lib/options.mjs.map +2 -2
  57. package/dist-esm/lib/utils/dom.mjs +6 -0
  58. package/dist-esm/lib/utils/dom.mjs.map +2 -2
  59. package/dist-esm/version.mjs +3 -3
  60. package/dist-esm/version.mjs.map +1 -1
  61. package/editor.css +2 -1
  62. package/package.json +20 -20
  63. package/src/index.ts +16 -1
  64. package/src/lib/components/default-components/DefaultCanvas.tsx +1 -1
  65. package/src/lib/config/TLSessionStateSnapshot.ts +3 -1
  66. package/src/lib/config/createTLStore.ts +3 -1
  67. package/src/lib/editor/Editor.ts +66 -35
  68. package/src/lib/editor/managers/SnapManager/BoundsSnaps.ts +4 -4
  69. package/src/lib/editor/managers/TextManager.ts +1 -0
  70. package/src/lib/editor/shapes/ShapeUtil.ts +30 -1
  71. package/src/lib/editor/shapes/shared/resizeScaled.ts +61 -0
  72. package/src/lib/editor/types/emit-types.ts +1 -0
  73. package/src/lib/editor/types/external-content.ts +90 -50
  74. package/src/lib/exports/StyleEmbedder.ts +1 -1
  75. package/src/lib/hooks/useDocumentEvents.ts +2 -11
  76. package/src/lib/hooks/useLocalStore.ts +1 -1
  77. package/src/lib/hooks/usePassThroughWheelEvents.ts +7 -0
  78. package/src/lib/options.ts +11 -0
  79. package/src/lib/utils/dom.ts +12 -0
  80. package/src/version.ts +3 -3
@@ -68,6 +68,7 @@ import { TLPropsMigrations } from '@tldraw/tlschema';
68
68
  import { TLRecord } from '@tldraw/tlschema';
69
69
  import { TLScribble } from '@tldraw/tlschema';
70
70
  import { TLShape } from '@tldraw/tlschema';
71
+ import { TLShapeCrop } from '@tldraw/tlschema';
71
72
  import { TLShapeId } from '@tldraw/tlschema';
72
73
  import { TLShapePartial } from '@tldraw/tlschema';
73
74
  import { TLStore } from '@tldraw/tlschema';
@@ -90,6 +91,8 @@ import { useValue } from '@tldraw/state-react';
90
91
  import { VecModel } from '@tldraw/tlschema';
91
92
  import { whyAmIRunning } from '@tldraw/state';
92
93
 
94
+ /* Excluded from this release type: activeElementShouldCaptureKeys */
95
+
93
96
  /**
94
97
  * Get the angle of a point on an arc.
95
98
  * @param fromAngle - The angle from center to arc's start point (A) on the circle
@@ -851,6 +854,7 @@ export declare const defaultTldrawOptions: {
851
854
  readonly edgeScrollDistance: 8;
852
855
  readonly edgeScrollEaseDuration: 200;
853
856
  readonly edgeScrollSpeed: 25;
857
+ readonly enableToolbarKeyboardShortcuts: true;
854
858
  readonly exportProvider: ExoticComponent< {
855
859
  children?: ReactNode;
856
860
  }>;
@@ -884,6 +888,7 @@ export declare const defaultTldrawOptions: {
884
888
  readonly maxPointsPerDrawShape: 500;
885
889
  readonly maxShapesPerPage: 4000;
886
890
  readonly multiClickDurationMs: 200;
891
+ readonly noteShapeResizeMode: "none";
887
892
  readonly temporaryAssetPreviewLifetimeMs: 180000;
888
893
  readonly textShadowLod: 0.35;
889
894
  };
@@ -1117,6 +1122,14 @@ export declare class Editor extends EventEmitter<TLEventMap> {
1117
1122
  getShapeUtil<S extends TLUnknownShape>(shape: S | TLShapePartial<S>): ShapeUtil<S>;
1118
1123
  getShapeUtil<S extends TLUnknownShape>(type: S['type']): ShapeUtil<S>;
1119
1124
  getShapeUtil<T extends ShapeUtil>(type: T extends ShapeUtil<infer R> ? R['type'] : string): T;
1125
+ /**
1126
+ * Returns true if the editor has a shape util for the given shape / shape type.
1127
+ *
1128
+ * @param shape - A shape, shape partial, or shape type.
1129
+ */
1130
+ hasShapeUtil<S extends TLUnknownShape>(shape: S | TLShapePartial<S>): boolean;
1131
+ hasShapeUtil<S extends TLUnknownShape>(type: S['type']): boolean;
1132
+ hasShapeUtil<T extends ShapeUtil>(type: T extends ShapeUtil<infer R> ? R['type'] : string): boolean;
1120
1133
  /**
1121
1134
  * A map of shape utility classes (TLShapeUtils) by shape type.
1122
1135
  *
@@ -1369,8 +1382,8 @@ export declare class Editor extends EventEmitter<TLEventMap> {
1369
1382
  *
1370
1383
  * @example
1371
1384
  * ```ts
1372
- * state.getStateDescendant('select')
1373
- * state.getStateDescendant('select.brushing')
1385
+ * editor.getStateDescendant('select')
1386
+ * editor.getStateDescendant('select.brushing')
1374
1387
  * ```
1375
1388
  *
1376
1389
  * @param path - The descendant's path of state ids, separated by periods.
@@ -2360,7 +2373,10 @@ export declare class Editor extends EventEmitter<TLEventMap> {
2360
2373
  * Upload an asset to the store's asset service, returning a URL that can be used to resolve the
2361
2374
  * asset.
2362
2375
  */
2363
- uploadAsset(asset: TLAsset, file: File, abortSignal?: AbortSignal): Promise<string>;
2376
+ uploadAsset(asset: TLAsset, file: File, abortSignal?: AbortSignal): Promise<{
2377
+ meta?: JsonObject;
2378
+ src: string;
2379
+ }>;
2364
2380
  private _getShapeGeometryCache;
2365
2381
  /**
2366
2382
  * Get the geometry of a shape.
@@ -3431,7 +3447,7 @@ export declare class Editor extends EventEmitter<TLEventMap> {
3431
3447
  *
3432
3448
  * @public
3433
3449
  */
3434
- registerExternalAssetHandler<T extends TLExternalAssetContent['type']>(type: T, handler: ((info: TLExternalAssetContent & {
3450
+ registerExternalAssetHandler<T extends TLExternalAsset['type']>(type: T, handler: ((info: TLExternalAsset & {
3435
3451
  type: T;
3436
3452
  }) => Promise<TLAsset>) | null): this;
3437
3453
  /**
@@ -3477,8 +3493,8 @@ export declare class Editor extends EventEmitter<TLEventMap> {
3477
3493
  * @param info - Info about the external content.
3478
3494
  * @returns The asset.
3479
3495
  */
3480
- getAssetForExternalContent(info: TLExternalAssetContent): Promise<TLAsset | undefined>;
3481
- hasExternalAssetHandler(type: TLExternalAssetContent['type']): boolean;
3496
+ getAssetForExternalContent(info: TLExternalAsset): Promise<TLAsset | undefined>;
3497
+ hasExternalAssetHandler(type: TLExternalAsset['type']): boolean;
3482
3498
  /* Excluded from this release type: externalContentHandlers */
3483
3499
  /**
3484
3500
  * Register an external content handler. This handler will be called when the editor receives
@@ -4680,6 +4696,23 @@ export declare interface ResizeBoxOptions {
4680
4696
  maxHeight?: number;
4681
4697
  }
4682
4698
 
4699
+ /**
4700
+ * Resize a shape that has a scale prop.
4701
+ *
4702
+ * @param shape - The shape to resize
4703
+ * @param info - The resize info
4704
+ *
4705
+ * @public */
4706
+ export declare function resizeScaled(shape: TLBaseShape<any, {
4707
+ scale: number;
4708
+ }>, { initialBounds, scaleX, scaleY, newPoint, handle }: TLResizeInfo<any>): {
4709
+ props: {
4710
+ scale: number;
4711
+ };
4712
+ x: number;
4713
+ y: number;
4714
+ };
4715
+
4683
4716
  /** @public */
4684
4717
  export declare const ROTATE_CORNER_TO_SELECTION_CORNER: {
4685
4718
  readonly bottom_left_rotate: "bottom_left";
@@ -5051,6 +5084,15 @@ export declare abstract class ShapeUtil<Shape extends TLUnknownShape = TLUnknown
5051
5084
  * @public
5052
5085
  */
5053
5086
  onBeforeUpdate?(prev: Shape, next: Shape): Shape | void;
5087
+ /**
5088
+ * A callback called when a shape changes from a crop.
5089
+ *
5090
+ * @param shape - The shape at the start of the crop.
5091
+ * @param info - Info about the crop.
5092
+ * @returns A change to apply to the shape, or void.
5093
+ * @public
5094
+ */
5095
+ onCrop?(shape: Shape, info: TLCropInfo<Shape>): Omit<TLShapePartial<Shape>, 'id' | 'type'> | undefined | void;
5054
5096
  /**
5055
5097
  * A callback called when some other shapes are dragged over this one.
5056
5098
  *
@@ -5543,6 +5585,12 @@ export declare interface TLBaseEventInfo {
5543
5585
  accelKey: boolean;
5544
5586
  }
5545
5587
 
5588
+ /** @public */
5589
+ export declare interface TLBaseExternalContent {
5590
+ sources?: TLExternalContentSource[];
5591
+ point?: VecLike;
5592
+ }
5593
+
5546
5594
  /** @public */
5547
5595
  export declare interface TLBindingUtilConstructor<T extends TLUnknownBinding, U extends BindingUtil<T> = BindingUtil<T>> {
5548
5596
  new (editor: Editor): U;
@@ -5708,6 +5756,24 @@ export declare interface TLContent {
5708
5756
  schema: SerializedSchema;
5709
5757
  }
5710
5758
 
5759
+ /**
5760
+ * Info about a crop.
5761
+ * @param handle - The handle being dragged.
5762
+ * @param change - The distance the handle is moved.
5763
+ * @param initialShape - The shape at the start of the resize.
5764
+ * @public
5765
+ */
5766
+ export declare interface TLCropInfo<T extends TLShape> {
5767
+ handle: SelectionHandle;
5768
+ change: Vec;
5769
+ crop: TLShapeCrop;
5770
+ uncroppedSize: {
5771
+ h: number;
5772
+ w: number;
5773
+ };
5774
+ initialShape: T;
5775
+ }
5776
+
5711
5777
  /** @public */
5712
5778
  export declare interface TLCursorProps {
5713
5779
  className?: string;
@@ -5960,6 +6026,15 @@ export declare interface TldrawOptions {
5960
6026
  readonly exportProvider: ComponentType<{
5961
6027
  children: React.ReactNode;
5962
6028
  }>;
6029
+ /**
6030
+ * How should the note shape resize? By default it does not resize (except automatically based on its text content),
6031
+ * but you can set it to be user-resizable using scale.
6032
+ */
6033
+ readonly noteShapeResizeMode: 'none' | 'scale';
6034
+ /**
6035
+ * By default, the toolbar items are accessible via number shortcuts according to their order. To disable this, set this option to false.
6036
+ */
6037
+ readonly enableToolbarKeyboardShortcuts: boolean;
5963
6038
  }
5964
6039
 
5965
6040
  /** @public */
@@ -6061,6 +6136,13 @@ export declare interface TLEditorSnapshot {
6061
6136
  session: TLSessionStateSnapshot;
6062
6137
  }
6063
6138
 
6139
+ /** @public */
6140
+ export declare interface TLEmbedExternalContent<EmbedDefinition> extends TLBaseExternalContent {
6141
+ type: 'embed';
6142
+ url: string;
6143
+ embed: EmbedDefinition;
6144
+ }
6145
+
6064
6146
  /** @public */
6065
6147
  export declare type TLEnterEventHandler = (info: any, from: string) => void;
6066
6148
 
@@ -6086,6 +6168,13 @@ export declare interface TLErrorBoundaryProps {
6086
6168
  fallback: TLErrorFallbackComponent;
6087
6169
  }
6088
6170
 
6171
+ /** @public */
6172
+ export declare interface TLErrorExternalContentSource {
6173
+ type: 'error';
6174
+ data: null | string;
6175
+ reason: string;
6176
+ }
6177
+
6089
6178
  /** @public */
6090
6179
  export declare type TLErrorFallbackComponent = ComponentType<{
6091
6180
  editor?: Editor;
@@ -6131,6 +6220,7 @@ export declare interface TLEventMap {
6131
6220
  }];
6132
6221
  'stop-camera-animation': [];
6133
6222
  'stop-following': [];
6223
+ 'before-event': [TLEventInfo];
6134
6224
  event: [TLEventInfo];
6135
6225
  tick: [number];
6136
6226
  frame: [number];
@@ -6145,6 +6235,12 @@ export declare type TLEventMapHandler<T extends keyof TLEventMap> = (...args: TL
6145
6235
  /** @public */
6146
6236
  export declare type TLEventName = 'cancel' | 'complete' | 'interrupt' | 'tick' | 'wheel' | TLCLickEventName | TLKeyboardEventName | TLPinchEventName | TLPointerEventName;
6147
6237
 
6238
+ /** @public */
6239
+ export declare interface TLExcalidrawExternalContentSource {
6240
+ type: 'excalidraw';
6241
+ data: any;
6242
+ }
6243
+
6148
6244
  /** @public */
6149
6245
  export declare type TLExitEventHandler = (info: any, to: string) => void;
6150
6246
 
@@ -6152,54 +6248,27 @@ export declare type TLExitEventHandler = (info: any, to: string) => void;
6152
6248
  export declare type TLExportType = 'jpeg' | 'png' | 'svg' | 'webp';
6153
6249
 
6154
6250
  /** @public */
6155
- export declare type TLExternalAssetContent = {
6156
- assetId?: TLAssetId;
6157
- file: File;
6251
+ export declare type TLExternalAsset = TLFileExternalAsset | TLUrlExternalAsset;
6252
+
6253
+ /** @public */
6254
+ export declare type TLExternalContent<EmbedDefinition> = TLEmbedExternalContent<EmbedDefinition> | TLFilesExternalContent | TLSvgTextExternalContent | TLTextExternalContent | TLUrlExternalContent;
6255
+
6256
+ /** @public */
6257
+ export declare type TLExternalContentSource = TLErrorExternalContentSource | TLExcalidrawExternalContentSource | TLTextExternalContentSource | TLTldrawExternalContentSource;
6258
+
6259
+ /** @public */
6260
+ export declare interface TLFileExternalAsset {
6158
6261
  type: 'file';
6159
- } | {
6160
- type: 'url';
6161
- url: string;
6162
- };
6262
+ file: File;
6263
+ assetId?: TLAssetId;
6264
+ }
6163
6265
 
6164
6266
  /** @public */
6165
- export declare type TLExternalContent<EmbedDefinition> = {
6166
- point?: VecLike;
6167
- sources?: TLExternalContentSource[];
6168
- } & ({
6169
- embed: EmbedDefinition;
6170
- type: 'embed';
6171
- url: string;
6172
- } | {
6267
+ export declare interface TLFilesExternalContent extends TLBaseExternalContent {
6268
+ type: 'files';
6173
6269
  files: File[];
6174
6270
  ignoreParent: boolean;
6175
- type: 'files';
6176
- } | {
6177
- text: string;
6178
- type: 'svg-text';
6179
- } | {
6180
- text: string;
6181
- type: 'text';
6182
- } | {
6183
- type: 'url';
6184
- url: string;
6185
- });
6186
-
6187
- /** @public */
6188
- export declare type TLExternalContentSource = {
6189
- data: any;
6190
- type: 'excalidraw';
6191
- } | {
6192
- data: null | string;
6193
- reason: string;
6194
- type: 'error';
6195
- } | {
6196
- data: string;
6197
- subtype: 'html' | 'json' | 'text' | 'url';
6198
- type: 'text';
6199
- } | {
6200
- data: TLContent;
6201
- type: 'tldraw';
6202
- };
6271
+ }
6203
6272
 
6204
6273
  /** @public */
6205
6274
  export declare interface TLGridProps {
@@ -6820,6 +6889,25 @@ export declare interface TLSvgExportOptions {
6820
6889
  */
6821
6890
  export declare type TLSvgOptions = TLImageExportOptions;
6822
6891
 
6892
+ /** @public */
6893
+ export declare interface TLSvgTextExternalContent extends TLBaseExternalContent {
6894
+ type: 'svg-text';
6895
+ text: string;
6896
+ }
6897
+
6898
+ /** @public */
6899
+ export declare interface TLTextExternalContent extends TLBaseExternalContent {
6900
+ type: 'text';
6901
+ text: string;
6902
+ }
6903
+
6904
+ /** @public */
6905
+ export declare interface TLTextExternalContentSource {
6906
+ type: 'text';
6907
+ data: string;
6908
+ subtype: 'html' | 'json' | 'text' | 'url';
6909
+ }
6910
+
6823
6911
  /** @public */
6824
6912
  export declare type TLTickEvent = (info: TLTickEventInfo) => void;
6825
6913
 
@@ -6837,6 +6925,24 @@ export declare interface TLTickEventInfo {
6837
6925
  */
6838
6926
  export declare const tltime: Timers;
6839
6927
 
6928
+ /** @public */
6929
+ export declare interface TLTldrawExternalContentSource {
6930
+ type: 'tldraw';
6931
+ data: TLContent;
6932
+ }
6933
+
6934
+ /** @public */
6935
+ export declare interface TLUrlExternalAsset {
6936
+ type: 'url';
6937
+ url: string;
6938
+ }
6939
+
6940
+ /** @public */
6941
+ export declare interface TLUrlExternalContent extends TLBaseExternalContent {
6942
+ type: 'url';
6943
+ url: string;
6944
+ }
6945
+
6840
6946
  /** @public */
6841
6947
  export declare interface TLUser {
6842
6948
  readonly userPreferences: Signal<TLUserPreferences>;
package/dist-cjs/index.js CHANGED
@@ -17,8 +17,8 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
- var src_exports = {};
21
- __export(src_exports, {
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
22
  Arc2d: () => import_Arc2d.Arc2d,
23
23
  BaseBoxShapeTool: () => import_BaseBoxShapeTool.BaseBoxShapeTool,
24
24
  BaseBoxShapeUtil: () => import_BaseBoxShapeUtil.BaseBoxShapeUtil,
@@ -97,6 +97,7 @@ __export(src_exports, {
97
97
  USER_COLORS: () => import_TLUserPreferences.USER_COLORS,
98
98
  UserPreferencesManager: () => import_UserPreferencesManager.UserPreferencesManager,
99
99
  Vec: () => import_Vec.Vec,
100
+ activeElementShouldCaptureKeys: () => import_dom.activeElementShouldCaptureKeys,
100
101
  angleDistance: () => import_utils2.angleDistance,
101
102
  applyRotationToSnapshotShapes: () => import_rotation.applyRotationToSnapshotShapes,
102
103
  approximately: () => import_utils2.approximately,
@@ -175,6 +176,7 @@ __export(src_exports, {
175
176
  refreshPage: () => import_refreshPage.refreshPage,
176
177
  releasePointerCapture: () => import_dom.releasePointerCapture,
177
178
  resizeBox: () => import_resizeBox.resizeBox,
179
+ resizeScaled: () => import_resizeScaled.resizeScaled,
178
180
  rotateSelectionHandle: () => import_Box.rotateSelectionHandle,
179
181
  runtime: () => import_runtime.runtime,
180
182
  sanitizeId: () => import_useSafeId.sanitizeId,
@@ -232,7 +234,7 @@ __export(src_exports, {
232
234
  userTypeValidator: () => import_TLUserPreferences.userTypeValidator,
233
235
  whyAmIRunning: () => import_state.whyAmIRunning
234
236
  });
235
- module.exports = __toCommonJS(src_exports);
237
+ module.exports = __toCommonJS(index_exports);
236
238
  var import_utils = require("@tldraw/utils");
237
239
  var import_at = require("core-js/stable/array/at.js");
238
240
  var import_flat_map = require("core-js/stable/array/flat-map.js");
@@ -241,11 +243,12 @@ var import_at2 = require("core-js/stable/string/at.js");
241
243
  var import_replace_all = require("core-js/stable/string/replace-all.js");
242
244
  var import_state = require("@tldraw/state");
243
245
  var import_state_react = require("@tldraw/state-react");
246
+ var import_resizeScaled = require("./lib/editor/shapes/shared/resizeScaled");
244
247
  var import_LocalIndexedDb = require("./lib/utils/sync/LocalIndexedDb");
245
- __reExport(src_exports, require("@tldraw/store"), module.exports);
246
- __reExport(src_exports, require("@tldraw/tlschema"), module.exports);
247
- __reExport(src_exports, require("@tldraw/utils"), module.exports);
248
- __reExport(src_exports, require("@tldraw/validate"), module.exports);
248
+ __reExport(index_exports, require("@tldraw/store"), module.exports);
249
+ __reExport(index_exports, require("@tldraw/tlschema"), module.exports);
250
+ __reExport(index_exports, require("@tldraw/utils"), module.exports);
251
+ __reExport(index_exports, require("@tldraw/validate"), module.exports);
249
252
  var import_TldrawEditor = require("./lib/TldrawEditor");
250
253
  var import_ErrorBoundary = require("./lib/components/ErrorBoundary");
251
254
  var import_HTMLContainer = require("./lib/components/HTMLContainer");
@@ -363,7 +366,7 @@ function debugEnableLicensing() {
363
366
  }
364
367
  (0, import_utils.registerTldrawLibraryVersion)(
365
368
  "@tldraw/editor",
366
- "3.8.0-canary.fa7c40c0a965",
369
+ "3.8.0-canary.fcad75fe42f9",
367
370
  "cjs"
368
371
  );
369
372
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts"],
4
- "sourcesContent": ["import { registerTldrawLibraryVersion } from '@tldraw/utils'\nimport 'core-js/stable/array/at.js'\nimport 'core-js/stable/array/flat-map.js'\nimport 'core-js/stable/array/flat.js'\nimport 'core-js/stable/string/at.js'\nimport 'core-js/stable/string/replace-all.js'\nexport {\n\tEMPTY_ARRAY,\n\tEffectScheduler,\n\tatom,\n\tcomputed,\n\treact,\n\ttransact,\n\ttransaction,\n\twhyAmIRunning,\n\ttype Atom,\n\ttype Signal,\n} from '@tldraw/state'\nexport {\n\ttrack,\n\tuseAtom,\n\tuseComputed,\n\tuseQuickReactor,\n\tuseReactor,\n\tuseStateTracking,\n\tuseValue,\n} from '@tldraw/state-react'\nexport { LocalIndexedDb, Table, type StoreName } from './lib/utils/sync/LocalIndexedDb'\n// eslint-disable-next-line local/no-export-star\nexport * from '@tldraw/store'\n// eslint-disable-next-line local/no-export-star\nexport * from '@tldraw/tlschema'\n// eslint-disable-next-line local/no-export-star\nexport * from '@tldraw/utils'\n// eslint-disable-next-line local/no-export-star\nexport * from '@tldraw/validate'\nexport {\n\tErrorScreen,\n\tLoadingScreen,\n\tTldrawEditor,\n\tuseOnMount,\n\ttype LoadingScreenProps,\n\ttype TLOnMountHandler,\n\ttype TldrawEditorBaseProps,\n\ttype TldrawEditorProps,\n\ttype TldrawEditorStoreProps,\n\ttype TldrawEditorWithStoreProps,\n\ttype TldrawEditorWithoutStoreProps,\n} from './lib/TldrawEditor'\nexport {\n\tErrorBoundary,\n\tOptionalErrorBoundary,\n\ttype TLErrorBoundaryProps,\n} from './lib/components/ErrorBoundary'\nexport { HTMLContainer, type HTMLContainerProps } from './lib/components/HTMLContainer'\nexport { MenuClickCapture } from './lib/components/MenuClickCapture'\nexport { SVGContainer, type SVGContainerProps } from './lib/components/SVGContainer'\nexport { DefaultBackground } from './lib/components/default-components/DefaultBackground'\nexport { DefaultBrush, type TLBrushProps } from './lib/components/default-components/DefaultBrush'\nexport {\n\tDefaultCanvas,\n\ttype TLCanvasComponentProps,\n} from './lib/components/default-components/DefaultCanvas'\nexport {\n\tDefaultCollaboratorHint,\n\ttype TLCollaboratorHintProps,\n} from './lib/components/default-components/DefaultCollaboratorHint'\nexport {\n\tDefaultCursor,\n\ttype TLCursorProps,\n} from './lib/components/default-components/DefaultCursor'\nexport {\n\tDefaultErrorFallback,\n\ttype TLErrorFallbackComponent,\n} from './lib/components/default-components/DefaultErrorFallback'\nexport { DefaultGrid, type TLGridProps } from './lib/components/default-components/DefaultGrid'\nexport {\n\tDefaultHandle,\n\ttype TLHandleProps,\n} from './lib/components/default-components/DefaultHandle'\nexport {\n\tDefaultHandles,\n\ttype TLHandlesProps,\n} from './lib/components/default-components/DefaultHandles'\nexport {\n\tDefaultScribble,\n\ttype TLScribbleProps,\n} from './lib/components/default-components/DefaultScribble'\nexport {\n\tDefaultSelectionBackground,\n\ttype TLSelectionBackgroundProps,\n} from './lib/components/default-components/DefaultSelectionBackground'\nexport {\n\tDefaultSelectionForeground,\n\ttype TLSelectionForegroundProps,\n} from './lib/components/default-components/DefaultSelectionForeground'\nexport { type TLShapeErrorFallbackComponent } from './lib/components/default-components/DefaultShapeErrorFallback'\nexport {\n\tDefaultShapeIndicator,\n\ttype TLShapeIndicatorProps,\n} from './lib/components/default-components/DefaultShapeIndicator'\nexport { type TLShapeIndicatorErrorFallbackComponent } from './lib/components/default-components/DefaultShapeIndicatorErrorFallback'\nexport { DefaultShapeIndicators } from './lib/components/default-components/DefaultShapeIndicators'\nexport {\n\tDefaultSnapIndicator,\n\ttype TLSnapIndicatorProps,\n} from './lib/components/default-components/DefaultSnapIndictor'\nexport { DefaultSpinner } from './lib/components/default-components/DefaultSpinner'\nexport { DefaultSvgDefs } from './lib/components/default-components/DefaultSvgDefs'\nexport {\n\tgetSnapshot,\n\tloadSnapshot,\n\ttype TLEditorSnapshot,\n\ttype TLLoadSnapshotOptions,\n} from './lib/config/TLEditorSnapshot'\nexport {\n\tTAB_ID,\n\tcreateSessionStateSnapshotSignal,\n\textractSessionStateFromLegacySnapshot,\n\tloadSessionStateSnapshotIntoStore,\n\ttype TLLoadSessionStateSnapshotOptions,\n\ttype TLSessionStateSnapshot,\n} from './lib/config/TLSessionStateSnapshot'\nexport {\n\tUSER_COLORS,\n\tdefaultUserPreferences,\n\tgetFreshUserPreferences,\n\tgetUserPreferences,\n\tsetUserPreferences,\n\tuserTypeValidator,\n\ttype TLUserPreferences,\n} from './lib/config/TLUserPreferences'\nexport {\n\tcreateTLSchemaFromUtils,\n\tcreateTLStore,\n\tinlineBase64AssetStore,\n\ttype TLStoreBaseOptions,\n\ttype TLStoreEventInfo,\n\ttype TLStoreOptions,\n\ttype TLStoreSchemaOptions,\n} from './lib/config/createTLStore'\nexport { createTLUser, useTldrawUser, type TLUser } from './lib/config/createTLUser'\nexport { type TLAnyBindingUtilConstructor } from './lib/config/defaultBindings'\nexport { coreShapes, type TLAnyShapeUtilConstructor } from './lib/config/defaultShapes'\nexport { DEFAULT_ANIMATION_OPTIONS, DEFAULT_CAMERA_OPTIONS, SIDES } from './lib/constants'\nexport {\n\tEditor,\n\ttype TLEditorOptions,\n\ttype TLEditorRunOptions,\n\ttype TLRenderingShape,\n\ttype TLResizeShapeOptions,\n} from './lib/editor/Editor'\nexport {\n\tBindingUtil,\n\ttype BindingOnChangeOptions,\n\ttype BindingOnCreateOptions,\n\ttype BindingOnDeleteOptions,\n\ttype BindingOnShapeChangeOptions,\n\ttype BindingOnShapeDeleteOptions,\n\ttype BindingOnShapeIsolateOptions,\n\ttype TLBindingUtilConstructor,\n} from './lib/editor/bindings/BindingUtil'\nexport { ClickManager, type TLClickState } from './lib/editor/managers/ClickManager'\nexport { EdgeScrollManager } from './lib/editor/managers/EdgeScrollManager'\nexport { HistoryManager } from './lib/editor/managers/HistoryManager'\nexport { ScribbleManager, type ScribbleItem } from './lib/editor/managers/ScribbleManager'\nexport {\n\tBoundsSnaps,\n\ttype BoundsSnapGeometry,\n\ttype BoundsSnapPoint,\n} from './lib/editor/managers/SnapManager/BoundsSnaps'\nexport { HandleSnaps, type HandleSnapGeometry } from './lib/editor/managers/SnapManager/HandleSnaps'\nexport {\n\tSnapManager,\n\ttype GapsSnapIndicator,\n\ttype PointsSnapIndicator,\n\ttype SnapData,\n\ttype SnapIndicator,\n} from './lib/editor/managers/SnapManager/SnapManager'\nexport { TextManager, type TLMeasureTextSpanOpts } from './lib/editor/managers/TextManager'\nexport { UserPreferencesManager } from './lib/editor/managers/UserPreferencesManager'\nexport { BaseBoxShapeUtil, type TLBaseBoxShape } from './lib/editor/shapes/BaseBoxShapeUtil'\nexport {\n\tShapeUtil,\n\ttype TLHandleDragInfo,\n\ttype TLResizeInfo,\n\ttype TLResizeMode,\n\ttype TLShapeUtilCanBindOpts,\n\ttype TLShapeUtilCanvasSvgDef,\n\ttype TLShapeUtilConstructor,\n} from './lib/editor/shapes/ShapeUtil'\nexport { GroupShapeUtil } from './lib/editor/shapes/group/GroupShapeUtil'\nexport { getPerfectDashProps } from './lib/editor/shapes/shared/getPerfectDashProps'\nexport { resizeBox, type ResizeBoxOptions } from './lib/editor/shapes/shared/resizeBox'\nexport { BaseBoxShapeTool } from './lib/editor/tools/BaseBoxShapeTool/BaseBoxShapeTool'\nexport { maybeSnapToGrid } from './lib/editor/tools/BaseBoxShapeTool/children/Pointing'\nexport { StateNode, type TLStateNodeConstructor } from './lib/editor/tools/StateNode'\nexport {\n\tuseDelaySvgExport,\n\tuseSvgExportContext,\n\ttype SvgExportContext,\n\ttype SvgExportDef,\n} from './lib/editor/types/SvgExportContext'\nexport { type TLContent } from './lib/editor/types/clipboard-types'\nexport { type TLEventMap, type TLEventMapHandler } from './lib/editor/types/emit-types'\nexport {\n\tEVENT_NAME_MAP,\n\ttype TLBaseEventInfo,\n\ttype TLCLickEventName,\n\ttype TLCancelEvent,\n\ttype TLCancelEventInfo,\n\ttype TLClickEvent,\n\ttype TLClickEventInfo,\n\ttype TLCompleteEvent,\n\ttype TLCompleteEventInfo,\n\ttype TLEnterEventHandler,\n\ttype TLEventHandlers,\n\ttype TLEventInfo,\n\ttype TLEventName,\n\ttype TLExitEventHandler,\n\ttype TLInterruptEvent,\n\ttype TLInterruptEventInfo,\n\ttype TLKeyboardEvent,\n\ttype TLKeyboardEventInfo,\n\ttype TLKeyboardEventName,\n\ttype TLPinchEvent,\n\ttype TLPinchEventInfo,\n\ttype TLPinchEventName,\n\ttype TLPointerEvent,\n\ttype TLPointerEventInfo,\n\ttype TLPointerEventName,\n\ttype TLPointerEventTarget,\n\ttype TLTickEvent,\n\ttype TLTickEventInfo,\n\ttype TLWheelEvent,\n\ttype TLWheelEventInfo,\n\ttype UiEvent,\n\ttype UiEventType,\n} from './lib/editor/types/event-types'\nexport {\n\ttype TLExternalAssetContent,\n\ttype TLExternalContent,\n\ttype TLExternalContentSource,\n} from './lib/editor/types/external-content'\nexport {\n\ttype TLHistoryBatchOptions,\n\ttype TLHistoryDiff,\n\ttype TLHistoryEntry,\n\ttype TLHistoryMark,\n} from './lib/editor/types/history-types'\nexport {\n\ttype OptionalKeys,\n\ttype RequiredKeys,\n\ttype TLCameraConstraints,\n\ttype TLCameraMoveOptions,\n\ttype TLCameraOptions,\n\ttype TLExportType,\n\ttype TLImageExportOptions,\n\ttype TLSvgExportOptions,\n\ttype TLSvgOptions,\n} from './lib/editor/types/misc-types'\nexport { type TLResizeHandle, type TLSelectionHandle } from './lib/editor/types/selection-types'\nexport { getSvgAsImage } from './lib/exports/getSvgAsImage'\nexport { tlenv } from './lib/globals/environment'\nexport { tlmenus } from './lib/globals/menus'\nexport { tltime } from './lib/globals/time'\nexport {\n\tContainerProvider,\n\tuseContainer,\n\tuseContainerIfExists,\n\ttype ContainerProviderProps,\n} from './lib/hooks/useContainer'\nexport { getCursor } from './lib/hooks/useCursor'\nexport { EditorContext, useEditor, useMaybeEditor } from './lib/hooks/useEditor'\nexport { useEditorComponents } from './lib/hooks/useEditorComponents'\nexport type { TLEditorComponents } from './lib/hooks/useEditorComponents'\nexport { useEvent, useReactiveEvent } from './lib/hooks/useEvent'\nexport { useGlobalMenuIsOpen } from './lib/hooks/useGlobalMenuIsOpen'\nexport { useShallowArrayIdentity, useShallowObjectIdentity } from './lib/hooks/useIdentity'\nexport { useIsCropping } from './lib/hooks/useIsCropping'\nexport { useIsDarkMode } from './lib/hooks/useIsDarkMode'\nexport { useIsEditing } from './lib/hooks/useIsEditing'\nexport { useLocalStore } from './lib/hooks/useLocalStore'\nexport { usePassThroughWheelEvents } from './lib/hooks/usePassThroughWheelEvents'\nexport { usePeerIds } from './lib/hooks/usePeerIds'\nexport { usePresence } from './lib/hooks/usePresence'\nexport { useRefState } from './lib/hooks/useRefState'\nexport {\n\tsanitizeId,\n\tsuffixSafeId,\n\tuseSharedSafeId,\n\tuseUniqueSafeId,\n\ttype SafeId,\n} from './lib/hooks/useSafeId'\nexport { useSelectionEvents } from './lib/hooks/useSelectionEvents'\nexport { useTLSchemaFromUtils, useTLStore } from './lib/hooks/useTLStore'\nexport { useTransform } from './lib/hooks/useTransform'\nexport {\n\tLicenseManager,\n\ttype InvalidLicenseKeyResult,\n\ttype InvalidLicenseReason,\n\ttype LicenseFromKeyResult,\n\ttype LicenseInfo,\n\ttype TestEnvironment,\n\ttype ValidLicenseKeyResult,\n} from './lib/license/LicenseManager'\nexport { defaultTldrawOptions, type TldrawOptions } from './lib/options'\nexport {\n\tBox,\n\tROTATE_CORNER_TO_SELECTION_CORNER,\n\trotateSelectionHandle,\n\ttype BoxLike,\n\ttype RotateCorner,\n\ttype SelectionCorner,\n\ttype SelectionEdge,\n\ttype SelectionHandle,\n} from './lib/primitives/Box'\nexport { Mat, type MatLike, type MatModel } from './lib/primitives/Mat'\nexport { Vec, type VecLike } from './lib/primitives/Vec'\nexport { EASINGS } from './lib/primitives/easings'\nexport { Arc2d } from './lib/primitives/geometry/Arc2d'\nexport { Circle2d } from './lib/primitives/geometry/Circle2d'\nexport { CubicBezier2d } from './lib/primitives/geometry/CubicBezier2d'\nexport { CubicSpline2d } from './lib/primitives/geometry/CubicSpline2d'\nexport { Edge2d } from './lib/primitives/geometry/Edge2d'\nexport { Ellipse2d } from './lib/primitives/geometry/Ellipse2d'\nexport { Geometry2d, type Geometry2dOptions } from './lib/primitives/geometry/Geometry2d'\nexport { Group2d } from './lib/primitives/geometry/Group2d'\nexport { Point2d } from './lib/primitives/geometry/Point2d'\nexport { Polygon2d } from './lib/primitives/geometry/Polygon2d'\nexport { Polyline2d } from './lib/primitives/geometry/Polyline2d'\nexport { Rectangle2d } from './lib/primitives/geometry/Rectangle2d'\nexport { Stadium2d } from './lib/primitives/geometry/Stadium2d'\nexport {\n\tintersectCircleCircle,\n\tintersectCirclePolygon,\n\tintersectCirclePolyline,\n\tintersectLineSegmentCircle,\n\tintersectLineSegmentLineSegment,\n\tintersectLineSegmentPolygon,\n\tintersectLineSegmentPolyline,\n\tintersectPolygonBounds,\n\tintersectPolygonPolygon,\n\tlinesIntersect,\n\tpolygonIntersectsPolyline,\n\tpolygonsIntersect,\n} from './lib/primitives/intersect'\nexport {\n\tHALF_PI,\n\tPI,\n\tPI2,\n\tSIN,\n\tangleDistance,\n\tapproximately,\n\tareAnglesCompatible,\n\taverage,\n\tcanonicalizeRotation,\n\tcenterOfCircleFromThreePoints,\n\tclamp,\n\tclampRadians,\n\tclockwiseAngleDist,\n\tcounterClockwiseAngleDist,\n\tdegreesToRadians,\n\tgetArcMeasure,\n\tgetPointInArcT,\n\tgetPointOnCircle,\n\tgetPointsOnArc,\n\tgetPolygonVertices,\n\tisSafeFloat,\n\tperimeterOfEllipse,\n\tpointInPolygon,\n\tprecise,\n\tradiansToDegrees,\n\trangeIntersection,\n\tshortAngleDist,\n\tsnapAngle,\n\ttoDomPrecision,\n\ttoFixed,\n\ttoPrecision,\n} from './lib/primitives/utils'\nexport {\n\tReadonlySharedStyleMap,\n\tSharedStyleMap,\n\ttype SharedStyle,\n} from './lib/utils/SharedStylesMap'\nexport { dataUrlToFile, getDefaultCdnBaseUrl } from './lib/utils/assets'\nexport { clampToBrowserMaxCanvasSize, type CanvasMaxSize } from './lib/utils/browserCanvasMaxSize'\nexport {\n\tdebugFlags,\n\tfeatureFlags,\n\ttype DebugFlag,\n\ttype DebugFlagDef,\n\ttype DebugFlagDefaults,\n} from './lib/utils/debug-flags'\nexport {\n\tcreateDeepLinkString,\n\tparseDeepLinkString,\n\ttype TLDeepLink,\n\ttype TLDeepLinkOptions,\n} from './lib/utils/deepLinks'\nexport {\n\tloopToHtmlElement,\n\tpreventDefault,\n\treleasePointerCapture,\n\tsetPointerCapture,\n\tstopEventPropagation,\n} from './lib/utils/dom'\nexport { getIncrementedName } from './lib/utils/getIncrementedName'\nexport { getPointerInfo } from './lib/utils/getPointerInfo'\nexport { getSvgPathFromPoints } from './lib/utils/getSvgPathFromPoints'\nexport { hardResetEditor } from './lib/utils/hardResetEditor'\nexport { isAccelKey } from './lib/utils/keyboard'\nexport { normalizeWheel } from './lib/utils/normalizeWheel'\nexport { refreshPage } from './lib/utils/refreshPage'\nexport {\n\tapplyRotationToSnapshotShapes,\n\tgetRotationSnapshot,\n\ttype TLRotationSnapshot,\n} from './lib/utils/rotation'\nexport { runtime, setRuntimeOverrides } from './lib/utils/runtime'\nexport { type TLStoreWithStatus } from './lib/utils/sync/StoreWithStatus'\nexport { hardReset } from './lib/utils/sync/hardReset'\nexport { uniq } from './lib/utils/uniq'\nexport { openWindow } from './lib/utils/window-open'\n\n/**\n * @deprecated Licensing is now enabled in the tldraw SDK.\n * @public */\nexport function debugEnableLicensing() {\n\t// noop\n\treturn\n}\n\nregisterTldrawLibraryVersion(\n\t(globalThis as any).TLDRAW_LIBRARY_NAME,\n\t(globalThis as any).TLDRAW_LIBRARY_VERSION,\n\t(globalThis as any).TLDRAW_LIBRARY_MODULES\n)\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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,wBAAmD;AACnD,qBAAwB;AACxB,qBAAwB;AACxB,uBAA0B;AAC1B,wBAA2B;AAC3B,yBAA4B;AAC5B,uBAA0B;AAC1B,uBAaO;AACP,IAAAC,gBAgCO;AACP,6BAIO;AACP,oBAAoD;AACpD,kCAAgE;AAChE,yBAMO;AACP,uBAKO;AACP,iBAMO;AACP,gCAAmC;AACnC,4BAA+B;AAC/B,kCAAqC;AACrC,6BAAgC;AAChC,sBAA2B;AAC3B,4BAA+B;AAC/B,yBAA4B;AAC5B,sBAIO;AACP,qBAA6C;AAE7C,uBAA0B;AAC1B,kBAAqB;AACrB,yBAA2B;AAKpB,SAAS,uBAAuB;AAEtC;AACD;AAAA,IAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AACF;",
4
+ "sourcesContent": ["import { registerTldrawLibraryVersion } from '@tldraw/utils'\nimport 'core-js/stable/array/at.js'\nimport 'core-js/stable/array/flat-map.js'\nimport 'core-js/stable/array/flat.js'\nimport 'core-js/stable/string/at.js'\nimport 'core-js/stable/string/replace-all.js'\nexport {\n\tEMPTY_ARRAY,\n\tEffectScheduler,\n\tatom,\n\tcomputed,\n\treact,\n\ttransact,\n\ttransaction,\n\twhyAmIRunning,\n\ttype Atom,\n\ttype Signal,\n} from '@tldraw/state'\nexport {\n\ttrack,\n\tuseAtom,\n\tuseComputed,\n\tuseQuickReactor,\n\tuseReactor,\n\tuseStateTracking,\n\tuseValue,\n} from '@tldraw/state-react'\nexport { resizeScaled } from './lib/editor/shapes/shared/resizeScaled'\nexport { LocalIndexedDb, Table, type StoreName } from './lib/utils/sync/LocalIndexedDb'\n// eslint-disable-next-line local/no-export-star\nexport * from '@tldraw/store'\n// eslint-disable-next-line local/no-export-star\nexport * from '@tldraw/tlschema'\n// eslint-disable-next-line local/no-export-star\nexport * from '@tldraw/utils'\n// eslint-disable-next-line local/no-export-star\nexport * from '@tldraw/validate'\nexport {\n\tErrorScreen,\n\tLoadingScreen,\n\tTldrawEditor,\n\tuseOnMount,\n\ttype LoadingScreenProps,\n\ttype TLOnMountHandler,\n\ttype TldrawEditorBaseProps,\n\ttype TldrawEditorProps,\n\ttype TldrawEditorStoreProps,\n\ttype TldrawEditorWithStoreProps,\n\ttype TldrawEditorWithoutStoreProps,\n} from './lib/TldrawEditor'\nexport {\n\tErrorBoundary,\n\tOptionalErrorBoundary,\n\ttype TLErrorBoundaryProps,\n} from './lib/components/ErrorBoundary'\nexport { HTMLContainer, type HTMLContainerProps } from './lib/components/HTMLContainer'\nexport { MenuClickCapture } from './lib/components/MenuClickCapture'\nexport { SVGContainer, type SVGContainerProps } from './lib/components/SVGContainer'\nexport { DefaultBackground } from './lib/components/default-components/DefaultBackground'\nexport { DefaultBrush, type TLBrushProps } from './lib/components/default-components/DefaultBrush'\nexport {\n\tDefaultCanvas,\n\ttype TLCanvasComponentProps,\n} from './lib/components/default-components/DefaultCanvas'\nexport {\n\tDefaultCollaboratorHint,\n\ttype TLCollaboratorHintProps,\n} from './lib/components/default-components/DefaultCollaboratorHint'\nexport {\n\tDefaultCursor,\n\ttype TLCursorProps,\n} from './lib/components/default-components/DefaultCursor'\nexport {\n\tDefaultErrorFallback,\n\ttype TLErrorFallbackComponent,\n} from './lib/components/default-components/DefaultErrorFallback'\nexport { DefaultGrid, type TLGridProps } from './lib/components/default-components/DefaultGrid'\nexport {\n\tDefaultHandle,\n\ttype TLHandleProps,\n} from './lib/components/default-components/DefaultHandle'\nexport {\n\tDefaultHandles,\n\ttype TLHandlesProps,\n} from './lib/components/default-components/DefaultHandles'\nexport {\n\tDefaultScribble,\n\ttype TLScribbleProps,\n} from './lib/components/default-components/DefaultScribble'\nexport {\n\tDefaultSelectionBackground,\n\ttype TLSelectionBackgroundProps,\n} from './lib/components/default-components/DefaultSelectionBackground'\nexport {\n\tDefaultSelectionForeground,\n\ttype TLSelectionForegroundProps,\n} from './lib/components/default-components/DefaultSelectionForeground'\nexport { type TLShapeErrorFallbackComponent } from './lib/components/default-components/DefaultShapeErrorFallback'\nexport {\n\tDefaultShapeIndicator,\n\ttype TLShapeIndicatorProps,\n} from './lib/components/default-components/DefaultShapeIndicator'\nexport { type TLShapeIndicatorErrorFallbackComponent } from './lib/components/default-components/DefaultShapeIndicatorErrorFallback'\nexport { DefaultShapeIndicators } from './lib/components/default-components/DefaultShapeIndicators'\nexport {\n\tDefaultSnapIndicator,\n\ttype TLSnapIndicatorProps,\n} from './lib/components/default-components/DefaultSnapIndictor'\nexport { DefaultSpinner } from './lib/components/default-components/DefaultSpinner'\nexport { DefaultSvgDefs } from './lib/components/default-components/DefaultSvgDefs'\nexport {\n\tgetSnapshot,\n\tloadSnapshot,\n\ttype TLEditorSnapshot,\n\ttype TLLoadSnapshotOptions,\n} from './lib/config/TLEditorSnapshot'\nexport {\n\tTAB_ID,\n\tcreateSessionStateSnapshotSignal,\n\textractSessionStateFromLegacySnapshot,\n\tloadSessionStateSnapshotIntoStore,\n\ttype TLLoadSessionStateSnapshotOptions,\n\ttype TLSessionStateSnapshot,\n} from './lib/config/TLSessionStateSnapshot'\nexport {\n\tUSER_COLORS,\n\tdefaultUserPreferences,\n\tgetFreshUserPreferences,\n\tgetUserPreferences,\n\tsetUserPreferences,\n\tuserTypeValidator,\n\ttype TLUserPreferences,\n} from './lib/config/TLUserPreferences'\nexport {\n\tcreateTLSchemaFromUtils,\n\tcreateTLStore,\n\tinlineBase64AssetStore,\n\ttype TLStoreBaseOptions,\n\ttype TLStoreEventInfo,\n\ttype TLStoreOptions,\n\ttype TLStoreSchemaOptions,\n} from './lib/config/createTLStore'\nexport { createTLUser, useTldrawUser, type TLUser } from './lib/config/createTLUser'\nexport { type TLAnyBindingUtilConstructor } from './lib/config/defaultBindings'\nexport { coreShapes, type TLAnyShapeUtilConstructor } from './lib/config/defaultShapes'\nexport { DEFAULT_ANIMATION_OPTIONS, DEFAULT_CAMERA_OPTIONS, SIDES } from './lib/constants'\nexport {\n\tEditor,\n\ttype TLEditorOptions,\n\ttype TLEditorRunOptions,\n\ttype TLRenderingShape,\n\ttype TLResizeShapeOptions,\n} from './lib/editor/Editor'\nexport {\n\tBindingUtil,\n\ttype BindingOnChangeOptions,\n\ttype BindingOnCreateOptions,\n\ttype BindingOnDeleteOptions,\n\ttype BindingOnShapeChangeOptions,\n\ttype BindingOnShapeDeleteOptions,\n\ttype BindingOnShapeIsolateOptions,\n\ttype TLBindingUtilConstructor,\n} from './lib/editor/bindings/BindingUtil'\nexport { ClickManager, type TLClickState } from './lib/editor/managers/ClickManager'\nexport { EdgeScrollManager } from './lib/editor/managers/EdgeScrollManager'\nexport { HistoryManager } from './lib/editor/managers/HistoryManager'\nexport { ScribbleManager, type ScribbleItem } from './lib/editor/managers/ScribbleManager'\nexport {\n\tBoundsSnaps,\n\ttype BoundsSnapGeometry,\n\ttype BoundsSnapPoint,\n} from './lib/editor/managers/SnapManager/BoundsSnaps'\nexport { HandleSnaps, type HandleSnapGeometry } from './lib/editor/managers/SnapManager/HandleSnaps'\nexport {\n\tSnapManager,\n\ttype GapsSnapIndicator,\n\ttype PointsSnapIndicator,\n\ttype SnapData,\n\ttype SnapIndicator,\n} from './lib/editor/managers/SnapManager/SnapManager'\nexport { TextManager, type TLMeasureTextSpanOpts } from './lib/editor/managers/TextManager'\nexport { UserPreferencesManager } from './lib/editor/managers/UserPreferencesManager'\nexport { BaseBoxShapeUtil, type TLBaseBoxShape } from './lib/editor/shapes/BaseBoxShapeUtil'\nexport {\n\tShapeUtil,\n\ttype TLCropInfo,\n\ttype TLHandleDragInfo,\n\ttype TLResizeInfo,\n\ttype TLResizeMode,\n\ttype TLShapeUtilCanBindOpts,\n\ttype TLShapeUtilCanvasSvgDef,\n\ttype TLShapeUtilConstructor,\n} from './lib/editor/shapes/ShapeUtil'\nexport { GroupShapeUtil } from './lib/editor/shapes/group/GroupShapeUtil'\nexport { getPerfectDashProps } from './lib/editor/shapes/shared/getPerfectDashProps'\nexport { resizeBox, type ResizeBoxOptions } from './lib/editor/shapes/shared/resizeBox'\nexport { BaseBoxShapeTool } from './lib/editor/tools/BaseBoxShapeTool/BaseBoxShapeTool'\nexport { maybeSnapToGrid } from './lib/editor/tools/BaseBoxShapeTool/children/Pointing'\nexport { StateNode, type TLStateNodeConstructor } from './lib/editor/tools/StateNode'\nexport {\n\tuseDelaySvgExport,\n\tuseSvgExportContext,\n\ttype SvgExportContext,\n\ttype SvgExportDef,\n} from './lib/editor/types/SvgExportContext'\nexport { type TLContent } from './lib/editor/types/clipboard-types'\nexport { type TLEventMap, type TLEventMapHandler } from './lib/editor/types/emit-types'\nexport {\n\tEVENT_NAME_MAP,\n\ttype TLBaseEventInfo,\n\ttype TLCLickEventName,\n\ttype TLCancelEvent,\n\ttype TLCancelEventInfo,\n\ttype TLClickEvent,\n\ttype TLClickEventInfo,\n\ttype TLCompleteEvent,\n\ttype TLCompleteEventInfo,\n\ttype TLEnterEventHandler,\n\ttype TLEventHandlers,\n\ttype TLEventInfo,\n\ttype TLEventName,\n\ttype TLExitEventHandler,\n\ttype TLInterruptEvent,\n\ttype TLInterruptEventInfo,\n\ttype TLKeyboardEvent,\n\ttype TLKeyboardEventInfo,\n\ttype TLKeyboardEventName,\n\ttype TLPinchEvent,\n\ttype TLPinchEventInfo,\n\ttype TLPinchEventName,\n\ttype TLPointerEvent,\n\ttype TLPointerEventInfo,\n\ttype TLPointerEventName,\n\ttype TLPointerEventTarget,\n\ttype TLTickEvent,\n\ttype TLTickEventInfo,\n\ttype TLWheelEvent,\n\ttype TLWheelEventInfo,\n\ttype UiEvent,\n\ttype UiEventType,\n} from './lib/editor/types/event-types'\nexport {\n\ttype TLBaseExternalContent,\n\ttype TLEmbedExternalContent,\n\ttype TLErrorExternalContentSource,\n\ttype TLExcalidrawExternalContentSource,\n\ttype TLExternalAsset,\n\ttype TLExternalContent,\n\ttype TLExternalContentSource,\n\ttype TLFileExternalAsset,\n\ttype TLFilesExternalContent,\n\ttype TLSvgTextExternalContent,\n\ttype TLTextExternalContent,\n\ttype TLTextExternalContentSource,\n\ttype TLTldrawExternalContentSource,\n\ttype TLUrlExternalAsset,\n\ttype TLUrlExternalContent,\n} from './lib/editor/types/external-content'\nexport {\n\ttype TLHistoryBatchOptions,\n\ttype TLHistoryDiff,\n\ttype TLHistoryEntry,\n\ttype TLHistoryMark,\n} from './lib/editor/types/history-types'\nexport {\n\ttype OptionalKeys,\n\ttype RequiredKeys,\n\ttype TLCameraConstraints,\n\ttype TLCameraMoveOptions,\n\ttype TLCameraOptions,\n\ttype TLExportType,\n\ttype TLImageExportOptions,\n\ttype TLSvgExportOptions,\n\ttype TLSvgOptions,\n} from './lib/editor/types/misc-types'\nexport { type TLResizeHandle, type TLSelectionHandle } from './lib/editor/types/selection-types'\nexport { getSvgAsImage } from './lib/exports/getSvgAsImage'\nexport { tlenv } from './lib/globals/environment'\nexport { tlmenus } from './lib/globals/menus'\nexport { tltime } from './lib/globals/time'\nexport {\n\tContainerProvider,\n\tuseContainer,\n\tuseContainerIfExists,\n\ttype ContainerProviderProps,\n} from './lib/hooks/useContainer'\nexport { getCursor } from './lib/hooks/useCursor'\nexport { EditorContext, useEditor, useMaybeEditor } from './lib/hooks/useEditor'\nexport { useEditorComponents } from './lib/hooks/useEditorComponents'\nexport type { TLEditorComponents } from './lib/hooks/useEditorComponents'\nexport { useEvent, useReactiveEvent } from './lib/hooks/useEvent'\nexport { useGlobalMenuIsOpen } from './lib/hooks/useGlobalMenuIsOpen'\nexport { useShallowArrayIdentity, useShallowObjectIdentity } from './lib/hooks/useIdentity'\nexport { useIsCropping } from './lib/hooks/useIsCropping'\nexport { useIsDarkMode } from './lib/hooks/useIsDarkMode'\nexport { useIsEditing } from './lib/hooks/useIsEditing'\nexport { useLocalStore } from './lib/hooks/useLocalStore'\nexport { usePassThroughWheelEvents } from './lib/hooks/usePassThroughWheelEvents'\nexport { usePeerIds } from './lib/hooks/usePeerIds'\nexport { usePresence } from './lib/hooks/usePresence'\nexport { useRefState } from './lib/hooks/useRefState'\nexport {\n\tsanitizeId,\n\tsuffixSafeId,\n\tuseSharedSafeId,\n\tuseUniqueSafeId,\n\ttype SafeId,\n} from './lib/hooks/useSafeId'\nexport { useSelectionEvents } from './lib/hooks/useSelectionEvents'\nexport { useTLSchemaFromUtils, useTLStore } from './lib/hooks/useTLStore'\nexport { useTransform } from './lib/hooks/useTransform'\nexport {\n\tLicenseManager,\n\ttype InvalidLicenseKeyResult,\n\ttype InvalidLicenseReason,\n\ttype LicenseFromKeyResult,\n\ttype LicenseInfo,\n\ttype TestEnvironment,\n\ttype ValidLicenseKeyResult,\n} from './lib/license/LicenseManager'\nexport { defaultTldrawOptions, type TldrawOptions } from './lib/options'\nexport {\n\tBox,\n\tROTATE_CORNER_TO_SELECTION_CORNER,\n\trotateSelectionHandle,\n\ttype BoxLike,\n\ttype RotateCorner,\n\ttype SelectionCorner,\n\ttype SelectionEdge,\n\ttype SelectionHandle,\n} from './lib/primitives/Box'\nexport { Mat, type MatLike, type MatModel } from './lib/primitives/Mat'\nexport { Vec, type VecLike } from './lib/primitives/Vec'\nexport { EASINGS } from './lib/primitives/easings'\nexport { Arc2d } from './lib/primitives/geometry/Arc2d'\nexport { Circle2d } from './lib/primitives/geometry/Circle2d'\nexport { CubicBezier2d } from './lib/primitives/geometry/CubicBezier2d'\nexport { CubicSpline2d } from './lib/primitives/geometry/CubicSpline2d'\nexport { Edge2d } from './lib/primitives/geometry/Edge2d'\nexport { Ellipse2d } from './lib/primitives/geometry/Ellipse2d'\nexport { Geometry2d, type Geometry2dOptions } from './lib/primitives/geometry/Geometry2d'\nexport { Group2d } from './lib/primitives/geometry/Group2d'\nexport { Point2d } from './lib/primitives/geometry/Point2d'\nexport { Polygon2d } from './lib/primitives/geometry/Polygon2d'\nexport { Polyline2d } from './lib/primitives/geometry/Polyline2d'\nexport { Rectangle2d } from './lib/primitives/geometry/Rectangle2d'\nexport { Stadium2d } from './lib/primitives/geometry/Stadium2d'\nexport {\n\tintersectCircleCircle,\n\tintersectCirclePolygon,\n\tintersectCirclePolyline,\n\tintersectLineSegmentCircle,\n\tintersectLineSegmentLineSegment,\n\tintersectLineSegmentPolygon,\n\tintersectLineSegmentPolyline,\n\tintersectPolygonBounds,\n\tintersectPolygonPolygon,\n\tlinesIntersect,\n\tpolygonIntersectsPolyline,\n\tpolygonsIntersect,\n} from './lib/primitives/intersect'\nexport {\n\tHALF_PI,\n\tPI,\n\tPI2,\n\tSIN,\n\tangleDistance,\n\tapproximately,\n\tareAnglesCompatible,\n\taverage,\n\tcanonicalizeRotation,\n\tcenterOfCircleFromThreePoints,\n\tclamp,\n\tclampRadians,\n\tclockwiseAngleDist,\n\tcounterClockwiseAngleDist,\n\tdegreesToRadians,\n\tgetArcMeasure,\n\tgetPointInArcT,\n\tgetPointOnCircle,\n\tgetPointsOnArc,\n\tgetPolygonVertices,\n\tisSafeFloat,\n\tperimeterOfEllipse,\n\tpointInPolygon,\n\tprecise,\n\tradiansToDegrees,\n\trangeIntersection,\n\tshortAngleDist,\n\tsnapAngle,\n\ttoDomPrecision,\n\ttoFixed,\n\ttoPrecision,\n} from './lib/primitives/utils'\nexport {\n\tReadonlySharedStyleMap,\n\tSharedStyleMap,\n\ttype SharedStyle,\n} from './lib/utils/SharedStylesMap'\nexport { dataUrlToFile, getDefaultCdnBaseUrl } from './lib/utils/assets'\nexport { clampToBrowserMaxCanvasSize, type CanvasMaxSize } from './lib/utils/browserCanvasMaxSize'\nexport {\n\tdebugFlags,\n\tfeatureFlags,\n\ttype DebugFlag,\n\ttype DebugFlagDef,\n\ttype DebugFlagDefaults,\n} from './lib/utils/debug-flags'\nexport {\n\tcreateDeepLinkString,\n\tparseDeepLinkString,\n\ttype TLDeepLink,\n\ttype TLDeepLinkOptions,\n} from './lib/utils/deepLinks'\nexport {\n\tactiveElementShouldCaptureKeys,\n\tloopToHtmlElement,\n\tpreventDefault,\n\treleasePointerCapture,\n\tsetPointerCapture,\n\tstopEventPropagation,\n} from './lib/utils/dom'\nexport { getIncrementedName } from './lib/utils/getIncrementedName'\nexport { getPointerInfo } from './lib/utils/getPointerInfo'\nexport { getSvgPathFromPoints } from './lib/utils/getSvgPathFromPoints'\nexport { hardResetEditor } from './lib/utils/hardResetEditor'\nexport { isAccelKey } from './lib/utils/keyboard'\nexport { normalizeWheel } from './lib/utils/normalizeWheel'\nexport { refreshPage } from './lib/utils/refreshPage'\nexport {\n\tapplyRotationToSnapshotShapes,\n\tgetRotationSnapshot,\n\ttype TLRotationSnapshot,\n} from './lib/utils/rotation'\nexport { runtime, setRuntimeOverrides } from './lib/utils/runtime'\nexport { type TLStoreWithStatus } from './lib/utils/sync/StoreWithStatus'\nexport { hardReset } from './lib/utils/sync/hardReset'\nexport { uniq } from './lib/utils/uniq'\nexport { openWindow } from './lib/utils/window-open'\n\n/**\n * @deprecated Licensing is now enabled in the tldraw SDK.\n * @public */\nexport function debugEnableLicensing() {\n\t// noop\n\treturn\n}\n\nregisterTldrawLibraryVersion(\n\t(globalThis as any).TLDRAW_LIBRARY_NAME,\n\t(globalThis as any).TLDRAW_LIBRARY_VERSION,\n\t(globalThis as any).TLDRAW_LIBRARY_MODULES\n)\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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;AAChC,sBAA2B;AAC3B,4BAA+B;AAC/B,yBAA4B;AAC5B,sBAIO;AACP,qBAA6C;AAE7C,uBAA0B;AAC1B,kBAAqB;AACrB,yBAA2B;AAKpB,SAAS,uBAAuB;AAEtC;AACD;AAAA,IAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AACF;",
6
6
  "names": ["import_at", "import_utils"]
7
7
  }
@@ -155,7 +155,6 @@ function DefaultCanvas({ className }) {
155
155
  ] }),
156
156
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "tl-overlays", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref: rHtmlLayer2, className: "tl-html-layer", children: [
157
157
  debugGeometry ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GeometryDebuggingView.GeometryDebuggingView, {}) : null,
158
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HandlesWrapper, {}),
159
158
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BrushWrapper, {}),
160
159
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScribbleWrapper, {}),
161
160
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ZoomBrushWrapper, {}),
@@ -163,6 +162,7 @@ function DefaultCanvas({ className }) {
163
162
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HintedShapeIndicator, {}),
164
163
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SnapIndicatorWrapper, {}),
165
164
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectionForegroundWrapper, {}),
165
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HandlesWrapper, {}),
166
166
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LiveCollaborators.LiveCollaborators, {})
167
167
  ] }) }),
168
168
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MovingCameraHitTestBlocker, {})