@excalidraw/excalidraw 0.18.0-a30e1b2 → 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 (175) 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-CARD3WJZ.js → chunk-QF5FRM6O.js} +7 -2
  6. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  7. package/dist/dev/data/{image-AYLHSOBV.js → image-GQCFJKGM.js} +3 -3
  8. package/dist/dev/index.css +187 -21
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +15073 -16288
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-E3O5XSXJ.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 +27 -20
  21. package/dist/prod/locales/{en-44IKVKYT.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 +38 -7
  25. package/dist/types/common/src/utils.d.ts +7 -5
  26. package/dist/types/element/src/Scene.d.ts +10 -6
  27. package/dist/types/element/src/align.d.ts +3 -2
  28. package/dist/types/element/src/binding.d.ts +11 -8
  29. package/dist/types/element/src/bounds.d.ts +12 -4
  30. package/dist/types/element/src/collision.d.ts +18 -12
  31. package/dist/types/element/src/cropElement.d.ts +1 -1
  32. package/dist/types/element/src/delta.d.ts +41 -9
  33. package/dist/types/element/src/distance.d.ts +2 -2
  34. package/dist/types/element/src/distribute.d.ts +2 -1
  35. package/dist/types/element/src/dragElements.d.ts +1 -1
  36. package/dist/types/element/src/flowchart.d.ts +1 -1
  37. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  38. package/dist/types/element/src/frame.d.ts +2 -2
  39. package/dist/types/element/src/groups.d.ts +1 -0
  40. package/dist/types/element/src/index.d.ts +42 -0
  41. package/dist/types/element/src/linearElementEditor.d.ts +15 -24
  42. package/dist/types/element/src/mutateElement.d.ts +1 -1
  43. package/dist/types/element/src/newElement.d.ts +3 -2
  44. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  45. package/dist/types/element/src/renderElement.d.ts +4 -1
  46. package/dist/types/element/src/resizeElements.d.ts +2 -1
  47. package/dist/types/element/src/selection.d.ts +0 -5
  48. package/dist/types/element/src/shape.d.ts +42 -0
  49. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  50. package/dist/types/element/src/store.d.ts +19 -9
  51. package/dist/types/element/src/textElement.d.ts +2 -2
  52. package/dist/types/element/src/transformHandles.d.ts +2 -2
  53. package/dist/types/element/src/typeChecks.d.ts +16 -1
  54. package/dist/types/element/src/types.d.ts +10 -4
  55. package/dist/types/element/src/utils.d.ts +16 -6
  56. package/dist/types/element/src/zindex.d.ts +3 -3
  57. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +24 -15
  58. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  59. package/dist/types/excalidraw/actions/actionBoundText.d.ts +16 -10
  60. package/dist/types/excalidraw/actions/actionCanvas.d.ts +134 -94
  61. package/dist/types/excalidraw/actions/actionClipboard.d.ts +53 -33
  62. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +8 -5
  63. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +27 -17
  64. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  65. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  66. package/dist/types/excalidraw/actions/actionElementLink.d.ts +8 -5
  67. package/dist/types/excalidraw/actions/actionElementLock.d.ts +31 -26
  68. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +8 -5
  69. package/dist/types/excalidraw/actions/actionExport.d.ts +94 -67
  70. package/dist/types/excalidraw/actions/actionFinalize.d.ts +66 -19
  71. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  72. package/dist/types/excalidraw/actions/actionFrame.d.ts +81 -69
  73. package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -14
  74. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +534 -7
  75. package/dist/types/excalidraw/actions/actionLink.d.ts +10 -7
  76. package/dist/types/excalidraw/actions/actionMenu.d.ts +26 -17
  77. package/dist/types/excalidraw/actions/actionNavigate.d.ts +16 -10
  78. package/dist/types/excalidraw/actions/actionProperties.d.ts +145 -83
  79. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -7
  80. package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -9
  81. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -7
  82. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -7
  83. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -7
  84. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -7
  85. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -7
  86. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -7
  87. package/dist/types/excalidraw/actions/actionZindex.d.ts +10 -10
  88. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +3 -2
  90. package/dist/types/excalidraw/appState.d.ts +20 -10
  91. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  92. package/dist/types/excalidraw/components/Actions.d.ts +8 -5
  93. package/dist/types/excalidraw/components/App.d.ts +22 -21
  94. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  95. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  96. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +7 -2
  97. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  98. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  99. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  100. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  101. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  102. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  103. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
  105. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  107. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  108. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  109. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  110. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  111. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  112. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  116. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  117. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  118. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  119. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  123. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  124. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  125. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  126. package/dist/types/excalidraw/components/icons.d.ts +9 -0
  127. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  128. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  129. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  130. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  131. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  132. package/dist/types/excalidraw/data/types.d.ts +4 -1
  133. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  134. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  135. package/dist/types/excalidraw/history.d.ts +21 -5
  136. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  137. package/dist/types/excalidraw/index.d.ts +11 -10
  138. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  139. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  140. package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
  141. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  142. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  143. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  144. package/dist/types/excalidraw/snapping.d.ts +2 -2
  145. package/dist/types/excalidraw/types.d.ts +24 -13
  146. package/dist/types/math/src/angle.d.ts +2 -0
  147. package/dist/types/math/src/constants.d.ts +3 -0
  148. package/dist/types/math/src/curve.d.ts +32 -0
  149. package/dist/types/math/src/index.d.ts +1 -0
  150. package/dist/types/math/src/point.d.ts +1 -1
  151. package/dist/types/math/src/rectangle.d.ts +2 -0
  152. package/dist/types/math/src/segment.d.ts +1 -0
  153. package/dist/types/math/src/vector.d.ts +4 -2
  154. package/dist/types/utils/src/bbox.d.ts +1 -1
  155. package/dist/types/utils/src/index.d.ts +1 -1
  156. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  157. package/history.ts +108 -45
  158. package/package.json +13 -10
  159. package/dist/dev/chunk-CARD3WJZ.js.map +0 -7
  160. package/dist/dev/chunk-ETWEPOFC.js +0 -18701
  161. package/dist/dev/chunk-ETWEPOFC.js.map +0 -7
  162. package/dist/dev/chunk-RS23HYC4.js +0 -7
  163. package/dist/dev/chunk-RS23HYC4.js.map +0 -7
  164. package/dist/prod/chunk-6BSJPDKJ.js +0 -33
  165. package/dist/prod/chunk-FGHASORR.js +0 -12
  166. package/dist/prod/chunk-SBKTMZM7.js +0 -7
  167. package/dist/prod/data/image-VAYKYPXV.js +0 -1
  168. package/dist/types/element/src/Shape.d.ts +0 -17
  169. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  170. package/dist/types/element/src/shapes.d.ts +0 -23
  171. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  172. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  173. package/dist/types/utils/src/collision.d.ts +0 -8
  174. /package/dist/dev/data/{image-AYLHSOBV.js.map → image-GQCFJKGM.js.map} +0 -0
  175. /package/dist/dev/locales/{en-E3O5XSXJ.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -1,15 +1,56 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
2
+ import { LinearElementEditor } from "@excalidraw/element";
3
+ import type { LocalPoint } from "@excalidraw/math";
4
+ import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
3
5
  import type { AppState } from "../types";
4
6
  export declare const actionFinalize: {
5
7
  name: "finalize";
6
8
  label: string;
7
9
  trackEvent: false;
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, data: any, app: import("../types").AppClassProperties) => {
11
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
12
+ appState: {
13
+ selectedLinearElement: {
14
+ selectedPointsIndices: null;
15
+ elementId: string & {
16
+ _brand: "excalidrawLinearElementId";
17
+ };
18
+ pointerDownState: Readonly<{
19
+ prevSelectedPointsIndices: readonly number[] | null;
20
+ lastClickedPoint: number;
21
+ lastClickedIsEndPoint: boolean;
22
+ origin: Readonly<{
23
+ x: number;
24
+ y: number;
25
+ }> | null;
26
+ segmentMidpoint: {
27
+ value: import("@excalidraw/math").GlobalPoint | null;
28
+ index: number | null;
29
+ added: boolean;
30
+ };
31
+ }>;
32
+ isDragging: boolean;
33
+ lastUncommittedPoint: LocalPoint | null;
34
+ pointerOffset: Readonly<{
35
+ x: number;
36
+ y: number;
37
+ }>;
38
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
39
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
40
+ hoverPointIndex: number;
41
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
42
+ elbowed: boolean;
43
+ customLineAngle: number | null;
44
+ isEditing: boolean;
45
+ };
46
+ suggestedBindings: never[];
47
+ };
48
+ captureUpdate: "IMMEDIATELY";
49
+ } | {
9
50
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
10
51
  appState: {
11
52
  cursorButton: "up";
12
- editingLinearElement: null;
53
+ selectedLinearElement: LinearElementEditor;
13
54
  contextMenu: {
14
55
  items: import("../components/ContextMenu").ContextMenuItems;
15
56
  top: number;
@@ -22,14 +63,14 @@ export declare const actionFinalize: {
22
63
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
64
  state: "active" | "hover";
24
65
  } | null;
25
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
66
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
67
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
68
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
28
69
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
70
  isBindingEnabled: boolean;
30
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
32
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
71
+ startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
72
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
73
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
74
  frameRendering: {
34
75
  enabled: boolean;
35
76
  name: boolean;
@@ -37,7 +78,7 @@ export declare const actionFinalize: {
37
78
  clip: boolean;
38
79
  };
39
80
  editingFrame: string | null;
40
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
81
+ elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
41
82
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
83
  activeTool: {
43
84
  lastActiveTool: import("../types").ActiveTool | null;
@@ -76,7 +117,7 @@ export declare const actionFinalize: {
76
117
  value: import("../types").NormalizedZoomValue;
77
118
  }>;
78
119
  openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
120
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
80
121
  openSidebar: {
81
122
  name: string;
82
123
  tab?: string | undefined;
@@ -157,9 +198,7 @@ export declare const actionFinalize: {
157
198
  shown: true;
158
199
  data: import("../charts").Spreadsheet;
159
200
  };
160
- pendingImageElementId: string | null;
161
201
  showHyperlinkPopup: false | "editor" | "info";
162
- selectedLinearElement: LinearElementEditor | null;
163
202
  snapLines: readonly import("../snapping").SnapLine[];
164
203
  originSnapOffset: {
165
204
  x: number;
@@ -174,6 +213,11 @@ export declare const actionFinalize: {
174
213
  focusedId: string | null;
175
214
  matches: readonly import("../types").SearchMatch[];
176
215
  }> | null;
216
+ activeLockedId: string | null;
217
+ lockedMultiSelections: {
218
+ [groupId: string]: true;
219
+ };
220
+ stylesPanelMode: "compact" | "full";
177
221
  };
178
222
  captureUpdate: "IMMEDIATELY";
179
223
  } | {
@@ -196,7 +240,6 @@ export declare const actionFinalize: {
196
240
  [id: string]: true;
197
241
  }>;
198
242
  selectedLinearElement: LinearElementEditor | null;
199
- pendingImageElementId: null;
200
243
  contextMenu: {
201
244
  items: import("../components/ContextMenu").ContextMenuItems;
202
245
  top: number;
@@ -207,7 +250,7 @@ export declare const actionFinalize: {
207
250
  errorMessage: import("react").ReactNode;
208
251
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
209
252
  isBindingEnabled: boolean;
210
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
253
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
211
254
  frameRendering: {
212
255
  enabled: boolean;
213
256
  name: boolean;
@@ -215,8 +258,7 @@ export declare const actionFinalize: {
215
258
  clip: boolean;
216
259
  };
217
260
  editingFrame: string | null;
218
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
219
- editingLinearElement: LinearElementEditor | null;
261
+ elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
220
262
  penMode: boolean;
221
263
  penDetected: boolean;
222
264
  exportBackground: boolean;
@@ -249,7 +291,7 @@ export declare const actionFinalize: {
249
291
  value: import("../types").NormalizedZoomValue;
250
292
  }>;
251
293
  openMenu: "canvas" | "shape" | null;
252
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
294
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
253
295
  openSidebar: {
254
296
  name: string;
255
297
  tab?: string | undefined;
@@ -342,11 +384,16 @@ export declare const actionFinalize: {
342
384
  focusedId: string | null;
343
385
  matches: readonly import("../types").SearchMatch[];
344
386
  }> | null;
387
+ activeLockedId: string | null;
388
+ lockedMultiSelections: {
389
+ [groupId: string]: true;
390
+ };
391
+ stylesPanelMode: "compact" | "full";
345
392
  };
346
393
  captureUpdate: "IMMEDIATELY";
347
394
  };
348
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
395
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
349
396
  PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
350
397
  } & {
351
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
398
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
352
399
  };
@@ -13,9 +13,9 @@ export declare const actionFlipHorizontal: {
13
13
  appState: Readonly<AppState>;
14
14
  captureUpdate: "IMMEDIATELY";
15
15
  };
16
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
16
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
17
17
  } & {
18
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
18
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
19
19
  };
20
20
  export declare const actionFlipVertical: {
21
21
  name: "flipVertical";
@@ -29,7 +29,7 @@ export declare const actionFlipVertical: {
29
29
  appState: Readonly<AppState>;
30
30
  captureUpdate: "IMMEDIATELY";
31
31
  };
32
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
32
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
33
33
  } & {
34
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
34
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
35
35
  };
@@ -29,7 +29,7 @@ export declare const actionSelectAllElementsInFrame: {
29
29
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
31
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
32
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
33
33
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
34
  frameRendering: {
35
35
  enabled: boolean;
@@ -40,7 +40,6 @@ export declare const actionSelectAllElementsInFrame: {
40
40
  editingFrame: string | null;
41
41
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
42
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
44
43
  activeTool: {
45
44
  lastActiveTool: import("../types").ActiveTool | null;
46
45
  locked: boolean;
@@ -79,7 +78,7 @@ export declare const actionSelectAllElementsInFrame: {
79
78
  value: import("../types").NormalizedZoomValue;
80
79
  }>;
81
80
  openMenu: "canvas" | "shape" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
82
  openSidebar: {
84
83
  name: string;
85
84
  tab?: string | undefined;
@@ -157,9 +156,8 @@ export declare const actionSelectAllElementsInFrame: {
157
156
  shown: true;
158
157
  data: import("../charts").Spreadsheet;
159
158
  };
160
- pendingImageElementId: string | null;
161
159
  showHyperlinkPopup: false | "editor" | "info";
162
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
160
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
161
  snapLines: readonly import("../snapping").SnapLine[];
164
162
  originSnapOffset: {
165
163
  x: number;
@@ -174,6 +172,11 @@ export declare const actionSelectAllElementsInFrame: {
174
172
  focusedId: string | null;
175
173
  matches: readonly import("../types").SearchMatch[];
176
174
  }> | null;
175
+ activeLockedId: string | null;
176
+ lockedMultiSelections: {
177
+ [groupId: string]: true;
178
+ };
179
+ stylesPanelMode: "compact" | "full";
177
180
  };
178
181
  captureUpdate: "IMMEDIATELY";
179
182
  } | {
@@ -215,7 +218,7 @@ export declare const actionRemoveAllElementsFromFrame: {
215
218
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
216
219
  isBindingEnabled: boolean;
217
220
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
218
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
221
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
219
222
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
220
223
  frameRendering: {
221
224
  enabled: boolean;
@@ -226,7 +229,6 @@ export declare const actionRemoveAllElementsFromFrame: {
226
229
  editingFrame: string | null;
227
230
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
228
231
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
230
232
  activeTool: {
231
233
  lastActiveTool: import("../types").ActiveTool | null;
232
234
  locked: boolean;
@@ -265,7 +267,7 @@ export declare const actionRemoveAllElementsFromFrame: {
265
267
  value: import("../types").NormalizedZoomValue;
266
268
  }>;
267
269
  openMenu: "canvas" | "shape" | null;
268
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
270
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
269
271
  openSidebar: {
270
272
  name: string;
271
273
  tab?: string | undefined;
@@ -343,9 +345,8 @@ export declare const actionRemoveAllElementsFromFrame: {
343
345
  shown: true;
344
346
  data: import("../charts").Spreadsheet;
345
347
  };
346
- pendingImageElementId: string | null;
347
348
  showHyperlinkPopup: false | "editor" | "info";
348
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
349
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
350
  snapLines: readonly import("../snapping").SnapLine[];
350
351
  originSnapOffset: {
351
352
  x: number;
@@ -360,6 +361,11 @@ export declare const actionRemoveAllElementsFromFrame: {
360
361
  focusedId: string | null;
361
362
  matches: readonly import("../types").SearchMatch[];
362
363
  }> | null;
364
+ activeLockedId: string | null;
365
+ lockedMultiSelections: {
366
+ [groupId: string]: true;
367
+ };
368
+ stylesPanelMode: "compact" | "full";
363
369
  };
364
370
  captureUpdate: "IMMEDIATELY";
365
371
  } | {
@@ -405,12 +411,11 @@ export declare const actionupdateFrameRendering: {
405
411
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
406
412
  isBindingEnabled: boolean;
407
413
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
408
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
414
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
409
415
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
410
416
  editingFrame: string | null;
411
417
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
412
418
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
413
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
414
419
  activeTool: {
415
420
  lastActiveTool: import("../types").ActiveTool | null;
416
421
  locked: boolean;
@@ -449,7 +454,7 @@ export declare const actionupdateFrameRendering: {
449
454
  value: import("../types").NormalizedZoomValue;
450
455
  }>;
451
456
  openMenu: "canvas" | "shape" | null;
452
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
457
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
453
458
  openSidebar: {
454
459
  name: string;
455
460
  tab?: string | undefined;
@@ -530,9 +535,8 @@ export declare const actionupdateFrameRendering: {
530
535
  shown: true;
531
536
  data: import("../charts").Spreadsheet;
532
537
  };
533
- pendingImageElementId: string | null;
534
538
  showHyperlinkPopup: false | "editor" | "info";
535
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
539
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
536
540
  snapLines: readonly import("../snapping").SnapLine[];
537
541
  originSnapOffset: {
538
542
  x: number;
@@ -547,6 +551,11 @@ export declare const actionupdateFrameRendering: {
547
551
  focusedId: string | null;
548
552
  matches: readonly import("../types").SearchMatch[];
549
553
  }> | null;
554
+ activeLockedId: string | null;
555
+ lockedMultiSelections: {
556
+ [groupId: string]: true;
557
+ };
558
+ stylesPanelMode: "compact" | "full";
550
559
  };
551
560
  captureUpdate: "EVENTUALLY";
552
561
  };
@@ -588,7 +597,7 @@ export declare const actionSetFrameAsActiveTool: {
588
597
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
589
598
  isBindingEnabled: boolean;
590
599
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
591
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
600
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
592
601
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
593
602
  frameRendering: {
594
603
  enabled: boolean;
@@ -599,7 +608,6 @@ export declare const actionSetFrameAsActiveTool: {
599
608
  editingFrame: string | null;
600
609
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
601
610
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
602
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
603
611
  penMode: boolean;
604
612
  penDetected: boolean;
605
613
  exportBackground: boolean;
@@ -633,7 +641,7 @@ export declare const actionSetFrameAsActiveTool: {
633
641
  value: import("../types").NormalizedZoomValue;
634
642
  }>;
635
643
  openMenu: "canvas" | "shape" | null;
636
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
644
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
637
645
  openSidebar: {
638
646
  name: string;
639
647
  tab?: string | undefined;
@@ -714,9 +722,8 @@ export declare const actionSetFrameAsActiveTool: {
714
722
  shown: true;
715
723
  data: import("../charts").Spreadsheet;
716
724
  };
717
- pendingImageElementId: string | null;
718
725
  showHyperlinkPopup: false | "editor" | "info";
719
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
726
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
720
727
  snapLines: readonly import("../snapping").SnapLine[];
721
728
  originSnapOffset: {
722
729
  x: number;
@@ -731,12 +738,17 @@ export declare const actionSetFrameAsActiveTool: {
731
738
  focusedId: string | null;
732
739
  matches: readonly import("../types").SearchMatch[];
733
740
  }> | null;
741
+ activeLockedId: string | null;
742
+ lockedMultiSelections: {
743
+ [groupId: string]: true;
744
+ };
745
+ stylesPanelMode: "compact" | "full";
734
746
  };
735
747
  captureUpdate: "EVENTUALLY";
736
748
  };
737
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
749
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
738
750
  } & {
739
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
751
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
740
752
  };
741
753
  export declare const actionWrapSelectionInFrame: {
742
754
  name: "wrapSelectionInFrame";
@@ -773,15 +785,21 @@ export declare const actionWrapSelectionInFrame: {
773
785
  frameId: string | null;
774
786
  boundElements: readonly Readonly<{
775
787
  id: string;
776
- type: "text" | "arrow";
788
+ type: "arrow" | "text";
777
789
  }>[] | null;
778
790
  updated: number;
779
791
  link: string | null;
780
792
  locked: boolean;
781
793
  customData?: Record<string, any> | undefined;
794
+ }> & Readonly<{
795
+ type: "line" | "arrow";
796
+ points: readonly import("@excalidraw/math").LocalPoint[];
797
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
798
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
799
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
800
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
801
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
782
802
  }> & {
783
- type: "rectangle";
784
- } & {
785
803
  index: import("@excalidraw/element/types").FractionalIndex;
786
804
  }) | (Readonly<{
787
805
  id: string;
@@ -810,14 +828,14 @@ export declare const actionWrapSelectionInFrame: {
810
828
  frameId: string | null;
811
829
  boundElements: readonly Readonly<{
812
830
  id: string;
813
- type: "text" | "arrow";
831
+ type: "arrow" | "text";
814
832
  }>[] | null;
815
833
  updated: number;
816
834
  link: string | null;
817
835
  locked: boolean;
818
836
  customData?: Record<string, any> | undefined;
819
837
  }> & {
820
- type: "diamond";
838
+ type: "selection";
821
839
  } & {
822
840
  index: import("@excalidraw/element/types").FractionalIndex;
823
841
  }) | (Readonly<{
@@ -847,15 +865,14 @@ export declare const actionWrapSelectionInFrame: {
847
865
  frameId: string | null;
848
866
  boundElements: readonly Readonly<{
849
867
  id: string;
850
- type: "text" | "arrow";
868
+ type: "arrow" | "text";
851
869
  }>[] | null;
852
870
  updated: number;
853
871
  link: string | null;
854
872
  locked: boolean;
855
873
  customData?: Record<string, any> | undefined;
856
874
  }> & {
857
- type: "frame";
858
- name: string | null;
875
+ type: "rectangle";
859
876
  } & {
860
877
  index: import("@excalidraw/element/types").FractionalIndex;
861
878
  }) | (Readonly<{
@@ -885,15 +902,14 @@ export declare const actionWrapSelectionInFrame: {
885
902
  frameId: string | null;
886
903
  boundElements: readonly Readonly<{
887
904
  id: string;
888
- type: "text" | "arrow";
905
+ type: "arrow" | "text";
889
906
  }>[] | null;
890
907
  updated: number;
891
908
  link: string | null;
892
909
  locked: boolean;
893
910
  customData?: Record<string, any> | undefined;
894
911
  }> & {
895
- type: "magicframe";
896
- name: string | null;
912
+ type: "diamond";
897
913
  } & {
898
914
  index: import("@excalidraw/element/types").FractionalIndex;
899
915
  }) | (Readonly<{
@@ -923,15 +939,15 @@ export declare const actionWrapSelectionInFrame: {
923
939
  frameId: string | null;
924
940
  boundElements: readonly Readonly<{
925
941
  id: string;
926
- type: "text" | "arrow";
942
+ type: "arrow" | "text";
927
943
  }>[] | null;
928
944
  updated: number;
929
945
  link: string | null;
930
946
  locked: boolean;
931
947
  customData?: Record<string, any> | undefined;
932
- }> & Readonly<{
933
- type: "embeddable";
934
948
  }> & {
949
+ type: "ellipse";
950
+ } & {
935
951
  index: import("@excalidraw/element/types").FractionalIndex;
936
952
  }) | (Readonly<{
937
953
  id: string;
@@ -960,18 +976,14 @@ export declare const actionWrapSelectionInFrame: {
960
976
  frameId: string | null;
961
977
  boundElements: readonly Readonly<{
962
978
  id: string;
963
- type: "text" | "arrow";
979
+ type: "arrow" | "text";
964
980
  }>[] | null;
965
981
  updated: number;
966
982
  link: string | null;
967
983
  locked: boolean;
968
984
  customData?: Record<string, any> | undefined;
969
985
  }> & Readonly<{
970
- type: "image";
971
- fileId: import("@excalidraw/element/types").FileId | null;
972
- status: "pending" | "saved" | "error";
973
- scale: [number, number];
974
- crop: import("@excalidraw/element/types").ImageCrop | null;
986
+ type: "embeddable";
975
987
  }> & {
976
988
  index: import("@excalidraw/element/types").FractionalIndex;
977
989
  }) | (Readonly<{
@@ -1001,7 +1013,7 @@ export declare const actionWrapSelectionInFrame: {
1001
1013
  frameId: string | null;
1002
1014
  boundElements: readonly Readonly<{
1003
1015
  id: string;
1004
- type: "text" | "arrow";
1016
+ type: "arrow" | "text";
1005
1017
  }>[] | null;
1006
1018
  updated: number;
1007
1019
  link: string | null;
@@ -1041,25 +1053,18 @@ export declare const actionWrapSelectionInFrame: {
1041
1053
  frameId: string | null;
1042
1054
  boundElements: readonly Readonly<{
1043
1055
  id: string;
1044
- type: "text" | "arrow";
1056
+ type: "arrow" | "text";
1045
1057
  }>[] | null;
1046
1058
  updated: number;
1047
1059
  link: string | null;
1048
1060
  locked: boolean;
1049
1061
  customData?: Record<string, any> | undefined;
1050
1062
  }> & Readonly<{
1051
- type: "text";
1052
- fontSize: number;
1053
- fontFamily: number;
1054
- text: string;
1055
- textAlign: string;
1056
- verticalAlign: string;
1057
- containerId: string | null;
1058
- originalText: string;
1059
- autoResize: boolean;
1060
- lineHeight: number & {
1061
- _brand: "unitlessLineHeight";
1062
- };
1063
+ type: "image";
1064
+ fileId: import("@excalidraw/element/types").FileId | null;
1065
+ status: "pending" | "error" | "saved";
1066
+ scale: [number, number];
1067
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1063
1068
  }> & {
1064
1069
  index: import("@excalidraw/element/types").FractionalIndex;
1065
1070
  }) | (Readonly<{
@@ -1089,14 +1094,15 @@ export declare const actionWrapSelectionInFrame: {
1089
1094
  frameId: string | null;
1090
1095
  boundElements: readonly Readonly<{
1091
1096
  id: string;
1092
- type: "text" | "arrow";
1097
+ type: "arrow" | "text";
1093
1098
  }>[] | null;
1094
1099
  updated: number;
1095
1100
  link: string | null;
1096
1101
  locked: boolean;
1097
1102
  customData?: Record<string, any> | undefined;
1098
1103
  }> & {
1099
- type: "selection";
1104
+ type: "frame";
1105
+ name: string | null;
1100
1106
  } & {
1101
1107
  index: import("@excalidraw/element/types").FractionalIndex;
1102
1108
  }) | (Readonly<{
@@ -1126,14 +1132,15 @@ export declare const actionWrapSelectionInFrame: {
1126
1132
  frameId: string | null;
1127
1133
  boundElements: readonly Readonly<{
1128
1134
  id: string;
1129
- type: "text" | "arrow";
1135
+ type: "arrow" | "text";
1130
1136
  }>[] | null;
1131
1137
  updated: number;
1132
1138
  link: string | null;
1133
1139
  locked: boolean;
1134
1140
  customData?: Record<string, any> | undefined;
1135
1141
  }> & {
1136
- type: "ellipse";
1142
+ type: "magicframe";
1143
+ name: string | null;
1137
1144
  } & {
1138
1145
  index: import("@excalidraw/element/types").FractionalIndex;
1139
1146
  }) | (Readonly<{
@@ -1163,20 +1170,25 @@ export declare const actionWrapSelectionInFrame: {
1163
1170
  frameId: string | null;
1164
1171
  boundElements: readonly Readonly<{
1165
1172
  id: string;
1166
- type: "text" | "arrow";
1173
+ type: "arrow" | "text";
1167
1174
  }>[] | null;
1168
1175
  updated: number;
1169
1176
  link: string | null;
1170
1177
  locked: boolean;
1171
1178
  customData?: Record<string, any> | undefined;
1172
1179
  }> & Readonly<{
1173
- type: "line" | "arrow";
1174
- points: readonly import("@excalidraw/math").LocalPoint[];
1175
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1176
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1177
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1178
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1179
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1180
+ type: "text";
1181
+ fontSize: number;
1182
+ fontFamily: number;
1183
+ text: string;
1184
+ textAlign: string;
1185
+ verticalAlign: string;
1186
+ containerId: string | null;
1187
+ originalText: string;
1188
+ autoResize: boolean;
1189
+ lineHeight: number & {
1190
+ _brand: "unitlessLineHeight";
1191
+ };
1180
1192
  }> & {
1181
1193
  index: import("@excalidraw/element/types").FractionalIndex;
1182
1194
  }) | (Readonly<{
@@ -1206,7 +1218,7 @@ export declare const actionWrapSelectionInFrame: {
1206
1218
  frameId: string | null;
1207
1219
  boundElements: readonly Readonly<{
1208
1220
  id: string;
1209
- type: "text" | "arrow";
1221
+ type: "arrow" | "text";
1210
1222
  }>[] | null;
1211
1223
  updated: number;
1212
1224
  link: string | null;