@excalidraw/excalidraw 0.18.0-c4c0649 → 0.18.0-c65b684e9

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 (128) hide show
  1. package/dist/dev/chunk-65CT75SH.js +5668 -0
  2. package/dist/dev/chunk-65CT75SH.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-JCUIYZXF.js → chunk-QF5FRM6O.js} +6 -2
  6. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  7. package/dist/dev/data/{image-SLEZBMLG.js → image-G3ZXYWE6.js} +3 -3
  8. package/dist/dev/index.css +51 -20
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +6832 -4278
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-ZDTPSZNL.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-GCFVWREF.js → chunk-I4UNSFV6.js} +4 -4
  17. package/dist/prod/chunk-YZO7PSYQ.js +4 -0
  18. package/dist/prod/data/image-53OPA26C.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +25 -18
  21. package/dist/prod/locales/{en-MHZ26NAR.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 +19 -3
  25. package/dist/types/common/src/utils.d.ts +3 -5
  26. package/dist/types/element/src/Scene.d.ts +1 -1
  27. package/dist/types/element/src/align.d.ts +2 -1
  28. package/dist/types/element/src/binding.d.ts +10 -7
  29. package/dist/types/element/src/bounds.d.ts +11 -3
  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 +37 -7
  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/fractionalIndex.d.ts +8 -2
  36. package/dist/types/element/src/frame.d.ts +2 -2
  37. package/dist/types/element/src/groups.d.ts +1 -0
  38. package/dist/types/element/src/index.d.ts +1 -3
  39. package/dist/types/element/src/linearElementEditor.d.ts +14 -23
  40. package/dist/types/element/src/mutateElement.d.ts +1 -1
  41. package/dist/types/element/src/newElement.d.ts +2 -1
  42. package/dist/types/element/src/resizeElements.d.ts +1 -0
  43. package/dist/types/element/src/selection.d.ts +1 -1
  44. package/dist/types/element/src/shape.d.ts +42 -0
  45. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  46. package/dist/types/element/src/store.d.ts +13 -8
  47. package/dist/types/element/src/transformHandles.d.ts +4 -4
  48. package/dist/types/element/src/typeChecks.d.ts +15 -1
  49. package/dist/types/element/src/types.d.ts +8 -3
  50. package/dist/types/element/src/utils.d.ts +16 -6
  51. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -15
  52. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  53. package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -10
  54. package/dist/types/excalidraw/actions/actionCanvas.d.ts +193 -154
  55. package/dist/types/excalidraw/actions/actionClipboard.d.ts +50 -36
  56. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -5
  57. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +27 -20
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -4
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +29 -26
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -5
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +147 -129
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +65 -20
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +78 -70
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -16
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +533 -7
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +8 -6
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +22 -16
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -10
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +119 -81
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -8
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +11 -9
  75. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +9 -7
  76. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +9 -7
  77. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -6
  78. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +9 -7
  79. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +9 -7
  80. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +9 -7
  81. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  82. package/dist/types/excalidraw/actions/types.d.ts +2 -1
  83. package/dist/types/excalidraw/appState.d.ts +29 -20
  84. package/dist/types/excalidraw/components/Actions.d.ts +0 -4
  85. package/dist/types/excalidraw/components/App.d.ts +14 -16
  86. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  87. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  88. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  89. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  90. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  91. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
  92. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  93. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  94. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  95. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  96. package/dist/types/excalidraw/history.d.ts +21 -5
  97. package/dist/types/excalidraw/index.d.ts +1 -0
  98. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  99. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  100. package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
  101. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  102. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  103. package/dist/types/excalidraw/types.d.ts +11 -7
  104. package/dist/types/math/src/angle.d.ts +2 -0
  105. package/dist/types/math/src/constants.d.ts +3 -0
  106. package/dist/types/math/src/curve.d.ts +32 -0
  107. package/dist/types/math/src/index.d.ts +1 -0
  108. package/dist/types/math/src/point.d.ts +1 -1
  109. package/dist/types/math/src/rectangle.d.ts +2 -0
  110. package/dist/types/math/src/vector.d.ts +4 -2
  111. package/history.ts +108 -45
  112. package/package.json +12 -9
  113. package/dist/dev/chunk-HNRFOURL.js +0 -23482
  114. package/dist/dev/chunk-HNRFOURL.js.map +0 -7
  115. package/dist/dev/chunk-JCUIYZXF.js.map +0 -7
  116. package/dist/dev/chunk-VKWYDXFZ.js +0 -7
  117. package/dist/dev/chunk-VKWYDXFZ.js.map +0 -7
  118. package/dist/prod/chunk-G6SRO7HP.js +0 -7
  119. package/dist/prod/chunk-M3D5LUUK.js +0 -33
  120. package/dist/prod/data/image-PMKVN4IF.js +0 -1
  121. package/dist/types/element/src/Shape.d.ts +0 -17
  122. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  123. package/dist/types/element/src/shapes.d.ts +0 -23
  124. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  125. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  126. package/dist/types/utils/src/collision.d.ts +0 -8
  127. /package/dist/dev/data/{image-SLEZBMLG.js.map → image-G3ZXYWE6.js.map} +0 -0
  128. /package/dist/dev/locales/{en-ZDTPSZNL.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -1,15 +1,56 @@
1
1
  /// <reference types="react" />
2
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;
@@ -20,16 +61,16 @@ export declare const actionFinalize: {
20
61
  errorMessage: import("react").ReactNode;
21
62
  activeEmbeddable: {
22
63
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
- state: "hover" | "active";
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;
71
+ startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
72
  suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
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;
@@ -85,7 +126,7 @@ export declare const actionFinalize: {
85
126
  name: "imageExport" | "help" | "jsonExport";
86
127
  } | {
87
128
  name: "ttd";
88
- tab: "text-to-diagram" | "mermaid";
129
+ tab: "mermaid" | "text-to-diagram";
89
130
  } | {
90
131
  name: "commandPalette";
91
132
  } | {
@@ -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
- showHyperlinkPopup: false | "info" | "editor";
162
- selectedLinearElement: LinearElementEditor | null;
201
+ showHyperlinkPopup: false | "editor" | "info";
163
202
  snapLines: readonly import("../snapping").SnapLine[];
164
203
  originSnapOffset: {
165
204
  x: number;
@@ -174,6 +213,10 @@ 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
+ };
177
220
  };
178
221
  captureUpdate: "IMMEDIATELY";
179
222
  } | {
@@ -196,7 +239,6 @@ export declare const actionFinalize: {
196
239
  [id: string]: true;
197
240
  }>;
198
241
  selectedLinearElement: LinearElementEditor | null;
199
- pendingImageElementId: null;
200
242
  contextMenu: {
201
243
  items: import("../components/ContextMenu").ContextMenuItems;
202
244
  top: number;
@@ -207,7 +249,7 @@ export declare const actionFinalize: {
207
249
  errorMessage: import("react").ReactNode;
208
250
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
209
251
  isBindingEnabled: boolean;
210
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
252
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
211
253
  frameRendering: {
212
254
  enabled: boolean;
213
255
  name: boolean;
@@ -215,8 +257,7 @@ export declare const actionFinalize: {
215
257
  clip: boolean;
216
258
  };
217
259
  editingFrame: string | null;
218
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
219
- editingLinearElement: LinearElementEditor | null;
260
+ elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
220
261
  penMode: boolean;
221
262
  penDetected: boolean;
222
263
  exportBackground: boolean;
@@ -258,7 +299,7 @@ export declare const actionFinalize: {
258
299
  name: "imageExport" | "help" | "jsonExport";
259
300
  } | {
260
301
  name: "ttd";
261
- tab: "text-to-diagram" | "mermaid";
302
+ tab: "mermaid" | "text-to-diagram";
262
303
  } | {
263
304
  name: "commandPalette";
264
305
  } | {
@@ -327,7 +368,7 @@ export declare const actionFinalize: {
327
368
  shown: true;
328
369
  data: import("../charts").Spreadsheet;
329
370
  };
330
- showHyperlinkPopup: false | "info" | "editor";
371
+ showHyperlinkPopup: false | "editor" | "info";
331
372
  snapLines: readonly import("../snapping").SnapLine[];
332
373
  originSnapOffset: {
333
374
  x: number;
@@ -342,11 +383,15 @@ export declare const actionFinalize: {
342
383
  focusedId: string | null;
343
384
  matches: readonly import("../types").SearchMatch[];
344
385
  }> | null;
386
+ activeLockedId: string | null;
387
+ lockedMultiSelections: {
388
+ [groupId: string]: true;
389
+ };
345
390
  };
346
391
  captureUpdate: "IMMEDIATELY";
347
392
  };
348
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
393
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
349
394
  PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
350
395
  } & {
351
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
396
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
352
397
  };
@@ -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
  };
@@ -21,7 +21,7 @@ export declare const actionSelectAllElementsInFrame: {
21
21
  errorMessage: import("react").ReactNode;
22
22
  activeEmbeddable: {
23
23
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
- state: "hover" | "active";
24
+ state: "active" | "hover";
25
25
  } | null;
26
26
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
27
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -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 | null;
44
43
  activeTool: {
45
44
  lastActiveTool: import("../types").ActiveTool | null;
46
45
  locked: boolean;
@@ -88,7 +87,7 @@ export declare const actionSelectAllElementsInFrame: {
88
87
  name: "imageExport" | "help" | "jsonExport";
89
88
  } | {
90
89
  name: "ttd";
91
- tab: "text-to-diagram" | "mermaid";
90
+ tab: "mermaid" | "text-to-diagram";
92
91
  } | {
93
92
  name: "commandPalette";
94
93
  } | {
@@ -157,8 +156,7 @@ export declare const actionSelectAllElementsInFrame: {
157
156
  shown: true;
158
157
  data: import("../charts").Spreadsheet;
159
158
  };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "info" | "editor";
159
+ showHyperlinkPopup: false | "editor" | "info";
162
160
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
161
  snapLines: readonly import("../snapping").SnapLine[];
164
162
  originSnapOffset: {
@@ -174,6 +172,10 @@ 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
+ };
177
179
  };
178
180
  captureUpdate: "IMMEDIATELY";
179
181
  } | {
@@ -207,7 +209,7 @@ export declare const actionRemoveAllElementsFromFrame: {
207
209
  errorMessage: import("react").ReactNode;
208
210
  activeEmbeddable: {
209
211
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
210
- state: "hover" | "active";
212
+ state: "active" | "hover";
211
213
  } | null;
212
214
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
213
215
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -226,7 +228,6 @@ export declare const actionRemoveAllElementsFromFrame: {
226
228
  editingFrame: string | null;
227
229
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
228
230
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
230
231
  activeTool: {
231
232
  lastActiveTool: import("../types").ActiveTool | null;
232
233
  locked: boolean;
@@ -274,7 +275,7 @@ export declare const actionRemoveAllElementsFromFrame: {
274
275
  name: "imageExport" | "help" | "jsonExport";
275
276
  } | {
276
277
  name: "ttd";
277
- tab: "text-to-diagram" | "mermaid";
278
+ tab: "mermaid" | "text-to-diagram";
278
279
  } | {
279
280
  name: "commandPalette";
280
281
  } | {
@@ -343,8 +344,7 @@ export declare const actionRemoveAllElementsFromFrame: {
343
344
  shown: true;
344
345
  data: import("../charts").Spreadsheet;
345
346
  };
346
- pendingImageElementId: string | null;
347
- showHyperlinkPopup: false | "info" | "editor";
347
+ showHyperlinkPopup: false | "editor" | "info";
348
348
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
349
  snapLines: readonly import("../snapping").SnapLine[];
350
350
  originSnapOffset: {
@@ -360,6 +360,10 @@ export declare const actionRemoveAllElementsFromFrame: {
360
360
  focusedId: string | null;
361
361
  matches: readonly import("../types").SearchMatch[];
362
362
  }> | null;
363
+ activeLockedId: string | null;
364
+ lockedMultiSelections: {
365
+ [groupId: string]: true;
366
+ };
363
367
  };
364
368
  captureUpdate: "IMMEDIATELY";
365
369
  } | {
@@ -397,7 +401,7 @@ export declare const actionupdateFrameRendering: {
397
401
  errorMessage: import("react").ReactNode;
398
402
  activeEmbeddable: {
399
403
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
400
- state: "hover" | "active";
404
+ state: "active" | "hover";
401
405
  } | null;
402
406
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
403
407
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -410,7 +414,6 @@ export declare const actionupdateFrameRendering: {
410
414
  editingFrame: string | null;
411
415
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
412
416
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
413
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
414
417
  activeTool: {
415
418
  lastActiveTool: import("../types").ActiveTool | null;
416
419
  locked: boolean;
@@ -458,7 +461,7 @@ export declare const actionupdateFrameRendering: {
458
461
  name: "imageExport" | "help" | "jsonExport";
459
462
  } | {
460
463
  name: "ttd";
461
- tab: "text-to-diagram" | "mermaid";
464
+ tab: "mermaid" | "text-to-diagram";
462
465
  } | {
463
466
  name: "commandPalette";
464
467
  } | {
@@ -530,8 +533,7 @@ export declare const actionupdateFrameRendering: {
530
533
  shown: true;
531
534
  data: import("../charts").Spreadsheet;
532
535
  };
533
- pendingImageElementId: string | null;
534
- showHyperlinkPopup: false | "info" | "editor";
536
+ showHyperlinkPopup: false | "editor" | "info";
535
537
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
536
538
  snapLines: readonly import("../snapping").SnapLine[];
537
539
  originSnapOffset: {
@@ -547,6 +549,10 @@ export declare const actionupdateFrameRendering: {
547
549
  focusedId: string | null;
548
550
  matches: readonly import("../types").SearchMatch[];
549
551
  }> | null;
552
+ activeLockedId: string | null;
553
+ lockedMultiSelections: {
554
+ [groupId: string]: true;
555
+ };
550
556
  };
551
557
  captureUpdate: "EVENTUALLY";
552
558
  };
@@ -580,7 +586,7 @@ export declare const actionSetFrameAsActiveTool: {
580
586
  errorMessage: import("react").ReactNode;
581
587
  activeEmbeddable: {
582
588
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
583
- state: "hover" | "active";
589
+ state: "active" | "hover";
584
590
  } | null;
585
591
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
586
592
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -599,7 +605,6 @@ export declare const actionSetFrameAsActiveTool: {
599
605
  editingFrame: string | null;
600
606
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
601
607
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
602
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
603
608
  penMode: boolean;
604
609
  penDetected: boolean;
605
610
  exportBackground: boolean;
@@ -642,7 +647,7 @@ export declare const actionSetFrameAsActiveTool: {
642
647
  name: "imageExport" | "help" | "jsonExport";
643
648
  } | {
644
649
  name: "ttd";
645
- tab: "text-to-diagram" | "mermaid";
650
+ tab: "mermaid" | "text-to-diagram";
646
651
  } | {
647
652
  name: "commandPalette";
648
653
  } | {
@@ -714,8 +719,7 @@ export declare const actionSetFrameAsActiveTool: {
714
719
  shown: true;
715
720
  data: import("../charts").Spreadsheet;
716
721
  };
717
- pendingImageElementId: string | null;
718
- showHyperlinkPopup: false | "info" | "editor";
722
+ showHyperlinkPopup: false | "editor" | "info";
719
723
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
720
724
  snapLines: readonly import("../snapping").SnapLine[];
721
725
  originSnapOffset: {
@@ -731,12 +735,16 @@ export declare const actionSetFrameAsActiveTool: {
731
735
  focusedId: string | null;
732
736
  matches: readonly import("../types").SearchMatch[];
733
737
  }> | null;
738
+ activeLockedId: string | null;
739
+ lockedMultiSelections: {
740
+ [groupId: string]: true;
741
+ };
734
742
  };
735
743
  captureUpdate: "EVENTUALLY";
736
744
  };
737
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
745
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
738
746
  } & {
739
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
747
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
740
748
  };
741
749
  export declare const actionWrapSelectionInFrame: {
742
750
  name: "wrapSelectionInFrame";
@@ -773,15 +781,21 @@ export declare const actionWrapSelectionInFrame: {
773
781
  frameId: string | null;
774
782
  boundElements: readonly Readonly<{
775
783
  id: string;
776
- type: "text" | "arrow";
784
+ type: "arrow" | "text";
777
785
  }>[] | null;
778
786
  updated: number;
779
787
  link: string | null;
780
788
  locked: boolean;
781
789
  customData?: Record<string, any> | undefined;
790
+ }> & Readonly<{
791
+ type: "line" | "arrow";
792
+ points: readonly import("@excalidraw/math").LocalPoint[];
793
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
794
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
795
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
796
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
797
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
782
798
  }> & {
783
- type: "selection";
784
- } & {
785
799
  index: import("@excalidraw/element/types").FractionalIndex;
786
800
  }) | (Readonly<{
787
801
  id: string;
@@ -810,14 +824,14 @@ export declare const actionWrapSelectionInFrame: {
810
824
  frameId: string | null;
811
825
  boundElements: readonly Readonly<{
812
826
  id: string;
813
- type: "text" | "arrow";
827
+ type: "arrow" | "text";
814
828
  }>[] | null;
815
829
  updated: number;
816
830
  link: string | null;
817
831
  locked: boolean;
818
832
  customData?: Record<string, any> | undefined;
819
833
  }> & {
820
- type: "rectangle";
834
+ type: "selection";
821
835
  } & {
822
836
  index: import("@excalidraw/element/types").FractionalIndex;
823
837
  }) | (Readonly<{
@@ -847,14 +861,14 @@ export declare const actionWrapSelectionInFrame: {
847
861
  frameId: string | null;
848
862
  boundElements: readonly Readonly<{
849
863
  id: string;
850
- type: "text" | "arrow";
864
+ type: "arrow" | "text";
851
865
  }>[] | null;
852
866
  updated: number;
853
867
  link: string | null;
854
868
  locked: boolean;
855
869
  customData?: Record<string, any> | undefined;
856
870
  }> & {
857
- type: "diamond";
871
+ type: "rectangle";
858
872
  } & {
859
873
  index: import("@excalidraw/element/types").FractionalIndex;
860
874
  }) | (Readonly<{
@@ -884,14 +898,14 @@ export declare const actionWrapSelectionInFrame: {
884
898
  frameId: string | null;
885
899
  boundElements: readonly Readonly<{
886
900
  id: string;
887
- type: "text" | "arrow";
901
+ type: "arrow" | "text";
888
902
  }>[] | null;
889
903
  updated: number;
890
904
  link: string | null;
891
905
  locked: boolean;
892
906
  customData?: Record<string, any> | undefined;
893
907
  }> & {
894
- type: "ellipse";
908
+ type: "diamond";
895
909
  } & {
896
910
  index: import("@excalidraw/element/types").FractionalIndex;
897
911
  }) | (Readonly<{
@@ -921,26 +935,15 @@ export declare const actionWrapSelectionInFrame: {
921
935
  frameId: string | null;
922
936
  boundElements: readonly Readonly<{
923
937
  id: string;
924
- type: "text" | "arrow";
938
+ type: "arrow" | "text";
925
939
  }>[] | null;
926
940
  updated: number;
927
941
  link: string | null;
928
942
  locked: boolean;
929
943
  customData?: Record<string, any> | undefined;
930
- }> & Readonly<{
931
- type: "text";
932
- fontSize: number;
933
- fontFamily: number;
934
- text: string;
935
- textAlign: string;
936
- verticalAlign: string;
937
- containerId: string | null;
938
- originalText: string;
939
- autoResize: boolean;
940
- lineHeight: number & {
941
- _brand: "unitlessLineHeight";
942
- };
943
944
  }> & {
945
+ type: "ellipse";
946
+ } & {
944
947
  index: import("@excalidraw/element/types").FractionalIndex;
945
948
  }) | (Readonly<{
946
949
  id: string;
@@ -969,20 +972,14 @@ export declare const actionWrapSelectionInFrame: {
969
972
  frameId: string | null;
970
973
  boundElements: readonly Readonly<{
971
974
  id: string;
972
- type: "text" | "arrow";
975
+ type: "arrow" | "text";
973
976
  }>[] | null;
974
977
  updated: number;
975
978
  link: string | null;
976
979
  locked: boolean;
977
980
  customData?: Record<string, any> | undefined;
978
981
  }> & Readonly<{
979
- type: "line" | "arrow";
980
- points: readonly import("@excalidraw/math").LocalPoint[];
981
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
982
- startBinding: import("@excalidraw/element/types").PointBinding | null;
983
- endBinding: import("@excalidraw/element/types").PointBinding | null;
984
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
985
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
982
+ type: "embeddable";
986
983
  }> & {
987
984
  index: import("@excalidraw/element/types").FractionalIndex;
988
985
  }) | (Readonly<{
@@ -1012,18 +1009,17 @@ export declare const actionWrapSelectionInFrame: {
1012
1009
  frameId: string | null;
1013
1010
  boundElements: readonly Readonly<{
1014
1011
  id: string;
1015
- type: "text" | "arrow";
1012
+ type: "arrow" | "text";
1016
1013
  }>[] | null;
1017
1014
  updated: number;
1018
1015
  link: string | null;
1019
1016
  locked: boolean;
1020
1017
  customData?: Record<string, any> | undefined;
1021
1018
  }> & Readonly<{
1022
- type: "freedraw";
1023
- points: readonly import("@excalidraw/math").LocalPoint[];
1024
- pressures: readonly number[];
1025
- simulatePressure: boolean;
1026
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1019
+ type: "iframe";
1020
+ customData?: {
1021
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1022
+ } | undefined;
1027
1023
  }> & {
1028
1024
  index: import("@excalidraw/element/types").FractionalIndex;
1029
1025
  }) | (Readonly<{
@@ -1053,7 +1049,7 @@ export declare const actionWrapSelectionInFrame: {
1053
1049
  frameId: string | null;
1054
1050
  boundElements: readonly Readonly<{
1055
1051
  id: string;
1056
- type: "text" | "arrow";
1052
+ type: "arrow" | "text";
1057
1053
  }>[] | null;
1058
1054
  updated: number;
1059
1055
  link: string | null;
@@ -1062,7 +1058,7 @@ export declare const actionWrapSelectionInFrame: {
1062
1058
  }> & Readonly<{
1063
1059
  type: "image";
1064
1060
  fileId: import("@excalidraw/element/types").FileId | null;
1065
- status: "error" | "pending" | "saved";
1061
+ status: "pending" | "error" | "saved";
1066
1062
  scale: [number, number];
1067
1063
  crop: import("@excalidraw/element/types").ImageCrop | null;
1068
1064
  }> & {
@@ -1094,7 +1090,7 @@ export declare const actionWrapSelectionInFrame: {
1094
1090
  frameId: string | null;
1095
1091
  boundElements: readonly Readonly<{
1096
1092
  id: string;
1097
- type: "text" | "arrow";
1093
+ type: "arrow" | "text";
1098
1094
  }>[] | null;
1099
1095
  updated: number;
1100
1096
  link: string | null;
@@ -1132,7 +1128,7 @@ export declare const actionWrapSelectionInFrame: {
1132
1128
  frameId: string | null;
1133
1129
  boundElements: readonly Readonly<{
1134
1130
  id: string;
1135
- type: "text" | "arrow";
1131
+ type: "arrow" | "text";
1136
1132
  }>[] | null;
1137
1133
  updated: number;
1138
1134
  link: string | null;
@@ -1170,17 +1166,25 @@ export declare const actionWrapSelectionInFrame: {
1170
1166
  frameId: string | null;
1171
1167
  boundElements: readonly Readonly<{
1172
1168
  id: string;
1173
- type: "text" | "arrow";
1169
+ type: "arrow" | "text";
1174
1170
  }>[] | null;
1175
1171
  updated: number;
1176
1172
  link: string | null;
1177
1173
  locked: boolean;
1178
1174
  customData?: Record<string, any> | undefined;
1179
1175
  }> & Readonly<{
1180
- type: "iframe";
1181
- customData?: {
1182
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1183
- } | undefined;
1176
+ type: "text";
1177
+ fontSize: number;
1178
+ fontFamily: number;
1179
+ text: string;
1180
+ textAlign: string;
1181
+ verticalAlign: string;
1182
+ containerId: string | null;
1183
+ originalText: string;
1184
+ autoResize: boolean;
1185
+ lineHeight: number & {
1186
+ _brand: "unitlessLineHeight";
1187
+ };
1184
1188
  }> & {
1185
1189
  index: import("@excalidraw/element/types").FractionalIndex;
1186
1190
  }) | (Readonly<{
@@ -1210,14 +1214,18 @@ export declare const actionWrapSelectionInFrame: {
1210
1214
  frameId: string | null;
1211
1215
  boundElements: readonly Readonly<{
1212
1216
  id: string;
1213
- type: "text" | "arrow";
1217
+ type: "arrow" | "text";
1214
1218
  }>[] | null;
1215
1219
  updated: number;
1216
1220
  link: string | null;
1217
1221
  locked: boolean;
1218
1222
  customData?: Record<string, any> | undefined;
1219
1223
  }> & Readonly<{
1220
- type: "embeddable";
1224
+ type: "freedraw";
1225
+ points: readonly import("@excalidraw/math").LocalPoint[];
1226
+ pressures: readonly number[];
1227
+ simulatePressure: boolean;
1228
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1221
1229
  }> & {
1222
1230
  index: import("@excalidraw/element/types").FractionalIndex;
1223
1231
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];