@excalidraw/excalidraw 0.18.0-195a743 → 0.18.0-298812e

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 (139) hide show
  1. package/dist/dev/{chunk-T3M44BFV.js → chunk-JCUIYZXF.js} +7 -3
  2. package/dist/dev/chunk-JCUIYZXF.js.map +7 -0
  3. package/dist/dev/{chunk-WMGEUIQQ.js → chunk-RQWTCZLD.js} +2 -2
  4. package/dist/dev/{chunk-H3EW23X2.js → chunk-ZPGIVNNG.js} +14840 -9652
  5. package/dist/dev/chunk-ZPGIVNNG.js.map +7 -0
  6. package/dist/dev/data/{image-TTQKTTOH.js → image-CB4ZYE3A.js} +3 -3
  7. package/dist/dev/index.css +38 -2
  8. package/dist/dev/index.css.map +2 -2
  9. package/dist/dev/index.js +857 -5250
  10. package/dist/dev/index.js.map +4 -4
  11. package/dist/dev/locales/{en-I23TB6DJ.js → en-ZDTPSZNL.js} +2 -2
  12. package/dist/dev/subset-shared.chunk.js +1 -1
  13. package/dist/dev/subset-worker.chunk.js +1 -1
  14. package/dist/prod/{chunk-GK4XUKZB.js → chunk-7TMLMBQX.js} +1 -1
  15. package/dist/prod/{chunk-2Z7RPVPO.js → chunk-GCFVWREF.js} +3 -3
  16. package/dist/prod/chunk-WFJFO6F4.js +33 -0
  17. package/dist/prod/data/image-XJI4SWH2.js +1 -0
  18. package/dist/prod/index.css +1 -1
  19. package/dist/prod/index.js +18 -18
  20. package/dist/prod/locales/{en-TC3OFDA6.js → en-MHZ26NAR.js} +1 -1
  21. package/dist/prod/subset-shared.chunk.js +1 -1
  22. package/dist/prod/subset-worker.chunk.js +1 -1
  23. package/dist/types/common/src/constants.d.ts +1 -0
  24. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  25. package/dist/types/common/src/font-metadata.d.ts +4 -2
  26. package/dist/types/common/src/index.d.ts +1 -0
  27. package/dist/types/common/src/utility-types.d.ts +5 -0
  28. package/dist/types/common/src/utils.d.ts +16 -4
  29. package/dist/types/element/src/Scene.d.ts +4 -4
  30. package/dist/types/element/src/ShapeCache.d.ts +1 -1
  31. package/dist/types/element/src/align.d.ts +1 -1
  32. package/dist/types/element/src/binding.d.ts +1 -1
  33. package/dist/types/element/src/bounds.d.ts +1 -1
  34. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  35. package/dist/types/element/src/dragElements.d.ts +1 -1
  36. package/dist/types/element/src/flowchart.d.ts +1 -1
  37. package/dist/types/element/src/frame.d.ts +3 -2
  38. package/dist/types/element/src/index.d.ts +45 -2
  39. package/dist/types/element/src/linearElementEditor.d.ts +4 -8
  40. package/dist/types/element/src/newElement.d.ts +1 -1
  41. package/dist/types/element/src/resizeElements.d.ts +1 -1
  42. package/dist/types/element/src/selection.d.ts +1 -6
  43. package/dist/types/element/src/store.d.ts +227 -0
  44. package/dist/types/element/src/textElement.d.ts +1 -1
  45. package/dist/types/element/src/transformHandles.d.ts +4 -4
  46. package/dist/types/element/src/typeChecks.d.ts +2 -1
  47. package/dist/types/element/src/types.d.ts +6 -1
  48. package/dist/types/element/src/zindex.d.ts +3 -3
  49. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +24 -42
  50. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  51. package/dist/types/excalidraw/actions/actionBoundText.d.ts +16 -28
  52. package/dist/types/excalidraw/actions/actionCanvas.d.ts +194 -272
  53. package/dist/types/excalidraw/actions/actionClipboard.d.ts +50 -86
  54. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +8 -14
  55. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +22 -40
  56. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  57. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  58. package/dist/types/excalidraw/actions/actionElementLink.d.ts +8 -14
  59. package/dist/types/excalidraw/actions/actionElementLock.d.ts +18 -30
  60. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +8 -14
  61. package/dist/types/excalidraw/actions/actionExport.d.ts +159 -213
  62. package/dist/types/excalidraw/actions/actionFinalize.d.ts +14 -26
  63. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  64. package/dist/types/excalidraw/actions/actionFrame.d.ts +76 -100
  65. package/dist/types/excalidraw/actions/actionGroup.d.ts +22 -34
  66. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  67. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -13
  68. package/dist/types/excalidraw/actions/actionLink.d.ts +9 -15
  69. package/dist/types/excalidraw/actions/actionMenu.d.ts +26 -44
  70. package/dist/types/excalidraw/actions/actionNavigate.d.ts +16 -28
  71. package/dist/types/excalidraw/actions/actionProperties.d.ts +106 -196
  72. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -16
  73. package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -18
  74. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -16
  75. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -16
  76. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -189
  77. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -16
  78. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -16
  79. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -16
  80. package/dist/types/excalidraw/actions/actionZindex.d.ts +10 -10
  81. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  82. package/dist/types/excalidraw/appState.d.ts +23 -23
  83. package/dist/types/excalidraw/components/App.d.ts +9 -9
  84. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  85. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  86. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  87. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  88. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  89. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  90. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  91. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  92. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  93. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
  94. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  95. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  96. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  97. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  98. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  99. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  100. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  101. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  102. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  103. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  104. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  105. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  107. package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -1
  108. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  109. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  110. package/dist/types/excalidraw/components/icons.d.ts +1 -0
  111. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  112. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  113. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  114. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  115. package/dist/types/excalidraw/history.d.ts +14 -22
  116. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  117. package/dist/types/excalidraw/index.d.ts +9 -9
  118. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  119. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
  120. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  121. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  122. package/dist/types/excalidraw/snapping.d.ts +2 -2
  123. package/dist/types/excalidraw/types.d.ts +13 -6
  124. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  125. package/dist/types/math/src/curve.d.ts +2 -0
  126. package/dist/types/math/src/vector.d.ts +4 -0
  127. package/dist/types/utils/src/bbox.d.ts +1 -1
  128. package/dist/types/utils/src/index.d.ts +1 -1
  129. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  130. package/history.ts +68 -94
  131. package/package.json +3 -3
  132. package/dist/dev/chunk-H3EW23X2.js.map +0 -7
  133. package/dist/dev/chunk-T3M44BFV.js.map +0 -7
  134. package/dist/prod/chunk-7M43VNIB.js +0 -33
  135. package/dist/prod/data/image-7YYIWLVQ.js +0 -1
  136. package/dist/types/excalidraw/store.d.ts +0 -129
  137. /package/dist/dev/{chunk-WMGEUIQQ.js.map → chunk-RQWTCZLD.js.map} +0 -0
  138. /package/dist/dev/data/{image-TTQKTTOH.js.map → image-CB4ZYE3A.js.map} +0 -0
  139. /package/dist/dev/locales/{en-I23TB6DJ.js.map → en-ZDTPSZNL.js.map} +0 -0
@@ -27,7 +27,7 @@ export declare const actionCopy: {
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;
@@ -38,7 +38,7 @@ export declare const actionCopy: {
38
38
  editingFrame: string | null;
39
39
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
40
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
41
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
42
42
  activeTool: {
43
43
  lastActiveTool: import("../types").ActiveTool | null;
44
44
  locked: boolean;
@@ -159,8 +159,8 @@ export declare const actionCopy: {
159
159
  data: import("../charts").Spreadsheet;
160
160
  };
161
161
  pendingImageElementId: string | null;
162
- showHyperlinkPopup: false | "editor" | "info";
163
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
162
+ showHyperlinkPopup: false | "info" | "editor";
163
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
164
164
  snapLines: readonly import("../snapping").SnapLine[];
165
165
  originSnapOffset: {
166
166
  x: number;
@@ -171,16 +171,10 @@ export declare const actionCopy: {
171
171
  followedBy: Set<import("../types").SocketId>;
172
172
  isCropping: boolean;
173
173
  croppingElementId: string | null;
174
- searchMatches: readonly {
175
- id: string;
176
- focus: boolean;
177
- matchedLines: {
178
- offsetX: number;
179
- offsetY: number;
180
- width: number;
181
- height: number;
182
- }[];
183
- }[];
174
+ searchMatches: Readonly<{
175
+ focusedId: string | null;
176
+ matches: readonly import("../types").SearchMatch[];
177
+ }> | null;
184
178
  };
185
179
  } | {
186
180
  captureUpdate: "EVENTUALLY";
@@ -217,7 +211,7 @@ export declare const actionPaste: {
217
211
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
218
212
  isBindingEnabled: boolean;
219
213
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
220
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
214
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
221
215
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
222
216
  frameRendering: {
223
217
  enabled: boolean;
@@ -228,7 +222,7 @@ export declare const actionPaste: {
228
222
  editingFrame: string | null;
229
223
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
230
224
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
231
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
225
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
232
226
  activeTool: {
233
227
  lastActiveTool: import("../types").ActiveTool | null;
234
228
  locked: boolean;
@@ -349,8 +343,8 @@ export declare const actionPaste: {
349
343
  data: import("../charts").Spreadsheet;
350
344
  };
351
345
  pendingImageElementId: string | null;
352
- showHyperlinkPopup: false | "editor" | "info";
353
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
346
+ showHyperlinkPopup: false | "info" | "editor";
347
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
354
348
  snapLines: readonly import("../snapping").SnapLine[];
355
349
  originSnapOffset: {
356
350
  x: number;
@@ -361,16 +355,10 @@ export declare const actionPaste: {
361
355
  followedBy: Set<import("../types").SocketId>;
362
356
  isCropping: boolean;
363
357
  croppingElementId: string | null;
364
- searchMatches: readonly {
365
- id: string;
366
- focus: boolean;
367
- matchedLines: {
368
- offsetX: number;
369
- offsetY: number;
370
- width: number;
371
- height: number;
372
- }[];
373
- }[];
358
+ searchMatches: Readonly<{
359
+ focusedId: string | null;
360
+ matches: readonly import("../types").SearchMatch[];
361
+ }> | null;
374
362
  };
375
363
  } | {
376
364
  captureUpdate: "EVENTUALLY";
@@ -409,7 +397,7 @@ export declare const actionCut: {
409
397
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
398
  isBindingEnabled: boolean;
411
399
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
412
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
400
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
413
401
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
414
402
  frameRendering: {
415
403
  enabled: boolean;
@@ -540,8 +528,8 @@ export declare const actionCut: {
540
528
  data: import("../charts").Spreadsheet;
541
529
  };
542
530
  pendingImageElementId: string | null;
543
- showHyperlinkPopup: false | "editor" | "info";
544
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
531
+ showHyperlinkPopup: false | "info" | "editor";
532
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
545
533
  snapLines: readonly import("../snapping").SnapLine[];
546
534
  originSnapOffset: {
547
535
  x: number;
@@ -552,16 +540,10 @@ export declare const actionCut: {
552
540
  followedBy: Set<import("../types").SocketId>;
553
541
  isCropping: boolean;
554
542
  croppingElementId: string | null;
555
- searchMatches: readonly {
556
- id: string;
557
- focus: boolean;
558
- matchedLines: {
559
- offsetX: number;
560
- offsetY: number;
561
- width: number;
562
- height: number;
563
- }[];
564
- }[];
543
+ searchMatches: Readonly<{
544
+ focusedId: string | null;
545
+ matches: readonly import("../types").SearchMatch[];
546
+ }> | null;
565
547
  };
566
548
  captureUpdate: "IMMEDIATELY";
567
549
  } | {
@@ -616,7 +598,7 @@ export declare const actionCut: {
616
598
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
617
599
  isBindingEnabled: boolean;
618
600
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
619
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
601
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
620
602
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
621
603
  frameRendering: {
622
604
  enabled: boolean;
@@ -747,8 +729,8 @@ export declare const actionCut: {
747
729
  data: import("../charts").Spreadsheet;
748
730
  };
749
731
  pendingImageElementId: string | null;
750
- showHyperlinkPopup: false | "editor" | "info";
751
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
732
+ showHyperlinkPopup: false | "info" | "editor";
733
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
752
734
  snapLines: readonly import("../snapping").SnapLine[];
753
735
  originSnapOffset: {
754
736
  x: number;
@@ -759,16 +741,10 @@ export declare const actionCut: {
759
741
  followedBy: Set<import("../types").SocketId>;
760
742
  isCropping: boolean;
761
743
  croppingElementId: string | null;
762
- searchMatches: readonly {
763
- id: string;
764
- focus: boolean;
765
- matchedLines: {
766
- offsetX: number;
767
- offsetY: number;
768
- width: number;
769
- height: number;
770
- }[];
771
- }[];
744
+ searchMatches: Readonly<{
745
+ focusedId: string | null;
746
+ matches: readonly import("../types").SearchMatch[];
747
+ }> | null;
772
748
  };
773
749
  captureUpdate: "IMMEDIATELY";
774
750
  } | {
@@ -782,13 +758,13 @@ export declare const actionCut: {
782
758
  multiElement: null;
783
759
  activeEmbeddable: null;
784
760
  selectedLinearElement: null;
785
- editingGroupId: string | null;
786
761
  selectedElementIds: Readonly<{
787
762
  [id: string]: true;
788
763
  }>;
789
764
  selectedGroupIds: {
790
765
  [groupId: string]: boolean;
791
766
  };
767
+ editingGroupId: string | null;
792
768
  contextMenu: {
793
769
  items: import("../components/ContextMenu").ContextMenuItems;
794
770
  top: number;
@@ -802,7 +778,7 @@ export declare const actionCut: {
802
778
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
803
779
  isBindingEnabled: boolean;
804
780
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
805
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
781
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
806
782
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
807
783
  frameRendering: {
808
784
  enabled: boolean;
@@ -813,7 +789,7 @@ export declare const actionCut: {
813
789
  editingFrame: string | null;
814
790
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
815
791
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
816
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
792
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
817
793
  penMode: boolean;
818
794
  penDetected: boolean;
819
795
  exportBackground: boolean;
@@ -922,7 +898,7 @@ export declare const actionCut: {
922
898
  data: import("../charts").Spreadsheet;
923
899
  };
924
900
  pendingImageElementId: string | null;
925
- showHyperlinkPopup: false | "editor" | "info";
901
+ showHyperlinkPopup: false | "info" | "editor";
926
902
  snapLines: readonly import("../snapping").SnapLine[];
927
903
  originSnapOffset: {
928
904
  x: number;
@@ -933,22 +909,16 @@ export declare const actionCut: {
933
909
  followedBy: Set<import("../types").SocketId>;
934
910
  isCropping: boolean;
935
911
  croppingElementId: string | null;
936
- searchMatches: readonly {
937
- id: string;
938
- focus: boolean;
939
- matchedLines: {
940
- offsetX: number;
941
- offsetY: number;
942
- width: number;
943
- height: number;
944
- }[];
945
- }[];
912
+ searchMatches: Readonly<{
913
+ focusedId: string | null;
914
+ matches: readonly import("../types").SearchMatch[];
915
+ }> | null;
946
916
  };
947
917
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
948
918
  };
949
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
919
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
950
920
  } & {
951
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
921
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
952
922
  };
953
923
  export declare const actionCopyAsSvg: {
954
924
  name: "copyAsSvg";
@@ -1010,7 +980,7 @@ export declare const actionCopyAsPng: {
1010
980
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1011
981
  isBindingEnabled: boolean;
1012
982
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1013
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
983
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1014
984
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1015
985
  frameRendering: {
1016
986
  enabled: boolean;
@@ -1021,7 +991,7 @@ export declare const actionCopyAsPng: {
1021
991
  editingFrame: string | null;
1022
992
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1023
993
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1024
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
994
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1025
995
  activeTool: {
1026
996
  lastActiveTool: import("../types").ActiveTool | null;
1027
997
  locked: boolean;
@@ -1142,8 +1112,8 @@ export declare const actionCopyAsPng: {
1142
1112
  data: import("../charts").Spreadsheet;
1143
1113
  };
1144
1114
  pendingImageElementId: string | null;
1145
- showHyperlinkPopup: false | "editor" | "info";
1146
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1115
+ showHyperlinkPopup: false | "info" | "editor";
1116
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1147
1117
  snapLines: readonly import("../snapping").SnapLine[];
1148
1118
  originSnapOffset: {
1149
1119
  x: number;
@@ -1154,24 +1124,18 @@ export declare const actionCopyAsPng: {
1154
1124
  followedBy: Set<import("../types").SocketId>;
1155
1125
  isCropping: boolean;
1156
1126
  croppingElementId: string | null;
1157
- searchMatches: readonly {
1158
- id: string;
1159
- focus: boolean;
1160
- matchedLines: {
1161
- offsetX: number;
1162
- offsetY: number;
1163
- width: number;
1164
- height: number;
1165
- }[];
1166
- }[];
1127
+ searchMatches: Readonly<{
1128
+ focusedId: string | null;
1129
+ matches: readonly import("../types").SearchMatch[];
1130
+ }> | null;
1167
1131
  };
1168
1132
  captureUpdate: "EVENTUALLY";
1169
1133
  }>;
1170
1134
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1171
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1135
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1172
1136
  keywords: string[];
1173
1137
  } & {
1174
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1138
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1175
1139
  };
1176
1140
  export declare const copyText: {
1177
1141
  name: "copyText";
@@ -30,7 +30,7 @@ export declare const actionToggleCropEditor: {
30
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
31
  isBindingEnabled: boolean;
32
32
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
33
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
34
34
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
35
  frameRendering: {
36
36
  enabled: boolean;
@@ -41,7 +41,7 @@ export declare const actionToggleCropEditor: {
41
41
  editingFrame: string | null;
42
42
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
43
43
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
44
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
44
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
45
45
  activeTool: {
46
46
  lastActiveTool: import("../types").ActiveTool | null;
47
47
  locked: boolean;
@@ -162,8 +162,8 @@ export declare const actionToggleCropEditor: {
162
162
  data: import("../charts").Spreadsheet;
163
163
  };
164
164
  pendingImageElementId: string | null;
165
- showHyperlinkPopup: false | "editor" | "info";
166
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
165
+ showHyperlinkPopup: false | "info" | "editor";
166
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
167
167
  snapLines: readonly import("../snapping").SnapLine[];
168
168
  originSnapOffset: {
169
169
  x: number;
@@ -172,16 +172,10 @@ export declare const actionToggleCropEditor: {
172
172
  objectsSnapModeEnabled: boolean;
173
173
  userToFollow: import("../types").UserToFollow | null;
174
174
  followedBy: Set<import("../types").SocketId>;
175
- searchMatches: readonly {
176
- id: string;
177
- focus: boolean;
178
- matchedLines: {
179
- offsetX: number;
180
- offsetY: number;
181
- width: number;
182
- height: number;
183
- }[];
184
- }[];
175
+ searchMatches: Readonly<{
176
+ focusedId: string | null;
177
+ matches: readonly import("../types").SearchMatch[];
178
+ }> | null;
185
179
  };
186
180
  captureUpdate: "IMMEDIATELY";
187
181
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
2
+ import { LinearElementEditor } from "@excalidraw/element";
3
3
  import type { ExcalidrawElement } from "@excalidraw/element/types";
4
4
  import type { AppClassProperties, AppState } from "../types";
5
5
  export declare const actionDeleteSelected: {
@@ -32,7 +32,7 @@ export declare const actionDeleteSelected: {
32
32
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
33
  isBindingEnabled: boolean;
34
34
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
35
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
36
36
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
37
37
  frameRendering: {
38
38
  enabled: boolean;
@@ -163,7 +163,7 @@ export declare const actionDeleteSelected: {
163
163
  data: import("../charts").Spreadsheet;
164
164
  };
165
165
  pendingImageElementId: string | null;
166
- showHyperlinkPopup: false | "editor" | "info";
166
+ showHyperlinkPopup: false | "info" | "editor";
167
167
  selectedLinearElement: LinearElementEditor | null;
168
168
  snapLines: readonly import("../snapping").SnapLine[];
169
169
  originSnapOffset: {
@@ -175,16 +175,10 @@ export declare const actionDeleteSelected: {
175
175
  followedBy: Set<import("../types").SocketId>;
176
176
  isCropping: boolean;
177
177
  croppingElementId: string | null;
178
- searchMatches: readonly {
179
- id: string;
180
- focus: boolean;
181
- matchedLines: {
182
- offsetX: number;
183
- offsetY: number;
184
- width: number;
185
- height: number;
186
- }[];
187
- }[];
178
+ searchMatches: Readonly<{
179
+ focusedId: string | null;
180
+ matches: readonly import("../types").SearchMatch[];
181
+ }> | null;
188
182
  };
189
183
  captureUpdate: "IMMEDIATELY";
190
184
  } | {
@@ -239,7 +233,7 @@ export declare const actionDeleteSelected: {
239
233
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
240
234
  isBindingEnabled: boolean;
241
235
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
242
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
236
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
243
237
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
244
238
  frameRendering: {
245
239
  enabled: boolean;
@@ -370,7 +364,7 @@ export declare const actionDeleteSelected: {
370
364
  data: import("../charts").Spreadsheet;
371
365
  };
372
366
  pendingImageElementId: string | null;
373
- showHyperlinkPopup: false | "editor" | "info";
367
+ showHyperlinkPopup: false | "info" | "editor";
374
368
  selectedLinearElement: LinearElementEditor | null;
375
369
  snapLines: readonly import("../snapping").SnapLine[];
376
370
  originSnapOffset: {
@@ -382,16 +376,10 @@ export declare const actionDeleteSelected: {
382
376
  followedBy: Set<import("../types").SocketId>;
383
377
  isCropping: boolean;
384
378
  croppingElementId: string | null;
385
- searchMatches: readonly {
386
- id: string;
387
- focus: boolean;
388
- matchedLines: {
389
- offsetX: number;
390
- offsetY: number;
391
- width: number;
392
- height: number;
393
- }[];
394
- }[];
379
+ searchMatches: Readonly<{
380
+ focusedId: string | null;
381
+ matches: readonly import("../types").SearchMatch[];
382
+ }> | null;
395
383
  };
396
384
  captureUpdate: "IMMEDIATELY";
397
385
  } | {
@@ -405,13 +393,13 @@ export declare const actionDeleteSelected: {
405
393
  multiElement: null;
406
394
  activeEmbeddable: null;
407
395
  selectedLinearElement: null;
408
- editingGroupId: string | null;
409
396
  selectedElementIds: Readonly<{
410
397
  [id: string]: true;
411
398
  }>;
412
399
  selectedGroupIds: {
413
400
  [groupId: string]: boolean;
414
401
  };
402
+ editingGroupId: string | null;
415
403
  contextMenu: {
416
404
  items: import("../components/ContextMenu").ContextMenuItems;
417
405
  top: number;
@@ -425,7 +413,7 @@ export declare const actionDeleteSelected: {
425
413
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
414
  isBindingEnabled: boolean;
427
415
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
428
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
416
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
429
417
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
430
418
  frameRendering: {
431
419
  enabled: boolean;
@@ -545,7 +533,7 @@ export declare const actionDeleteSelected: {
545
533
  data: import("../charts").Spreadsheet;
546
534
  };
547
535
  pendingImageElementId: string | null;
548
- showHyperlinkPopup: false | "editor" | "info";
536
+ showHyperlinkPopup: false | "info" | "editor";
549
537
  snapLines: readonly import("../snapping").SnapLine[];
550
538
  originSnapOffset: {
551
539
  x: number;
@@ -556,21 +544,15 @@ export declare const actionDeleteSelected: {
556
544
  followedBy: Set<import("../types").SocketId>;
557
545
  isCropping: boolean;
558
546
  croppingElementId: string | null;
559
- searchMatches: readonly {
560
- id: string;
561
- focus: boolean;
562
- matchedLines: {
563
- offsetX: number;
564
- offsetY: number;
565
- width: number;
566
- height: number;
567
- }[];
568
- }[];
547
+ searchMatches: Readonly<{
548
+ focusedId: string | null;
549
+ matches: readonly import("../types").SearchMatch[];
550
+ }> | null;
569
551
  };
570
552
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
571
553
  };
572
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
554
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
573
555
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
574
556
  } & {
575
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
557
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
576
558
  };
@@ -12,10 +12,10 @@ export declare const distributeHorizontally: {
12
12
  elements: ExcalidrawElement[];
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
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
17
17
  } & {
18
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
18
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
19
19
  };
20
20
  export declare const distributeVertically: {
21
21
  name: "distributeVertically";
@@ -28,8 +28,8 @@ export declare const distributeVertically: {
28
28
  elements: ExcalidrawElement[];
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
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
33
33
  } & {
34
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
34
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
35
35
  };
@@ -11,8 +11,8 @@ export declare const actionDuplicateSelection: {
11
11
  appState: import("../types").AppState;
12
12
  captureUpdate: "IMMEDIATELY";
13
13
  };
14
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
14
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
15
15
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
16
16
  } & {
17
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
17
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
18
18
  };
@@ -59,7 +59,7 @@ export declare const actionLinkToElement: {
59
59
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
60
60
  isBindingEnabled: boolean;
61
61
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
62
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
62
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
63
63
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
64
64
  frameRendering: {
65
65
  enabled: boolean;
@@ -70,7 +70,7 @@ export declare const actionLinkToElement: {
70
70
  editingFrame: string | null;
71
71
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
72
72
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
73
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
73
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
74
74
  activeTool: {
75
75
  lastActiveTool: import("../types").ActiveTool | null;
76
76
  locked: boolean;
@@ -180,8 +180,8 @@ export declare const actionLinkToElement: {
180
180
  data: import("../charts").Spreadsheet;
181
181
  };
182
182
  pendingImageElementId: string | null;
183
- showHyperlinkPopup: false | "editor" | "info";
184
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
183
+ showHyperlinkPopup: false | "info" | "editor";
184
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
185
185
  snapLines: readonly import("../snapping").SnapLine[];
186
186
  originSnapOffset: {
187
187
  x: number;
@@ -192,16 +192,10 @@ export declare const actionLinkToElement: {
192
192
  followedBy: Set<import("../types").SocketId>;
193
193
  isCropping: boolean;
194
194
  croppingElementId: string | null;
195
- searchMatches: readonly {
196
- id: string;
197
- focus: boolean;
198
- matchedLines: {
199
- offsetX: number;
200
- offsetY: number;
201
- width: number;
202
- height: number;
203
- }[];
204
- }[];
195
+ searchMatches: Readonly<{
196
+ focusedId: string | null;
197
+ matches: readonly import("../types").SearchMatch[];
198
+ }> | null;
205
199
  };
206
200
  captureUpdate: "IMMEDIATELY";
207
201
  elements?: undefined;