@excalidraw/excalidraw 0.18.0-c4c0649 → 0.18.0-d2463f87d

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 (121) hide show
  1. package/dist/dev/chunk-CBGOW5JB.js +5669 -0
  2. package/dist/dev/chunk-CBGOW5JB.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-SURZSZNX.js} +3 -3
  8. package/dist/dev/index.css +47 -20
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +5873 -3369
  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-IRHK23LL.js +4 -0
  18. package/dist/prod/data/image-HXEZYJPQ.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 +18 -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/binding.d.ts +10 -7
  28. package/dist/types/element/src/bounds.d.ts +11 -3
  29. package/dist/types/element/src/collision.d.ts +18 -12
  30. package/dist/types/element/src/cropElement.d.ts +1 -1
  31. package/dist/types/element/src/delta.d.ts +26 -6
  32. package/dist/types/element/src/distance.d.ts +2 -2
  33. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  34. package/dist/types/element/src/frame.d.ts +2 -2
  35. package/dist/types/element/src/index.d.ts +1 -3
  36. package/dist/types/element/src/linearElementEditor.d.ts +12 -22
  37. package/dist/types/element/src/mutateElement.d.ts +1 -1
  38. package/dist/types/element/src/newElement.d.ts +2 -1
  39. package/dist/types/element/src/resizeElements.d.ts +1 -0
  40. package/dist/types/element/src/selection.d.ts +1 -1
  41. package/dist/types/element/src/shape.d.ts +42 -0
  42. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  43. package/dist/types/element/src/store.d.ts +12 -8
  44. package/dist/types/element/src/transformHandles.d.ts +4 -4
  45. package/dist/types/element/src/typeChecks.d.ts +15 -1
  46. package/dist/types/element/src/types.d.ts +8 -3
  47. package/dist/types/element/src/utils.d.ts +16 -6
  48. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -12
  49. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  50. package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -8
  51. package/dist/types/excalidraw/actions/actionCanvas.d.ts +181 -142
  52. package/dist/types/excalidraw/actions/actionClipboard.d.ts +47 -28
  53. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -4
  54. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +24 -14
  55. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  56. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  57. package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -3
  58. package/dist/types/excalidraw/actions/actionElementLock.d.ts +29 -24
  59. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -4
  60. package/dist/types/excalidraw/actions/actionExport.d.ts +148 -121
  61. package/dist/types/excalidraw/actions/actionFinalize.d.ts +63 -17
  62. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  63. package/dist/types/excalidraw/actions/actionFrame.d.ts +78 -66
  64. package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -14
  65. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +500 -4
  66. package/dist/types/excalidraw/actions/actionLink.d.ts +8 -5
  67. package/dist/types/excalidraw/actions/actionMenu.d.ts +22 -13
  68. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -8
  69. package/dist/types/excalidraw/actions/actionProperties.d.ts +119 -66
  70. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -7
  71. package/dist/types/excalidraw/actions/actionStyles.d.ts +11 -8
  72. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +9 -6
  73. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +9 -6
  74. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -5
  75. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +9 -6
  76. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +9 -6
  77. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +9 -6
  78. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  79. package/dist/types/excalidraw/actions/types.d.ts +2 -1
  80. package/dist/types/excalidraw/appState.d.ts +29 -20
  81. package/dist/types/excalidraw/components/App.d.ts +13 -16
  82. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  83. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  84. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  85. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  86. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
  87. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  88. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  89. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  90. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  91. package/dist/types/excalidraw/history.d.ts +21 -5
  92. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  93. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  94. package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
  95. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  96. package/dist/types/excalidraw/types.d.ts +10 -4
  97. package/dist/types/math/src/angle.d.ts +2 -0
  98. package/dist/types/math/src/constants.d.ts +3 -0
  99. package/dist/types/math/src/curve.d.ts +32 -0
  100. package/dist/types/math/src/index.d.ts +1 -0
  101. package/dist/types/math/src/point.d.ts +1 -1
  102. package/dist/types/math/src/rectangle.d.ts +2 -0
  103. package/dist/types/math/src/vector.d.ts +4 -2
  104. package/history.ts +108 -45
  105. package/package.json +12 -9
  106. package/dist/dev/chunk-HNRFOURL.js +0 -23482
  107. package/dist/dev/chunk-HNRFOURL.js.map +0 -7
  108. package/dist/dev/chunk-JCUIYZXF.js.map +0 -7
  109. package/dist/dev/chunk-VKWYDXFZ.js +0 -7
  110. package/dist/dev/chunk-VKWYDXFZ.js.map +0 -7
  111. package/dist/prod/chunk-G6SRO7HP.js +0 -7
  112. package/dist/prod/chunk-M3D5LUUK.js +0 -33
  113. package/dist/prod/data/image-PMKVN4IF.js +0 -1
  114. package/dist/types/element/src/Shape.d.ts +0 -17
  115. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  116. package/dist/types/element/src/shapes.d.ts +0 -23
  117. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  118. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  119. package/dist/types/utils/src/collision.d.ts +0 -8
  120. /package/dist/dev/data/{image-SLEZBMLG.js.map → image-SURZSZNX.js.map} +0 -0
  121. /package/dist/dev/locales/{en-ZDTPSZNL.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -1,11 +1,51 @@
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
+ };
45
+ suggestedBindings: never[];
46
+ };
47
+ captureUpdate: "IMMEDIATELY";
48
+ } | {
9
49
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
10
50
  appState: {
11
51
  cursorButton: "up";
@@ -20,16 +60,16 @@ export declare const actionFinalize: {
20
60
  errorMessage: import("react").ReactNode;
21
61
  activeEmbeddable: {
22
62
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
- state: "hover" | "active";
63
+ state: "active" | "hover";
24
64
  } | null;
25
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
65
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
66
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
67
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
28
68
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
69
  isBindingEnabled: boolean;
30
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
70
+ startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
71
  suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
72
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
73
  frameRendering: {
34
74
  enabled: boolean;
35
75
  name: boolean;
@@ -37,7 +77,7 @@ export declare const actionFinalize: {
37
77
  clip: boolean;
38
78
  };
39
79
  editingFrame: string | null;
40
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
80
+ elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
41
81
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
82
  activeTool: {
43
83
  lastActiveTool: import("../types").ActiveTool | null;
@@ -85,7 +125,7 @@ export declare const actionFinalize: {
85
125
  name: "imageExport" | "help" | "jsonExport";
86
126
  } | {
87
127
  name: "ttd";
88
- tab: "text-to-diagram" | "mermaid";
128
+ tab: "mermaid" | "text-to-diagram";
89
129
  } | {
90
130
  name: "commandPalette";
91
131
  } | {
@@ -157,8 +197,7 @@ export declare const actionFinalize: {
157
197
  shown: true;
158
198
  data: import("../charts").Spreadsheet;
159
199
  };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "info" | "editor";
200
+ showHyperlinkPopup: false | "editor" | "info";
162
201
  selectedLinearElement: LinearElementEditor | null;
163
202
  snapLines: readonly import("../snapping").SnapLine[];
164
203
  originSnapOffset: {
@@ -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,7 +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;
260
+ elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
219
261
  editingLinearElement: LinearElementEditor | null;
220
262
  penMode: boolean;
221
263
  penDetected: boolean;
@@ -258,7 +300,7 @@ export declare const actionFinalize: {
258
300
  name: "imageExport" | "help" | "jsonExport";
259
301
  } | {
260
302
  name: "ttd";
261
- tab: "text-to-diagram" | "mermaid";
303
+ tab: "mermaid" | "text-to-diagram";
262
304
  } | {
263
305
  name: "commandPalette";
264
306
  } | {
@@ -327,7 +369,7 @@ export declare const actionFinalize: {
327
369
  shown: true;
328
370
  data: import("../charts").Spreadsheet;
329
371
  };
330
- showHyperlinkPopup: false | "info" | "editor";
372
+ showHyperlinkPopup: false | "editor" | "info";
331
373
  snapLines: readonly import("../snapping").SnapLine[];
332
374
  originSnapOffset: {
333
375
  x: number;
@@ -342,11 +384,15 @@ 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
+ };
345
391
  };
346
392
  captureUpdate: "IMMEDIATELY";
347
393
  };
348
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
394
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
349
395
  PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
350
396
  } & {
351
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
397
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
352
398
  };
@@ -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;
@@ -88,7 +88,7 @@ export declare const actionSelectAllElementsInFrame: {
88
88
  name: "imageExport" | "help" | "jsonExport";
89
89
  } | {
90
90
  name: "ttd";
91
- tab: "text-to-diagram" | "mermaid";
91
+ tab: "mermaid" | "text-to-diagram";
92
92
  } | {
93
93
  name: "commandPalette";
94
94
  } | {
@@ -157,8 +157,7 @@ export declare const actionSelectAllElementsInFrame: {
157
157
  shown: true;
158
158
  data: import("../charts").Spreadsheet;
159
159
  };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "info" | "editor";
160
+ showHyperlinkPopup: false | "editor" | "info";
162
161
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
162
  snapLines: readonly import("../snapping").SnapLine[];
164
163
  originSnapOffset: {
@@ -174,6 +173,10 @@ export declare const actionSelectAllElementsInFrame: {
174
173
  focusedId: string | null;
175
174
  matches: readonly import("../types").SearchMatch[];
176
175
  }> | null;
176
+ activeLockedId: string | null;
177
+ lockedMultiSelections: {
178
+ [groupId: string]: true;
179
+ };
177
180
  };
178
181
  captureUpdate: "IMMEDIATELY";
179
182
  } | {
@@ -207,7 +210,7 @@ export declare const actionRemoveAllElementsFromFrame: {
207
210
  errorMessage: import("react").ReactNode;
208
211
  activeEmbeddable: {
209
212
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
210
- state: "hover" | "active";
213
+ state: "active" | "hover";
211
214
  } | null;
212
215
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
213
216
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -274,7 +277,7 @@ export declare const actionRemoveAllElementsFromFrame: {
274
277
  name: "imageExport" | "help" | "jsonExport";
275
278
  } | {
276
279
  name: "ttd";
277
- tab: "text-to-diagram" | "mermaid";
280
+ tab: "mermaid" | "text-to-diagram";
278
281
  } | {
279
282
  name: "commandPalette";
280
283
  } | {
@@ -343,8 +346,7 @@ export declare const actionRemoveAllElementsFromFrame: {
343
346
  shown: true;
344
347
  data: import("../charts").Spreadsheet;
345
348
  };
346
- pendingImageElementId: string | null;
347
- showHyperlinkPopup: false | "info" | "editor";
349
+ showHyperlinkPopup: false | "editor" | "info";
348
350
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
351
  snapLines: readonly import("../snapping").SnapLine[];
350
352
  originSnapOffset: {
@@ -360,6 +362,10 @@ export declare const actionRemoveAllElementsFromFrame: {
360
362
  focusedId: string | null;
361
363
  matches: readonly import("../types").SearchMatch[];
362
364
  }> | null;
365
+ activeLockedId: string | null;
366
+ lockedMultiSelections: {
367
+ [groupId: string]: true;
368
+ };
363
369
  };
364
370
  captureUpdate: "IMMEDIATELY";
365
371
  } | {
@@ -397,7 +403,7 @@ export declare const actionupdateFrameRendering: {
397
403
  errorMessage: import("react").ReactNode;
398
404
  activeEmbeddable: {
399
405
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
400
- state: "hover" | "active";
406
+ state: "active" | "hover";
401
407
  } | null;
402
408
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
403
409
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -458,7 +464,7 @@ export declare const actionupdateFrameRendering: {
458
464
  name: "imageExport" | "help" | "jsonExport";
459
465
  } | {
460
466
  name: "ttd";
461
- tab: "text-to-diagram" | "mermaid";
467
+ tab: "mermaid" | "text-to-diagram";
462
468
  } | {
463
469
  name: "commandPalette";
464
470
  } | {
@@ -530,8 +536,7 @@ export declare const actionupdateFrameRendering: {
530
536
  shown: true;
531
537
  data: import("../charts").Spreadsheet;
532
538
  };
533
- pendingImageElementId: string | null;
534
- showHyperlinkPopup: false | "info" | "editor";
539
+ showHyperlinkPopup: false | "editor" | "info";
535
540
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
536
541
  snapLines: readonly import("../snapping").SnapLine[];
537
542
  originSnapOffset: {
@@ -547,6 +552,10 @@ export declare const actionupdateFrameRendering: {
547
552
  focusedId: string | null;
548
553
  matches: readonly import("../types").SearchMatch[];
549
554
  }> | null;
555
+ activeLockedId: string | null;
556
+ lockedMultiSelections: {
557
+ [groupId: string]: true;
558
+ };
550
559
  };
551
560
  captureUpdate: "EVENTUALLY";
552
561
  };
@@ -580,7 +589,7 @@ export declare const actionSetFrameAsActiveTool: {
580
589
  errorMessage: import("react").ReactNode;
581
590
  activeEmbeddable: {
582
591
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
583
- state: "hover" | "active";
592
+ state: "active" | "hover";
584
593
  } | null;
585
594
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
586
595
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -642,7 +651,7 @@ export declare const actionSetFrameAsActiveTool: {
642
651
  name: "imageExport" | "help" | "jsonExport";
643
652
  } | {
644
653
  name: "ttd";
645
- tab: "text-to-diagram" | "mermaid";
654
+ tab: "mermaid" | "text-to-diagram";
646
655
  } | {
647
656
  name: "commandPalette";
648
657
  } | {
@@ -714,8 +723,7 @@ export declare const actionSetFrameAsActiveTool: {
714
723
  shown: true;
715
724
  data: import("../charts").Spreadsheet;
716
725
  };
717
- pendingImageElementId: string | null;
718
- showHyperlinkPopup: false | "info" | "editor";
726
+ showHyperlinkPopup: false | "editor" | "info";
719
727
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
720
728
  snapLines: readonly import("../snapping").SnapLine[];
721
729
  originSnapOffset: {
@@ -731,12 +739,16 @@ export declare const actionSetFrameAsActiveTool: {
731
739
  focusedId: string | null;
732
740
  matches: readonly import("../types").SearchMatch[];
733
741
  }> | null;
742
+ activeLockedId: string | null;
743
+ lockedMultiSelections: {
744
+ [groupId: string]: true;
745
+ };
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: "selection";
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: "rectangle";
838
+ type: "selection";
821
839
  } & {
822
840
  index: import("@excalidraw/element/types").FractionalIndex;
823
841
  }) | (Readonly<{
@@ -847,14 +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: "diamond";
875
+ type: "rectangle";
858
876
  } & {
859
877
  index: import("@excalidraw/element/types").FractionalIndex;
860
878
  }) | (Readonly<{
@@ -884,14 +902,14 @@ export declare const actionWrapSelectionInFrame: {
884
902
  frameId: string | null;
885
903
  boundElements: readonly Readonly<{
886
904
  id: string;
887
- type: "text" | "arrow";
905
+ type: "arrow" | "text";
888
906
  }>[] | null;
889
907
  updated: number;
890
908
  link: string | null;
891
909
  locked: boolean;
892
910
  customData?: Record<string, any> | undefined;
893
911
  }> & {
894
- type: "ellipse";
912
+ type: "diamond";
895
913
  } & {
896
914
  index: import("@excalidraw/element/types").FractionalIndex;
897
915
  }) | (Readonly<{
@@ -921,26 +939,15 @@ export declare const actionWrapSelectionInFrame: {
921
939
  frameId: string | null;
922
940
  boundElements: readonly Readonly<{
923
941
  id: string;
924
- type: "text" | "arrow";
942
+ type: "arrow" | "text";
925
943
  }>[] | null;
926
944
  updated: number;
927
945
  link: string | null;
928
946
  locked: boolean;
929
947
  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
948
  }> & {
949
+ type: "ellipse";
950
+ } & {
944
951
  index: import("@excalidraw/element/types").FractionalIndex;
945
952
  }) | (Readonly<{
946
953
  id: string;
@@ -969,20 +976,14 @@ export declare const actionWrapSelectionInFrame: {
969
976
  frameId: string | null;
970
977
  boundElements: readonly Readonly<{
971
978
  id: string;
972
- type: "text" | "arrow";
979
+ type: "arrow" | "text";
973
980
  }>[] | null;
974
981
  updated: number;
975
982
  link: string | null;
976
983
  locked: boolean;
977
984
  customData?: Record<string, any> | undefined;
978
985
  }> & 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;
986
+ type: "embeddable";
986
987
  }> & {
987
988
  index: import("@excalidraw/element/types").FractionalIndex;
988
989
  }) | (Readonly<{
@@ -1012,18 +1013,17 @@ export declare const actionWrapSelectionInFrame: {
1012
1013
  frameId: string | null;
1013
1014
  boundElements: readonly Readonly<{
1014
1015
  id: string;
1015
- type: "text" | "arrow";
1016
+ type: "arrow" | "text";
1016
1017
  }>[] | null;
1017
1018
  updated: number;
1018
1019
  link: string | null;
1019
1020
  locked: boolean;
1020
1021
  customData?: Record<string, any> | undefined;
1021
1022
  }> & 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;
1023
+ type: "iframe";
1024
+ customData?: {
1025
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1026
+ } | undefined;
1027
1027
  }> & {
1028
1028
  index: import("@excalidraw/element/types").FractionalIndex;
1029
1029
  }) | (Readonly<{
@@ -1053,7 +1053,7 @@ export declare const actionWrapSelectionInFrame: {
1053
1053
  frameId: string | null;
1054
1054
  boundElements: readonly Readonly<{
1055
1055
  id: string;
1056
- type: "text" | "arrow";
1056
+ type: "arrow" | "text";
1057
1057
  }>[] | null;
1058
1058
  updated: number;
1059
1059
  link: string | null;
@@ -1062,7 +1062,7 @@ export declare const actionWrapSelectionInFrame: {
1062
1062
  }> & Readonly<{
1063
1063
  type: "image";
1064
1064
  fileId: import("@excalidraw/element/types").FileId | null;
1065
- status: "error" | "pending" | "saved";
1065
+ status: "pending" | "error" | "saved";
1066
1066
  scale: [number, number];
1067
1067
  crop: import("@excalidraw/element/types").ImageCrop | null;
1068
1068
  }> & {
@@ -1094,7 +1094,7 @@ export declare const actionWrapSelectionInFrame: {
1094
1094
  frameId: string | null;
1095
1095
  boundElements: readonly Readonly<{
1096
1096
  id: string;
1097
- type: "text" | "arrow";
1097
+ type: "arrow" | "text";
1098
1098
  }>[] | null;
1099
1099
  updated: number;
1100
1100
  link: string | null;
@@ -1132,7 +1132,7 @@ export declare const actionWrapSelectionInFrame: {
1132
1132
  frameId: string | null;
1133
1133
  boundElements: readonly Readonly<{
1134
1134
  id: string;
1135
- type: "text" | "arrow";
1135
+ type: "arrow" | "text";
1136
1136
  }>[] | null;
1137
1137
  updated: number;
1138
1138
  link: string | null;
@@ -1170,17 +1170,25 @@ export declare const actionWrapSelectionInFrame: {
1170
1170
  frameId: string | null;
1171
1171
  boundElements: readonly Readonly<{
1172
1172
  id: string;
1173
- type: "text" | "arrow";
1173
+ type: "arrow" | "text";
1174
1174
  }>[] | null;
1175
1175
  updated: number;
1176
1176
  link: string | null;
1177
1177
  locked: boolean;
1178
1178
  customData?: Record<string, any> | undefined;
1179
1179
  }> & Readonly<{
1180
- type: "iframe";
1181
- customData?: {
1182
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1183
- } | undefined;
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
+ };
1184
1192
  }> & {
1185
1193
  index: import("@excalidraw/element/types").FractionalIndex;
1186
1194
  }) | (Readonly<{
@@ -1210,14 +1218,18 @@ export declare const actionWrapSelectionInFrame: {
1210
1218
  frameId: string | null;
1211
1219
  boundElements: readonly Readonly<{
1212
1220
  id: string;
1213
- type: "text" | "arrow";
1221
+ type: "arrow" | "text";
1214
1222
  }>[] | null;
1215
1223
  updated: number;
1216
1224
  link: string | null;
1217
1225
  locked: boolean;
1218
1226
  customData?: Record<string, any> | undefined;
1219
1227
  }> & Readonly<{
1220
- type: "embeddable";
1228
+ type: "freedraw";
1229
+ points: readonly import("@excalidraw/math").LocalPoint[];
1230
+ pressures: readonly number[];
1231
+ simulatePressure: boolean;
1232
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1221
1233
  }> & {
1222
1234
  index: import("@excalidraw/element/types").FractionalIndex;
1223
1235
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];