@zsviczian/excalidraw 0.18.0-5 → 0.18.0-51

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 (191) hide show
  1. package/dist/excalidraw.development.js +746 -504
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
  4. package/dist/styles.development.css +1080 -437
  5. package/dist/styles.production.css +26 -22
  6. package/package.json +14 -3
  7. package/types/common/src/commonObsidianUtils.d.ts +13 -0
  8. package/types/common/src/constants.d.ts +42 -18
  9. package/types/common/src/editorInterface.d.ts +35 -0
  10. package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  11. package/types/common/src/font-metadata.d.ts +4 -2
  12. package/types/common/src/index.d.ts +2 -0
  13. package/types/common/src/utility-types.d.ts +5 -0
  14. package/types/common/src/utils.d.ts +20 -5
  15. package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  16. package/types/element/src/align.d.ts +4 -3
  17. package/types/element/src/binding.d.ts +27 -17
  18. package/types/element/src/bounds.d.ts +14 -6
  19. package/types/element/src/collision.d.ts +18 -12
  20. package/types/element/src/cropElement.d.ts +1 -1
  21. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  22. package/types/element/src/distance.d.ts +2 -2
  23. package/types/element/src/distribute.d.ts +2 -1
  24. package/types/element/src/dragElements.d.ts +3 -2
  25. package/types/element/src/duplicate.d.ts +10 -13
  26. package/types/element/src/elbowArrow.d.ts +1 -1
  27. package/types/element/src/flowchart.d.ts +3 -2
  28. package/types/element/src/fractionalIndex.d.ts +9 -3
  29. package/types/element/src/frame.d.ts +5 -4
  30. package/types/element/src/groups.d.ts +1 -0
  31. package/types/element/src/index.d.ts +44 -2
  32. package/types/element/src/linearElementEditor.d.ts +23 -36
  33. package/types/element/src/mutateElement.d.ts +11 -3
  34. package/types/element/src/newElement.d.ts +6 -4
  35. package/types/element/src/positionElementsOnGrid.d.ts +2 -0
  36. package/types/element/src/renderElement.d.ts +4 -1
  37. package/types/element/src/resizeElements.d.ts +6 -5
  38. package/types/element/src/resizeTest.d.ts +5 -4
  39. package/types/element/src/selection.d.ts +11 -5
  40. package/types/element/src/shape.d.ts +42 -0
  41. package/types/element/src/sizeHelpers.d.ts +2 -2
  42. package/types/element/src/store.d.ts +237 -0
  43. package/types/element/src/textElement.d.ts +5 -3
  44. package/types/element/src/transformHandles.d.ts +5 -4
  45. package/types/element/src/typeChecks.d.ts +19 -1
  46. package/types/element/src/types.d.ts +25 -2
  47. package/types/element/src/utils.d.ts +16 -6
  48. package/types/element/src/zindex.d.ts +1 -1
  49. package/types/excalidraw/actions/actionAddToLibrary.d.ts +75 -54
  50. package/types/excalidraw/actions/actionBoundText.d.ts +50 -36
  51. package/types/excalidraw/actions/actionCanvas.d.ts +388 -282
  52. package/types/excalidraw/actions/actionClipboard.d.ts +151 -107
  53. package/types/excalidraw/actions/actionCropEditor.d.ts +25 -18
  54. package/types/excalidraw/actions/actionDeleteSelected.d.ts +77 -55
  55. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  56. package/types/excalidraw/actions/actionElementLink.d.ts +25 -18
  57. package/types/excalidraw/actions/actionElementLock.d.ts +65 -52
  58. package/types/excalidraw/actions/actionEmbeddable.d.ts +25 -18
  59. package/types/excalidraw/actions/actionExport.d.ts +237 -174
  60. package/types/excalidraw/actions/actionFinalize.d.ts +307 -43
  61. package/types/excalidraw/actions/actionFrame.d.ts +157 -120
  62. package/types/excalidraw/actions/actionGroup.d.ts +50 -36
  63. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  64. package/types/excalidraw/actions/actionLinearEditor.d.ts +563 -20
  65. package/types/excalidraw/actions/actionLink.d.ts +23 -16
  66. package/types/excalidraw/actions/actionMenu.d.ts +25 -456
  67. package/types/excalidraw/actions/actionNavigate.d.ts +49 -35
  68. package/types/excalidraw/actions/actionProperties.d.ts +629 -273
  69. package/types/excalidraw/actions/actionSelectAll.d.ts +25 -18
  70. package/types/excalidraw/actions/actionStyles.d.ts +25 -18
  71. package/types/excalidraw/actions/actionToggleGridMode.d.ts +25 -18
  72. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +25 -18
  73. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -223
  74. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  75. package/types/excalidraw/actions/actionToggleStats.d.ts +25 -18
  76. package/types/excalidraw/actions/actionToggleViewMode.d.ts +25 -18
  77. package/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -19
  78. package/types/excalidraw/actions/actionTrayMenu.d.ts +226 -0
  79. package/types/excalidraw/actions/index.d.ts +4 -2
  80. package/types/excalidraw/actions/types.d.ts +4 -3
  81. package/types/excalidraw/appState.d.ts +24 -10
  82. package/types/excalidraw/clipboard.d.ts +68 -5
  83. package/types/excalidraw/components/Actions.d.ts +20 -7
  84. package/types/excalidraw/components/App.d.ts +63 -38
  85. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  86. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  87. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  88. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  89. package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  90. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  91. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  92. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  93. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  94. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  95. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  96. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  97. package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  98. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  99. package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  100. package/types/excalidraw/components/FilledButton.d.ts +1 -1
  101. package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
  102. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  103. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  104. package/types/excalidraw/components/HintViewer.d.ts +4 -3
  105. package/types/excalidraw/components/InlineIcon.d.ts +3 -1
  106. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  107. package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  108. package/types/excalidraw/components/LinkButton.d.ts +4 -0
  109. package/types/excalidraw/components/MobileMenu.d.ts +4 -5
  110. package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  111. package/types/excalidraw/components/Popover.d.ts +2 -1
  112. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  113. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  114. package/types/excalidraw/components/Range.d.ts +3 -3
  115. package/types/excalidraw/components/Section.d.ts +1 -0
  116. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  117. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  118. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  119. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  120. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  121. package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  122. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  123. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  124. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  125. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  126. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  127. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  128. package/types/excalidraw/components/Stats/utils.d.ts +4 -11
  129. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  130. package/types/excalidraw/components/TextField.d.ts +1 -0
  131. package/types/excalidraw/components/ToolPopover.d.ts +25 -0
  132. package/types/excalidraw/components/TrayMenu.d.ts +26 -0
  133. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  134. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  135. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  136. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  137. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  138. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  139. package/types/excalidraw/components/icons.d.ts +17 -0
  140. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
  141. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  142. package/types/excalidraw/components/shapes.d.ts +115 -5
  143. package/types/excalidraw/data/blob.d.ts +3 -7
  144. package/types/excalidraw/data/reconcile.d.ts +1 -0
  145. package/types/excalidraw/data/restore.d.ts +6 -1
  146. package/types/excalidraw/data/transform.d.ts +1 -1
  147. package/types/excalidraw/data/types.d.ts +4 -1
  148. package/types/excalidraw/editor-jotai.d.ts +6 -6
  149. package/types/excalidraw/eraser/index.d.ts +12 -0
  150. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  151. package/types/excalidraw/history.d.ts +30 -22
  152. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  153. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  154. package/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  155. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  156. package/types/excalidraw/index.d.ts +15 -14
  157. package/types/excalidraw/lasso/index.d.ts +1 -0
  158. package/types/excalidraw/lasso/utils.d.ts +3 -3
  159. package/types/excalidraw/obsidianUtils.d.ts +22 -4
  160. package/types/excalidraw/renderer/helpers.d.ts +7 -2
  161. package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  162. package/types/excalidraw/renderer/staticScene.d.ts +4 -1
  163. package/types/excalidraw/scene/Renderer.d.ts +1 -2
  164. package/types/excalidraw/scene/index.d.ts +2 -2
  165. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  166. package/types/excalidraw/scene/types.d.ts +5 -3
  167. package/types/excalidraw/shortcut.d.ts +1 -0
  168. package/types/excalidraw/snapping.d.ts +2 -2
  169. package/types/excalidraw/types.d.ts +68 -30
  170. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  171. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  172. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  173. package/types/math/src/angle.d.ts +2 -0
  174. package/types/math/src/constants.d.ts +3 -0
  175. package/types/math/src/curve.d.ts +34 -0
  176. package/types/math/src/index.d.ts +1 -0
  177. package/types/math/src/point.d.ts +1 -1
  178. package/types/math/src/rectangle.d.ts +2 -0
  179. package/types/math/src/segment.d.ts +1 -0
  180. package/types/math/src/types.d.ts +1 -0
  181. package/types/math/src/vector.d.ts +8 -2
  182. package/types/utils/src/bbox.d.ts +1 -1
  183. package/types/utils/src/index.d.ts +1 -1
  184. package/types/utils/src/withinBounds.d.ts +1 -1
  185. package/types/element/src/Shape.d.ts +0 -17
  186. package/types/element/src/ShapeCache.d.ts +0 -25
  187. package/types/element/src/shapes.d.ts +0 -23
  188. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  189. package/types/excalidraw/store.d.ts +0 -129
  190. package/types/excalidraw/visualdebug.d.ts +0 -41
  191. package/types/utils/src/collision.d.ts +0 -8
@@ -25,23 +25,28 @@ export declare const actionChangeProjectName: {
25
25
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
26
  isBindingEnabled: boolean;
27
27
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
28
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
29
29
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
30
  frameRendering: {
31
31
  enabled: boolean;
32
32
  name: boolean;
33
33
  outline: boolean;
34
34
  clip: boolean;
35
+ markerName: boolean;
36
+ markerEnabled: boolean;
35
37
  };
36
38
  editingFrame: string | null;
37
39
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
40
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
40
41
  activeTool: {
41
42
  lastActiveTool: import("../types").ActiveTool | null;
42
43
  locked: boolean;
43
44
  fromSelection: boolean;
44
45
  } & import("../types").ActiveTool;
46
+ preferredSelectionTool: {
47
+ type: "selection" | "lasso";
48
+ initialized: boolean;
49
+ };
45
50
  penMode: boolean;
46
51
  penDetected: boolean;
47
52
  exportBackground: boolean;
@@ -63,6 +68,7 @@ export declare const actionChangeProjectName: {
63
68
  currentHoveredFontFamily: number | null;
64
69
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
65
70
  currentItemArrowType: "round" | "sharp" | "elbow";
71
+ currentItemFrameRole: ("marker" | null) | undefined;
66
72
  viewBackgroundColor: string;
67
73
  scrollX: number;
68
74
  scrollY: number;
@@ -73,8 +79,8 @@ export declare const actionChangeProjectName: {
73
79
  zoom: Readonly<{
74
80
  value: import("../types").NormalizedZoomValue;
75
81
  }>;
76
- openMenu: "shape" | "canvas" | null;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
+ openMenu: "canvas" | "shape" | null;
83
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
78
84
  openSidebar: {
79
85
  name: string;
80
86
  tab?: string | undefined;
@@ -155,10 +161,8 @@ export declare const actionChangeProjectName: {
155
161
  shown: true;
156
162
  data: import("../charts").Spreadsheet;
157
163
  };
158
- pendingImageElementId: string | null;
159
- showHyperlinkPopup: false | "editor" | "info";
164
+ showHyperlinkPopup: false | "info" | "editor";
160
165
  linkOpacity: number;
161
- trayModeEnabled: boolean;
162
166
  colorPalette?: {
163
167
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
164
168
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -171,6 +175,7 @@ export declare const actionChangeProjectName: {
171
175
  } | undefined;
172
176
  allowWheelZoom?: boolean | undefined;
173
177
  allowPinchZoom?: boolean | undefined;
178
+ disableContextMenu: boolean;
174
179
  pinnedScripts?: string[] | undefined;
175
180
  customPens?: any[] | undefined;
176
181
  currentStrokeOptions?: any;
@@ -179,6 +184,10 @@ export declare const actionChangeProjectName: {
179
184
  Bold: string;
180
185
  Regular: string;
181
186
  };
187
+ gridDirection: {
188
+ horizontal: boolean;
189
+ vertical: boolean;
190
+ };
182
191
  highlightSearchResult: boolean;
183
192
  dynamicStyle: {
184
193
  [x: string]: string;
@@ -189,7 +198,7 @@ export declare const actionChangeProjectName: {
189
198
  nameColor: string;
190
199
  };
191
200
  invertBindingBehaviour: boolean;
192
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
201
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
193
202
  snapLines: readonly import("../snapping").SnapLine[];
194
203
  originSnapOffset: {
195
204
  x: number;
@@ -200,16 +209,14 @@ export declare const actionChangeProjectName: {
200
209
  followedBy: Set<import("../types").SocketId>;
201
210
  isCropping: boolean;
202
211
  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
- }[];
212
+ searchMatches: Readonly<{
213
+ focusedId: string | null;
214
+ matches: readonly import("../types").SearchMatch[];
215
+ }> | null;
216
+ activeLockedId: string | null;
217
+ lockedMultiSelections: {
218
+ [groupId: string]: true;
219
+ };
213
220
  };
214
221
  captureUpdate: "EVENTUALLY";
215
222
  };
@@ -245,23 +252,28 @@ export declare const actionChangeExportScale: {
245
252
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
246
253
  isBindingEnabled: boolean;
247
254
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
248
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
255
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
249
256
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
250
257
  frameRendering: {
251
258
  enabled: boolean;
252
259
  name: boolean;
253
260
  outline: boolean;
254
261
  clip: boolean;
262
+ markerName: boolean;
263
+ markerEnabled: boolean;
255
264
  };
256
265
  editingFrame: string | null;
257
266
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
258
267
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
259
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
260
268
  activeTool: {
261
269
  lastActiveTool: import("../types").ActiveTool | null;
262
270
  locked: boolean;
263
271
  fromSelection: boolean;
264
272
  } & import("../types").ActiveTool;
273
+ preferredSelectionTool: {
274
+ type: "selection" | "lasso";
275
+ initialized: boolean;
276
+ };
265
277
  penMode: boolean;
266
278
  penDetected: boolean;
267
279
  exportBackground: boolean;
@@ -282,6 +294,7 @@ export declare const actionChangeExportScale: {
282
294
  currentHoveredFontFamily: number | null;
283
295
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
284
296
  currentItemArrowType: "round" | "sharp" | "elbow";
297
+ currentItemFrameRole: ("marker" | null) | undefined;
285
298
  viewBackgroundColor: string;
286
299
  scrollX: number;
287
300
  scrollY: number;
@@ -293,8 +306,8 @@ export declare const actionChangeExportScale: {
293
306
  zoom: Readonly<{
294
307
  value: import("../types").NormalizedZoomValue;
295
308
  }>;
296
- openMenu: "shape" | "canvas" | null;
297
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
309
+ openMenu: "canvas" | "shape" | null;
310
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
298
311
  openSidebar: {
299
312
  name: string;
300
313
  tab?: string | undefined;
@@ -375,10 +388,8 @@ export declare const actionChangeExportScale: {
375
388
  shown: true;
376
389
  data: import("../charts").Spreadsheet;
377
390
  };
378
- pendingImageElementId: string | null;
379
- showHyperlinkPopup: false | "editor" | "info";
391
+ showHyperlinkPopup: false | "info" | "editor";
380
392
  linkOpacity: number;
381
- trayModeEnabled: boolean;
382
393
  colorPalette?: {
383
394
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
384
395
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -391,6 +402,7 @@ export declare const actionChangeExportScale: {
391
402
  } | undefined;
392
403
  allowWheelZoom?: boolean | undefined;
393
404
  allowPinchZoom?: boolean | undefined;
405
+ disableContextMenu: boolean;
394
406
  pinnedScripts?: string[] | undefined;
395
407
  customPens?: any[] | undefined;
396
408
  currentStrokeOptions?: any;
@@ -399,6 +411,10 @@ export declare const actionChangeExportScale: {
399
411
  Bold: string;
400
412
  Regular: string;
401
413
  };
414
+ gridDirection: {
415
+ horizontal: boolean;
416
+ vertical: boolean;
417
+ };
402
418
  highlightSearchResult: boolean;
403
419
  dynamicStyle: {
404
420
  [x: string]: string;
@@ -409,7 +425,7 @@ export declare const actionChangeExportScale: {
409
425
  nameColor: string;
410
426
  };
411
427
  invertBindingBehaviour: boolean;
412
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
428
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
413
429
  snapLines: readonly import("../snapping").SnapLine[];
414
430
  originSnapOffset: {
415
431
  x: number;
@@ -420,16 +436,14 @@ export declare const actionChangeExportScale: {
420
436
  followedBy: Set<import("../types").SocketId>;
421
437
  isCropping: boolean;
422
438
  croppingElementId: string | null;
423
- searchMatches: readonly {
424
- id: string;
425
- focus: boolean;
426
- matchedLines: {
427
- offsetX: number;
428
- offsetY: number;
429
- width: number;
430
- height: number;
431
- }[];
432
- }[];
439
+ searchMatches: Readonly<{
440
+ focusedId: string | null;
441
+ matches: readonly import("../types").SearchMatch[];
442
+ }> | null;
443
+ activeLockedId: string | null;
444
+ lockedMultiSelections: {
445
+ [groupId: string]: true;
446
+ };
433
447
  };
434
448
  captureUpdate: "EVENTUALLY";
435
449
  };
@@ -465,23 +479,28 @@ export declare const actionChangeExportBackground: {
465
479
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
466
480
  isBindingEnabled: boolean;
467
481
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
468
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
482
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
469
483
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
470
484
  frameRendering: {
471
485
  enabled: boolean;
472
486
  name: boolean;
473
487
  outline: boolean;
474
488
  clip: boolean;
489
+ markerName: boolean;
490
+ markerEnabled: boolean;
475
491
  };
476
492
  editingFrame: string | null;
477
493
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
478
494
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
479
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
480
495
  activeTool: {
481
496
  lastActiveTool: import("../types").ActiveTool | null;
482
497
  locked: boolean;
483
498
  fromSelection: boolean;
484
499
  } & import("../types").ActiveTool;
500
+ preferredSelectionTool: {
501
+ type: "selection" | "lasso";
502
+ initialized: boolean;
503
+ };
485
504
  penMode: boolean;
486
505
  penDetected: boolean;
487
506
  exportEmbedScene: boolean;
@@ -502,6 +521,7 @@ export declare const actionChangeExportBackground: {
502
521
  currentHoveredFontFamily: number | null;
503
522
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
504
523
  currentItemArrowType: "round" | "sharp" | "elbow";
524
+ currentItemFrameRole: ("marker" | null) | undefined;
505
525
  viewBackgroundColor: string;
506
526
  scrollX: number;
507
527
  scrollY: number;
@@ -513,8 +533,8 @@ export declare const actionChangeExportBackground: {
513
533
  zoom: Readonly<{
514
534
  value: import("../types").NormalizedZoomValue;
515
535
  }>;
516
- openMenu: "shape" | "canvas" | null;
517
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
536
+ openMenu: "canvas" | "shape" | null;
537
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
518
538
  openSidebar: {
519
539
  name: string;
520
540
  tab?: string | undefined;
@@ -595,10 +615,8 @@ export declare const actionChangeExportBackground: {
595
615
  shown: true;
596
616
  data: import("../charts").Spreadsheet;
597
617
  };
598
- pendingImageElementId: string | null;
599
- showHyperlinkPopup: false | "editor" | "info";
618
+ showHyperlinkPopup: false | "info" | "editor";
600
619
  linkOpacity: number;
601
- trayModeEnabled: boolean;
602
620
  colorPalette?: {
603
621
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
604
622
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -611,6 +629,7 @@ export declare const actionChangeExportBackground: {
611
629
  } | undefined;
612
630
  allowWheelZoom?: boolean | undefined;
613
631
  allowPinchZoom?: boolean | undefined;
632
+ disableContextMenu: boolean;
614
633
  pinnedScripts?: string[] | undefined;
615
634
  customPens?: any[] | undefined;
616
635
  currentStrokeOptions?: any;
@@ -619,6 +638,10 @@ export declare const actionChangeExportBackground: {
619
638
  Bold: string;
620
639
  Regular: string;
621
640
  };
641
+ gridDirection: {
642
+ horizontal: boolean;
643
+ vertical: boolean;
644
+ };
622
645
  highlightSearchResult: boolean;
623
646
  dynamicStyle: {
624
647
  [x: string]: string;
@@ -629,7 +652,7 @@ export declare const actionChangeExportBackground: {
629
652
  nameColor: string;
630
653
  };
631
654
  invertBindingBehaviour: boolean;
632
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
655
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
633
656
  snapLines: readonly import("../snapping").SnapLine[];
634
657
  originSnapOffset: {
635
658
  x: number;
@@ -640,16 +663,14 @@ export declare const actionChangeExportBackground: {
640
663
  followedBy: Set<import("../types").SocketId>;
641
664
  isCropping: boolean;
642
665
  croppingElementId: string | null;
643
- searchMatches: readonly {
644
- id: string;
645
- focus: boolean;
646
- matchedLines: {
647
- offsetX: number;
648
- offsetY: number;
649
- width: number;
650
- height: number;
651
- }[];
652
- }[];
666
+ searchMatches: Readonly<{
667
+ focusedId: string | null;
668
+ matches: readonly import("../types").SearchMatch[];
669
+ }> | null;
670
+ activeLockedId: string | null;
671
+ lockedMultiSelections: {
672
+ [groupId: string]: true;
673
+ };
653
674
  };
654
675
  captureUpdate: "EVENTUALLY";
655
676
  };
@@ -685,23 +706,28 @@ export declare const actionChangeExportEmbedScene: {
685
706
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
686
707
  isBindingEnabled: boolean;
687
708
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
688
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
709
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
689
710
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
690
711
  frameRendering: {
691
712
  enabled: boolean;
692
713
  name: boolean;
693
714
  outline: boolean;
694
715
  clip: boolean;
716
+ markerName: boolean;
717
+ markerEnabled: boolean;
695
718
  };
696
719
  editingFrame: string | null;
697
720
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
698
721
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
699
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
700
722
  activeTool: {
701
723
  lastActiveTool: import("../types").ActiveTool | null;
702
724
  locked: boolean;
703
725
  fromSelection: boolean;
704
726
  } & import("../types").ActiveTool;
727
+ preferredSelectionTool: {
728
+ type: "selection" | "lasso";
729
+ initialized: boolean;
730
+ };
705
731
  penMode: boolean;
706
732
  penDetected: boolean;
707
733
  exportBackground: boolean;
@@ -722,6 +748,7 @@ export declare const actionChangeExportEmbedScene: {
722
748
  currentHoveredFontFamily: number | null;
723
749
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
724
750
  currentItemArrowType: "round" | "sharp" | "elbow";
751
+ currentItemFrameRole: ("marker" | null) | undefined;
725
752
  viewBackgroundColor: string;
726
753
  scrollX: number;
727
754
  scrollY: number;
@@ -733,8 +760,8 @@ export declare const actionChangeExportEmbedScene: {
733
760
  zoom: Readonly<{
734
761
  value: import("../types").NormalizedZoomValue;
735
762
  }>;
736
- openMenu: "shape" | "canvas" | null;
737
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
763
+ openMenu: "canvas" | "shape" | null;
764
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
738
765
  openSidebar: {
739
766
  name: string;
740
767
  tab?: string | undefined;
@@ -815,10 +842,8 @@ export declare const actionChangeExportEmbedScene: {
815
842
  shown: true;
816
843
  data: import("../charts").Spreadsheet;
817
844
  };
818
- pendingImageElementId: string | null;
819
- showHyperlinkPopup: false | "editor" | "info";
845
+ showHyperlinkPopup: false | "info" | "editor";
820
846
  linkOpacity: number;
821
- trayModeEnabled: boolean;
822
847
  colorPalette?: {
823
848
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
824
849
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -831,6 +856,7 @@ export declare const actionChangeExportEmbedScene: {
831
856
  } | undefined;
832
857
  allowWheelZoom?: boolean | undefined;
833
858
  allowPinchZoom?: boolean | undefined;
859
+ disableContextMenu: boolean;
834
860
  pinnedScripts?: string[] | undefined;
835
861
  customPens?: any[] | undefined;
836
862
  currentStrokeOptions?: any;
@@ -839,6 +865,10 @@ export declare const actionChangeExportEmbedScene: {
839
865
  Bold: string;
840
866
  Regular: string;
841
867
  };
868
+ gridDirection: {
869
+ horizontal: boolean;
870
+ vertical: boolean;
871
+ };
842
872
  highlightSearchResult: boolean;
843
873
  dynamicStyle: {
844
874
  [x: string]: string;
@@ -849,7 +879,7 @@ export declare const actionChangeExportEmbedScene: {
849
879
  nameColor: string;
850
880
  };
851
881
  invertBindingBehaviour: boolean;
852
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
882
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
853
883
  snapLines: readonly import("../snapping").SnapLine[];
854
884
  originSnapOffset: {
855
885
  x: number;
@@ -860,16 +890,14 @@ export declare const actionChangeExportEmbedScene: {
860
890
  followedBy: Set<import("../types").SocketId>;
861
891
  isCropping: boolean;
862
892
  croppingElementId: string | null;
863
- searchMatches: readonly {
864
- id: string;
865
- focus: boolean;
866
- matchedLines: {
867
- offsetX: number;
868
- offsetY: number;
869
- width: number;
870
- height: number;
871
- }[];
872
- }[];
893
+ searchMatches: Readonly<{
894
+ focusedId: string | null;
895
+ matches: readonly import("../types").SearchMatch[];
896
+ }> | null;
897
+ activeLockedId: string | null;
898
+ lockedMultiSelections: {
899
+ [groupId: string]: true;
900
+ };
873
901
  };
874
902
  captureUpdate: "EVENTUALLY";
875
903
  };
@@ -910,23 +938,28 @@ export declare const actionSaveToActiveFile: {
910
938
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
911
939
  isBindingEnabled: boolean;
912
940
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
913
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
941
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
914
942
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
915
943
  frameRendering: {
916
944
  enabled: boolean;
917
945
  name: boolean;
918
946
  outline: boolean;
919
947
  clip: boolean;
948
+ markerName: boolean;
949
+ markerEnabled: boolean;
920
950
  };
921
951
  editingFrame: string | null;
922
952
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
923
953
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
924
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
925
954
  activeTool: {
926
955
  lastActiveTool: import("../types").ActiveTool | null;
927
956
  locked: boolean;
928
957
  fromSelection: boolean;
929
958
  } & import("../types").ActiveTool;
959
+ preferredSelectionTool: {
960
+ type: "selection" | "lasso";
961
+ initialized: boolean;
962
+ };
930
963
  penMode: boolean;
931
964
  penDetected: boolean;
932
965
  exportBackground: boolean;
@@ -948,6 +981,7 @@ export declare const actionSaveToActiveFile: {
948
981
  currentHoveredFontFamily: number | null;
949
982
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
950
983
  currentItemArrowType: "round" | "sharp" | "elbow";
984
+ currentItemFrameRole: ("marker" | null) | undefined;
951
985
  viewBackgroundColor: string;
952
986
  scrollX: number;
953
987
  scrollY: number;
@@ -959,8 +993,8 @@ export declare const actionSaveToActiveFile: {
959
993
  zoom: Readonly<{
960
994
  value: import("../types").NormalizedZoomValue;
961
995
  }>;
962
- openMenu: "shape" | "canvas" | null;
963
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
996
+ openMenu: "canvas" | "shape" | null;
997
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
964
998
  openSidebar: {
965
999
  name: string;
966
1000
  tab?: string | undefined;
@@ -1035,10 +1069,8 @@ export declare const actionSaveToActiveFile: {
1035
1069
  shown: true;
1036
1070
  data: import("../charts").Spreadsheet;
1037
1071
  };
1038
- pendingImageElementId: string | null;
1039
- showHyperlinkPopup: false | "editor" | "info";
1072
+ showHyperlinkPopup: false | "info" | "editor";
1040
1073
  linkOpacity: number;
1041
- trayModeEnabled: boolean;
1042
1074
  colorPalette?: {
1043
1075
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1044
1076
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1051,6 +1083,7 @@ export declare const actionSaveToActiveFile: {
1051
1083
  } | undefined;
1052
1084
  allowWheelZoom?: boolean | undefined;
1053
1085
  allowPinchZoom?: boolean | undefined;
1086
+ disableContextMenu: boolean;
1054
1087
  pinnedScripts?: string[] | undefined;
1055
1088
  customPens?: any[] | undefined;
1056
1089
  currentStrokeOptions?: any;
@@ -1059,6 +1092,10 @@ export declare const actionSaveToActiveFile: {
1059
1092
  Bold: string;
1060
1093
  Regular: string;
1061
1094
  };
1095
+ gridDirection: {
1096
+ horizontal: boolean;
1097
+ vertical: boolean;
1098
+ };
1062
1099
  highlightSearchResult: boolean;
1063
1100
  dynamicStyle: {
1064
1101
  [x: string]: string;
@@ -1069,7 +1106,7 @@ export declare const actionSaveToActiveFile: {
1069
1106
  nameColor: string;
1070
1107
  };
1071
1108
  invertBindingBehaviour: boolean;
1072
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1109
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1073
1110
  snapLines: readonly import("../snapping").SnapLine[];
1074
1111
  originSnapOffset: {
1075
1112
  x: number;
@@ -1080,16 +1117,14 @@ export declare const actionSaveToActiveFile: {
1080
1117
  followedBy: Set<import("../types").SocketId>;
1081
1118
  isCropping: boolean;
1082
1119
  croppingElementId: string | null;
1083
- searchMatches: readonly {
1084
- id: string;
1085
- focus: boolean;
1086
- matchedLines: {
1087
- offsetX: number;
1088
- offsetY: number;
1089
- width: number;
1090
- height: number;
1091
- }[];
1092
- }[];
1120
+ searchMatches: Readonly<{
1121
+ focusedId: string | null;
1122
+ matches: readonly import("../types").SearchMatch[];
1123
+ }> | null;
1124
+ activeLockedId: string | null;
1125
+ lockedMultiSelections: {
1126
+ [groupId: string]: true;
1127
+ };
1093
1128
  };
1094
1129
  } | {
1095
1130
  captureUpdate: "EVENTUALLY";
@@ -1133,23 +1168,28 @@ export declare const actionSaveFileToDisk: {
1133
1168
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1134
1169
  isBindingEnabled: boolean;
1135
1170
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1136
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1171
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1137
1172
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1138
1173
  frameRendering: {
1139
1174
  enabled: boolean;
1140
1175
  name: boolean;
1141
1176
  outline: boolean;
1142
1177
  clip: boolean;
1178
+ markerName: boolean;
1179
+ markerEnabled: boolean;
1143
1180
  };
1144
1181
  editingFrame: string | null;
1145
1182
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1146
1183
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1147
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1148
1184
  activeTool: {
1149
1185
  lastActiveTool: import("../types").ActiveTool | null;
1150
1186
  locked: boolean;
1151
1187
  fromSelection: boolean;
1152
1188
  } & import("../types").ActiveTool;
1189
+ preferredSelectionTool: {
1190
+ type: "selection" | "lasso";
1191
+ initialized: boolean;
1192
+ };
1153
1193
  penMode: boolean;
1154
1194
  penDetected: boolean;
1155
1195
  exportBackground: boolean;
@@ -1171,6 +1211,7 @@ export declare const actionSaveFileToDisk: {
1171
1211
  currentHoveredFontFamily: number | null;
1172
1212
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1173
1213
  currentItemArrowType: "round" | "sharp" | "elbow";
1214
+ currentItemFrameRole: ("marker" | null) | undefined;
1174
1215
  viewBackgroundColor: string;
1175
1216
  scrollX: number;
1176
1217
  scrollY: number;
@@ -1182,8 +1223,8 @@ export declare const actionSaveFileToDisk: {
1182
1223
  zoom: Readonly<{
1183
1224
  value: import("../types").NormalizedZoomValue;
1184
1225
  }>;
1185
- openMenu: "shape" | "canvas" | null;
1186
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1226
+ openMenu: "canvas" | "shape" | null;
1227
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1187
1228
  openSidebar: {
1188
1229
  name: string;
1189
1230
  tab?: string | undefined;
@@ -1247,10 +1288,8 @@ export declare const actionSaveFileToDisk: {
1247
1288
  shown: true;
1248
1289
  data: import("../charts").Spreadsheet;
1249
1290
  };
1250
- pendingImageElementId: string | null;
1251
- showHyperlinkPopup: false | "editor" | "info";
1291
+ showHyperlinkPopup: false | "info" | "editor";
1252
1292
  linkOpacity: number;
1253
- trayModeEnabled: boolean;
1254
1293
  colorPalette?: {
1255
1294
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1256
1295
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1263,6 +1302,7 @@ export declare const actionSaveFileToDisk: {
1263
1302
  } | undefined;
1264
1303
  allowWheelZoom?: boolean | undefined;
1265
1304
  allowPinchZoom?: boolean | undefined;
1305
+ disableContextMenu: boolean;
1266
1306
  pinnedScripts?: string[] | undefined;
1267
1307
  customPens?: any[] | undefined;
1268
1308
  currentStrokeOptions?: any;
@@ -1271,6 +1311,10 @@ export declare const actionSaveFileToDisk: {
1271
1311
  Bold: string;
1272
1312
  Regular: string;
1273
1313
  };
1314
+ gridDirection: {
1315
+ horizontal: boolean;
1316
+ vertical: boolean;
1317
+ };
1274
1318
  highlightSearchResult: boolean;
1275
1319
  dynamicStyle: {
1276
1320
  [x: string]: string;
@@ -1281,7 +1325,7 @@ export declare const actionSaveFileToDisk: {
1281
1325
  nameColor: string;
1282
1326
  };
1283
1327
  invertBindingBehaviour: boolean;
1284
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1328
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1285
1329
  snapLines: readonly import("../snapping").SnapLine[];
1286
1330
  originSnapOffset: {
1287
1331
  x: number;
@@ -1292,16 +1336,14 @@ export declare const actionSaveFileToDisk: {
1292
1336
  followedBy: Set<import("../types").SocketId>;
1293
1337
  isCropping: boolean;
1294
1338
  croppingElementId: string | null;
1295
- searchMatches: readonly {
1296
- id: string;
1297
- focus: boolean;
1298
- matchedLines: {
1299
- offsetX: number;
1300
- offsetY: number;
1301
- width: number;
1302
- height: number;
1303
- }[];
1304
- }[];
1339
+ searchMatches: Readonly<{
1340
+ focusedId: string | null;
1341
+ matches: readonly import("../types").SearchMatch[];
1342
+ }> | null;
1343
+ activeLockedId: string | null;
1344
+ lockedMultiSelections: {
1345
+ [groupId: string]: true;
1346
+ };
1305
1347
  };
1306
1348
  } | {
1307
1349
  captureUpdate: "EVENTUALLY";
@@ -1328,6 +1370,8 @@ export declare const actionLoadScene: {
1328
1370
  name: boolean;
1329
1371
  outline: boolean;
1330
1372
  clip: boolean;
1373
+ markerName: boolean;
1374
+ markerEnabled: boolean;
1331
1375
  };
1332
1376
  frameColor: {
1333
1377
  stroke: string;
@@ -1358,20 +1402,18 @@ export declare const actionLoadScene: {
1358
1402
  }>;
1359
1403
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1360
1404
  theme: Theme;
1361
- pendingImageElementId: string | null;
1362
1405
  activeEmbeddable: {
1363
1406
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1364
1407
  state: "active" | "hover";
1365
1408
  } | null;
1366
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1367
1409
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1368
1410
  selectedGroupIds: {
1369
1411
  [groupId: string]: boolean;
1370
1412
  };
1371
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1413
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1372
1414
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1373
1415
  isBindingEnabled: boolean;
1374
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1416
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1375
1417
  isRotating: boolean;
1376
1418
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1377
1419
  collaborators: Map<import("../types").SocketId, Readonly<{
@@ -1401,31 +1443,18 @@ export declare const actionLoadScene: {
1401
1443
  Bold: string;
1402
1444
  Regular: string;
1403
1445
  };
1446
+ gridDirection: {
1447
+ horizontal: boolean;
1448
+ vertical: boolean;
1449
+ };
1404
1450
  highlightSearchResult: boolean;
1405
1451
  isCropping: boolean;
1406
1452
  croppingElementId: string | null;
1407
- searchMatches: readonly {
1408
- id: string;
1409
- focus: boolean;
1410
- matchedLines: {
1411
- offsetX: number;
1412
- offsetY: number;
1413
- width: number;
1414
- height: number;
1415
- }[];
1416
- }[];
1417
- gridModeEnabled: boolean;
1418
- objectsSnapModeEnabled: boolean;
1419
- shouldCacheIgnoreZoom: boolean;
1420
- exportScale: number;
1421
- selectedElementsAreBeingDragged: boolean;
1422
- gridSize: number;
1423
- gridStep: number;
1424
- linkOpacity: number;
1425
- currentHoveredFontFamily: number | null;
1426
- hoveredElementIds: Readonly<{
1427
- [id: string]: true;
1428
- }>;
1453
+ searchMatches: Readonly<{
1454
+ focusedId: string | null;
1455
+ matches: readonly import("../types").SearchMatch[];
1456
+ }> | null;
1457
+ activeLockedId: string | null;
1429
1458
  contextMenu: {
1430
1459
  items: import("../components/ContextMenu").ContextMenuItems;
1431
1460
  top: number;
@@ -1443,11 +1472,16 @@ export declare const actionLoadScene: {
1443
1472
  locked: boolean;
1444
1473
  fromSelection: boolean;
1445
1474
  } & import("../types").ActiveTool;
1475
+ preferredSelectionTool: {
1476
+ type: "selection" | "lasso";
1477
+ initialized: boolean;
1478
+ };
1446
1479
  penMode: boolean;
1447
1480
  penDetected: boolean;
1448
1481
  exportBackground: boolean;
1449
1482
  exportEmbedScene: boolean;
1450
1483
  exportWithDarkMode: boolean;
1484
+ exportScale: number;
1451
1485
  currentItemStrokeColor: string;
1452
1486
  currentItemBackgroundColor: string;
1453
1487
  currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
@@ -1460,27 +1494,37 @@ export declare const actionLoadScene: {
1460
1494
  currentItemTextAlign: string;
1461
1495
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1462
1496
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1497
+ currentHoveredFontFamily: number | null;
1463
1498
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1464
1499
  currentItemArrowType: "round" | "sharp" | "elbow";
1500
+ currentItemFrameRole: ("marker" | null) | undefined;
1465
1501
  cursorButton: "up" | "down";
1466
1502
  scrolledOutside: boolean;
1467
1503
  isResizing: boolean;
1468
- openMenu: "shape" | "canvas" | null;
1469
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1504
+ openMenu: "canvas" | "shape" | null;
1505
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1470
1506
  openSidebar: {
1471
1507
  name: string;
1472
1508
  tab?: string | undefined;
1473
1509
  } | null;
1474
1510
  defaultSidebarDockedPreference: boolean;
1475
1511
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1512
+ hoveredElementIds: Readonly<{
1513
+ [id: string]: true;
1514
+ }>;
1476
1515
  previousSelectedElementIds: {
1477
1516
  [id: string]: true;
1478
1517
  };
1518
+ selectedElementsAreBeingDragged: boolean;
1519
+ shouldCacheIgnoreZoom: boolean;
1479
1520
  toast: {
1480
1521
  message: string;
1481
1522
  closable?: boolean | undefined;
1482
1523
  duration?: number | undefined;
1483
1524
  } | null;
1525
+ gridSize: number;
1526
+ gridStep: number;
1527
+ gridModeEnabled: boolean;
1484
1528
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1485
1529
  stats: {
1486
1530
  open: boolean;
@@ -1494,8 +1538,8 @@ export declare const actionLoadScene: {
1494
1538
  shown: true;
1495
1539
  data: import("../charts").Spreadsheet;
1496
1540
  };
1497
- showHyperlinkPopup: false | "editor" | "info";
1498
- trayModeEnabled: boolean;
1541
+ showHyperlinkPopup: false | "info" | "editor";
1542
+ linkOpacity: number;
1499
1543
  colorPalette?: {
1500
1544
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1501
1545
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1508,6 +1552,7 @@ export declare const actionLoadScene: {
1508
1552
  } | undefined;
1509
1553
  allowWheelZoom?: boolean | undefined;
1510
1554
  allowPinchZoom?: boolean | undefined;
1555
+ disableContextMenu: boolean;
1511
1556
  pinnedScripts?: string[] | undefined;
1512
1557
  customPens?: any[] | undefined;
1513
1558
  currentStrokeOptions?: any;
@@ -1520,8 +1565,12 @@ export declare const actionLoadScene: {
1520
1565
  x: number;
1521
1566
  y: number;
1522
1567
  } | null;
1568
+ objectsSnapModeEnabled: boolean;
1523
1569
  userToFollow: import("../types").UserToFollow | null;
1524
1570
  followedBy: Set<import("../types").SocketId>;
1571
+ lockedMultiSelections: {
1572
+ [groupId: string]: true;
1573
+ };
1525
1574
  };
1526
1575
  files: import("../types").BinaryFiles;
1527
1576
  captureUpdate: "IMMEDIATELY";
@@ -1546,23 +1595,28 @@ export declare const actionLoadScene: {
1546
1595
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1547
1596
  isBindingEnabled: boolean;
1548
1597
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1549
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1598
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1550
1599
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1551
1600
  frameRendering: {
1552
1601
  enabled: boolean;
1553
1602
  name: boolean;
1554
1603
  outline: boolean;
1555
1604
  clip: boolean;
1605
+ markerName: boolean;
1606
+ markerEnabled: boolean;
1556
1607
  };
1557
1608
  editingFrame: string | null;
1558
1609
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1559
1610
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1560
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1561
1611
  activeTool: {
1562
1612
  lastActiveTool: import("../types").ActiveTool | null;
1563
1613
  locked: boolean;
1564
1614
  fromSelection: boolean;
1565
1615
  } & import("../types").ActiveTool;
1616
+ preferredSelectionTool: {
1617
+ type: "selection" | "lasso";
1618
+ initialized: boolean;
1619
+ };
1566
1620
  penMode: boolean;
1567
1621
  penDetected: boolean;
1568
1622
  exportBackground: boolean;
@@ -1584,6 +1638,7 @@ export declare const actionLoadScene: {
1584
1638
  currentHoveredFontFamily: number | null;
1585
1639
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1586
1640
  currentItemArrowType: "round" | "sharp" | "elbow";
1641
+ currentItemFrameRole: ("marker" | null) | undefined;
1587
1642
  viewBackgroundColor: string;
1588
1643
  scrollX: number;
1589
1644
  scrollY: number;
@@ -1595,8 +1650,8 @@ export declare const actionLoadScene: {
1595
1650
  zoom: Readonly<{
1596
1651
  value: import("../types").NormalizedZoomValue;
1597
1652
  }>;
1598
- openMenu: "shape" | "canvas" | null;
1599
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1653
+ openMenu: "canvas" | "shape" | null;
1654
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1600
1655
  openSidebar: {
1601
1656
  name: string;
1602
1657
  tab?: string | undefined;
@@ -1677,10 +1732,8 @@ export declare const actionLoadScene: {
1677
1732
  shown: true;
1678
1733
  data: import("../charts").Spreadsheet;
1679
1734
  };
1680
- pendingImageElementId: string | null;
1681
- showHyperlinkPopup: false | "editor" | "info";
1735
+ showHyperlinkPopup: false | "info" | "editor";
1682
1736
  linkOpacity: number;
1683
- trayModeEnabled: boolean;
1684
1737
  colorPalette?: {
1685
1738
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1686
1739
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1693,6 +1746,7 @@ export declare const actionLoadScene: {
1693
1746
  } | undefined;
1694
1747
  allowWheelZoom?: boolean | undefined;
1695
1748
  allowPinchZoom?: boolean | undefined;
1749
+ disableContextMenu: boolean;
1696
1750
  pinnedScripts?: string[] | undefined;
1697
1751
  customPens?: any[] | undefined;
1698
1752
  currentStrokeOptions?: any;
@@ -1701,6 +1755,10 @@ export declare const actionLoadScene: {
1701
1755
  Bold: string;
1702
1756
  Regular: string;
1703
1757
  };
1758
+ gridDirection: {
1759
+ horizontal: boolean;
1760
+ vertical: boolean;
1761
+ };
1704
1762
  highlightSearchResult: boolean;
1705
1763
  dynamicStyle: {
1706
1764
  [x: string]: string;
@@ -1711,7 +1769,7 @@ export declare const actionLoadScene: {
1711
1769
  nameColor: string;
1712
1770
  };
1713
1771
  invertBindingBehaviour: boolean;
1714
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1772
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1715
1773
  snapLines: readonly import("../snapping").SnapLine[];
1716
1774
  originSnapOffset: {
1717
1775
  x: number;
@@ -1722,16 +1780,14 @@ export declare const actionLoadScene: {
1722
1780
  followedBy: Set<import("../types").SocketId>;
1723
1781
  isCropping: boolean;
1724
1782
  croppingElementId: string | null;
1725
- searchMatches: readonly {
1726
- id: string;
1727
- focus: boolean;
1728
- matchedLines: {
1729
- offsetX: number;
1730
- offsetY: number;
1731
- width: number;
1732
- height: number;
1733
- }[];
1734
- }[];
1783
+ searchMatches: Readonly<{
1784
+ focusedId: string | null;
1785
+ matches: readonly import("../types").SearchMatch[];
1786
+ }> | null;
1787
+ activeLockedId: string | null;
1788
+ lockedMultiSelections: {
1789
+ [groupId: string]: true;
1790
+ };
1735
1791
  };
1736
1792
  files: import("../types").BinaryFiles;
1737
1793
  captureUpdate: "EVENTUALLY";
@@ -1768,23 +1824,28 @@ export declare const actionExportWithDarkMode: {
1768
1824
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1769
1825
  isBindingEnabled: boolean;
1770
1826
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1771
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1827
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1772
1828
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1773
1829
  frameRendering: {
1774
1830
  enabled: boolean;
1775
1831
  name: boolean;
1776
1832
  outline: boolean;
1777
1833
  clip: boolean;
1834
+ markerName: boolean;
1835
+ markerEnabled: boolean;
1778
1836
  };
1779
1837
  editingFrame: string | null;
1780
1838
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1781
1839
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1782
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1783
1840
  activeTool: {
1784
1841
  lastActiveTool: import("../types").ActiveTool | null;
1785
1842
  locked: boolean;
1786
1843
  fromSelection: boolean;
1787
1844
  } & import("../types").ActiveTool;
1845
+ preferredSelectionTool: {
1846
+ type: "selection" | "lasso";
1847
+ initialized: boolean;
1848
+ };
1788
1849
  penMode: boolean;
1789
1850
  penDetected: boolean;
1790
1851
  exportBackground: boolean;
@@ -1805,6 +1866,7 @@ export declare const actionExportWithDarkMode: {
1805
1866
  currentHoveredFontFamily: number | null;
1806
1867
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1807
1868
  currentItemArrowType: "round" | "sharp" | "elbow";
1869
+ currentItemFrameRole: ("marker" | null) | undefined;
1808
1870
  viewBackgroundColor: string;
1809
1871
  scrollX: number;
1810
1872
  scrollY: number;
@@ -1816,8 +1878,8 @@ export declare const actionExportWithDarkMode: {
1816
1878
  zoom: Readonly<{
1817
1879
  value: import("../types").NormalizedZoomValue;
1818
1880
  }>;
1819
- openMenu: "shape" | "canvas" | null;
1820
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1881
+ openMenu: "canvas" | "shape" | null;
1882
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1821
1883
  openSidebar: {
1822
1884
  name: string;
1823
1885
  tab?: string | undefined;
@@ -1898,10 +1960,8 @@ export declare const actionExportWithDarkMode: {
1898
1960
  shown: true;
1899
1961
  data: import("../charts").Spreadsheet;
1900
1962
  };
1901
- pendingImageElementId: string | null;
1902
- showHyperlinkPopup: false | "editor" | "info";
1963
+ showHyperlinkPopup: false | "info" | "editor";
1903
1964
  linkOpacity: number;
1904
- trayModeEnabled: boolean;
1905
1965
  colorPalette?: {
1906
1966
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1907
1967
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1914,6 +1974,7 @@ export declare const actionExportWithDarkMode: {
1914
1974
  } | undefined;
1915
1975
  allowWheelZoom?: boolean | undefined;
1916
1976
  allowPinchZoom?: boolean | undefined;
1977
+ disableContextMenu: boolean;
1917
1978
  pinnedScripts?: string[] | undefined;
1918
1979
  customPens?: any[] | undefined;
1919
1980
  currentStrokeOptions?: any;
@@ -1922,6 +1983,10 @@ export declare const actionExportWithDarkMode: {
1922
1983
  Bold: string;
1923
1984
  Regular: string;
1924
1985
  };
1986
+ gridDirection: {
1987
+ horizontal: boolean;
1988
+ vertical: boolean;
1989
+ };
1925
1990
  highlightSearchResult: boolean;
1926
1991
  dynamicStyle: {
1927
1992
  [x: string]: string;
@@ -1932,7 +1997,7 @@ export declare const actionExportWithDarkMode: {
1932
1997
  nameColor: string;
1933
1998
  };
1934
1999
  invertBindingBehaviour: boolean;
1935
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2000
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1936
2001
  snapLines: readonly import("../snapping").SnapLine[];
1937
2002
  originSnapOffset: {
1938
2003
  x: number;
@@ -1943,16 +2008,14 @@ export declare const actionExportWithDarkMode: {
1943
2008
  followedBy: Set<import("../types").SocketId>;
1944
2009
  isCropping: boolean;
1945
2010
  croppingElementId: string | null;
1946
- searchMatches: readonly {
1947
- id: string;
1948
- focus: boolean;
1949
- matchedLines: {
1950
- offsetX: number;
1951
- offsetY: number;
1952
- width: number;
1953
- height: number;
1954
- }[];
1955
- }[];
2011
+ searchMatches: Readonly<{
2012
+ focusedId: string | null;
2013
+ matches: readonly import("../types").SearchMatch[];
2014
+ }> | null;
2015
+ activeLockedId: string | null;
2016
+ lockedMultiSelections: {
2017
+ [groupId: string]: true;
2018
+ };
1956
2019
  };
1957
2020
  captureUpdate: "EVENTUALLY";
1958
2021
  };