@myoc/excalidraw 0.18.15 → 0.18.17

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 (152) hide show
  1. package/dist/dev/{chunk-O7OUZ7ZJ.js → chunk-FQEIAL75.js} +14874 -9982
  2. package/dist/dev/chunk-FQEIAL75.js.map +7 -0
  3. package/dist/dev/{chunk-PEI7EPYO.js → chunk-KJKC5BJI.js} +10 -4
  4. package/dist/dev/chunk-KJKC5BJI.js.map +7 -0
  5. package/dist/dev/{chunk-DJKQZ4KD.js → chunk-XL2I4W52.js} +2 -2
  6. package/dist/dev/data/{image-NJWLICAS.js → image-WMF622SS.js} +3 -3
  7. package/dist/dev/index.css +69 -22
  8. package/dist/dev/index.css.map +3 -3
  9. package/dist/dev/index.js +3104 -6547
  10. package/dist/dev/index.js.map +4 -4
  11. package/dist/dev/locales/{en-R455UJTM.js → en-UQFCZXHO.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-NJOW7IOK.js → chunk-5JAQX5EH.js} +1 -1
  15. package/dist/prod/{chunk-KZWZ7WHC.js → chunk-EJLAYNAE.js} +4 -4
  16. package/dist/prod/chunk-LSNMPGNI.js +33 -0
  17. package/dist/prod/data/image-Z433FUMH.js +1 -0
  18. package/dist/prod/index.css +1 -1
  19. package/dist/prod/index.js +17 -16
  20. package/dist/prod/locales/{en-YWERZJD6.js → en-7EHYHCIL.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 +3 -1
  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/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  30. package/dist/types/element/src/ShapeCache.d.ts +1 -1
  31. package/dist/types/element/src/align.d.ts +3 -3
  32. package/dist/types/element/src/arrange.d.ts +2 -1
  33. package/dist/types/element/src/binding.d.ts +18 -10
  34. package/dist/types/element/src/bounds.d.ts +1 -1
  35. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  36. package/dist/types/element/src/dragElements.d.ts +3 -2
  37. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  38. package/dist/types/element/src/flowchart.d.ts +3 -2
  39. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  40. package/dist/types/element/src/frame.d.ts +4 -3
  41. package/dist/types/element/src/index.d.ts +45 -2
  42. package/dist/types/element/src/linearElementEditor.d.ts +14 -18
  43. package/dist/types/element/src/mutateElement.d.ts +10 -2
  44. package/dist/types/element/src/newElement.d.ts +3 -3
  45. package/dist/types/element/src/resizeElements.d.ts +4 -4
  46. package/dist/types/element/src/selection.d.ts +1 -6
  47. package/dist/types/element/src/shapes.d.ts +1 -1
  48. package/dist/types/element/src/sizeHelpers.d.ts +0 -1
  49. package/dist/types/element/src/store.d.ts +227 -0
  50. package/dist/types/element/src/textElement.d.ts +4 -3
  51. package/dist/types/element/src/typeChecks.d.ts +5 -1
  52. package/dist/types/element/src/types.d.ts +8 -0
  53. package/dist/types/element/src/zindex.d.ts +1 -1
  54. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -48
  55. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  56. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  57. package/dist/types/excalidraw/actions/actionBoundText.d.ts +20 -32
  58. package/dist/types/excalidraw/actions/actionCanvas.d.ts +139 -211
  59. package/dist/types/excalidraw/actions/actionClipboard.d.ts +62 -98
  60. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -16
  61. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +28 -46
  62. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  63. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  64. package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -16
  65. package/dist/types/excalidraw/actions/actionElementLock.d.ts +22 -34
  66. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +10 -16
  67. package/dist/types/excalidraw/actions/actionExport.d.ts +184 -238
  68. package/dist/types/excalidraw/actions/actionFinalize.d.ts +18 -30
  69. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  70. package/dist/types/excalidraw/actions/actionFrame.d.ts +84 -108
  71. package/dist/types/excalidraw/actions/actionGroup.d.ts +26 -38
  72. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  73. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +9 -15
  74. package/dist/types/excalidraw/actions/actionLink.d.ts +10 -16
  75. package/dist/types/excalidraw/actions/actionMenu.d.ts +30 -48
  76. package/dist/types/excalidraw/actions/actionNavigate.d.ts +19 -31
  77. package/dist/types/excalidraw/actions/actionProperties.d.ts +138 -228
  78. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -18
  79. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  80. package/dist/types/excalidraw/actions/actionStyles.d.ts +14 -20
  81. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +12 -18
  82. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +12 -18
  83. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +12 -199
  84. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  85. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +12 -18
  86. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -18
  87. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -18
  88. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  89. package/dist/types/excalidraw/actions/types.d.ts +3 -3
  90. package/dist/types/excalidraw/appState.d.ts +31 -31
  91. package/dist/types/excalidraw/components/App.d.ts +13 -8
  92. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  93. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  94. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  95. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  96. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  97. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  98. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  99. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  100. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  101. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  102. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  103. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  104. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  105. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  107. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  108. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  109. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  110. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  111. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  117. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  118. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  119. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  120. package/dist/types/excalidraw/components/icons.d.ts +1 -0
  121. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  122. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  123. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  124. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  125. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  126. package/dist/types/excalidraw/history.d.ts +14 -22
  127. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  128. package/dist/types/excalidraw/index.d.ts +9 -9
  129. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  130. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
  131. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  132. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  133. package/dist/types/excalidraw/snapping.d.ts +2 -2
  134. package/dist/types/excalidraw/types.d.ts +16 -9
  135. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  136. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  137. package/dist/types/math/src/curve.d.ts +2 -0
  138. package/dist/types/math/src/vector.d.ts +4 -0
  139. package/dist/types/utils/src/bbox.d.ts +1 -1
  140. package/dist/types/utils/src/index.d.ts +1 -1
  141. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  142. package/history.ts +68 -94
  143. package/package.json +5 -4
  144. package/dist/dev/chunk-O7OUZ7ZJ.js.map +0 -7
  145. package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
  146. package/dist/prod/chunk-WGXUBJ4X.js +0 -33
  147. package/dist/prod/data/image-EKW6RBW7.js +0 -1
  148. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  149. package/dist/types/excalidraw/store.d.ts +0 -129
  150. /package/dist/dev/{chunk-DJKQZ4KD.js.map → chunk-XL2I4W52.js.map} +0 -0
  151. /package/dist/dev/data/{image-NJWLICAS.js.map → image-WMF622SS.js.map} +0 -0
  152. /package/dist/dev/locales/{en-R455UJTM.js.map → en-UQFCZXHO.js.map} +0 -0
@@ -18,9 +18,9 @@ export declare const actionCopy: {
18
18
  showWelcomeScreen: boolean;
19
19
  isLoading: boolean;
20
20
  myocSimplifiedMode: boolean;
21
+ dontResizeLimitMBs: number;
21
22
  hideMainMenus: boolean;
22
23
  wheelZoomsOnDefault?: boolean | undefined;
23
- dontResizeLimitMBs: number;
24
24
  arrangeConfiguration: {
25
25
  algorithm: "bin-packing";
26
26
  gap: number;
@@ -35,7 +35,7 @@ export declare const actionCopy: {
35
35
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
36
36
  isBindingEnabled: boolean;
37
37
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
38
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
38
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
39
39
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
40
40
  frameRendering: {
41
41
  enabled: boolean;
@@ -46,7 +46,7 @@ export declare const actionCopy: {
46
46
  editingFrame: string | null;
47
47
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
48
48
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
49
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
50
50
  activeTool: {
51
51
  lastActiveTool: import("../types").ActiveTool | null;
52
52
  locked: boolean;
@@ -84,7 +84,7 @@ export declare const actionCopy: {
84
84
  zoom: Readonly<{
85
85
  value: import("../types").NormalizedZoomValue;
86
86
  }>;
87
- openMenu: "shape" | "canvas" | null;
87
+ openMenu: "canvas" | "shape" | null;
88
88
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
89
89
  openSidebar: {
90
90
  name: string;
@@ -167,8 +167,8 @@ export declare const actionCopy: {
167
167
  data: import("../charts").Spreadsheet;
168
168
  };
169
169
  pendingImageElementId: string | null;
170
- showHyperlinkPopup: false | "editor" | "info";
171
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
170
+ showHyperlinkPopup: false | "info" | "editor";
171
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
172
172
  snapLines: readonly import("../snapping").SnapLine[];
173
173
  originSnapOffset: {
174
174
  x: number;
@@ -179,16 +179,10 @@ export declare const actionCopy: {
179
179
  followedBy: Set<import("../types").SocketId>;
180
180
  isCropping: boolean;
181
181
  croppingElementId: string | null;
182
- searchMatches: readonly {
183
- id: string;
184
- focus: boolean;
185
- matchedLines: {
186
- offsetX: number;
187
- offsetY: number;
188
- width: number;
189
- height: number;
190
- }[];
191
- }[];
182
+ searchMatches: Readonly<{
183
+ focusedId: string | null;
184
+ matches: readonly import("../types").SearchMatch[];
185
+ }> | null;
192
186
  };
193
187
  } | {
194
188
  captureUpdate: "EVENTUALLY";
@@ -216,9 +210,9 @@ export declare const actionPaste: {
216
210
  showWelcomeScreen: boolean;
217
211
  isLoading: boolean;
218
212
  myocSimplifiedMode: boolean;
213
+ dontResizeLimitMBs: number;
219
214
  hideMainMenus: boolean;
220
215
  wheelZoomsOnDefault?: boolean | undefined;
221
- dontResizeLimitMBs: number;
222
216
  arrangeConfiguration: {
223
217
  algorithm: "bin-packing";
224
218
  gap: number;
@@ -233,7 +227,7 @@ export declare const actionPaste: {
233
227
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
234
228
  isBindingEnabled: boolean;
235
229
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
236
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
230
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
237
231
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
238
232
  frameRendering: {
239
233
  enabled: boolean;
@@ -244,7 +238,7 @@ export declare const actionPaste: {
244
238
  editingFrame: string | null;
245
239
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
246
240
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
247
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
241
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
248
242
  activeTool: {
249
243
  lastActiveTool: import("../types").ActiveTool | null;
250
244
  locked: boolean;
@@ -282,7 +276,7 @@ export declare const actionPaste: {
282
276
  zoom: Readonly<{
283
277
  value: import("../types").NormalizedZoomValue;
284
278
  }>;
285
- openMenu: "shape" | "canvas" | null;
279
+ openMenu: "canvas" | "shape" | null;
286
280
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
287
281
  openSidebar: {
288
282
  name: string;
@@ -365,8 +359,8 @@ export declare const actionPaste: {
365
359
  data: import("../charts").Spreadsheet;
366
360
  };
367
361
  pendingImageElementId: string | null;
368
- showHyperlinkPopup: false | "editor" | "info";
369
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
362
+ showHyperlinkPopup: false | "info" | "editor";
363
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
370
364
  snapLines: readonly import("../snapping").SnapLine[];
371
365
  originSnapOffset: {
372
366
  x: number;
@@ -377,16 +371,10 @@ export declare const actionPaste: {
377
371
  followedBy: Set<import("../types").SocketId>;
378
372
  isCropping: boolean;
379
373
  croppingElementId: string | null;
380
- searchMatches: readonly {
381
- id: string;
382
- focus: boolean;
383
- matchedLines: {
384
- offsetX: number;
385
- offsetY: number;
386
- width: number;
387
- height: number;
388
- }[];
389
- }[];
374
+ searchMatches: Readonly<{
375
+ focusedId: string | null;
376
+ matches: readonly import("../types").SearchMatch[];
377
+ }> | null;
390
378
  };
391
379
  } | {
392
380
  captureUpdate: "EVENTUALLY";
@@ -415,9 +403,9 @@ export declare const actionCut: {
415
403
  showWelcomeScreen: boolean;
416
404
  isLoading: boolean;
417
405
  myocSimplifiedMode: boolean;
406
+ dontResizeLimitMBs: number;
418
407
  hideMainMenus: boolean;
419
408
  wheelZoomsOnDefault?: boolean | undefined;
420
- dontResizeLimitMBs: number;
421
409
  arrangeConfiguration: {
422
410
  algorithm: "bin-packing";
423
411
  gap: number;
@@ -433,7 +421,7 @@ export declare const actionCut: {
433
421
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
434
422
  isBindingEnabled: boolean;
435
423
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
436
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
424
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
437
425
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
438
426
  frameRendering: {
439
427
  enabled: boolean;
@@ -481,7 +469,7 @@ export declare const actionCut: {
481
469
  zoom: Readonly<{
482
470
  value: import("../types").NormalizedZoomValue;
483
471
  }>;
484
- openMenu: "shape" | "canvas" | null;
472
+ openMenu: "canvas" | "shape" | null;
485
473
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
486
474
  openSidebar: {
487
475
  name: string;
@@ -564,8 +552,8 @@ export declare const actionCut: {
564
552
  data: import("../charts").Spreadsheet;
565
553
  };
566
554
  pendingImageElementId: string | null;
567
- showHyperlinkPopup: false | "editor" | "info";
568
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
555
+ showHyperlinkPopup: false | "info" | "editor";
556
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
569
557
  snapLines: readonly import("../snapping").SnapLine[];
570
558
  originSnapOffset: {
571
559
  x: number;
@@ -576,16 +564,10 @@ export declare const actionCut: {
576
564
  followedBy: Set<import("../types").SocketId>;
577
565
  isCropping: boolean;
578
566
  croppingElementId: string | null;
579
- searchMatches: readonly {
580
- id: string;
581
- focus: boolean;
582
- matchedLines: {
583
- offsetX: number;
584
- offsetY: number;
585
- width: number;
586
- height: number;
587
- }[];
588
- }[];
567
+ searchMatches: Readonly<{
568
+ focusedId: string | null;
569
+ matches: readonly import("../types").SearchMatch[];
570
+ }> | null;
589
571
  };
590
572
  captureUpdate: "IMMEDIATELY";
591
573
  } | {
@@ -630,9 +612,9 @@ export declare const actionCut: {
630
612
  showWelcomeScreen: boolean;
631
613
  isLoading: boolean;
632
614
  myocSimplifiedMode: boolean;
615
+ dontResizeLimitMBs: number;
633
616
  hideMainMenus: boolean;
634
617
  wheelZoomsOnDefault?: boolean | undefined;
635
- dontResizeLimitMBs: number;
636
618
  arrangeConfiguration: {
637
619
  algorithm: "bin-packing";
638
620
  gap: number;
@@ -648,7 +630,7 @@ export declare const actionCut: {
648
630
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
649
631
  isBindingEnabled: boolean;
650
632
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
651
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
633
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
652
634
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
653
635
  frameRendering: {
654
636
  enabled: boolean;
@@ -696,7 +678,7 @@ export declare const actionCut: {
696
678
  zoom: Readonly<{
697
679
  value: import("../types").NormalizedZoomValue;
698
680
  }>;
699
- openMenu: "shape" | "canvas" | null;
681
+ openMenu: "canvas" | "shape" | null;
700
682
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
701
683
  openSidebar: {
702
684
  name: string;
@@ -779,8 +761,8 @@ export declare const actionCut: {
779
761
  data: import("../charts").Spreadsheet;
780
762
  };
781
763
  pendingImageElementId: string | null;
782
- showHyperlinkPopup: false | "editor" | "info";
783
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
764
+ showHyperlinkPopup: false | "info" | "editor";
765
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
784
766
  snapLines: readonly import("../snapping").SnapLine[];
785
767
  originSnapOffset: {
786
768
  x: number;
@@ -791,16 +773,10 @@ export declare const actionCut: {
791
773
  followedBy: Set<import("../types").SocketId>;
792
774
  isCropping: boolean;
793
775
  croppingElementId: string | null;
794
- searchMatches: readonly {
795
- id: string;
796
- focus: boolean;
797
- matchedLines: {
798
- offsetX: number;
799
- offsetY: number;
800
- width: number;
801
- height: number;
802
- }[];
803
- }[];
776
+ searchMatches: Readonly<{
777
+ focusedId: string | null;
778
+ matches: readonly import("../types").SearchMatch[];
779
+ }> | null;
804
780
  };
805
781
  captureUpdate: "IMMEDIATELY";
806
782
  } | {
@@ -814,13 +790,13 @@ export declare const actionCut: {
814
790
  multiElement: null;
815
791
  activeEmbeddable: null;
816
792
  selectedLinearElement: null;
817
- editingGroupId: string | null;
818
793
  selectedElementIds: Readonly<{
819
794
  [id: string]: true;
820
795
  }>;
821
796
  selectedGroupIds: {
822
797
  [groupId: string]: boolean;
823
798
  };
799
+ editingGroupId: string | null;
824
800
  contextMenu: {
825
801
  items: import("../components/ContextMenu").ContextMenuItems;
826
802
  top: number;
@@ -829,9 +805,9 @@ export declare const actionCut: {
829
805
  showWelcomeScreen: boolean;
830
806
  isLoading: boolean;
831
807
  myocSimplifiedMode: boolean;
808
+ dontResizeLimitMBs: number;
832
809
  hideMainMenus: boolean;
833
810
  wheelZoomsOnDefault?: boolean | undefined;
834
- dontResizeLimitMBs: number;
835
811
  arrangeConfiguration: {
836
812
  algorithm: "bin-packing";
837
813
  gap: number;
@@ -842,7 +818,7 @@ export declare const actionCut: {
842
818
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
843
819
  isBindingEnabled: boolean;
844
820
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
845
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
821
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
846
822
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
847
823
  frameRendering: {
848
824
  enabled: boolean;
@@ -853,7 +829,7 @@ export declare const actionCut: {
853
829
  editingFrame: string | null;
854
830
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
855
831
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
856
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
832
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
857
833
  penMode: boolean;
858
834
  penDetected: boolean;
859
835
  exportBackground: boolean;
@@ -886,7 +862,7 @@ export declare const actionCut: {
886
862
  zoom: Readonly<{
887
863
  value: import("../types").NormalizedZoomValue;
888
864
  }>;
889
- openMenu: "shape" | "canvas" | null;
865
+ openMenu: "canvas" | "shape" | null;
890
866
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
891
867
  openSidebar: {
892
868
  name: string;
@@ -962,7 +938,7 @@ export declare const actionCut: {
962
938
  data: import("../charts").Spreadsheet;
963
939
  };
964
940
  pendingImageElementId: string | null;
965
- showHyperlinkPopup: false | "editor" | "info";
941
+ showHyperlinkPopup: false | "info" | "editor";
966
942
  snapLines: readonly import("../snapping").SnapLine[];
967
943
  originSnapOffset: {
968
944
  x: number;
@@ -973,22 +949,16 @@ export declare const actionCut: {
973
949
  followedBy: Set<import("../types").SocketId>;
974
950
  isCropping: boolean;
975
951
  croppingElementId: string | null;
976
- searchMatches: readonly {
977
- id: string;
978
- focus: boolean;
979
- matchedLines: {
980
- offsetX: number;
981
- offsetY: number;
982
- width: number;
983
- height: number;
984
- }[];
985
- }[];
952
+ searchMatches: Readonly<{
953
+ focusedId: string | null;
954
+ matches: readonly import("../types").SearchMatch[];
955
+ }> | null;
986
956
  };
987
957
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
988
958
  };
989
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
959
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
990
960
  } & {
991
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
961
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
992
962
  };
993
963
  export declare const actionCopyAsSvg: {
994
964
  name: "copyAsSvg";
@@ -1041,9 +1011,9 @@ export declare const actionCopyAsPng: {
1041
1011
  showWelcomeScreen: boolean;
1042
1012
  isLoading: boolean;
1043
1013
  myocSimplifiedMode: boolean;
1014
+ dontResizeLimitMBs: number;
1044
1015
  hideMainMenus: boolean;
1045
1016
  wheelZoomsOnDefault?: boolean | undefined;
1046
- dontResizeLimitMBs: number;
1047
1017
  arrangeConfiguration: {
1048
1018
  algorithm: "bin-packing";
1049
1019
  gap: number;
@@ -1058,7 +1028,7 @@ export declare const actionCopyAsPng: {
1058
1028
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1059
1029
  isBindingEnabled: boolean;
1060
1030
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1061
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1031
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1062
1032
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1063
1033
  frameRendering: {
1064
1034
  enabled: boolean;
@@ -1069,7 +1039,7 @@ export declare const actionCopyAsPng: {
1069
1039
  editingFrame: string | null;
1070
1040
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1071
1041
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1072
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1042
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1073
1043
  activeTool: {
1074
1044
  lastActiveTool: import("../types").ActiveTool | null;
1075
1045
  locked: boolean;
@@ -1107,7 +1077,7 @@ export declare const actionCopyAsPng: {
1107
1077
  zoom: Readonly<{
1108
1078
  value: import("../types").NormalizedZoomValue;
1109
1079
  }>;
1110
- openMenu: "shape" | "canvas" | null;
1080
+ openMenu: "canvas" | "shape" | null;
1111
1081
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1112
1082
  openSidebar: {
1113
1083
  name: string;
@@ -1190,8 +1160,8 @@ export declare const actionCopyAsPng: {
1190
1160
  data: import("../charts").Spreadsheet;
1191
1161
  };
1192
1162
  pendingImageElementId: string | null;
1193
- showHyperlinkPopup: false | "editor" | "info";
1194
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1163
+ showHyperlinkPopup: false | "info" | "editor";
1164
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1195
1165
  snapLines: readonly import("../snapping").SnapLine[];
1196
1166
  originSnapOffset: {
1197
1167
  x: number;
@@ -1202,24 +1172,18 @@ export declare const actionCopyAsPng: {
1202
1172
  followedBy: Set<import("../types").SocketId>;
1203
1173
  isCropping: boolean;
1204
1174
  croppingElementId: string | null;
1205
- searchMatches: readonly {
1206
- id: string;
1207
- focus: boolean;
1208
- matchedLines: {
1209
- offsetX: number;
1210
- offsetY: number;
1211
- width: number;
1212
- height: number;
1213
- }[];
1214
- }[];
1175
+ searchMatches: Readonly<{
1176
+ focusedId: string | null;
1177
+ matches: readonly import("../types").SearchMatch[];
1178
+ }> | null;
1215
1179
  };
1216
1180
  captureUpdate: "EVENTUALLY";
1217
1181
  }>;
1218
1182
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1219
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1183
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1220
1184
  keywords: string[];
1221
1185
  } & {
1222
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1186
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1223
1187
  };
1224
1188
  export declare const copyText: {
1225
1189
  name: "copyText";
@@ -20,9 +20,9 @@ export declare const actionToggleCropEditor: {
20
20
  showWelcomeScreen: boolean;
21
21
  isLoading: boolean;
22
22
  myocSimplifiedMode: boolean;
23
+ dontResizeLimitMBs: number;
23
24
  hideMainMenus: boolean;
24
25
  wheelZoomsOnDefault?: boolean | undefined;
25
- dontResizeLimitMBs: number;
26
26
  arrangeConfiguration: {
27
27
  algorithm: "bin-packing";
28
28
  gap: number;
@@ -38,7 +38,7 @@ export declare const actionToggleCropEditor: {
38
38
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
39
  isBindingEnabled: boolean;
40
40
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
41
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
41
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
42
42
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
43
43
  frameRendering: {
44
44
  enabled: boolean;
@@ -49,7 +49,7 @@ export declare const actionToggleCropEditor: {
49
49
  editingFrame: string | null;
50
50
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
51
51
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
52
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
52
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
53
53
  activeTool: {
54
54
  lastActiveTool: import("../types").ActiveTool | null;
55
55
  locked: boolean;
@@ -87,7 +87,7 @@ export declare const actionToggleCropEditor: {
87
87
  zoom: Readonly<{
88
88
  value: import("../types").NormalizedZoomValue;
89
89
  }>;
90
- openMenu: "shape" | "canvas" | null;
90
+ openMenu: "canvas" | "shape" | null;
91
91
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
92
92
  openSidebar: {
93
93
  name: string;
@@ -170,8 +170,8 @@ export declare const actionToggleCropEditor: {
170
170
  data: import("../charts").Spreadsheet;
171
171
  };
172
172
  pendingImageElementId: string | null;
173
- showHyperlinkPopup: false | "editor" | "info";
174
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
173
+ showHyperlinkPopup: false | "info" | "editor";
174
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
175
175
  snapLines: readonly import("../snapping").SnapLine[];
176
176
  originSnapOffset: {
177
177
  x: number;
@@ -180,16 +180,10 @@ export declare const actionToggleCropEditor: {
180
180
  objectsSnapModeEnabled: boolean;
181
181
  userToFollow: import("../types").UserToFollow | null;
182
182
  followedBy: Set<import("../types").SocketId>;
183
- searchMatches: readonly {
184
- id: string;
185
- focus: boolean;
186
- matchedLines: {
187
- offsetX: number;
188
- offsetY: number;
189
- width: number;
190
- height: number;
191
- }[];
192
- }[];
183
+ searchMatches: Readonly<{
184
+ focusedId: string | null;
185
+ matches: readonly import("../types").SearchMatch[];
186
+ }> | null;
193
187
  };
194
188
  captureUpdate: "IMMEDIATELY";
195
189
  };