@excalidraw/excalidraw 0.18.0-a5d6939 → 0.18.0-a8acc82

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 (184) hide show
  1. package/dist/dev/chunk-6MX365WZ.js +5666 -0
  2. package/dist/dev/chunk-6MX365WZ.js.map +7 -0
  3. package/dist/dev/chunk-CP5DND7P.js +7 -0
  4. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  5. package/dist/dev/{chunk-X3RYHLJU.js → chunk-QF5FRM6O.js} +15 -5
  6. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  7. package/dist/dev/data/{image-JN3Y4CVN.js → image-GQCFJKGM.js} +3 -3
  8. package/dist/dev/index.css +230 -23
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +10262 -10068
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-CKWC2GMK.js → en-SMAPCEOQ.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/chunk-A66AFZZU.js +7 -0
  16. package/dist/prod/chunk-I4UNSFV6.js +12 -0
  17. package/dist/prod/chunk-R2M7VUMD.js +4 -0
  18. package/dist/prod/data/image-JWK7QZ22.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +25 -17
  21. package/dist/prod/locales/{en-SBO6ZHT2.js → en-TYY6KWIJ.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +40 -7
  25. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  26. package/dist/types/common/src/font-metadata.d.ts +4 -2
  27. package/dist/types/common/src/index.d.ts +1 -0
  28. package/dist/types/common/src/utility-types.d.ts +5 -0
  29. package/dist/types/common/src/utils.d.ts +18 -4
  30. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  31. package/dist/types/element/src/align.d.ts +4 -3
  32. package/dist/types/element/src/binding.d.ts +25 -14
  33. package/dist/types/element/src/bounds.d.ts +14 -6
  34. package/dist/types/element/src/collision.d.ts +18 -12
  35. package/dist/types/element/src/cropElement.d.ts +1 -1
  36. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  37. package/dist/types/element/src/distance.d.ts +2 -2
  38. package/dist/types/element/src/distribute.d.ts +2 -1
  39. package/dist/types/element/src/dragElements.d.ts +3 -2
  40. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  41. package/dist/types/element/src/flowchart.d.ts +3 -2
  42. package/dist/types/element/src/fractionalIndex.d.ts +9 -3
  43. package/dist/types/element/src/frame.d.ts +4 -3
  44. package/dist/types/element/src/groups.d.ts +1 -0
  45. package/dist/types/element/src/index.d.ts +44 -2
  46. package/dist/types/element/src/linearElementEditor.d.ts +23 -36
  47. package/dist/types/element/src/mutateElement.d.ts +11 -3
  48. package/dist/types/element/src/newElement.d.ts +4 -3
  49. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  50. package/dist/types/element/src/renderElement.d.ts +4 -1
  51. package/dist/types/element/src/resizeElements.d.ts +5 -4
  52. package/dist/types/element/src/selection.d.ts +0 -5
  53. package/dist/types/element/src/shape.d.ts +42 -0
  54. package/dist/types/element/src/sizeHelpers.d.ts +2 -2
  55. package/dist/types/element/src/store.d.ts +237 -0
  56. package/dist/types/element/src/textElement.d.ts +4 -3
  57. package/dist/types/element/src/typeChecks.d.ts +19 -1
  58. package/dist/types/element/src/types.d.ts +15 -2
  59. package/dist/types/element/src/utils.d.ts +16 -6
  60. package/dist/types/element/src/zindex.d.ts +1 -1
  61. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +45 -54
  62. package/dist/types/excalidraw/actions/actionBoundText.d.ts +30 -36
  63. package/dist/types/excalidraw/actions/actionCanvas.d.ts +204 -242
  64. package/dist/types/excalidraw/actions/actionClipboard.d.ts +90 -106
  65. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +15 -18
  66. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +45 -53
  67. package/dist/types/excalidraw/actions/actionElementLink.d.ts +14 -17
  68. package/dist/types/excalidraw/actions/actionElementLock.d.ts +45 -52
  69. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +15 -18
  70. package/dist/types/excalidraw/actions/actionExport.d.ts +145 -172
  71. package/dist/types/excalidraw/actions/actionFinalize.d.ts +77 -42
  72. package/dist/types/excalidraw/actions/actionFrame.d.ts +107 -119
  73. package/dist/types/excalidraw/actions/actionGroup.d.ts +30 -36
  74. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  75. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +541 -20
  76. package/dist/types/excalidraw/actions/actionLink.d.ts +14 -17
  77. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -51
  78. package/dist/types/excalidraw/actions/actionNavigate.d.ts +29 -35
  79. package/dist/types/excalidraw/actions/actionProperties.d.ts +246 -274
  80. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +15 -18
  81. package/dist/types/excalidraw/actions/actionStyles.d.ts +15 -18
  82. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +15 -18
  83. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +15 -18
  84. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +14 -190
  85. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  86. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +15 -18
  87. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +15 -18
  88. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +15 -18
  89. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  90. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  91. package/dist/types/excalidraw/appState.d.ts +20 -10
  92. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  93. package/dist/types/excalidraw/components/Actions.d.ts +8 -5
  94. package/dist/types/excalidraw/components/App.d.ts +30 -30
  95. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  96. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  97. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +7 -2
  98. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  99. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  100. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  101. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  102. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  103. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  105. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  106. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  107. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  108. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  109. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  110. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  111. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  112. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  113. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  116. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  117. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  118. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  119. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  124. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  125. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  126. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  127. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  128. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  129. package/dist/types/excalidraw/components/icons.d.ts +9 -0
  130. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  131. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  132. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  133. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  134. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  135. package/dist/types/excalidraw/data/types.d.ts +4 -1
  136. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  137. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  138. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  139. package/dist/types/excalidraw/history.d.ts +30 -22
  140. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  141. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  142. package/dist/types/excalidraw/index.d.ts +11 -10
  143. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  144. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  145. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  146. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  147. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  148. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  149. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  150. package/dist/types/excalidraw/scene/types.d.ts +2 -0
  151. package/dist/types/excalidraw/snapping.d.ts +2 -2
  152. package/dist/types/excalidraw/types.d.ts +36 -15
  153. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  154. package/dist/types/math/src/angle.d.ts +2 -0
  155. package/dist/types/math/src/constants.d.ts +3 -0
  156. package/dist/types/math/src/curve.d.ts +34 -0
  157. package/dist/types/math/src/index.d.ts +1 -0
  158. package/dist/types/math/src/point.d.ts +1 -1
  159. package/dist/types/math/src/rectangle.d.ts +2 -0
  160. package/dist/types/math/src/segment.d.ts +1 -0
  161. package/dist/types/math/src/vector.d.ts +8 -2
  162. package/dist/types/utils/src/bbox.d.ts +1 -1
  163. package/dist/types/utils/src/index.d.ts +1 -1
  164. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  165. package/history.ts +146 -109
  166. package/package.json +13 -10
  167. package/dist/dev/chunk-GBJ7S76A.js +0 -18599
  168. package/dist/dev/chunk-GBJ7S76A.js.map +0 -7
  169. package/dist/dev/chunk-GIMGG4AT.js +0 -7
  170. package/dist/dev/chunk-GIMGG4AT.js.map +0 -7
  171. package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
  172. package/dist/prod/chunk-GKI4RZ6C.js +0 -7
  173. package/dist/prod/chunk-IUH5AXLB.js +0 -12
  174. package/dist/prod/chunk-TVF64BAY.js +0 -33
  175. package/dist/prod/data/image-CZ2OEVDB.js +0 -1
  176. package/dist/types/element/src/Shape.d.ts +0 -17
  177. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  178. package/dist/types/element/src/shapes.d.ts +0 -23
  179. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  180. package/dist/types/excalidraw/store.d.ts +0 -129
  181. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  182. package/dist/types/utils/src/collision.d.ts +0 -8
  183. /package/dist/dev/data/{image-JN3Y4CVN.js.map → image-GQCFJKGM.js.map} +0 -0
  184. /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -19,7 +19,7 @@ export declare const actionCopy: {
19
19
  isLoading: boolean;
20
20
  activeEmbeddable: {
21
21
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
- state: "hover" | "active";
22
+ state: "active" | "hover";
23
23
  } | null;
24
24
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
25
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -27,7 +27,7 @@ export declare const actionCopy: {
27
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
29
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
30
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
31
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
@@ -38,7 +38,6 @@ export declare const actionCopy: {
38
38
  editingFrame: string | null;
39
39
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
40
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
42
41
  activeTool: {
43
42
  lastActiveTool: import("../types").ActiveTool | null;
44
43
  locked: boolean;
@@ -76,8 +75,8 @@ export declare const actionCopy: {
76
75
  zoom: Readonly<{
77
76
  value: import("../types").NormalizedZoomValue;
78
77
  }>;
79
- openMenu: "shape" | "canvas" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
78
+ openMenu: "canvas" | "shape" | null;
79
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
81
80
  openSidebar: {
82
81
  name: string;
83
82
  tab?: string | undefined;
@@ -86,7 +85,7 @@ export declare const actionCopy: {
86
85
  name: "imageExport" | "help" | "jsonExport";
87
86
  } | {
88
87
  name: "ttd";
89
- tab: "text-to-diagram" | "mermaid";
88
+ tab: "mermaid" | "text-to-diagram";
90
89
  } | {
91
90
  name: "commandPalette";
92
91
  } | {
@@ -158,9 +157,8 @@ export declare const actionCopy: {
158
157
  shown: true;
159
158
  data: import("../charts").Spreadsheet;
160
159
  };
161
- pendingImageElementId: string | null;
162
160
  showHyperlinkPopup: false | "editor" | "info";
163
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
161
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
164
162
  snapLines: readonly import("../snapping").SnapLine[];
165
163
  originSnapOffset: {
166
164
  x: number;
@@ -171,16 +169,15 @@ export declare const actionCopy: {
171
169
  followedBy: Set<import("../types").SocketId>;
172
170
  isCropping: boolean;
173
171
  croppingElementId: string | null;
174
- searchMatches: readonly {
175
- id: string;
176
- focus: boolean;
177
- matchedLines: {
178
- offsetX: number;
179
- offsetY: number;
180
- width: number;
181
- height: number;
182
- }[];
183
- }[];
172
+ searchMatches: Readonly<{
173
+ focusedId: string | null;
174
+ matches: readonly import("../types").SearchMatch[];
175
+ }> | null;
176
+ activeLockedId: string | null;
177
+ lockedMultiSelections: {
178
+ [groupId: string]: true;
179
+ };
180
+ stylesPanelMode: "compact" | "full";
184
181
  };
185
182
  } | {
186
183
  captureUpdate: "EVENTUALLY";
@@ -209,7 +206,7 @@ export declare const actionPaste: {
209
206
  isLoading: boolean;
210
207
  activeEmbeddable: {
211
208
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
212
- state: "hover" | "active";
209
+ state: "active" | "hover";
213
210
  } | null;
214
211
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
215
212
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -217,7 +214,7 @@ export declare const actionPaste: {
217
214
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
218
215
  isBindingEnabled: boolean;
219
216
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
220
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
217
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
221
218
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
222
219
  frameRendering: {
223
220
  enabled: boolean;
@@ -228,7 +225,6 @@ export declare const actionPaste: {
228
225
  editingFrame: string | null;
229
226
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
230
227
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
231
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
232
228
  activeTool: {
233
229
  lastActiveTool: import("../types").ActiveTool | null;
234
230
  locked: boolean;
@@ -266,8 +262,8 @@ export declare const actionPaste: {
266
262
  zoom: Readonly<{
267
263
  value: import("../types").NormalizedZoomValue;
268
264
  }>;
269
- openMenu: "shape" | "canvas" | null;
270
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
265
+ openMenu: "canvas" | "shape" | null;
266
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
271
267
  openSidebar: {
272
268
  name: string;
273
269
  tab?: string | undefined;
@@ -276,7 +272,7 @@ export declare const actionPaste: {
276
272
  name: "imageExport" | "help" | "jsonExport";
277
273
  } | {
278
274
  name: "ttd";
279
- tab: "text-to-diagram" | "mermaid";
275
+ tab: "mermaid" | "text-to-diagram";
280
276
  } | {
281
277
  name: "commandPalette";
282
278
  } | {
@@ -348,9 +344,8 @@ export declare const actionPaste: {
348
344
  shown: true;
349
345
  data: import("../charts").Spreadsheet;
350
346
  };
351
- pendingImageElementId: string | null;
352
347
  showHyperlinkPopup: false | "editor" | "info";
353
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
348
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
354
349
  snapLines: readonly import("../snapping").SnapLine[];
355
350
  originSnapOffset: {
356
351
  x: number;
@@ -361,16 +356,15 @@ export declare const actionPaste: {
361
356
  followedBy: Set<import("../types").SocketId>;
362
357
  isCropping: boolean;
363
358
  croppingElementId: string | null;
364
- searchMatches: readonly {
365
- id: string;
366
- focus: boolean;
367
- matchedLines: {
368
- offsetX: number;
369
- offsetY: number;
370
- width: number;
371
- height: number;
372
- }[];
373
- }[];
359
+ searchMatches: Readonly<{
360
+ focusedId: string | null;
361
+ matches: readonly import("../types").SearchMatch[];
362
+ }> | null;
363
+ activeLockedId: string | null;
364
+ lockedMultiSelections: {
365
+ [groupId: string]: true;
366
+ };
367
+ stylesPanelMode: "compact" | "full";
374
368
  };
375
369
  } | {
376
370
  captureUpdate: "EVENTUALLY";
@@ -390,7 +384,7 @@ export declare const actionCut: {
390
384
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
391
385
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
392
386
  appState: {
393
- editingLinearElement: null;
387
+ selectedLinearElement: null;
394
388
  contextMenu: {
395
389
  items: import("../components/ContextMenu").ContextMenuItems;
396
390
  top: number;
@@ -401,7 +395,7 @@ export declare const actionCut: {
401
395
  errorMessage: import("react").ReactNode;
402
396
  activeEmbeddable: {
403
397
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
404
- state: "hover" | "active";
398
+ state: "active" | "hover";
405
399
  } | null;
406
400
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
407
401
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -409,7 +403,7 @@ export declare const actionCut: {
409
403
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
404
  isBindingEnabled: boolean;
411
405
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
412
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
406
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
413
407
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
414
408
  frameRendering: {
415
409
  enabled: boolean;
@@ -457,8 +451,8 @@ export declare const actionCut: {
457
451
  zoom: Readonly<{
458
452
  value: import("../types").NormalizedZoomValue;
459
453
  }>;
460
- openMenu: "shape" | "canvas" | null;
461
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
454
+ openMenu: "canvas" | "shape" | null;
455
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
462
456
  openSidebar: {
463
457
  name: string;
464
458
  tab?: string | undefined;
@@ -467,7 +461,7 @@ export declare const actionCut: {
467
461
  name: "imageExport" | "help" | "jsonExport";
468
462
  } | {
469
463
  name: "ttd";
470
- tab: "text-to-diagram" | "mermaid";
464
+ tab: "mermaid" | "text-to-diagram";
471
465
  } | {
472
466
  name: "commandPalette";
473
467
  } | {
@@ -539,9 +533,7 @@ export declare const actionCut: {
539
533
  shown: true;
540
534
  data: import("../charts").Spreadsheet;
541
535
  };
542
- pendingImageElementId: string | null;
543
536
  showHyperlinkPopup: false | "editor" | "info";
544
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
545
537
  snapLines: readonly import("../snapping").SnapLine[];
546
538
  originSnapOffset: {
547
539
  x: number;
@@ -552,22 +544,21 @@ export declare const actionCut: {
552
544
  followedBy: Set<import("../types").SocketId>;
553
545
  isCropping: boolean;
554
546
  croppingElementId: string | null;
555
- searchMatches: readonly {
556
- id: string;
557
- focus: boolean;
558
- matchedLines: {
559
- offsetX: number;
560
- offsetY: number;
561
- width: number;
562
- height: number;
563
- }[];
564
- }[];
547
+ searchMatches: Readonly<{
548
+ focusedId: string | null;
549
+ matches: readonly import("../types").SearchMatch[];
550
+ }> | null;
551
+ activeLockedId: string | null;
552
+ lockedMultiSelections: {
553
+ [groupId: string]: true;
554
+ };
555
+ stylesPanelMode: "compact" | "full";
565
556
  };
566
557
  captureUpdate: "IMMEDIATELY";
567
558
  } | {
568
559
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
569
560
  appState: {
570
- editingLinearElement: {
561
+ selectedLinearElement: {
571
562
  selectedPointsIndices: number[];
572
563
  startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
573
564
  endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
@@ -597,6 +588,8 @@ export declare const actionCut: {
597
588
  hoverPointIndex: number;
598
589
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
599
590
  elbowed: boolean;
591
+ customLineAngle: number | null;
592
+ isEditing: boolean;
600
593
  };
601
594
  contextMenu: {
602
595
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -608,7 +601,7 @@ export declare const actionCut: {
608
601
  errorMessage: import("react").ReactNode;
609
602
  activeEmbeddable: {
610
603
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
611
- state: "hover" | "active";
604
+ state: "active" | "hover";
612
605
  } | null;
613
606
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
614
607
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -616,7 +609,7 @@ export declare const actionCut: {
616
609
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
617
610
  isBindingEnabled: boolean;
618
611
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
619
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
612
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
620
613
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
621
614
  frameRendering: {
622
615
  enabled: boolean;
@@ -664,8 +657,8 @@ export declare const actionCut: {
664
657
  zoom: Readonly<{
665
658
  value: import("../types").NormalizedZoomValue;
666
659
  }>;
667
- openMenu: "shape" | "canvas" | null;
668
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
660
+ openMenu: "canvas" | "shape" | null;
661
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
669
662
  openSidebar: {
670
663
  name: string;
671
664
  tab?: string | undefined;
@@ -674,7 +667,7 @@ export declare const actionCut: {
674
667
  name: "imageExport" | "help" | "jsonExport";
675
668
  } | {
676
669
  name: "ttd";
677
- tab: "text-to-diagram" | "mermaid";
670
+ tab: "mermaid" | "text-to-diagram";
678
671
  } | {
679
672
  name: "commandPalette";
680
673
  } | {
@@ -746,9 +739,7 @@ export declare const actionCut: {
746
739
  shown: true;
747
740
  data: import("../charts").Spreadsheet;
748
741
  };
749
- pendingImageElementId: string | null;
750
742
  showHyperlinkPopup: false | "editor" | "info";
751
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
752
743
  snapLines: readonly import("../snapping").SnapLine[];
753
744
  originSnapOffset: {
754
745
  x: number;
@@ -759,16 +750,15 @@ export declare const actionCut: {
759
750
  followedBy: Set<import("../types").SocketId>;
760
751
  isCropping: boolean;
761
752
  croppingElementId: string | null;
762
- searchMatches: readonly {
763
- id: string;
764
- focus: boolean;
765
- matchedLines: {
766
- offsetX: number;
767
- offsetY: number;
768
- width: number;
769
- height: number;
770
- }[];
771
- }[];
753
+ searchMatches: Readonly<{
754
+ focusedId: string | null;
755
+ matches: readonly import("../types").SearchMatch[];
756
+ }> | null;
757
+ activeLockedId: string | null;
758
+ lockedMultiSelections: {
759
+ [groupId: string]: true;
760
+ };
761
+ stylesPanelMode: "compact" | "full";
772
762
  };
773
763
  captureUpdate: "IMMEDIATELY";
774
764
  } | {
@@ -802,7 +792,7 @@ export declare const actionCut: {
802
792
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
803
793
  isBindingEnabled: boolean;
804
794
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
805
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
795
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
806
796
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
807
797
  frameRendering: {
808
798
  enabled: boolean;
@@ -813,7 +803,6 @@ export declare const actionCut: {
813
803
  editingFrame: string | null;
814
804
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
815
805
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
816
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
817
806
  penMode: boolean;
818
807
  penDetected: boolean;
819
808
  exportBackground: boolean;
@@ -846,8 +835,8 @@ export declare const actionCut: {
846
835
  zoom: Readonly<{
847
836
  value: import("../types").NormalizedZoomValue;
848
837
  }>;
849
- openMenu: "shape" | "canvas" | null;
850
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
838
+ openMenu: "canvas" | "shape" | null;
839
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
851
840
  openSidebar: {
852
841
  name: string;
853
842
  tab?: string | undefined;
@@ -856,7 +845,7 @@ export declare const actionCut: {
856
845
  name: "imageExport" | "help" | "jsonExport";
857
846
  } | {
858
847
  name: "ttd";
859
- tab: "text-to-diagram" | "mermaid";
848
+ tab: "mermaid" | "text-to-diagram";
860
849
  } | {
861
850
  name: "commandPalette";
862
851
  } | {
@@ -921,7 +910,6 @@ export declare const actionCut: {
921
910
  shown: true;
922
911
  data: import("../charts").Spreadsheet;
923
912
  };
924
- pendingImageElementId: string | null;
925
913
  showHyperlinkPopup: false | "editor" | "info";
926
914
  snapLines: readonly import("../snapping").SnapLine[];
927
915
  originSnapOffset: {
@@ -933,16 +921,15 @@ export declare const actionCut: {
933
921
  followedBy: Set<import("../types").SocketId>;
934
922
  isCropping: boolean;
935
923
  croppingElementId: string | null;
936
- searchMatches: readonly {
937
- id: string;
938
- focus: boolean;
939
- matchedLines: {
940
- offsetX: number;
941
- offsetY: number;
942
- width: number;
943
- height: number;
944
- }[];
945
- }[];
924
+ searchMatches: Readonly<{
925
+ focusedId: string | null;
926
+ matches: readonly import("../types").SearchMatch[];
927
+ }> | null;
928
+ activeLockedId: string | null;
929
+ lockedMultiSelections: {
930
+ [groupId: string]: true;
931
+ };
932
+ stylesPanelMode: "compact" | "full";
946
933
  };
947
934
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
948
935
  };
@@ -1002,7 +989,7 @@ export declare const actionCopyAsPng: {
1002
989
  isLoading: boolean;
1003
990
  activeEmbeddable: {
1004
991
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1005
- state: "hover" | "active";
992
+ state: "active" | "hover";
1006
993
  } | null;
1007
994
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1008
995
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1010,7 +997,7 @@ export declare const actionCopyAsPng: {
1010
997
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1011
998
  isBindingEnabled: boolean;
1012
999
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1013
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1000
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1014
1001
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1015
1002
  frameRendering: {
1016
1003
  enabled: boolean;
@@ -1021,7 +1008,6 @@ export declare const actionCopyAsPng: {
1021
1008
  editingFrame: string | null;
1022
1009
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1023
1010
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1024
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1025
1011
  activeTool: {
1026
1012
  lastActiveTool: import("../types").ActiveTool | null;
1027
1013
  locked: boolean;
@@ -1059,8 +1045,8 @@ export declare const actionCopyAsPng: {
1059
1045
  zoom: Readonly<{
1060
1046
  value: import("../types").NormalizedZoomValue;
1061
1047
  }>;
1062
- openMenu: "shape" | "canvas" | null;
1063
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1048
+ openMenu: "canvas" | "shape" | null;
1049
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1064
1050
  openSidebar: {
1065
1051
  name: string;
1066
1052
  tab?: string | undefined;
@@ -1069,7 +1055,7 @@ export declare const actionCopyAsPng: {
1069
1055
  name: "imageExport" | "help" | "jsonExport";
1070
1056
  } | {
1071
1057
  name: "ttd";
1072
- tab: "text-to-diagram" | "mermaid";
1058
+ tab: "mermaid" | "text-to-diagram";
1073
1059
  } | {
1074
1060
  name: "commandPalette";
1075
1061
  } | {
@@ -1141,9 +1127,8 @@ export declare const actionCopyAsPng: {
1141
1127
  shown: true;
1142
1128
  data: import("../charts").Spreadsheet;
1143
1129
  };
1144
- pendingImageElementId: string | null;
1145
1130
  showHyperlinkPopup: false | "editor" | "info";
1146
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1131
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1147
1132
  snapLines: readonly import("../snapping").SnapLine[];
1148
1133
  originSnapOffset: {
1149
1134
  x: number;
@@ -1154,16 +1139,15 @@ export declare const actionCopyAsPng: {
1154
1139
  followedBy: Set<import("../types").SocketId>;
1155
1140
  isCropping: boolean;
1156
1141
  croppingElementId: string | null;
1157
- searchMatches: readonly {
1158
- id: string;
1159
- focus: boolean;
1160
- matchedLines: {
1161
- offsetX: number;
1162
- offsetY: number;
1163
- width: number;
1164
- height: number;
1165
- }[];
1166
- }[];
1142
+ searchMatches: Readonly<{
1143
+ focusedId: string | null;
1144
+ matches: readonly import("../types").SearchMatch[];
1145
+ }> | null;
1146
+ activeLockedId: string | null;
1147
+ lockedMultiSelections: {
1148
+ [groupId: string]: true;
1149
+ };
1150
+ stylesPanelMode: "compact" | "full";
1167
1151
  };
1168
1152
  captureUpdate: "EVENTUALLY";
1169
1153
  }>;
@@ -22,7 +22,7 @@ export declare const actionToggleCropEditor: {
22
22
  errorMessage: import("react").ReactNode;
23
23
  activeEmbeddable: {
24
24
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
- state: "hover" | "active";
25
+ state: "active" | "hover";
26
26
  } | null;
27
27
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
28
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -30,7 +30,7 @@ export declare const actionToggleCropEditor: {
30
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
31
  isBindingEnabled: boolean;
32
32
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
33
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
34
34
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
35
  frameRendering: {
36
36
  enabled: boolean;
@@ -41,7 +41,6 @@ export declare const actionToggleCropEditor: {
41
41
  editingFrame: string | null;
42
42
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
43
43
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
44
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
45
44
  activeTool: {
46
45
  lastActiveTool: import("../types").ActiveTool | null;
47
46
  locked: boolean;
@@ -79,8 +78,8 @@ export declare const actionToggleCropEditor: {
79
78
  zoom: Readonly<{
80
79
  value: import("../types").NormalizedZoomValue;
81
80
  }>;
82
- openMenu: "shape" | "canvas" | null;
83
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
+ openMenu: "canvas" | "shape" | null;
82
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
83
  openSidebar: {
85
84
  name: string;
86
85
  tab?: string | undefined;
@@ -89,7 +88,7 @@ export declare const actionToggleCropEditor: {
89
88
  name: "imageExport" | "help" | "jsonExport";
90
89
  } | {
91
90
  name: "ttd";
92
- tab: "text-to-diagram" | "mermaid";
91
+ tab: "mermaid" | "text-to-diagram";
93
92
  } | {
94
93
  name: "commandPalette";
95
94
  } | {
@@ -161,9 +160,8 @@ export declare const actionToggleCropEditor: {
161
160
  shown: true;
162
161
  data: import("../charts").Spreadsheet;
163
162
  };
164
- pendingImageElementId: string | null;
165
163
  showHyperlinkPopup: false | "editor" | "info";
166
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
164
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
167
165
  snapLines: readonly import("../snapping").SnapLine[];
168
166
  originSnapOffset: {
169
167
  x: number;
@@ -172,16 +170,15 @@ export declare const actionToggleCropEditor: {
172
170
  objectsSnapModeEnabled: boolean;
173
171
  userToFollow: import("../types").UserToFollow | null;
174
172
  followedBy: Set<import("../types").SocketId>;
175
- searchMatches: readonly {
176
- id: string;
177
- focus: boolean;
178
- matchedLines: {
179
- offsetX: number;
180
- offsetY: number;
181
- width: number;
182
- height: number;
183
- }[];
184
- }[];
173
+ searchMatches: Readonly<{
174
+ focusedId: string | null;
175
+ matches: readonly import("../types").SearchMatch[];
176
+ }> | null;
177
+ activeLockedId: string | null;
178
+ lockedMultiSelections: {
179
+ [groupId: string]: true;
180
+ };
181
+ stylesPanelMode: "compact" | "full";
185
182
  };
186
183
  captureUpdate: "IMMEDIATELY";
187
184
  };