@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
@@ -26,23 +26,28 @@ export declare const actionCopy: {
26
26
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
27
  isBindingEnabled: boolean;
28
28
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
29
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
30
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
31
  frameRendering: {
32
32
  enabled: boolean;
33
33
  name: boolean;
34
34
  outline: boolean;
35
35
  clip: boolean;
36
+ markerName: boolean;
37
+ markerEnabled: boolean;
36
38
  };
37
39
  editingFrame: string | null;
38
40
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
41
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
41
42
  activeTool: {
42
43
  lastActiveTool: import("../types").ActiveTool | null;
43
44
  locked: boolean;
44
45
  fromSelection: boolean;
45
46
  } & import("../types").ActiveTool;
47
+ preferredSelectionTool: {
48
+ type: "selection" | "lasso";
49
+ initialized: boolean;
50
+ };
46
51
  penMode: boolean;
47
52
  penDetected: boolean;
48
53
  exportBackground: boolean;
@@ -64,6 +69,7 @@ export declare const actionCopy: {
64
69
  currentHoveredFontFamily: number | null;
65
70
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
71
  currentItemArrowType: "round" | "sharp" | "elbow";
72
+ currentItemFrameRole: ("marker" | null) | undefined;
67
73
  viewBackgroundColor: string;
68
74
  scrollX: number;
69
75
  scrollY: number;
@@ -75,8 +81,8 @@ export declare const actionCopy: {
75
81
  zoom: Readonly<{
76
82
  value: import("../types").NormalizedZoomValue;
77
83
  }>;
78
- openMenu: "shape" | "canvas" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
+ openMenu: "canvas" | "shape" | null;
85
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
80
86
  openSidebar: {
81
87
  name: string;
82
88
  tab?: string | undefined;
@@ -157,10 +163,8 @@ export declare const actionCopy: {
157
163
  shown: true;
158
164
  data: import("../charts").Spreadsheet;
159
165
  };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "editor" | "info";
166
+ showHyperlinkPopup: false | "info" | "editor";
162
167
  linkOpacity: number;
163
- trayModeEnabled: boolean;
164
168
  colorPalette?: {
165
169
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
166
170
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -173,6 +177,7 @@ export declare const actionCopy: {
173
177
  } | undefined;
174
178
  allowWheelZoom?: boolean | undefined;
175
179
  allowPinchZoom?: boolean | undefined;
180
+ disableContextMenu: boolean;
176
181
  pinnedScripts?: string[] | undefined;
177
182
  customPens?: any[] | undefined;
178
183
  currentStrokeOptions?: any;
@@ -181,6 +186,10 @@ export declare const actionCopy: {
181
186
  Bold: string;
182
187
  Regular: string;
183
188
  };
189
+ gridDirection: {
190
+ horizontal: boolean;
191
+ vertical: boolean;
192
+ };
184
193
  highlightSearchResult: boolean;
185
194
  dynamicStyle: {
186
195
  [x: string]: string;
@@ -191,7 +200,7 @@ export declare const actionCopy: {
191
200
  nameColor: string;
192
201
  };
193
202
  invertBindingBehaviour: boolean;
194
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
203
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
195
204
  snapLines: readonly import("../snapping").SnapLine[];
196
205
  originSnapOffset: {
197
206
  x: number;
@@ -202,16 +211,14 @@ export declare const actionCopy: {
202
211
  followedBy: Set<import("../types").SocketId>;
203
212
  isCropping: boolean;
204
213
  croppingElementId: string | null;
205
- searchMatches: readonly {
206
- id: string;
207
- focus: boolean;
208
- matchedLines: {
209
- offsetX: number;
210
- offsetY: number;
211
- width: number;
212
- height: number;
213
- }[];
214
- }[];
214
+ searchMatches: Readonly<{
215
+ focusedId: string | null;
216
+ matches: readonly import("../types").SearchMatch[];
217
+ }> | null;
218
+ activeLockedId: string | null;
219
+ lockedMultiSelections: {
220
+ [groupId: string]: true;
221
+ };
215
222
  };
216
223
  } | {
217
224
  captureUpdate: "EVENTUALLY";
@@ -248,23 +255,28 @@ export declare const actionPaste: {
248
255
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
249
256
  isBindingEnabled: boolean;
250
257
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
251
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
258
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
252
259
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
253
260
  frameRendering: {
254
261
  enabled: boolean;
255
262
  name: boolean;
256
263
  outline: boolean;
257
264
  clip: boolean;
265
+ markerName: boolean;
266
+ markerEnabled: boolean;
258
267
  };
259
268
  editingFrame: string | null;
260
269
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
261
270
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
262
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
263
271
  activeTool: {
264
272
  lastActiveTool: import("../types").ActiveTool | null;
265
273
  locked: boolean;
266
274
  fromSelection: boolean;
267
275
  } & import("../types").ActiveTool;
276
+ preferredSelectionTool: {
277
+ type: "selection" | "lasso";
278
+ initialized: boolean;
279
+ };
268
280
  penMode: boolean;
269
281
  penDetected: boolean;
270
282
  exportBackground: boolean;
@@ -286,6 +298,7 @@ export declare const actionPaste: {
286
298
  currentHoveredFontFamily: number | null;
287
299
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
288
300
  currentItemArrowType: "round" | "sharp" | "elbow";
301
+ currentItemFrameRole: ("marker" | null) | undefined;
289
302
  viewBackgroundColor: string;
290
303
  scrollX: number;
291
304
  scrollY: number;
@@ -297,8 +310,8 @@ export declare const actionPaste: {
297
310
  zoom: Readonly<{
298
311
  value: import("../types").NormalizedZoomValue;
299
312
  }>;
300
- openMenu: "shape" | "canvas" | null;
301
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
313
+ openMenu: "canvas" | "shape" | null;
314
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
302
315
  openSidebar: {
303
316
  name: string;
304
317
  tab?: string | undefined;
@@ -379,10 +392,8 @@ export declare const actionPaste: {
379
392
  shown: true;
380
393
  data: import("../charts").Spreadsheet;
381
394
  };
382
- pendingImageElementId: string | null;
383
- showHyperlinkPopup: false | "editor" | "info";
395
+ showHyperlinkPopup: false | "info" | "editor";
384
396
  linkOpacity: number;
385
- trayModeEnabled: boolean;
386
397
  colorPalette?: {
387
398
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
388
399
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -395,6 +406,7 @@ export declare const actionPaste: {
395
406
  } | undefined;
396
407
  allowWheelZoom?: boolean | undefined;
397
408
  allowPinchZoom?: boolean | undefined;
409
+ disableContextMenu: boolean;
398
410
  pinnedScripts?: string[] | undefined;
399
411
  customPens?: any[] | undefined;
400
412
  currentStrokeOptions?: any;
@@ -403,6 +415,10 @@ export declare const actionPaste: {
403
415
  Bold: string;
404
416
  Regular: string;
405
417
  };
418
+ gridDirection: {
419
+ horizontal: boolean;
420
+ vertical: boolean;
421
+ };
406
422
  highlightSearchResult: boolean;
407
423
  dynamicStyle: {
408
424
  [x: string]: string;
@@ -413,7 +429,7 @@ export declare const actionPaste: {
413
429
  nameColor: string;
414
430
  };
415
431
  invertBindingBehaviour: boolean;
416
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
432
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
417
433
  snapLines: readonly import("../snapping").SnapLine[];
418
434
  originSnapOffset: {
419
435
  x: number;
@@ -424,16 +440,14 @@ export declare const actionPaste: {
424
440
  followedBy: Set<import("../types").SocketId>;
425
441
  isCropping: boolean;
426
442
  croppingElementId: string | null;
427
- searchMatches: readonly {
428
- id: string;
429
- focus: boolean;
430
- matchedLines: {
431
- offsetX: number;
432
- offsetY: number;
433
- width: number;
434
- height: number;
435
- }[];
436
- }[];
443
+ searchMatches: Readonly<{
444
+ focusedId: string | null;
445
+ matches: readonly import("../types").SearchMatch[];
446
+ }> | null;
447
+ activeLockedId: string | null;
448
+ lockedMultiSelections: {
449
+ [groupId: string]: true;
450
+ };
437
451
  };
438
452
  } | {
439
453
  captureUpdate: "EVENTUALLY";
@@ -453,7 +467,7 @@ export declare const actionCut: {
453
467
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
454
468
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
455
469
  appState: {
456
- editingLinearElement: null;
470
+ selectedLinearElement: null;
457
471
  contextMenu: {
458
472
  items: import("../components/ContextMenu").ContextMenuItems;
459
473
  top: number;
@@ -472,13 +486,15 @@ export declare const actionCut: {
472
486
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
473
487
  isBindingEnabled: boolean;
474
488
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
475
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
489
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
476
490
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
477
491
  frameRendering: {
478
492
  enabled: boolean;
479
493
  name: boolean;
480
494
  outline: boolean;
481
495
  clip: boolean;
496
+ markerName: boolean;
497
+ markerEnabled: boolean;
482
498
  };
483
499
  editingFrame: string | null;
484
500
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
@@ -488,6 +504,10 @@ export declare const actionCut: {
488
504
  locked: boolean;
489
505
  fromSelection: boolean;
490
506
  } & import("../types").ActiveTool;
507
+ preferredSelectionTool: {
508
+ type: "selection" | "lasso";
509
+ initialized: boolean;
510
+ };
491
511
  penMode: boolean;
492
512
  penDetected: boolean;
493
513
  exportBackground: boolean;
@@ -509,6 +529,7 @@ export declare const actionCut: {
509
529
  currentHoveredFontFamily: number | null;
510
530
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
511
531
  currentItemArrowType: "round" | "sharp" | "elbow";
532
+ currentItemFrameRole: ("marker" | null) | undefined;
512
533
  viewBackgroundColor: string;
513
534
  scrollX: number;
514
535
  scrollY: number;
@@ -520,8 +541,8 @@ export declare const actionCut: {
520
541
  zoom: Readonly<{
521
542
  value: import("../types").NormalizedZoomValue;
522
543
  }>;
523
- openMenu: "shape" | "canvas" | null;
524
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
544
+ openMenu: "canvas" | "shape" | null;
545
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
525
546
  openSidebar: {
526
547
  name: string;
527
548
  tab?: string | undefined;
@@ -602,10 +623,8 @@ export declare const actionCut: {
602
623
  shown: true;
603
624
  data: import("../charts").Spreadsheet;
604
625
  };
605
- pendingImageElementId: string | null;
606
- showHyperlinkPopup: false | "editor" | "info";
626
+ showHyperlinkPopup: false | "info" | "editor";
607
627
  linkOpacity: number;
608
- trayModeEnabled: boolean;
609
628
  colorPalette?: {
610
629
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
611
630
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -618,6 +637,7 @@ export declare const actionCut: {
618
637
  } | undefined;
619
638
  allowWheelZoom?: boolean | undefined;
620
639
  allowPinchZoom?: boolean | undefined;
640
+ disableContextMenu: boolean;
621
641
  pinnedScripts?: string[] | undefined;
622
642
  customPens?: any[] | undefined;
623
643
  currentStrokeOptions?: any;
@@ -626,6 +646,10 @@ export declare const actionCut: {
626
646
  Bold: string;
627
647
  Regular: string;
628
648
  };
649
+ gridDirection: {
650
+ horizontal: boolean;
651
+ vertical: boolean;
652
+ };
629
653
  highlightSearchResult: boolean;
630
654
  dynamicStyle: {
631
655
  [x: string]: string;
@@ -636,7 +660,6 @@ export declare const actionCut: {
636
660
  nameColor: string;
637
661
  };
638
662
  invertBindingBehaviour: boolean;
639
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
640
663
  snapLines: readonly import("../snapping").SnapLine[];
641
664
  originSnapOffset: {
642
665
  x: number;
@@ -647,22 +670,20 @@ export declare const actionCut: {
647
670
  followedBy: Set<import("../types").SocketId>;
648
671
  isCropping: boolean;
649
672
  croppingElementId: string | null;
650
- searchMatches: readonly {
651
- id: string;
652
- focus: boolean;
653
- matchedLines: {
654
- offsetX: number;
655
- offsetY: number;
656
- width: number;
657
- height: number;
658
- }[];
659
- }[];
673
+ searchMatches: Readonly<{
674
+ focusedId: string | null;
675
+ matches: readonly import("../types").SearchMatch[];
676
+ }> | null;
677
+ activeLockedId: string | null;
678
+ lockedMultiSelections: {
679
+ [groupId: string]: true;
680
+ };
660
681
  };
661
682
  captureUpdate: "IMMEDIATELY";
662
683
  } | {
663
684
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
664
685
  appState: {
665
- editingLinearElement: {
686
+ selectedLinearElement: {
666
687
  selectedPointsIndices: number[];
667
688
  startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
668
689
  endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
@@ -692,6 +713,8 @@ export declare const actionCut: {
692
713
  hoverPointIndex: number;
693
714
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
694
715
  elbowed: boolean;
716
+ customLineAngle: number | null;
717
+ isEditing: boolean;
695
718
  };
696
719
  contextMenu: {
697
720
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -711,13 +734,15 @@ export declare const actionCut: {
711
734
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
712
735
  isBindingEnabled: boolean;
713
736
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
714
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
737
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
715
738
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
716
739
  frameRendering: {
717
740
  enabled: boolean;
718
741
  name: boolean;
719
742
  outline: boolean;
720
743
  clip: boolean;
744
+ markerName: boolean;
745
+ markerEnabled: boolean;
721
746
  };
722
747
  editingFrame: string | null;
723
748
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
@@ -727,6 +752,10 @@ export declare const actionCut: {
727
752
  locked: boolean;
728
753
  fromSelection: boolean;
729
754
  } & import("../types").ActiveTool;
755
+ preferredSelectionTool: {
756
+ type: "selection" | "lasso";
757
+ initialized: boolean;
758
+ };
730
759
  penMode: boolean;
731
760
  penDetected: boolean;
732
761
  exportBackground: boolean;
@@ -748,6 +777,7 @@ export declare const actionCut: {
748
777
  currentHoveredFontFamily: number | null;
749
778
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
750
779
  currentItemArrowType: "round" | "sharp" | "elbow";
780
+ currentItemFrameRole: ("marker" | null) | undefined;
751
781
  viewBackgroundColor: string;
752
782
  scrollX: number;
753
783
  scrollY: number;
@@ -759,8 +789,8 @@ export declare const actionCut: {
759
789
  zoom: Readonly<{
760
790
  value: import("../types").NormalizedZoomValue;
761
791
  }>;
762
- openMenu: "shape" | "canvas" | null;
763
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
792
+ openMenu: "canvas" | "shape" | null;
793
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
764
794
  openSidebar: {
765
795
  name: string;
766
796
  tab?: string | undefined;
@@ -841,10 +871,8 @@ export declare const actionCut: {
841
871
  shown: true;
842
872
  data: import("../charts").Spreadsheet;
843
873
  };
844
- pendingImageElementId: string | null;
845
- showHyperlinkPopup: false | "editor" | "info";
874
+ showHyperlinkPopup: false | "info" | "editor";
846
875
  linkOpacity: number;
847
- trayModeEnabled: boolean;
848
876
  colorPalette?: {
849
877
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
850
878
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -857,6 +885,7 @@ export declare const actionCut: {
857
885
  } | undefined;
858
886
  allowWheelZoom?: boolean | undefined;
859
887
  allowPinchZoom?: boolean | undefined;
888
+ disableContextMenu: boolean;
860
889
  pinnedScripts?: string[] | undefined;
861
890
  customPens?: any[] | undefined;
862
891
  currentStrokeOptions?: any;
@@ -865,6 +894,10 @@ export declare const actionCut: {
865
894
  Bold: string;
866
895
  Regular: string;
867
896
  };
897
+ gridDirection: {
898
+ horizontal: boolean;
899
+ vertical: boolean;
900
+ };
868
901
  highlightSearchResult: boolean;
869
902
  dynamicStyle: {
870
903
  [x: string]: string;
@@ -875,7 +908,6 @@ export declare const actionCut: {
875
908
  nameColor: string;
876
909
  };
877
910
  invertBindingBehaviour: boolean;
878
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
879
911
  snapLines: readonly import("../snapping").SnapLine[];
880
912
  originSnapOffset: {
881
913
  x: number;
@@ -886,16 +918,14 @@ export declare const actionCut: {
886
918
  followedBy: Set<import("../types").SocketId>;
887
919
  isCropping: boolean;
888
920
  croppingElementId: string | null;
889
- searchMatches: readonly {
890
- id: string;
891
- focus: boolean;
892
- matchedLines: {
893
- offsetX: number;
894
- offsetY: number;
895
- width: number;
896
- height: number;
897
- }[];
898
- }[];
921
+ searchMatches: Readonly<{
922
+ focusedId: string | null;
923
+ matches: readonly import("../types").SearchMatch[];
924
+ }> | null;
925
+ activeLockedId: string | null;
926
+ lockedMultiSelections: {
927
+ [groupId: string]: true;
928
+ };
899
929
  };
900
930
  captureUpdate: "IMMEDIATELY";
901
931
  } | {
@@ -929,18 +959,23 @@ export declare const actionCut: {
929
959
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
930
960
  isBindingEnabled: boolean;
931
961
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
932
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
962
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
933
963
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
934
964
  frameRendering: {
935
965
  enabled: boolean;
936
966
  name: boolean;
937
967
  outline: boolean;
938
968
  clip: boolean;
969
+ markerName: boolean;
970
+ markerEnabled: boolean;
939
971
  };
940
972
  editingFrame: string | null;
941
973
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
942
974
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
943
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
975
+ preferredSelectionTool: {
976
+ type: "selection" | "lasso";
977
+ initialized: boolean;
978
+ };
944
979
  penMode: boolean;
945
980
  penDetected: boolean;
946
981
  exportBackground: boolean;
@@ -962,6 +997,7 @@ export declare const actionCut: {
962
997
  currentHoveredFontFamily: number | null;
963
998
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
964
999
  currentItemArrowType: "round" | "sharp" | "elbow";
1000
+ currentItemFrameRole: ("marker" | null) | undefined;
965
1001
  viewBackgroundColor: string;
966
1002
  scrollX: number;
967
1003
  scrollY: number;
@@ -973,8 +1009,8 @@ export declare const actionCut: {
973
1009
  zoom: Readonly<{
974
1010
  value: import("../types").NormalizedZoomValue;
975
1011
  }>;
976
- openMenu: "shape" | "canvas" | null;
977
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1012
+ openMenu: "canvas" | "shape" | null;
1013
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
978
1014
  openSidebar: {
979
1015
  name: string;
980
1016
  tab?: string | undefined;
@@ -1048,10 +1084,8 @@ export declare const actionCut: {
1048
1084
  shown: true;
1049
1085
  data: import("../charts").Spreadsheet;
1050
1086
  };
1051
- pendingImageElementId: string | null;
1052
- showHyperlinkPopup: false | "editor" | "info";
1087
+ showHyperlinkPopup: false | "info" | "editor";
1053
1088
  linkOpacity: number;
1054
- trayModeEnabled: boolean;
1055
1089
  colorPalette?: {
1056
1090
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1057
1091
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1064,6 +1098,7 @@ export declare const actionCut: {
1064
1098
  } | undefined;
1065
1099
  allowWheelZoom?: boolean | undefined;
1066
1100
  allowPinchZoom?: boolean | undefined;
1101
+ disableContextMenu: boolean;
1067
1102
  pinnedScripts?: string[] | undefined;
1068
1103
  customPens?: any[] | undefined;
1069
1104
  currentStrokeOptions?: any;
@@ -1072,6 +1107,10 @@ export declare const actionCut: {
1072
1107
  Bold: string;
1073
1108
  Regular: string;
1074
1109
  };
1110
+ gridDirection: {
1111
+ horizontal: boolean;
1112
+ vertical: boolean;
1113
+ };
1075
1114
  highlightSearchResult: boolean;
1076
1115
  dynamicStyle: {
1077
1116
  [x: string]: string;
@@ -1092,16 +1131,14 @@ export declare const actionCut: {
1092
1131
  followedBy: Set<import("../types").SocketId>;
1093
1132
  isCropping: boolean;
1094
1133
  croppingElementId: string | null;
1095
- searchMatches: readonly {
1096
- id: string;
1097
- focus: boolean;
1098
- matchedLines: {
1099
- offsetX: number;
1100
- offsetY: number;
1101
- width: number;
1102
- height: number;
1103
- }[];
1104
- }[];
1134
+ searchMatches: Readonly<{
1135
+ focusedId: string | null;
1136
+ matches: readonly import("../types").SearchMatch[];
1137
+ }> | null;
1138
+ activeLockedId: string | null;
1139
+ lockedMultiSelections: {
1140
+ [groupId: string]: true;
1141
+ };
1105
1142
  };
1106
1143
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1107
1144
  };
@@ -1169,23 +1206,28 @@ export declare const actionCopyAsPng: {
1169
1206
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1170
1207
  isBindingEnabled: boolean;
1171
1208
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1172
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1209
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1173
1210
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1174
1211
  frameRendering: {
1175
1212
  enabled: boolean;
1176
1213
  name: boolean;
1177
1214
  outline: boolean;
1178
1215
  clip: boolean;
1216
+ markerName: boolean;
1217
+ markerEnabled: boolean;
1179
1218
  };
1180
1219
  editingFrame: string | null;
1181
1220
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1182
1221
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1183
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1184
1222
  activeTool: {
1185
1223
  lastActiveTool: import("../types").ActiveTool | null;
1186
1224
  locked: boolean;
1187
1225
  fromSelection: boolean;
1188
1226
  } & import("../types").ActiveTool;
1227
+ preferredSelectionTool: {
1228
+ type: "selection" | "lasso";
1229
+ initialized: boolean;
1230
+ };
1189
1231
  penMode: boolean;
1190
1232
  penDetected: boolean;
1191
1233
  exportBackground: boolean;
@@ -1207,6 +1249,7 @@ export declare const actionCopyAsPng: {
1207
1249
  currentHoveredFontFamily: number | null;
1208
1250
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1209
1251
  currentItemArrowType: "round" | "sharp" | "elbow";
1252
+ currentItemFrameRole: ("marker" | null) | undefined;
1210
1253
  viewBackgroundColor: string;
1211
1254
  scrollX: number;
1212
1255
  scrollY: number;
@@ -1218,8 +1261,8 @@ export declare const actionCopyAsPng: {
1218
1261
  zoom: Readonly<{
1219
1262
  value: import("../types").NormalizedZoomValue;
1220
1263
  }>;
1221
- openMenu: "shape" | "canvas" | null;
1222
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1264
+ openMenu: "canvas" | "shape" | null;
1265
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1223
1266
  openSidebar: {
1224
1267
  name: string;
1225
1268
  tab?: string | undefined;
@@ -1300,10 +1343,8 @@ export declare const actionCopyAsPng: {
1300
1343
  shown: true;
1301
1344
  data: import("../charts").Spreadsheet;
1302
1345
  };
1303
- pendingImageElementId: string | null;
1304
- showHyperlinkPopup: false | "editor" | "info";
1346
+ showHyperlinkPopup: false | "info" | "editor";
1305
1347
  linkOpacity: number;
1306
- trayModeEnabled: boolean;
1307
1348
  colorPalette?: {
1308
1349
  canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1309
1350
  elementBackground: import("@excalidraw/common").ColorPaletteCustom;
@@ -1316,6 +1357,7 @@ export declare const actionCopyAsPng: {
1316
1357
  } | undefined;
1317
1358
  allowWheelZoom?: boolean | undefined;
1318
1359
  allowPinchZoom?: boolean | undefined;
1360
+ disableContextMenu: boolean;
1319
1361
  pinnedScripts?: string[] | undefined;
1320
1362
  customPens?: any[] | undefined;
1321
1363
  currentStrokeOptions?: any;
@@ -1324,6 +1366,10 @@ export declare const actionCopyAsPng: {
1324
1366
  Bold: string;
1325
1367
  Regular: string;
1326
1368
  };
1369
+ gridDirection: {
1370
+ horizontal: boolean;
1371
+ vertical: boolean;
1372
+ };
1327
1373
  highlightSearchResult: boolean;
1328
1374
  dynamicStyle: {
1329
1375
  [x: string]: string;
@@ -1334,7 +1380,7 @@ export declare const actionCopyAsPng: {
1334
1380
  nameColor: string;
1335
1381
  };
1336
1382
  invertBindingBehaviour: boolean;
1337
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1383
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1338
1384
  snapLines: readonly import("../snapping").SnapLine[];
1339
1385
  originSnapOffset: {
1340
1386
  x: number;
@@ -1345,16 +1391,14 @@ export declare const actionCopyAsPng: {
1345
1391
  followedBy: Set<import("../types").SocketId>;
1346
1392
  isCropping: boolean;
1347
1393
  croppingElementId: string | null;
1348
- searchMatches: readonly {
1349
- id: string;
1350
- focus: boolean;
1351
- matchedLines: {
1352
- offsetX: number;
1353
- offsetY: number;
1354
- width: number;
1355
- height: number;
1356
- }[];
1357
- }[];
1394
+ searchMatches: Readonly<{
1395
+ focusedId: string | null;
1396
+ matches: readonly import("../types").SearchMatch[];
1397
+ }> | null;
1398
+ activeLockedId: string | null;
1399
+ lockedMultiSelections: {
1400
+ [groupId: string]: true;
1401
+ };
1358
1402
  };
1359
1403
  captureUpdate: "EVENTUALLY";
1360
1404
  }>;