@zsviczian/excalidraw 0.18.0-13 → 0.18.0-15

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 (116) hide show
  1. package/dist/excalidraw.development.js +153 -153
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/styles.development.css +38 -2
  4. package/dist/styles.production.css +2 -2
  5. package/package.json +1 -1
  6. package/types/common/src/constants.d.ts +1 -0
  7. package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  8. package/types/common/src/font-metadata.d.ts +4 -2
  9. package/types/common/src/index.d.ts +1 -0
  10. package/types/common/src/utility-types.d.ts +5 -0
  11. package/types/common/src/utils.d.ts +16 -4
  12. package/types/element/src/Scene.d.ts +4 -4
  13. package/types/element/src/ShapeCache.d.ts +1 -1
  14. package/types/element/src/align.d.ts +1 -1
  15. package/types/element/src/binding.d.ts +1 -1
  16. package/types/element/src/bounds.d.ts +1 -1
  17. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  18. package/types/element/src/dragElements.d.ts +1 -1
  19. package/types/element/src/flowchart.d.ts +1 -1
  20. package/types/element/src/frame.d.ts +3 -2
  21. package/types/element/src/index.d.ts +45 -2
  22. package/types/element/src/linearElementEditor.d.ts +4 -8
  23. package/types/element/src/newElement.d.ts +1 -1
  24. package/types/element/src/resizeElements.d.ts +1 -1
  25. package/types/element/src/selection.d.ts +1 -6
  26. package/types/element/src/store.d.ts +227 -0
  27. package/types/element/src/textElement.d.ts +1 -1
  28. package/types/element/src/transformHandles.d.ts +4 -4
  29. package/types/element/src/typeChecks.d.ts +2 -1
  30. package/types/element/src/types.d.ts +6 -1
  31. package/types/element/src/zindex.d.ts +3 -3
  32. package/types/excalidraw/actions/actionAddToLibrary.d.ts +24 -42
  33. package/types/excalidraw/actions/actionAlign.d.ts +8 -8
  34. package/types/excalidraw/actions/actionBoundText.d.ts +16 -28
  35. package/types/excalidraw/actions/actionCanvas.d.ts +238 -328
  36. package/types/excalidraw/actions/actionClipboard.d.ts +50 -86
  37. package/types/excalidraw/actions/actionCropEditor.d.ts +8 -14
  38. package/types/excalidraw/actions/actionDeleteSelected.d.ts +22 -40
  39. package/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  40. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  41. package/types/excalidraw/actions/actionElementLink.d.ts +8 -14
  42. package/types/excalidraw/actions/actionElementLock.d.ts +18 -30
  43. package/types/excalidraw/actions/actionEmbeddable.d.ts +8 -14
  44. package/types/excalidraw/actions/actionExport.d.ts +173 -227
  45. package/types/excalidraw/actions/actionFinalize.d.ts +14 -26
  46. package/types/excalidraw/actions/actionFlip.d.ts +4 -4
  47. package/types/excalidraw/actions/actionFrame.d.ts +81 -105
  48. package/types/excalidraw/actions/actionGroup.d.ts +22 -34
  49. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  50. package/types/excalidraw/actions/actionLinearEditor.d.ts +7 -13
  51. package/types/excalidraw/actions/actionLink.d.ts +9 -15
  52. package/types/excalidraw/actions/actionMenu.d.ts +26 -44
  53. package/types/excalidraw/actions/actionNavigate.d.ts +16 -28
  54. package/types/excalidraw/actions/actionProperties.d.ts +106 -196
  55. package/types/excalidraw/actions/actionSelectAll.d.ts +10 -16
  56. package/types/excalidraw/actions/actionStyles.d.ts +12 -18
  57. package/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -16
  58. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -16
  59. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -225
  60. package/types/excalidraw/actions/actionToggleStats.d.ts +10 -16
  61. package/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -16
  62. package/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -16
  63. package/types/excalidraw/actions/actionZindex.d.ts +10 -10
  64. package/types/excalidraw/actions/types.d.ts +1 -1
  65. package/types/excalidraw/appState.d.ts +23 -23
  66. package/types/excalidraw/clipboard.d.ts +4 -4
  67. package/types/excalidraw/components/App.d.ts +8 -8
  68. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  69. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  70. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  71. package/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  72. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  73. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  74. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  75. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  76. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  77. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
  78. package/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  79. package/types/excalidraw/components/Range.d.ts +3 -3
  80. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  81. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  82. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  83. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  84. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  85. package/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  86. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  87. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  88. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  89. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  90. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  91. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  92. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  93. package/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  94. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  95. package/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  96. package/types/excalidraw/components/icons.d.ts +1 -0
  97. package/types/excalidraw/components/shapes.d.ts +1 -1
  98. package/types/excalidraw/data/blob.d.ts +1 -1
  99. package/types/excalidraw/data/library.d.ts +1 -1
  100. package/types/excalidraw/data/transform.d.ts +1 -1
  101. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  102. package/types/excalidraw/history.d.ts +14 -22
  103. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  104. package/types/excalidraw/index.d.ts +9 -9
  105. package/types/excalidraw/renderer/helpers.d.ts +6 -1
  106. package/types/excalidraw/scene/Renderer.d.ts +1 -1
  107. package/types/excalidraw/scene/index.d.ts +2 -2
  108. package/types/excalidraw/snapping.d.ts +2 -2
  109. package/types/excalidraw/types.d.ts +13 -6
  110. package/types/excalidraw/visualdebug.d.ts +1 -1
  111. package/types/math/src/curve.d.ts +2 -0
  112. package/types/math/src/vector.d.ts +4 -0
  113. package/types/utils/src/bbox.d.ts +1 -1
  114. package/types/utils/src/index.d.ts +1 -1
  115. package/types/utils/src/withinBounds.d.ts +1 -1
  116. package/types/excalidraw/store.d.ts +0 -129
@@ -1,4 +1,4 @@
1
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
1
+ import { LinearElementEditor } from "@excalidraw/element";
2
2
  import type { AppState } from "../types";
3
3
  export declare const actionFinalize: {
4
4
  name: "finalize";
@@ -27,7 +27,7 @@ export declare const actionFinalize: {
27
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
29
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
30
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
31
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
@@ -157,7 +157,7 @@ export declare const actionFinalize: {
157
157
  data: import("../charts").Spreadsheet;
158
158
  };
159
159
  pendingImageElementId: string | null;
160
- showHyperlinkPopup: false | "editor" | "info";
160
+ showHyperlinkPopup: false | "info" | "editor";
161
161
  linkOpacity: number;
162
162
  trayModeEnabled: boolean;
163
163
  colorPalette?: {
@@ -205,16 +205,10 @@ export declare const actionFinalize: {
205
205
  followedBy: Set<import("../types").SocketId>;
206
206
  isCropping: boolean;
207
207
  croppingElementId: string | null;
208
- searchMatches: readonly {
209
- id: string;
210
- focus: boolean;
211
- matchedLines: {
212
- offsetX: number;
213
- offsetY: number;
214
- width: number;
215
- height: number;
216
- }[];
217
- }[];
208
+ searchMatches: Readonly<{
209
+ focusedId: string | null;
210
+ matches: readonly import("../types").SearchMatch[];
211
+ }> | null;
218
212
  };
219
213
  captureUpdate: "IMMEDIATELY";
220
214
  } | {
@@ -368,7 +362,7 @@ export declare const actionFinalize: {
368
362
  shown: true;
369
363
  data: import("../charts").Spreadsheet;
370
364
  };
371
- showHyperlinkPopup: false | "editor" | "info";
365
+ showHyperlinkPopup: false | "info" | "editor";
372
366
  linkOpacity: number;
373
367
  trayModeEnabled: boolean;
374
368
  colorPalette?: {
@@ -415,21 +409,15 @@ export declare const actionFinalize: {
415
409
  followedBy: Set<import("../types").SocketId>;
416
410
  isCropping: boolean;
417
411
  croppingElementId: string | null;
418
- searchMatches: readonly {
419
- id: string;
420
- focus: boolean;
421
- matchedLines: {
422
- offsetX: number;
423
- offsetY: number;
424
- width: number;
425
- height: number;
426
- }[];
427
- }[];
412
+ searchMatches: Readonly<{
413
+ focusedId: string | null;
414
+ matches: readonly import("../types").SearchMatch[];
415
+ }> | null;
428
416
  };
429
417
  captureUpdate: "IMMEDIATELY";
430
418
  };
431
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
419
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
432
420
  PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
433
421
  } & {
434
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
422
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
435
423
  };
@@ -12,9 +12,9 @@ export declare const actionFlipHorizontal: {
12
12
  appState: Readonly<AppState>;
13
13
  captureUpdate: "IMMEDIATELY";
14
14
  };
15
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
15
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
16
16
  } & {
17
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
17
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
18
18
  };
19
19
  export declare const actionFlipVertical: {
20
20
  name: "flipVertical";
@@ -28,7 +28,7 @@ export declare const actionFlipVertical: {
28
28
  appState: Readonly<AppState>;
29
29
  captureUpdate: "IMMEDIATELY";
30
30
  };
31
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
31
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
32
32
  } & {
33
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
33
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
34
34
  };
@@ -28,7 +28,7 @@ export declare const actionSelectAllElementsInFrame: {
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  isBindingEnabled: boolean;
30
30
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
31
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
32
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
33
  frameRendering: {
34
34
  enabled: boolean;
@@ -39,7 +39,7 @@ export declare const actionSelectAllElementsInFrame: {
39
39
  editingFrame: string | null;
40
40
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
41
41
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
42
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
43
43
  activeTool: {
44
44
  lastActiveTool: import("../types").ActiveTool | null;
45
45
  locked: boolean;
@@ -157,7 +157,7 @@ export declare const actionSelectAllElementsInFrame: {
157
157
  data: import("../charts").Spreadsheet;
158
158
  };
159
159
  pendingImageElementId: string | null;
160
- showHyperlinkPopup: false | "editor" | "info";
160
+ showHyperlinkPopup: false | "info" | "editor";
161
161
  linkOpacity: number;
162
162
  trayModeEnabled: boolean;
163
163
  colorPalette?: {
@@ -194,7 +194,7 @@ export declare const actionSelectAllElementsInFrame: {
194
194
  nameColor: string;
195
195
  };
196
196
  invertBindingBehaviour: boolean;
197
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
197
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
198
198
  snapLines: readonly import("../snapping").SnapLine[];
199
199
  originSnapOffset: {
200
200
  x: number;
@@ -205,16 +205,10 @@ export declare const actionSelectAllElementsInFrame: {
205
205
  followedBy: Set<import("../types").SocketId>;
206
206
  isCropping: boolean;
207
207
  croppingElementId: string | null;
208
- searchMatches: readonly {
209
- id: string;
210
- focus: boolean;
211
- matchedLines: {
212
- offsetX: number;
213
- offsetY: number;
214
- width: number;
215
- height: number;
216
- }[];
217
- }[];
208
+ searchMatches: Readonly<{
209
+ focusedId: string | null;
210
+ matches: readonly import("../types").SearchMatch[];
211
+ }> | null;
218
212
  };
219
213
  captureUpdate: "IMMEDIATELY";
220
214
  } | {
@@ -256,7 +250,7 @@ export declare const actionRemoveAllElementsFromFrame: {
256
250
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
257
251
  isBindingEnabled: boolean;
258
252
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
259
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
253
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
260
254
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
261
255
  frameRendering: {
262
256
  enabled: boolean;
@@ -267,7 +261,7 @@ export declare const actionRemoveAllElementsFromFrame: {
267
261
  editingFrame: string | null;
268
262
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
269
263
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
270
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
264
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
271
265
  activeTool: {
272
266
  lastActiveTool: import("../types").ActiveTool | null;
273
267
  locked: boolean;
@@ -385,7 +379,7 @@ export declare const actionRemoveAllElementsFromFrame: {
385
379
  data: import("../charts").Spreadsheet;
386
380
  };
387
381
  pendingImageElementId: string | null;
388
- showHyperlinkPopup: false | "editor" | "info";
382
+ showHyperlinkPopup: false | "info" | "editor";
389
383
  linkOpacity: number;
390
384
  trayModeEnabled: boolean;
391
385
  colorPalette?: {
@@ -422,7 +416,7 @@ export declare const actionRemoveAllElementsFromFrame: {
422
416
  nameColor: string;
423
417
  };
424
418
  invertBindingBehaviour: boolean;
425
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
419
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
426
420
  snapLines: readonly import("../snapping").SnapLine[];
427
421
  originSnapOffset: {
428
422
  x: number;
@@ -433,16 +427,10 @@ export declare const actionRemoveAllElementsFromFrame: {
433
427
  followedBy: Set<import("../types").SocketId>;
434
428
  isCropping: boolean;
435
429
  croppingElementId: string | null;
436
- searchMatches: readonly {
437
- id: string;
438
- focus: boolean;
439
- matchedLines: {
440
- offsetX: number;
441
- offsetY: number;
442
- width: number;
443
- height: number;
444
- }[];
445
- }[];
430
+ searchMatches: Readonly<{
431
+ focusedId: string | null;
432
+ matches: readonly import("../types").SearchMatch[];
433
+ }> | null;
446
434
  };
447
435
  captureUpdate: "IMMEDIATELY";
448
436
  } | {
@@ -488,12 +476,12 @@ export declare const actionupdateFrameRendering: {
488
476
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
489
477
  isBindingEnabled: boolean;
490
478
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
491
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
479
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
492
480
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
493
481
  editingFrame: string | null;
494
482
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
495
483
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
496
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
484
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
497
485
  activeTool: {
498
486
  lastActiveTool: import("../types").ActiveTool | null;
499
487
  locked: boolean;
@@ -614,7 +602,7 @@ export declare const actionupdateFrameRendering: {
614
602
  data: import("../charts").Spreadsheet;
615
603
  };
616
604
  pendingImageElementId: string | null;
617
- showHyperlinkPopup: false | "editor" | "info";
605
+ showHyperlinkPopup: false | "info" | "editor";
618
606
  linkOpacity: number;
619
607
  trayModeEnabled: boolean;
620
608
  colorPalette?: {
@@ -651,7 +639,7 @@ export declare const actionupdateFrameRendering: {
651
639
  nameColor: string;
652
640
  };
653
641
  invertBindingBehaviour: boolean;
654
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
642
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
655
643
  snapLines: readonly import("../snapping").SnapLine[];
656
644
  originSnapOffset: {
657
645
  x: number;
@@ -662,16 +650,10 @@ export declare const actionupdateFrameRendering: {
662
650
  followedBy: Set<import("../types").SocketId>;
663
651
  isCropping: boolean;
664
652
  croppingElementId: string | null;
665
- searchMatches: readonly {
666
- id: string;
667
- focus: boolean;
668
- matchedLines: {
669
- offsetX: number;
670
- offsetY: number;
671
- width: number;
672
- height: number;
673
- }[];
674
- }[];
653
+ searchMatches: Readonly<{
654
+ focusedId: string | null;
655
+ matches: readonly import("../types").SearchMatch[];
656
+ }> | null;
675
657
  };
676
658
  captureUpdate: "EVENTUALLY";
677
659
  };
@@ -713,7 +695,7 @@ export declare const actionSetFrameAsActiveTool: {
713
695
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
714
696
  isBindingEnabled: boolean;
715
697
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
716
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
698
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
717
699
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
718
700
  frameRendering: {
719
701
  enabled: boolean;
@@ -724,7 +706,7 @@ export declare const actionSetFrameAsActiveTool: {
724
706
  editingFrame: string | null;
725
707
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
726
708
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
727
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
709
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
728
710
  penMode: boolean;
729
711
  penDetected: boolean;
730
712
  exportBackground: boolean;
@@ -840,7 +822,7 @@ export declare const actionSetFrameAsActiveTool: {
840
822
  data: import("../charts").Spreadsheet;
841
823
  };
842
824
  pendingImageElementId: string | null;
843
- showHyperlinkPopup: false | "editor" | "info";
825
+ showHyperlinkPopup: false | "info" | "editor";
844
826
  linkOpacity: number;
845
827
  trayModeEnabled: boolean;
846
828
  colorPalette?: {
@@ -877,7 +859,7 @@ export declare const actionSetFrameAsActiveTool: {
877
859
  nameColor: string;
878
860
  };
879
861
  invertBindingBehaviour: boolean;
880
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
862
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
881
863
  snapLines: readonly import("../snapping").SnapLine[];
882
864
  originSnapOffset: {
883
865
  x: number;
@@ -888,22 +870,16 @@ export declare const actionSetFrameAsActiveTool: {
888
870
  followedBy: Set<import("../types").SocketId>;
889
871
  isCropping: boolean;
890
872
  croppingElementId: string | null;
891
- searchMatches: readonly {
892
- id: string;
893
- focus: boolean;
894
- matchedLines: {
895
- offsetX: number;
896
- offsetY: number;
897
- width: number;
898
- height: number;
899
- }[];
900
- }[];
873
+ searchMatches: Readonly<{
874
+ focusedId: string | null;
875
+ matches: readonly import("../types").SearchMatch[];
876
+ }> | null;
901
877
  };
902
878
  captureUpdate: "EVENTUALLY";
903
879
  };
904
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
880
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
905
881
  } & {
906
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
882
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
907
883
  };
908
884
  export declare const actionWrapSelectionInFrame: {
909
885
  name: "wrapSelectionInFrame";
@@ -913,7 +889,7 @@ export declare const actionWrapSelectionInFrame: {
913
889
  };
914
890
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
915
891
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
916
- elements: (import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement> | (Readonly<{
892
+ elements: ((Readonly<{
917
893
  id: string;
918
894
  x: number;
919
895
  y: number;
@@ -947,7 +923,7 @@ export declare const actionWrapSelectionInFrame: {
947
923
  locked: boolean;
948
924
  customData?: Record<string, any> | undefined;
949
925
  }> & {
950
- type: "rectangle";
926
+ type: "selection";
951
927
  } & {
952
928
  index: import("@excalidraw/element/types").FractionalIndex;
953
929
  }) | (Readonly<{
@@ -984,7 +960,7 @@ export declare const actionWrapSelectionInFrame: {
984
960
  locked: boolean;
985
961
  customData?: Record<string, any> | undefined;
986
962
  }> & {
987
- type: "diamond";
963
+ type: "rectangle";
988
964
  } & {
989
965
  index: import("@excalidraw/element/types").FractionalIndex;
990
966
  }) | (Readonly<{
@@ -1021,8 +997,7 @@ export declare const actionWrapSelectionInFrame: {
1021
997
  locked: boolean;
1022
998
  customData?: Record<string, any> | undefined;
1023
999
  }> & {
1024
- type: "frame";
1025
- name: string | null;
1000
+ type: "diamond";
1026
1001
  } & {
1027
1002
  index: import("@excalidraw/element/types").FractionalIndex;
1028
1003
  }) | (Readonly<{
@@ -1059,8 +1034,7 @@ export declare const actionWrapSelectionInFrame: {
1059
1034
  locked: boolean;
1060
1035
  customData?: Record<string, any> | undefined;
1061
1036
  }> & {
1062
- type: "magicframe";
1063
- name: string | null;
1037
+ type: "ellipse";
1064
1038
  } & {
1065
1039
  index: import("@excalidraw/element/types").FractionalIndex;
1066
1040
  }) | (Readonly<{
@@ -1097,8 +1071,19 @@ export declare const actionWrapSelectionInFrame: {
1097
1071
  locked: boolean;
1098
1072
  customData?: Record<string, any> | undefined;
1099
1073
  }> & Readonly<{
1100
- type: "embeddable";
1101
- scale: [number, number];
1074
+ type: "text";
1075
+ fontSize: number;
1076
+ fontFamily: number;
1077
+ text: string;
1078
+ rawText: string;
1079
+ textAlign: string;
1080
+ verticalAlign: string;
1081
+ containerId: string | null;
1082
+ originalText: string;
1083
+ autoResize: boolean;
1084
+ lineHeight: number & {
1085
+ _brand: "unitlessLineHeight";
1086
+ };
1102
1087
  }> & {
1103
1088
  index: import("@excalidraw/element/types").FractionalIndex;
1104
1089
  }) | (Readonly<{
@@ -1135,11 +1120,13 @@ export declare const actionWrapSelectionInFrame: {
1135
1120
  locked: boolean;
1136
1121
  customData?: Record<string, any> | undefined;
1137
1122
  }> & Readonly<{
1138
- type: "image";
1139
- fileId: import("@excalidraw/element/types").FileId | null;
1140
- status: "pending" | "saved" | "error";
1141
- scale: [number, number];
1142
- crop: import("@excalidraw/element/types").ImageCrop | null;
1123
+ type: "line" | "arrow";
1124
+ points: readonly import("@excalidraw/math").LocalPoint[];
1125
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1126
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
1127
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
1128
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1129
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1143
1130
  }> & {
1144
1131
  index: import("@excalidraw/element/types").FractionalIndex;
1145
1132
  }) | (Readonly<{
@@ -1176,11 +1163,11 @@ export declare const actionWrapSelectionInFrame: {
1176
1163
  locked: boolean;
1177
1164
  customData?: Record<string, any> | undefined;
1178
1165
  }> & Readonly<{
1179
- type: "iframe";
1180
- customData?: {
1181
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1182
- } | undefined;
1183
- scale: [number, number];
1166
+ type: "freedraw";
1167
+ points: readonly import("@excalidraw/math").LocalPoint[];
1168
+ pressures: readonly number[];
1169
+ simulatePressure: boolean;
1170
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1184
1171
  }> & {
1185
1172
  index: import("@excalidraw/element/types").FractionalIndex;
1186
1173
  }) | (Readonly<{
@@ -1217,19 +1204,11 @@ export declare const actionWrapSelectionInFrame: {
1217
1204
  locked: boolean;
1218
1205
  customData?: Record<string, any> | undefined;
1219
1206
  }> & Readonly<{
1220
- type: "text";
1221
- fontSize: number;
1222
- fontFamily: number;
1223
- text: string;
1224
- rawText: string;
1225
- textAlign: string;
1226
- verticalAlign: string;
1227
- containerId: string | null;
1228
- originalText: string;
1229
- autoResize: boolean;
1230
- lineHeight: number & {
1231
- _brand: "unitlessLineHeight";
1232
- };
1207
+ type: "image";
1208
+ fileId: import("@excalidraw/element/types").FileId | null;
1209
+ status: "error" | "pending" | "saved";
1210
+ scale: [number, number];
1211
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1233
1212
  }> & {
1234
1213
  index: import("@excalidraw/element/types").FractionalIndex;
1235
1214
  }) | (Readonly<{
@@ -1266,7 +1245,8 @@ export declare const actionWrapSelectionInFrame: {
1266
1245
  locked: boolean;
1267
1246
  customData?: Record<string, any> | undefined;
1268
1247
  }> & {
1269
- type: "selection";
1248
+ type: "frame";
1249
+ name: string | null;
1270
1250
  } & {
1271
1251
  index: import("@excalidraw/element/types").FractionalIndex;
1272
1252
  }) | (Readonly<{
@@ -1303,7 +1283,8 @@ export declare const actionWrapSelectionInFrame: {
1303
1283
  locked: boolean;
1304
1284
  customData?: Record<string, any> | undefined;
1305
1285
  }> & {
1306
- type: "ellipse";
1286
+ type: "magicframe";
1287
+ name: string | null;
1307
1288
  } & {
1308
1289
  index: import("@excalidraw/element/types").FractionalIndex;
1309
1290
  }) | (Readonly<{
@@ -1340,13 +1321,11 @@ export declare const actionWrapSelectionInFrame: {
1340
1321
  locked: boolean;
1341
1322
  customData?: Record<string, any> | undefined;
1342
1323
  }> & Readonly<{
1343
- type: "line" | "arrow";
1344
- points: readonly import("@excalidraw/math").LocalPoint[];
1345
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1346
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1347
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1348
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1349
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1324
+ type: "iframe";
1325
+ customData?: {
1326
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1327
+ } | undefined;
1328
+ scale: [number, number];
1350
1329
  }> & {
1351
1330
  index: import("@excalidraw/element/types").FractionalIndex;
1352
1331
  }) | (Readonly<{
@@ -1383,14 +1362,11 @@ export declare const actionWrapSelectionInFrame: {
1383
1362
  locked: boolean;
1384
1363
  customData?: Record<string, any> | undefined;
1385
1364
  }> & Readonly<{
1386
- type: "freedraw";
1387
- points: readonly import("@excalidraw/math").LocalPoint[];
1388
- pressures: readonly number[];
1389
- simulatePressure: boolean;
1390
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1365
+ type: "embeddable";
1366
+ scale: [number, number];
1391
1367
  }> & {
1392
1368
  index: import("@excalidraw/element/types").FractionalIndex;
1393
- }))[];
1369
+ }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
1394
1370
  appState: {
1395
1371
  selectedElementIds: {
1396
1372
  [x: string]: true;