@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
@@ -26,7 +26,7 @@ export declare const actionCopy: {
26
26
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
27
  isBindingEnabled: boolean;
28
28
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
29
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
30
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
31
  frameRendering: {
32
32
  enabled: boolean;
@@ -37,7 +37,7 @@ export declare const actionCopy: {
37
37
  editingFrame: string | null;
38
38
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
39
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
40
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
41
  activeTool: {
42
42
  lastActiveTool: import("../types").ActiveTool | null;
43
43
  locked: boolean;
@@ -158,7 +158,7 @@ export declare const actionCopy: {
158
158
  data: import("../charts").Spreadsheet;
159
159
  };
160
160
  pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "editor" | "info";
161
+ showHyperlinkPopup: false | "info" | "editor";
162
162
  linkOpacity: number;
163
163
  trayModeEnabled: boolean;
164
164
  colorPalette?: {
@@ -195,7 +195,7 @@ export declare const actionCopy: {
195
195
  nameColor: string;
196
196
  };
197
197
  invertBindingBehaviour: boolean;
198
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
198
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
199
199
  snapLines: readonly import("../snapping").SnapLine[];
200
200
  originSnapOffset: {
201
201
  x: number;
@@ -206,16 +206,10 @@ export declare const actionCopy: {
206
206
  followedBy: Set<import("../types").SocketId>;
207
207
  isCropping: boolean;
208
208
  croppingElementId: string | null;
209
- searchMatches: readonly {
210
- id: string;
211
- focus: boolean;
212
- matchedLines: {
213
- offsetX: number;
214
- offsetY: number;
215
- width: number;
216
- height: number;
217
- }[];
218
- }[];
209
+ searchMatches: Readonly<{
210
+ focusedId: string | null;
211
+ matches: readonly import("../types").SearchMatch[];
212
+ }> | null;
219
213
  };
220
214
  } | {
221
215
  captureUpdate: "EVENTUALLY";
@@ -252,7 +246,7 @@ export declare const actionPaste: {
252
246
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
253
247
  isBindingEnabled: boolean;
254
248
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
255
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
249
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
256
250
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
257
251
  frameRendering: {
258
252
  enabled: boolean;
@@ -263,7 +257,7 @@ export declare const actionPaste: {
263
257
  editingFrame: string | null;
264
258
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
265
259
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
266
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
260
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
267
261
  activeTool: {
268
262
  lastActiveTool: import("../types").ActiveTool | null;
269
263
  locked: boolean;
@@ -384,7 +378,7 @@ export declare const actionPaste: {
384
378
  data: import("../charts").Spreadsheet;
385
379
  };
386
380
  pendingImageElementId: string | null;
387
- showHyperlinkPopup: false | "editor" | "info";
381
+ showHyperlinkPopup: false | "info" | "editor";
388
382
  linkOpacity: number;
389
383
  trayModeEnabled: boolean;
390
384
  colorPalette?: {
@@ -421,7 +415,7 @@ export declare const actionPaste: {
421
415
  nameColor: string;
422
416
  };
423
417
  invertBindingBehaviour: boolean;
424
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
418
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
425
419
  snapLines: readonly import("../snapping").SnapLine[];
426
420
  originSnapOffset: {
427
421
  x: number;
@@ -432,16 +426,10 @@ export declare const actionPaste: {
432
426
  followedBy: Set<import("../types").SocketId>;
433
427
  isCropping: boolean;
434
428
  croppingElementId: string | null;
435
- searchMatches: readonly {
436
- id: string;
437
- focus: boolean;
438
- matchedLines: {
439
- offsetX: number;
440
- offsetY: number;
441
- width: number;
442
- height: number;
443
- }[];
444
- }[];
429
+ searchMatches: Readonly<{
430
+ focusedId: string | null;
431
+ matches: readonly import("../types").SearchMatch[];
432
+ }> | null;
445
433
  };
446
434
  } | {
447
435
  captureUpdate: "EVENTUALLY";
@@ -480,7 +468,7 @@ export declare const actionCut: {
480
468
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
481
469
  isBindingEnabled: boolean;
482
470
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
483
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
471
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
484
472
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
485
473
  frameRendering: {
486
474
  enabled: boolean;
@@ -611,7 +599,7 @@ export declare const actionCut: {
611
599
  data: import("../charts").Spreadsheet;
612
600
  };
613
601
  pendingImageElementId: string | null;
614
- showHyperlinkPopup: false | "editor" | "info";
602
+ showHyperlinkPopup: false | "info" | "editor";
615
603
  linkOpacity: number;
616
604
  trayModeEnabled: boolean;
617
605
  colorPalette?: {
@@ -648,7 +636,7 @@ export declare const actionCut: {
648
636
  nameColor: string;
649
637
  };
650
638
  invertBindingBehaviour: boolean;
651
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
639
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
652
640
  snapLines: readonly import("../snapping").SnapLine[];
653
641
  originSnapOffset: {
654
642
  x: number;
@@ -659,16 +647,10 @@ export declare const actionCut: {
659
647
  followedBy: Set<import("../types").SocketId>;
660
648
  isCropping: boolean;
661
649
  croppingElementId: string | null;
662
- searchMatches: readonly {
663
- id: string;
664
- focus: boolean;
665
- matchedLines: {
666
- offsetX: number;
667
- offsetY: number;
668
- width: number;
669
- height: number;
670
- }[];
671
- }[];
650
+ searchMatches: Readonly<{
651
+ focusedId: string | null;
652
+ matches: readonly import("../types").SearchMatch[];
653
+ }> | null;
672
654
  };
673
655
  captureUpdate: "IMMEDIATELY";
674
656
  } | {
@@ -723,7 +705,7 @@ export declare const actionCut: {
723
705
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
724
706
  isBindingEnabled: boolean;
725
707
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
726
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
708
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
727
709
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
728
710
  frameRendering: {
729
711
  enabled: boolean;
@@ -854,7 +836,7 @@ export declare const actionCut: {
854
836
  data: import("../charts").Spreadsheet;
855
837
  };
856
838
  pendingImageElementId: string | null;
857
- showHyperlinkPopup: false | "editor" | "info";
839
+ showHyperlinkPopup: false | "info" | "editor";
858
840
  linkOpacity: number;
859
841
  trayModeEnabled: boolean;
860
842
  colorPalette?: {
@@ -891,7 +873,7 @@ export declare const actionCut: {
891
873
  nameColor: string;
892
874
  };
893
875
  invertBindingBehaviour: boolean;
894
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
876
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
895
877
  snapLines: readonly import("../snapping").SnapLine[];
896
878
  originSnapOffset: {
897
879
  x: number;
@@ -902,16 +884,10 @@ export declare const actionCut: {
902
884
  followedBy: Set<import("../types").SocketId>;
903
885
  isCropping: boolean;
904
886
  croppingElementId: string | null;
905
- searchMatches: readonly {
906
- id: string;
907
- focus: boolean;
908
- matchedLines: {
909
- offsetX: number;
910
- offsetY: number;
911
- width: number;
912
- height: number;
913
- }[];
914
- }[];
887
+ searchMatches: Readonly<{
888
+ focusedId: string | null;
889
+ matches: readonly import("../types").SearchMatch[];
890
+ }> | null;
915
891
  };
916
892
  captureUpdate: "IMMEDIATELY";
917
893
  } | {
@@ -925,13 +901,13 @@ export declare const actionCut: {
925
901
  multiElement: null;
926
902
  activeEmbeddable: null;
927
903
  selectedLinearElement: null;
928
- editingGroupId: string | null;
929
904
  selectedElementIds: Readonly<{
930
905
  [id: string]: true;
931
906
  }>;
932
907
  selectedGroupIds: {
933
908
  [groupId: string]: boolean;
934
909
  };
910
+ editingGroupId: string | null;
935
911
  contextMenu: {
936
912
  items: import("../components/ContextMenu").ContextMenuItems;
937
913
  top: number;
@@ -945,7 +921,7 @@ export declare const actionCut: {
945
921
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
946
922
  isBindingEnabled: boolean;
947
923
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
948
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
924
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
949
925
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
950
926
  frameRendering: {
951
927
  enabled: boolean;
@@ -956,7 +932,7 @@ export declare const actionCut: {
956
932
  editingFrame: string | null;
957
933
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
958
934
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
959
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
935
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
960
936
  penMode: boolean;
961
937
  penDetected: boolean;
962
938
  exportBackground: boolean;
@@ -1065,7 +1041,7 @@ export declare const actionCut: {
1065
1041
  data: import("../charts").Spreadsheet;
1066
1042
  };
1067
1043
  pendingImageElementId: string | null;
1068
- showHyperlinkPopup: false | "editor" | "info";
1044
+ showHyperlinkPopup: false | "info" | "editor";
1069
1045
  linkOpacity: number;
1070
1046
  trayModeEnabled: boolean;
1071
1047
  colorPalette?: {
@@ -1112,22 +1088,16 @@ export declare const actionCut: {
1112
1088
  followedBy: Set<import("../types").SocketId>;
1113
1089
  isCropping: boolean;
1114
1090
  croppingElementId: string | null;
1115
- searchMatches: readonly {
1116
- id: string;
1117
- focus: boolean;
1118
- matchedLines: {
1119
- offsetX: number;
1120
- offsetY: number;
1121
- width: number;
1122
- height: number;
1123
- }[];
1124
- }[];
1091
+ searchMatches: Readonly<{
1092
+ focusedId: string | null;
1093
+ matches: readonly import("../types").SearchMatch[];
1094
+ }> | null;
1125
1095
  };
1126
1096
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1127
1097
  };
1128
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1098
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1129
1099
  } & {
1130
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1100
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1131
1101
  };
1132
1102
  export declare const actionCopyAsSvg: {
1133
1103
  name: "copyAsSvg";
@@ -1189,7 +1159,7 @@ export declare const actionCopyAsPng: {
1189
1159
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1190
1160
  isBindingEnabled: boolean;
1191
1161
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1192
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1162
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1193
1163
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1194
1164
  frameRendering: {
1195
1165
  enabled: boolean;
@@ -1200,7 +1170,7 @@ export declare const actionCopyAsPng: {
1200
1170
  editingFrame: string | null;
1201
1171
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1202
1172
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1203
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1173
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1204
1174
  activeTool: {
1205
1175
  lastActiveTool: import("../types").ActiveTool | null;
1206
1176
  locked: boolean;
@@ -1321,7 +1291,7 @@ export declare const actionCopyAsPng: {
1321
1291
  data: import("../charts").Spreadsheet;
1322
1292
  };
1323
1293
  pendingImageElementId: string | null;
1324
- showHyperlinkPopup: false | "editor" | "info";
1294
+ showHyperlinkPopup: false | "info" | "editor";
1325
1295
  linkOpacity: number;
1326
1296
  trayModeEnabled: boolean;
1327
1297
  colorPalette?: {
@@ -1358,7 +1328,7 @@ export declare const actionCopyAsPng: {
1358
1328
  nameColor: string;
1359
1329
  };
1360
1330
  invertBindingBehaviour: boolean;
1361
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1331
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1362
1332
  snapLines: readonly import("../snapping").SnapLine[];
1363
1333
  originSnapOffset: {
1364
1334
  x: number;
@@ -1369,24 +1339,18 @@ export declare const actionCopyAsPng: {
1369
1339
  followedBy: Set<import("../types").SocketId>;
1370
1340
  isCropping: boolean;
1371
1341
  croppingElementId: string | null;
1372
- searchMatches: readonly {
1373
- id: string;
1374
- focus: boolean;
1375
- matchedLines: {
1376
- offsetX: number;
1377
- offsetY: number;
1378
- width: number;
1379
- height: number;
1380
- }[];
1381
- }[];
1342
+ searchMatches: Readonly<{
1343
+ focusedId: string | null;
1344
+ matches: readonly import("../types").SearchMatch[];
1345
+ }> | null;
1382
1346
  };
1383
1347
  captureUpdate: "EVENTUALLY";
1384
1348
  }>;
1385
1349
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1386
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1350
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1387
1351
  keywords: string[];
1388
1352
  } & {
1389
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1353
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1390
1354
  };
1391
1355
  export declare const copyText: {
1392
1356
  name: "copyText";
@@ -29,7 +29,7 @@ export declare const actionToggleCropEditor: {
29
29
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
31
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
32
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
33
33
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
34
  frameRendering: {
35
35
  enabled: boolean;
@@ -40,7 +40,7 @@ export declare const actionToggleCropEditor: {
40
40
  editingFrame: string | null;
41
41
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
42
42
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
43
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
44
44
  activeTool: {
45
45
  lastActiveTool: import("../types").ActiveTool | null;
46
46
  locked: boolean;
@@ -161,7 +161,7 @@ export declare const actionToggleCropEditor: {
161
161
  data: import("../charts").Spreadsheet;
162
162
  };
163
163
  pendingImageElementId: string | null;
164
- showHyperlinkPopup: false | "editor" | "info";
164
+ showHyperlinkPopup: false | "info" | "editor";
165
165
  linkOpacity: number;
166
166
  trayModeEnabled: boolean;
167
167
  colorPalette?: {
@@ -198,7 +198,7 @@ export declare const actionToggleCropEditor: {
198
198
  nameColor: string;
199
199
  };
200
200
  invertBindingBehaviour: boolean;
201
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
201
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
202
202
  snapLines: readonly import("../snapping").SnapLine[];
203
203
  originSnapOffset: {
204
204
  x: number;
@@ -207,16 +207,10 @@ export declare const actionToggleCropEditor: {
207
207
  objectsSnapModeEnabled: boolean;
208
208
  userToFollow: import("../types").UserToFollow | null;
209
209
  followedBy: Set<import("../types").SocketId>;
210
- searchMatches: readonly {
211
- id: string;
212
- focus: boolean;
213
- matchedLines: {
214
- offsetX: number;
215
- offsetY: number;
216
- width: number;
217
- height: number;
218
- }[];
219
- }[];
210
+ searchMatches: Readonly<{
211
+ focusedId: string | null;
212
+ matches: readonly import("../types").SearchMatch[];
213
+ }> | null;
220
214
  };
221
215
  captureUpdate: "IMMEDIATELY";
222
216
  };
@@ -1,4 +1,4 @@
1
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
1
+ import { LinearElementEditor } from "@excalidraw/element";
2
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
3
  import type { AppClassProperties, AppState } from "../types";
4
4
  export declare const actionDeleteSelected: {
@@ -31,7 +31,7 @@ export declare const actionDeleteSelected: {
31
31
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
32
  isBindingEnabled: boolean;
33
33
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
34
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
35
35
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
36
  frameRendering: {
37
37
  enabled: boolean;
@@ -162,7 +162,7 @@ export declare const actionDeleteSelected: {
162
162
  data: import("../charts").Spreadsheet;
163
163
  };
164
164
  pendingImageElementId: string | null;
165
- showHyperlinkPopup: false | "editor" | "info";
165
+ showHyperlinkPopup: false | "info" | "editor";
166
166
  linkOpacity: number;
167
167
  trayModeEnabled: boolean;
168
168
  colorPalette?: {
@@ -210,16 +210,10 @@ export declare const actionDeleteSelected: {
210
210
  followedBy: Set<import("../types").SocketId>;
211
211
  isCropping: boolean;
212
212
  croppingElementId: string | null;
213
- searchMatches: readonly {
214
- id: string;
215
- focus: boolean;
216
- matchedLines: {
217
- offsetX: number;
218
- offsetY: number;
219
- width: number;
220
- height: number;
221
- }[];
222
- }[];
213
+ searchMatches: Readonly<{
214
+ focusedId: string | null;
215
+ matches: readonly import("../types").SearchMatch[];
216
+ }> | null;
223
217
  };
224
218
  captureUpdate: "IMMEDIATELY";
225
219
  } | {
@@ -274,7 +268,7 @@ export declare const actionDeleteSelected: {
274
268
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
275
269
  isBindingEnabled: boolean;
276
270
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
277
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
271
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
278
272
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
279
273
  frameRendering: {
280
274
  enabled: boolean;
@@ -405,7 +399,7 @@ export declare const actionDeleteSelected: {
405
399
  data: import("../charts").Spreadsheet;
406
400
  };
407
401
  pendingImageElementId: string | null;
408
- showHyperlinkPopup: false | "editor" | "info";
402
+ showHyperlinkPopup: false | "info" | "editor";
409
403
  linkOpacity: number;
410
404
  trayModeEnabled: boolean;
411
405
  colorPalette?: {
@@ -453,16 +447,10 @@ export declare const actionDeleteSelected: {
453
447
  followedBy: Set<import("../types").SocketId>;
454
448
  isCropping: boolean;
455
449
  croppingElementId: string | null;
456
- searchMatches: readonly {
457
- id: string;
458
- focus: boolean;
459
- matchedLines: {
460
- offsetX: number;
461
- offsetY: number;
462
- width: number;
463
- height: number;
464
- }[];
465
- }[];
450
+ searchMatches: Readonly<{
451
+ focusedId: string | null;
452
+ matches: readonly import("../types").SearchMatch[];
453
+ }> | null;
466
454
  };
467
455
  captureUpdate: "IMMEDIATELY";
468
456
  } | {
@@ -476,13 +464,13 @@ export declare const actionDeleteSelected: {
476
464
  multiElement: null;
477
465
  activeEmbeddable: null;
478
466
  selectedLinearElement: null;
479
- editingGroupId: string | null;
480
467
  selectedElementIds: Readonly<{
481
468
  [id: string]: true;
482
469
  }>;
483
470
  selectedGroupIds: {
484
471
  [groupId: string]: boolean;
485
472
  };
473
+ editingGroupId: string | null;
486
474
  contextMenu: {
487
475
  items: import("../components/ContextMenu").ContextMenuItems;
488
476
  top: number;
@@ -496,7 +484,7 @@ export declare const actionDeleteSelected: {
496
484
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
497
485
  isBindingEnabled: boolean;
498
486
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
499
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
487
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
500
488
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
501
489
  frameRendering: {
502
490
  enabled: boolean;
@@ -616,7 +604,7 @@ export declare const actionDeleteSelected: {
616
604
  data: import("../charts").Spreadsheet;
617
605
  };
618
606
  pendingImageElementId: string | null;
619
- showHyperlinkPopup: false | "editor" | "info";
607
+ showHyperlinkPopup: false | "info" | "editor";
620
608
  linkOpacity: number;
621
609
  trayModeEnabled: boolean;
622
610
  colorPalette?: {
@@ -663,21 +651,15 @@ export declare const actionDeleteSelected: {
663
651
  followedBy: Set<import("../types").SocketId>;
664
652
  isCropping: boolean;
665
653
  croppingElementId: string | null;
666
- searchMatches: readonly {
667
- id: string;
668
- focus: boolean;
669
- matchedLines: {
670
- offsetX: number;
671
- offsetY: number;
672
- width: number;
673
- height: number;
674
- }[];
675
- }[];
654
+ searchMatches: Readonly<{
655
+ focusedId: string | null;
656
+ matches: readonly import("../types").SearchMatch[];
657
+ }> | null;
676
658
  };
677
659
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
678
660
  };
679
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
661
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
680
662
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
681
663
  } & {
682
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
664
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
683
665
  };
@@ -11,10 +11,10 @@ export declare const distributeHorizontally: {
11
11
  elements: ExcalidrawElement[];
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, app }: 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
  };
19
19
  export declare const distributeVertically: {
20
20
  name: "distributeVertically";
@@ -27,8 +27,8 @@ export declare const distributeVertically: {
27
27
  elements: ExcalidrawElement[];
28
28
  captureUpdate: "IMMEDIATELY";
29
29
  };
30
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
30
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
31
31
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
32
32
  } & {
33
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
33
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
34
34
  };
@@ -10,8 +10,8 @@ export declare const actionDuplicateSelection: {
10
10
  appState: import("../types").AppState;
11
11
  captureUpdate: "IMMEDIATELY";
12
12
  };
13
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
13
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
14
14
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
15
15
  } & {
16
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
16
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
17
17
  };
@@ -58,7 +58,7 @@ export declare const actionLinkToElement: {
58
58
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
59
59
  isBindingEnabled: boolean;
60
60
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
61
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
61
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
62
62
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
63
63
  frameRendering: {
64
64
  enabled: boolean;
@@ -69,7 +69,7 @@ export declare const actionLinkToElement: {
69
69
  editingFrame: string | null;
70
70
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
71
71
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
72
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
72
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
73
73
  activeTool: {
74
74
  lastActiveTool: import("../types").ActiveTool | null;
75
75
  locked: boolean;
@@ -179,7 +179,7 @@ export declare const actionLinkToElement: {
179
179
  data: import("../charts").Spreadsheet;
180
180
  };
181
181
  pendingImageElementId: string | null;
182
- showHyperlinkPopup: false | "editor" | "info";
182
+ showHyperlinkPopup: false | "info" | "editor";
183
183
  linkOpacity: number;
184
184
  trayModeEnabled: boolean;
185
185
  colorPalette?: {
@@ -216,7 +216,7 @@ export declare const actionLinkToElement: {
216
216
  nameColor: string;
217
217
  };
218
218
  invertBindingBehaviour: boolean;
219
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
219
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
220
220
  snapLines: readonly import("../snapping").SnapLine[];
221
221
  originSnapOffset: {
222
222
  x: number;
@@ -227,16 +227,10 @@ export declare const actionLinkToElement: {
227
227
  followedBy: Set<import("../types").SocketId>;
228
228
  isCropping: boolean;
229
229
  croppingElementId: string | null;
230
- searchMatches: readonly {
231
- id: string;
232
- focus: boolean;
233
- matchedLines: {
234
- offsetX: number;
235
- offsetY: number;
236
- width: number;
237
- height: number;
238
- }[];
239
- }[];
230
+ searchMatches: Readonly<{
231
+ focusedId: string | null;
232
+ matches: readonly import("../types").SearchMatch[];
233
+ }> | null;
240
234
  };
241
235
  captureUpdate: "IMMEDIATELY";
242
236
  elements?: undefined;