@myoc/excalidraw 0.18.16 → 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-3HLOFB5F.js → chunk-FQEIAL75.js} +14723 -9831
  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-QQGTICP4.js → chunk-XL2I4W52.js} +2 -2
  6. package/dist/dev/data/{image-XPEIZ6XQ.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 +3099 -6535
  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-7HNFGNL7.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 +27 -45
  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 +18 -30
  58. package/dist/types/excalidraw/actions/actionCanvas.d.ts +127 -199
  59. package/dist/types/excalidraw/actions/actionClipboard.d.ts +56 -92
  60. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +9 -15
  61. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +25 -43
  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 +9 -15
  65. package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -32
  66. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +9 -15
  67. package/dist/types/excalidraw/actions/actionExport.d.ts +175 -229
  68. package/dist/types/excalidraw/actions/actionFinalize.d.ts +16 -28
  69. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  70. package/dist/types/excalidraw/actions/actionFrame.d.ts +80 -104
  71. package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -36
  72. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  73. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -14
  74. package/dist/types/excalidraw/actions/actionLink.d.ts +9 -15
  75. package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -45
  76. package/dist/types/excalidraw/actions/actionNavigate.d.ts +17 -29
  77. package/dist/types/excalidraw/actions/actionProperties.d.ts +123 -213
  78. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +11 -17
  79. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  80. package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -19
  81. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -17
  82. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -17
  83. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +11 -198
  84. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  85. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -17
  86. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -17
  87. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +11 -17
  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 +30 -30
  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 +15 -6
  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 +4 -4
  144. package/dist/dev/chunk-3HLOFB5F.js.map +0 -7
  145. package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
  146. package/dist/prod/chunk-KKQVTSHB.js +0 -33
  147. package/dist/prod/data/image-QD7FUQED.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-QQGTICP4.js.map → chunk-XL2I4W52.js.map} +0 -0
  151. /package/dist/dev/data/{image-XPEIZ6XQ.js.map → image-WMF622SS.js.map} +0 -0
  152. /package/dist/dev/locales/{en-R455UJTM.js.map → en-UQFCZXHO.js.map} +0 -0
@@ -67,7 +67,7 @@ export declare const actionLinkToElement: {
67
67
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
68
68
  isBindingEnabled: boolean;
69
69
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
70
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
70
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
71
71
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
72
72
  frameRendering: {
73
73
  enabled: boolean;
@@ -78,7 +78,7 @@ export declare const actionLinkToElement: {
78
78
  editingFrame: string | null;
79
79
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
80
80
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
81
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
81
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
82
82
  activeTool: {
83
83
  lastActiveTool: import("../types").ActiveTool | null;
84
84
  locked: boolean;
@@ -116,7 +116,7 @@ export declare const actionLinkToElement: {
116
116
  zoom: Readonly<{
117
117
  value: import("../types").NormalizedZoomValue;
118
118
  }>;
119
- openMenu: "shape" | "canvas" | null;
119
+ openMenu: "canvas" | "shape" | null;
120
120
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
121
121
  openSidebar: {
122
122
  name: string;
@@ -188,8 +188,8 @@ export declare const actionLinkToElement: {
188
188
  data: import("../charts").Spreadsheet;
189
189
  };
190
190
  pendingImageElementId: string | null;
191
- showHyperlinkPopup: false | "editor" | "info";
192
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
191
+ showHyperlinkPopup: false | "info" | "editor";
192
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
193
193
  snapLines: readonly import("../snapping").SnapLine[];
194
194
  originSnapOffset: {
195
195
  x: number;
@@ -200,16 +200,10 @@ export declare const actionLinkToElement: {
200
200
  followedBy: Set<import("../types").SocketId>;
201
201
  isCropping: boolean;
202
202
  croppingElementId: string | null;
203
- searchMatches: readonly {
204
- id: string;
205
- focus: boolean;
206
- matchedLines: {
207
- offsetX: number;
208
- offsetY: number;
209
- width: number;
210
- height: number;
211
- }[];
212
- }[];
203
+ searchMatches: Readonly<{
204
+ focusedId: string | null;
205
+ matches: readonly import("../types").SearchMatch[];
206
+ }> | null;
213
207
  };
214
208
  captureUpdate: "IMMEDIATELY";
215
209
  elements?: undefined;
@@ -11,7 +11,7 @@ export declare const actionToggleElementLock: {
11
11
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
12
12
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
13
  appState: {
14
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
14
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
15
15
  contextMenu: {
16
16
  items: import("../components/ContextMenu").ContextMenuItems;
17
17
  top: number;
@@ -38,7 +38,7 @@ export declare const actionToggleElementLock: {
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 actionToggleElementLock: {
49
49
  editingFrame: string | null;
50
50
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<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 actionToggleElementLock: {
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,7 +170,7 @@ export declare const actionToggleElementLock: {
170
170
  data: import("../charts").Spreadsheet;
171
171
  };
172
172
  pendingImageElementId: string | null;
173
- showHyperlinkPopup: false | "editor" | "info";
173
+ showHyperlinkPopup: false | "info" | "editor";
174
174
  snapLines: readonly import("../snapping").SnapLine[];
175
175
  originSnapOffset: {
176
176
  x: number;
@@ -181,22 +181,16 @@ export declare const actionToggleElementLock: {
181
181
  followedBy: Set<import("../types").SocketId>;
182
182
  isCropping: boolean;
183
183
  croppingElementId: string | null;
184
- searchMatches: readonly {
185
- id: string;
186
- focus: boolean;
187
- matchedLines: {
188
- offsetX: number;
189
- offsetY: number;
190
- width: number;
191
- height: number;
192
- }[];
193
- }[];
184
+ searchMatches: Readonly<{
185
+ focusedId: string | null;
186
+ matches: readonly import("../types").SearchMatch[];
187
+ }> | null;
194
188
  };
195
189
  captureUpdate: "IMMEDIATELY";
196
190
  };
197
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
191
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
198
192
  } & {
199
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
193
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
200
194
  };
201
195
  export declare const actionUnlockAllElements: {
202
196
  name: "unlockAllElements";
@@ -238,7 +232,7 @@ export declare const actionUnlockAllElements: {
238
232
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
239
233
  isBindingEnabled: boolean;
240
234
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
241
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
235
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
242
236
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
243
237
  frameRendering: {
244
238
  enabled: boolean;
@@ -249,7 +243,7 @@ export declare const actionUnlockAllElements: {
249
243
  editingFrame: string | null;
250
244
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
251
245
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
252
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
246
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
253
247
  activeTool: {
254
248
  lastActiveTool: import("../types").ActiveTool | null;
255
249
  locked: boolean;
@@ -287,7 +281,7 @@ export declare const actionUnlockAllElements: {
287
281
  zoom: Readonly<{
288
282
  value: import("../types").NormalizedZoomValue;
289
283
  }>;
290
- openMenu: "shape" | "canvas" | null;
284
+ openMenu: "canvas" | "shape" | null;
291
285
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
292
286
  openSidebar: {
293
287
  name: string;
@@ -367,8 +361,8 @@ export declare const actionUnlockAllElements: {
367
361
  data: import("../charts").Spreadsheet;
368
362
  };
369
363
  pendingImageElementId: string | null;
370
- showHyperlinkPopup: false | "editor" | "info";
371
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
364
+ showHyperlinkPopup: false | "info" | "editor";
365
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
372
366
  snapLines: readonly import("../snapping").SnapLine[];
373
367
  originSnapOffset: {
374
368
  x: number;
@@ -379,16 +373,10 @@ export declare const actionUnlockAllElements: {
379
373
  followedBy: Set<import("../types").SocketId>;
380
374
  isCropping: boolean;
381
375
  croppingElementId: string | null;
382
- searchMatches: readonly {
383
- id: string;
384
- focus: boolean;
385
- matchedLines: {
386
- offsetX: number;
387
- offsetY: number;
388
- width: number;
389
- height: number;
390
- }[];
391
- }[];
376
+ searchMatches: Readonly<{
377
+ focusedId: string | null;
378
+ matches: readonly import("../types").SearchMatch[];
379
+ }> | null;
392
380
  };
393
381
  captureUpdate: "IMMEDIATELY";
394
382
  };
@@ -40,7 +40,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
40
40
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
41
  isBindingEnabled: boolean;
42
42
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
43
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
43
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
44
44
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
45
45
  frameRendering: {
46
46
  enabled: boolean;
@@ -51,7 +51,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
51
51
  editingFrame: string | null;
52
52
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
53
53
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
54
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
54
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
55
55
  penMode: boolean;
56
56
  penDetected: boolean;
57
57
  exportBackground: boolean;
@@ -84,7 +84,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
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 actionSetEmbeddableAsActiveTool: {
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 actionSetEmbeddableAsActiveTool: {
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
  captureUpdate: "EVENTUALLY";
194
188
  };