@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
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { type SceneBounds } from "@excalidraw/element/bounds";
2
+ import { type SceneBounds } from "@excalidraw/element";
3
3
  import type { ExcalidrawElement } from "@excalidraw/element/types";
4
4
  import type { AppState, Offsets } from "../types";
5
5
  export declare const actionChangeViewBackgroundColor: {
@@ -39,9 +39,9 @@ export declare const actionZoomIn: {
39
39
  showWelcomeScreen: boolean;
40
40
  isLoading: boolean;
41
41
  myocSimplifiedMode: boolean;
42
+ dontResizeLimitMBs: number;
42
43
  hideMainMenus: boolean;
43
44
  wheelZoomsOnDefault?: boolean | undefined;
44
- dontResizeLimitMBs: number;
45
45
  arrangeConfiguration: {
46
46
  algorithm: "bin-packing";
47
47
  gap: number;
@@ -57,7 +57,7 @@ export declare const actionZoomIn: {
57
57
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
58
58
  isBindingEnabled: boolean;
59
59
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
60
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
60
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
61
61
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
62
62
  frameRendering: {
63
63
  enabled: boolean;
@@ -68,7 +68,7 @@ export declare const actionZoomIn: {
68
68
  editingFrame: string | null;
69
69
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
70
70
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
71
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
71
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
72
72
  activeTool: {
73
73
  lastActiveTool: import("../types").ActiveTool | null;
74
74
  locked: boolean;
@@ -101,7 +101,7 @@ export declare const actionZoomIn: {
101
101
  name: string | null;
102
102
  isResizing: boolean;
103
103
  isRotating: boolean;
104
- openMenu: "shape" | "canvas" | null;
104
+ openMenu: "canvas" | "shape" | null;
105
105
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
106
106
  openSidebar: {
107
107
  name: string;
@@ -184,8 +184,8 @@ export declare const actionZoomIn: {
184
184
  data: import("../charts").Spreadsheet;
185
185
  };
186
186
  pendingImageElementId: string | null;
187
- showHyperlinkPopup: false | "editor" | "info";
188
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
187
+ showHyperlinkPopup: false | "info" | "editor";
188
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
189
189
  snapLines: readonly import("../snapping").SnapLine[];
190
190
  originSnapOffset: {
191
191
  x: number;
@@ -195,23 +195,17 @@ export declare const actionZoomIn: {
195
195
  followedBy: Set<import("../types").SocketId>;
196
196
  isCropping: boolean;
197
197
  croppingElementId: string | null;
198
- searchMatches: readonly {
199
- id: string;
200
- focus: boolean;
201
- matchedLines: {
202
- offsetX: number;
203
- offsetY: number;
204
- width: number;
205
- height: number;
206
- }[];
207
- }[];
198
+ searchMatches: Readonly<{
199
+ focusedId: string | null;
200
+ matches: readonly import("../types").SearchMatch[];
201
+ }> | null;
208
202
  };
209
203
  captureUpdate: "EVENTUALLY";
210
204
  };
211
205
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
212
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
206
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
213
207
  } & {
214
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
208
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
215
209
  };
216
210
  export declare const actionZoomOut: {
217
211
  name: "zoomOut";
@@ -237,9 +231,9 @@ export declare const actionZoomOut: {
237
231
  showWelcomeScreen: boolean;
238
232
  isLoading: boolean;
239
233
  myocSimplifiedMode: boolean;
234
+ dontResizeLimitMBs: number;
240
235
  hideMainMenus: boolean;
241
236
  wheelZoomsOnDefault?: boolean | undefined;
242
- dontResizeLimitMBs: number;
243
237
  arrangeConfiguration: {
244
238
  algorithm: "bin-packing";
245
239
  gap: number;
@@ -255,7 +249,7 @@ export declare const actionZoomOut: {
255
249
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
256
250
  isBindingEnabled: boolean;
257
251
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
258
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
252
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
259
253
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
260
254
  frameRendering: {
261
255
  enabled: boolean;
@@ -266,7 +260,7 @@ export declare const actionZoomOut: {
266
260
  editingFrame: string | null;
267
261
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
268
262
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
269
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
263
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
270
264
  activeTool: {
271
265
  lastActiveTool: import("../types").ActiveTool | null;
272
266
  locked: boolean;
@@ -299,7 +293,7 @@ export declare const actionZoomOut: {
299
293
  name: string | null;
300
294
  isResizing: boolean;
301
295
  isRotating: boolean;
302
- openMenu: "shape" | "canvas" | null;
296
+ openMenu: "canvas" | "shape" | null;
303
297
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
304
298
  openSidebar: {
305
299
  name: string;
@@ -382,8 +376,8 @@ export declare const actionZoomOut: {
382
376
  data: import("../charts").Spreadsheet;
383
377
  };
384
378
  pendingImageElementId: string | null;
385
- showHyperlinkPopup: false | "editor" | "info";
386
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
379
+ showHyperlinkPopup: false | "info" | "editor";
380
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
387
381
  snapLines: readonly import("../snapping").SnapLine[];
388
382
  originSnapOffset: {
389
383
  x: number;
@@ -393,23 +387,17 @@ export declare const actionZoomOut: {
393
387
  followedBy: Set<import("../types").SocketId>;
394
388
  isCropping: boolean;
395
389
  croppingElementId: string | null;
396
- searchMatches: readonly {
397
- id: string;
398
- focus: boolean;
399
- matchedLines: {
400
- offsetX: number;
401
- offsetY: number;
402
- width: number;
403
- height: number;
404
- }[];
405
- }[];
390
+ searchMatches: Readonly<{
391
+ focusedId: string | null;
392
+ matches: readonly import("../types").SearchMatch[];
393
+ }> | null;
406
394
  };
407
395
  captureUpdate: "EVENTUALLY";
408
396
  };
409
397
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
410
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
398
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
411
399
  } & {
412
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
400
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
413
401
  };
414
402
  export declare const actionResetZoom: {
415
403
  name: "resetZoom";
@@ -435,9 +423,9 @@ export declare const actionResetZoom: {
435
423
  showWelcomeScreen: boolean;
436
424
  isLoading: boolean;
437
425
  myocSimplifiedMode: boolean;
426
+ dontResizeLimitMBs: number;
438
427
  hideMainMenus: boolean;
439
428
  wheelZoomsOnDefault?: boolean | undefined;
440
- dontResizeLimitMBs: number;
441
429
  arrangeConfiguration: {
442
430
  algorithm: "bin-packing";
443
431
  gap: number;
@@ -453,7 +441,7 @@ export declare const actionResetZoom: {
453
441
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
454
442
  isBindingEnabled: boolean;
455
443
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
456
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
444
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
457
445
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
458
446
  frameRendering: {
459
447
  enabled: boolean;
@@ -464,7 +452,7 @@ export declare const actionResetZoom: {
464
452
  editingFrame: string | null;
465
453
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
466
454
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
467
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
455
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
468
456
  activeTool: {
469
457
  lastActiveTool: import("../types").ActiveTool | null;
470
458
  locked: boolean;
@@ -497,7 +485,7 @@ export declare const actionResetZoom: {
497
485
  name: string | null;
498
486
  isResizing: boolean;
499
487
  isRotating: boolean;
500
- openMenu: "shape" | "canvas" | null;
488
+ openMenu: "canvas" | "shape" | null;
501
489
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
502
490
  openSidebar: {
503
491
  name: string;
@@ -580,8 +568,8 @@ export declare const actionResetZoom: {
580
568
  data: import("../charts").Spreadsheet;
581
569
  };
582
570
  pendingImageElementId: string | null;
583
- showHyperlinkPopup: false | "editor" | "info";
584
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
571
+ showHyperlinkPopup: false | "info" | "editor";
572
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
585
573
  snapLines: readonly import("../snapping").SnapLine[];
586
574
  originSnapOffset: {
587
575
  x: number;
@@ -591,23 +579,17 @@ export declare const actionResetZoom: {
591
579
  followedBy: Set<import("../types").SocketId>;
592
580
  isCropping: boolean;
593
581
  croppingElementId: string | null;
594
- searchMatches: readonly {
595
- id: string;
596
- focus: boolean;
597
- matchedLines: {
598
- offsetX: number;
599
- offsetY: number;
600
- width: number;
601
- height: number;
602
- }[];
603
- }[];
582
+ searchMatches: Readonly<{
583
+ focusedId: string | null;
584
+ matches: readonly import("../types").SearchMatch[];
585
+ }> | null;
604
586
  };
605
587
  captureUpdate: "EVENTUALLY";
606
588
  };
607
589
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
608
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
590
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
609
591
  } & {
610
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
592
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
611
593
  };
612
594
  export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
613
595
  bounds: SceneBounds;
@@ -639,9 +621,9 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
639
621
  showWelcomeScreen: boolean;
640
622
  isLoading: boolean;
641
623
  myocSimplifiedMode: boolean;
624
+ dontResizeLimitMBs: number;
642
625
  hideMainMenus: boolean;
643
626
  wheelZoomsOnDefault?: boolean | undefined;
644
- dontResizeLimitMBs: number;
645
627
  arrangeConfiguration: {
646
628
  algorithm: "bin-packing";
647
629
  gap: number;
@@ -657,7 +639,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
657
639
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
658
640
  isBindingEnabled: boolean;
659
641
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
660
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
642
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
661
643
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
662
644
  frameRendering: {
663
645
  enabled: boolean;
@@ -668,7 +650,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
668
650
  editingFrame: string | null;
669
651
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
670
652
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
671
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
653
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
672
654
  activeTool: {
673
655
  lastActiveTool: import("../types").ActiveTool | null;
674
656
  locked: boolean;
@@ -701,7 +683,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
701
683
  name: string | null;
702
684
  isResizing: boolean;
703
685
  isRotating: boolean;
704
- openMenu: "shape" | "canvas" | null;
686
+ openMenu: "canvas" | "shape" | null;
705
687
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
706
688
  openSidebar: {
707
689
  name: string;
@@ -784,8 +766,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
784
766
  data: import("../charts").Spreadsheet;
785
767
  };
786
768
  pendingImageElementId: string | null;
787
- showHyperlinkPopup: false | "editor" | "info";
788
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
769
+ showHyperlinkPopup: false | "info" | "editor";
770
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
789
771
  snapLines: readonly import("../snapping").SnapLine[];
790
772
  originSnapOffset: {
791
773
  x: number;
@@ -796,16 +778,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
796
778
  followedBy: Set<import("../types").SocketId>;
797
779
  isCropping: boolean;
798
780
  croppingElementId: string | null;
799
- searchMatches: readonly {
800
- id: string;
801
- focus: boolean;
802
- matchedLines: {
803
- offsetX: number;
804
- offsetY: number;
805
- width: number;
806
- height: number;
807
- }[];
808
- }[];
781
+ searchMatches: Readonly<{
782
+ focusedId: string | null;
783
+ matches: readonly import("../types").SearchMatch[];
784
+ }> | null;
809
785
  };
810
786
  captureUpdate: "EVENTUALLY";
811
787
  };
@@ -839,9 +815,9 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
839
815
  showWelcomeScreen: boolean;
840
816
  isLoading: boolean;
841
817
  myocSimplifiedMode: boolean;
818
+ dontResizeLimitMBs: number;
842
819
  hideMainMenus: boolean;
843
820
  wheelZoomsOnDefault?: boolean | undefined;
844
- dontResizeLimitMBs: number;
845
821
  arrangeConfiguration: {
846
822
  algorithm: "bin-packing";
847
823
  gap: number;
@@ -857,7 +833,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
857
833
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
858
834
  isBindingEnabled: boolean;
859
835
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
860
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
836
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
861
837
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
862
838
  frameRendering: {
863
839
  enabled: boolean;
@@ -868,7 +844,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
868
844
  editingFrame: string | null;
869
845
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
870
846
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
871
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
847
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
872
848
  activeTool: {
873
849
  lastActiveTool: import("../types").ActiveTool | null;
874
850
  locked: boolean;
@@ -901,7 +877,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
901
877
  name: string | null;
902
878
  isResizing: boolean;
903
879
  isRotating: boolean;
904
- openMenu: "shape" | "canvas" | null;
880
+ openMenu: "canvas" | "shape" | null;
905
881
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
906
882
  openSidebar: {
907
883
  name: string;
@@ -984,8 +960,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
984
960
  data: import("../charts").Spreadsheet;
985
961
  };
986
962
  pendingImageElementId: string | null;
987
- showHyperlinkPopup: false | "editor" | "info";
988
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
963
+ showHyperlinkPopup: false | "info" | "editor";
964
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
989
965
  snapLines: readonly import("../snapping").SnapLine[];
990
966
  originSnapOffset: {
991
967
  x: number;
@@ -996,16 +972,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
996
972
  followedBy: Set<import("../types").SocketId>;
997
973
  isCropping: boolean;
998
974
  croppingElementId: string | null;
999
- searchMatches: readonly {
1000
- id: string;
1001
- focus: boolean;
1002
- matchedLines: {
1003
- offsetX: number;
1004
- offsetY: number;
1005
- width: number;
1006
- height: number;
1007
- }[];
1008
- }[];
975
+ searchMatches: Readonly<{
976
+ focusedId: string | null;
977
+ matches: readonly import("../types").SearchMatch[];
978
+ }> | null;
1009
979
  };
1010
980
  captureUpdate: "EVENTUALLY";
1011
981
  };
@@ -1031,9 +1001,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1031
1001
  showWelcomeScreen: boolean;
1032
1002
  isLoading: boolean;
1033
1003
  myocSimplifiedMode: boolean;
1004
+ dontResizeLimitMBs: number;
1034
1005
  hideMainMenus: boolean;
1035
1006
  wheelZoomsOnDefault?: boolean | undefined;
1036
- dontResizeLimitMBs: number;
1037
1007
  arrangeConfiguration: {
1038
1008
  algorithm: "bin-packing";
1039
1009
  gap: number;
@@ -1049,7 +1019,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1049
1019
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1050
1020
  isBindingEnabled: boolean;
1051
1021
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1052
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1022
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1053
1023
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1054
1024
  frameRendering: {
1055
1025
  enabled: boolean;
@@ -1060,7 +1030,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1060
1030
  editingFrame: string | null;
1061
1031
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1062
1032
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1063
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1033
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1064
1034
  activeTool: {
1065
1035
  lastActiveTool: import("../types").ActiveTool | null;
1066
1036
  locked: boolean;
@@ -1093,7 +1063,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1093
1063
  name: string | null;
1094
1064
  isResizing: boolean;
1095
1065
  isRotating: boolean;
1096
- openMenu: "shape" | "canvas" | null;
1066
+ openMenu: "canvas" | "shape" | null;
1097
1067
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1098
1068
  openSidebar: {
1099
1069
  name: string;
@@ -1176,8 +1146,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1176
1146
  data: import("../charts").Spreadsheet;
1177
1147
  };
1178
1148
  pendingImageElementId: string | null;
1179
- showHyperlinkPopup: false | "editor" | "info";
1180
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1149
+ showHyperlinkPopup: false | "info" | "editor";
1150
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1181
1151
  snapLines: readonly import("../snapping").SnapLine[];
1182
1152
  originSnapOffset: {
1183
1153
  x: number;
@@ -1188,22 +1158,16 @@ export declare const actionZoomToFitSelectionInViewport: {
1188
1158
  followedBy: Set<import("../types").SocketId>;
1189
1159
  isCropping: boolean;
1190
1160
  croppingElementId: string | null;
1191
- searchMatches: readonly {
1192
- id: string;
1193
- focus: boolean;
1194
- matchedLines: {
1195
- offsetX: number;
1196
- offsetY: number;
1197
- width: number;
1198
- height: number;
1199
- }[];
1200
- }[];
1161
+ searchMatches: Readonly<{
1162
+ focusedId: string | null;
1163
+ matches: readonly import("../types").SearchMatch[];
1164
+ }> | null;
1201
1165
  };
1202
1166
  captureUpdate: "EVENTUALLY";
1203
1167
  };
1204
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1168
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1205
1169
  } & {
1206
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1170
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1207
1171
  };
1208
1172
  export declare const actionZoomToFitSelection: {
1209
1173
  name: "zoomToFitSelection";
@@ -1227,9 +1191,9 @@ export declare const actionZoomToFitSelection: {
1227
1191
  showWelcomeScreen: boolean;
1228
1192
  isLoading: boolean;
1229
1193
  myocSimplifiedMode: boolean;
1194
+ dontResizeLimitMBs: number;
1230
1195
  hideMainMenus: boolean;
1231
1196
  wheelZoomsOnDefault?: boolean | undefined;
1232
- dontResizeLimitMBs: number;
1233
1197
  arrangeConfiguration: {
1234
1198
  algorithm: "bin-packing";
1235
1199
  gap: number;
@@ -1245,7 +1209,7 @@ export declare const actionZoomToFitSelection: {
1245
1209
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1246
1210
  isBindingEnabled: boolean;
1247
1211
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1248
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1212
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1249
1213
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1250
1214
  frameRendering: {
1251
1215
  enabled: boolean;
@@ -1256,7 +1220,7 @@ export declare const actionZoomToFitSelection: {
1256
1220
  editingFrame: string | null;
1257
1221
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1258
1222
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1259
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1223
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1260
1224
  activeTool: {
1261
1225
  lastActiveTool: import("../types").ActiveTool | null;
1262
1226
  locked: boolean;
@@ -1289,7 +1253,7 @@ export declare const actionZoomToFitSelection: {
1289
1253
  name: string | null;
1290
1254
  isResizing: boolean;
1291
1255
  isRotating: boolean;
1292
- openMenu: "shape" | "canvas" | null;
1256
+ openMenu: "canvas" | "shape" | null;
1293
1257
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1294
1258
  openSidebar: {
1295
1259
  name: string;
@@ -1372,8 +1336,8 @@ export declare const actionZoomToFitSelection: {
1372
1336
  data: import("../charts").Spreadsheet;
1373
1337
  };
1374
1338
  pendingImageElementId: string | null;
1375
- showHyperlinkPopup: false | "editor" | "info";
1376
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1339
+ showHyperlinkPopup: false | "info" | "editor";
1340
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1377
1341
  snapLines: readonly import("../snapping").SnapLine[];
1378
1342
  originSnapOffset: {
1379
1343
  x: number;
@@ -1384,22 +1348,16 @@ export declare const actionZoomToFitSelection: {
1384
1348
  followedBy: Set<import("../types").SocketId>;
1385
1349
  isCropping: boolean;
1386
1350
  croppingElementId: string | null;
1387
- searchMatches: readonly {
1388
- id: string;
1389
- focus: boolean;
1390
- matchedLines: {
1391
- offsetX: number;
1392
- offsetY: number;
1393
- width: number;
1394
- height: number;
1395
- }[];
1396
- }[];
1351
+ searchMatches: Readonly<{
1352
+ focusedId: string | null;
1353
+ matches: readonly import("../types").SearchMatch[];
1354
+ }> | null;
1397
1355
  };
1398
1356
  captureUpdate: "EVENTUALLY";
1399
1357
  };
1400
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1358
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1401
1359
  } & {
1402
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1360
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1403
1361
  };
1404
1362
  export declare const actionZoomToFit: {
1405
1363
  name: "zoomToFit";
@@ -1424,9 +1382,9 @@ export declare const actionZoomToFit: {
1424
1382
  showWelcomeScreen: boolean;
1425
1383
  isLoading: boolean;
1426
1384
  myocSimplifiedMode: boolean;
1385
+ dontResizeLimitMBs: number;
1427
1386
  hideMainMenus: boolean;
1428
1387
  wheelZoomsOnDefault?: boolean | undefined;
1429
- dontResizeLimitMBs: number;
1430
1388
  arrangeConfiguration: {
1431
1389
  algorithm: "bin-packing";
1432
1390
  gap: number;
@@ -1442,7 +1400,7 @@ export declare const actionZoomToFit: {
1442
1400
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1443
1401
  isBindingEnabled: boolean;
1444
1402
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1445
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1403
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1446
1404
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1447
1405
  frameRendering: {
1448
1406
  enabled: boolean;
@@ -1453,7 +1411,7 @@ export declare const actionZoomToFit: {
1453
1411
  editingFrame: string | null;
1454
1412
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1455
1413
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1456
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1414
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1457
1415
  activeTool: {
1458
1416
  lastActiveTool: import("../types").ActiveTool | null;
1459
1417
  locked: boolean;
@@ -1486,7 +1444,7 @@ export declare const actionZoomToFit: {
1486
1444
  name: string | null;
1487
1445
  isResizing: boolean;
1488
1446
  isRotating: boolean;
1489
- openMenu: "shape" | "canvas" | null;
1447
+ openMenu: "canvas" | "shape" | null;
1490
1448
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1491
1449
  openSidebar: {
1492
1450
  name: string;
@@ -1569,8 +1527,8 @@ export declare const actionZoomToFit: {
1569
1527
  data: import("../charts").Spreadsheet;
1570
1528
  };
1571
1529
  pendingImageElementId: string | null;
1572
- showHyperlinkPopup: false | "editor" | "info";
1573
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1530
+ showHyperlinkPopup: false | "info" | "editor";
1531
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1574
1532
  snapLines: readonly import("../snapping").SnapLine[];
1575
1533
  originSnapOffset: {
1576
1534
  x: number;
@@ -1581,22 +1539,16 @@ export declare const actionZoomToFit: {
1581
1539
  followedBy: Set<import("../types").SocketId>;
1582
1540
  isCropping: boolean;
1583
1541
  croppingElementId: string | null;
1584
- searchMatches: readonly {
1585
- id: string;
1586
- focus: boolean;
1587
- matchedLines: {
1588
- offsetX: number;
1589
- offsetY: number;
1590
- width: number;
1591
- height: number;
1592
- }[];
1593
- }[];
1542
+ searchMatches: Readonly<{
1543
+ focusedId: string | null;
1544
+ matches: readonly import("../types").SearchMatch[];
1545
+ }> | null;
1594
1546
  };
1595
1547
  captureUpdate: "EVENTUALLY";
1596
1548
  };
1597
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1549
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1598
1550
  } & {
1599
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1551
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1600
1552
  };
1601
1553
  export declare const actionToggleTheme: {
1602
1554
  name: "toggleTheme";
@@ -1618,9 +1570,9 @@ export declare const actionToggleTheme: {
1618
1570
  showWelcomeScreen: boolean;
1619
1571
  isLoading: boolean;
1620
1572
  myocSimplifiedMode: boolean;
1573
+ dontResizeLimitMBs: number;
1621
1574
  hideMainMenus: boolean;
1622
1575
  wheelZoomsOnDefault?: boolean | undefined;
1623
- dontResizeLimitMBs: number;
1624
1576
  arrangeConfiguration: {
1625
1577
  algorithm: "bin-packing";
1626
1578
  gap: number;
@@ -1636,7 +1588,7 @@ export declare const actionToggleTheme: {
1636
1588
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1637
1589
  isBindingEnabled: boolean;
1638
1590
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1639
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1591
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1640
1592
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1641
1593
  frameRendering: {
1642
1594
  enabled: boolean;
@@ -1647,7 +1599,7 @@ export declare const actionToggleTheme: {
1647
1599
  editingFrame: string | null;
1648
1600
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1649
1601
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1650
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1602
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1651
1603
  activeTool: {
1652
1604
  lastActiveTool: import("../types").ActiveTool | null;
1653
1605
  locked: boolean;
@@ -1685,7 +1637,7 @@ export declare const actionToggleTheme: {
1685
1637
  zoom: Readonly<{
1686
1638
  value: import("../types").NormalizedZoomValue;
1687
1639
  }>;
1688
- openMenu: "shape" | "canvas" | null;
1640
+ openMenu: "canvas" | "shape" | null;
1689
1641
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1690
1642
  openSidebar: {
1691
1643
  name: string;
@@ -1767,8 +1719,8 @@ export declare const actionToggleTheme: {
1767
1719
  data: import("../charts").Spreadsheet;
1768
1720
  };
1769
1721
  pendingImageElementId: string | null;
1770
- showHyperlinkPopup: false | "editor" | "info";
1771
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1722
+ showHyperlinkPopup: false | "info" | "editor";
1723
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1772
1724
  snapLines: readonly import("../snapping").SnapLine[];
1773
1725
  originSnapOffset: {
1774
1726
  x: number;
@@ -1779,23 +1731,17 @@ export declare const actionToggleTheme: {
1779
1731
  followedBy: Set<import("../types").SocketId>;
1780
1732
  isCropping: boolean;
1781
1733
  croppingElementId: string | null;
1782
- searchMatches: readonly {
1783
- id: string;
1784
- focus: boolean;
1785
- matchedLines: {
1786
- offsetX: number;
1787
- offsetY: number;
1788
- width: number;
1789
- height: number;
1790
- }[];
1791
- }[];
1734
+ searchMatches: Readonly<{
1735
+ focusedId: string | null;
1736
+ matches: readonly import("../types").SearchMatch[];
1737
+ }> | null;
1792
1738
  };
1793
1739
  captureUpdate: "EVENTUALLY";
1794
1740
  };
1795
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1741
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1796
1742
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1797
1743
  } & {
1798
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1744
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1799
1745
  };
1800
1746
  export declare const actionToggleEraserTool: {
1801
1747
  name: "toggleEraserTool";
@@ -1821,9 +1767,9 @@ export declare const actionToggleEraserTool: {
1821
1767
  showWelcomeScreen: boolean;
1822
1768
  isLoading: boolean;
1823
1769
  myocSimplifiedMode: boolean;
1770
+ dontResizeLimitMBs: number;
1824
1771
  hideMainMenus: boolean;
1825
1772
  wheelZoomsOnDefault?: boolean | undefined;
1826
- dontResizeLimitMBs: number;
1827
1773
  arrangeConfiguration: {
1828
1774
  algorithm: "bin-packing";
1829
1775
  gap: number;
@@ -1835,7 +1781,7 @@ export declare const actionToggleEraserTool: {
1835
1781
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1836
1782
  isBindingEnabled: boolean;
1837
1783
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1838
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1784
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1839
1785
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1840
1786
  frameRendering: {
1841
1787
  enabled: boolean;
@@ -1846,7 +1792,7 @@ export declare const actionToggleEraserTool: {
1846
1792
  editingFrame: string | null;
1847
1793
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1848
1794
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1849
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1795
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1850
1796
  penMode: boolean;
1851
1797
  penDetected: boolean;
1852
1798
  exportBackground: boolean;
@@ -1879,7 +1825,7 @@ export declare const actionToggleEraserTool: {
1879
1825
  zoom: Readonly<{
1880
1826
  value: import("../types").NormalizedZoomValue;
1881
1827
  }>;
1882
- openMenu: "shape" | "canvas" | null;
1828
+ openMenu: "canvas" | "shape" | null;
1883
1829
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1884
1830
  openSidebar: {
1885
1831
  name: string;
@@ -1956,8 +1902,8 @@ export declare const actionToggleEraserTool: {
1956
1902
  data: import("../charts").Spreadsheet;
1957
1903
  };
1958
1904
  pendingImageElementId: string | null;
1959
- showHyperlinkPopup: false | "editor" | "info";
1960
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1905
+ showHyperlinkPopup: false | "info" | "editor";
1906
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1961
1907
  snapLines: readonly import("../snapping").SnapLine[];
1962
1908
  originSnapOffset: {
1963
1909
  x: number;
@@ -1968,22 +1914,16 @@ export declare const actionToggleEraserTool: {
1968
1914
  followedBy: Set<import("../types").SocketId>;
1969
1915
  isCropping: boolean;
1970
1916
  croppingElementId: string | null;
1971
- searchMatches: readonly {
1972
- id: string;
1973
- focus: boolean;
1974
- matchedLines: {
1975
- offsetX: number;
1976
- offsetY: number;
1977
- width: number;
1978
- height: number;
1979
- }[];
1980
- }[];
1917
+ searchMatches: Readonly<{
1918
+ focusedId: string | null;
1919
+ matches: readonly import("../types").SearchMatch[];
1920
+ }> | null;
1981
1921
  };
1982
1922
  captureUpdate: "IMMEDIATELY";
1983
1923
  };
1984
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1924
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1985
1925
  } & {
1986
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1926
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1987
1927
  };
1988
1928
  export declare const actionToggleLassoTool: {
1989
1929
  name: "toggleLassoTool";
@@ -2010,9 +1950,9 @@ export declare const actionToggleLassoTool: {
2010
1950
  showWelcomeScreen: boolean;
2011
1951
  isLoading: boolean;
2012
1952
  myocSimplifiedMode: boolean;
1953
+ dontResizeLimitMBs: number;
2013
1954
  hideMainMenus: boolean;
2014
1955
  wheelZoomsOnDefault?: boolean | undefined;
2015
- dontResizeLimitMBs: number;
2016
1956
  arrangeConfiguration: {
2017
1957
  algorithm: "bin-packing";
2018
1958
  gap: number;
@@ -2024,7 +1964,7 @@ export declare const actionToggleLassoTool: {
2024
1964
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2025
1965
  isBindingEnabled: boolean;
2026
1966
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2027
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1967
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2028
1968
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2029
1969
  frameRendering: {
2030
1970
  enabled: boolean;
@@ -2035,7 +1975,7 @@ export declare const actionToggleLassoTool: {
2035
1975
  editingFrame: string | null;
2036
1976
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2037
1977
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2038
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1978
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2039
1979
  penMode: boolean;
2040
1980
  penDetected: boolean;
2041
1981
  exportBackground: boolean;
@@ -2068,7 +2008,7 @@ export declare const actionToggleLassoTool: {
2068
2008
  zoom: Readonly<{
2069
2009
  value: import("../types").NormalizedZoomValue;
2070
2010
  }>;
2071
- openMenu: "shape" | "canvas" | null;
2011
+ openMenu: "canvas" | "shape" | null;
2072
2012
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2073
2013
  openSidebar: {
2074
2014
  name: string;
@@ -2145,8 +2085,8 @@ export declare const actionToggleLassoTool: {
2145
2085
  data: import("../charts").Spreadsheet;
2146
2086
  };
2147
2087
  pendingImageElementId: string | null;
2148
- showHyperlinkPopup: false | "editor" | "info";
2149
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2088
+ showHyperlinkPopup: false | "info" | "editor";
2089
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2150
2090
  snapLines: readonly import("../snapping").SnapLine[];
2151
2091
  originSnapOffset: {
2152
2092
  x: number;
@@ -2157,16 +2097,10 @@ export declare const actionToggleLassoTool: {
2157
2097
  followedBy: Set<import("../types").SocketId>;
2158
2098
  isCropping: boolean;
2159
2099
  croppingElementId: string | null;
2160
- searchMatches: readonly {
2161
- id: string;
2162
- focus: boolean;
2163
- matchedLines: {
2164
- offsetX: number;
2165
- offsetY: number;
2166
- width: number;
2167
- height: number;
2168
- }[];
2169
- }[];
2100
+ searchMatches: Readonly<{
2101
+ focusedId: string | null;
2102
+ matches: readonly import("../types").SearchMatch[];
2103
+ }> | null;
2170
2104
  };
2171
2105
  captureUpdate: "NEVER";
2172
2106
  };
@@ -2199,9 +2133,9 @@ export declare const actionToggleHandTool: {
2199
2133
  showWelcomeScreen: boolean;
2200
2134
  isLoading: boolean;
2201
2135
  myocSimplifiedMode: boolean;
2136
+ dontResizeLimitMBs: number;
2202
2137
  hideMainMenus: boolean;
2203
2138
  wheelZoomsOnDefault?: boolean | undefined;
2204
- dontResizeLimitMBs: number;
2205
2139
  arrangeConfiguration: {
2206
2140
  algorithm: "bin-packing";
2207
2141
  gap: number;
@@ -2213,7 +2147,7 @@ export declare const actionToggleHandTool: {
2213
2147
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2214
2148
  isBindingEnabled: boolean;
2215
2149
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2216
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2150
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2217
2151
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2218
2152
  frameRendering: {
2219
2153
  enabled: boolean;
@@ -2224,7 +2158,7 @@ export declare const actionToggleHandTool: {
2224
2158
  editingFrame: string | null;
2225
2159
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2226
2160
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2227
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2161
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2228
2162
  penMode: boolean;
2229
2163
  penDetected: boolean;
2230
2164
  exportBackground: boolean;
@@ -2257,7 +2191,7 @@ export declare const actionToggleHandTool: {
2257
2191
  zoom: Readonly<{
2258
2192
  value: import("../types").NormalizedZoomValue;
2259
2193
  }>;
2260
- openMenu: "shape" | "canvas" | null;
2194
+ openMenu: "canvas" | "shape" | null;
2261
2195
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2262
2196
  openSidebar: {
2263
2197
  name: string;
@@ -2334,8 +2268,8 @@ export declare const actionToggleHandTool: {
2334
2268
  data: import("../charts").Spreadsheet;
2335
2269
  };
2336
2270
  pendingImageElementId: string | null;
2337
- showHyperlinkPopup: false | "editor" | "info";
2338
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2271
+ showHyperlinkPopup: false | "info" | "editor";
2272
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2339
2273
  snapLines: readonly import("../snapping").SnapLine[];
2340
2274
  originSnapOffset: {
2341
2275
  x: number;
@@ -2346,20 +2280,14 @@ export declare const actionToggleHandTool: {
2346
2280
  followedBy: Set<import("../types").SocketId>;
2347
2281
  isCropping: boolean;
2348
2282
  croppingElementId: string | null;
2349
- searchMatches: readonly {
2350
- id: string;
2351
- focus: boolean;
2352
- matchedLines: {
2353
- offsetX: number;
2354
- offsetY: number;
2355
- width: number;
2356
- height: number;
2357
- }[];
2358
- }[];
2283
+ searchMatches: Readonly<{
2284
+ focusedId: string | null;
2285
+ matches: readonly import("../types").SearchMatch[];
2286
+ }> | null;
2359
2287
  };
2360
2288
  captureUpdate: "IMMEDIATELY";
2361
2289
  };
2362
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2290
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2363
2291
  } & {
2364
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2292
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2365
2293
  };