@excalidraw/excalidraw 0.18.0-6fc8502 → 0.18.0-864353b

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 (164) hide show
  1. package/dist/dev/{chunk-X3RYHLJU.js → chunk-7YMZV3TY.js} +14 -4
  2. package/dist/dev/chunk-7YMZV3TY.js.map +7 -0
  3. package/dist/dev/chunk-BBNNHA7I.js +7 -0
  4. package/dist/dev/chunk-BBNNHA7I.js.map +7 -0
  5. package/dist/dev/{chunk-KYBDXI6F.js → chunk-LL55DS44.js} +15037 -10099
  6. package/dist/dev/chunk-LL55DS44.js.map +7 -0
  7. package/dist/dev/data/{image-NKFINVKH.js → image-OFYK7EOY.js} +3 -3
  8. package/dist/dev/index.css +100 -22
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +3531 -6486
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-CKWC2GMK.js → en-KIY5SGI3.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-F44EGBV2.js +33 -0
  16. package/dist/prod/{chunk-IUH5AXLB.js → chunk-OUULIERA.js} +4 -4
  17. package/dist/prod/chunk-UH6Q3EIV.js +7 -0
  18. package/dist/prod/data/image-CUOH64HE.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +18 -17
  21. package/dist/prod/locales/{en-SBO6ZHT2.js → en-GCLCIHXH.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 +11 -1
  25. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  26. package/dist/types/common/src/font-metadata.d.ts +4 -2
  27. package/dist/types/common/src/index.d.ts +1 -0
  28. package/dist/types/common/src/utility-types.d.ts +5 -0
  29. package/dist/types/common/src/utils.d.ts +22 -4
  30. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  31. package/dist/types/element/src/ShapeCache.d.ts +1 -1
  32. package/dist/types/element/src/align.d.ts +3 -3
  33. package/dist/types/element/src/binding.d.ts +19 -12
  34. package/dist/types/element/src/bounds.d.ts +2 -2
  35. package/dist/types/element/src/collision.d.ts +1 -1
  36. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  37. package/dist/types/element/src/dragElements.d.ts +3 -2
  38. package/dist/types/element/src/duplicate.d.ts +10 -13
  39. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  40. package/dist/types/element/src/flowchart.d.ts +3 -2
  41. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  42. package/dist/types/element/src/frame.d.ts +5 -4
  43. package/dist/types/element/src/index.d.ts +45 -2
  44. package/dist/types/element/src/linearElementEditor.d.ts +20 -31
  45. package/dist/types/element/src/mutateElement.d.ts +10 -2
  46. package/dist/types/element/src/newElement.d.ts +4 -3
  47. package/dist/types/element/src/resizeElements.d.ts +4 -4
  48. package/dist/types/element/src/selection.d.ts +11 -5
  49. package/dist/types/element/src/shapes.d.ts +5 -1
  50. package/dist/types/element/src/sizeHelpers.d.ts +2 -2
  51. package/dist/types/element/src/store.d.ts +227 -0
  52. package/dist/types/element/src/textElement.d.ts +5 -3
  53. package/dist/types/element/src/transformHandles.d.ts +4 -4
  54. package/dist/types/element/src/typeChecks.d.ts +15 -1
  55. package/dist/types/element/src/types.d.ts +14 -1
  56. package/dist/types/element/src/zindex.d.ts +1 -1
  57. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +39 -45
  58. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  59. package/dist/types/excalidraw/actions/actionBoundText.d.ts +26 -30
  60. package/dist/types/excalidraw/actions/actionCanvas.d.ts +262 -288
  61. package/dist/types/excalidraw/actions/actionClipboard.d.ts +81 -92
  62. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -15
  63. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +38 -43
  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 +13 -15
  67. package/dist/types/excalidraw/actions/actionElementLock.d.ts +41 -46
  68. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -15
  69. package/dist/types/excalidraw/actions/actionExport.d.ts +210 -228
  70. package/dist/types/excalidraw/actions/actionFinalize.d.ts +72 -36
  71. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  72. package/dist/types/excalidraw/actions/actionFrame.d.ts +96 -104
  73. package/dist/types/excalidraw/actions/actionGroup.d.ts +32 -36
  74. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  75. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +505 -14
  76. package/dist/types/excalidraw/actions/actionLink.d.ts +13 -15
  77. package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -45
  78. package/dist/types/excalidraw/actions/actionNavigate.d.ts +25 -29
  79. package/dist/types/excalidraw/actions/actionProperties.d.ts +192 -214
  80. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +15 -17
  81. package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -19
  82. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +15 -17
  83. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +15 -17
  84. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +15 -190
  85. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  86. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +15 -17
  87. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +15 -17
  88. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +15 -17
  89. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  90. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  91. package/dist/types/excalidraw/appState.d.ts +38 -29
  92. package/dist/types/excalidraw/components/App.d.ts +24 -11
  93. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  94. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  95. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  96. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  97. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  98. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  99. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  100. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  101. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  102. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  103. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  104. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  105. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  106. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  107. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  108. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  109. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  110. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  111. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  117. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  118. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  119. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  120. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  121. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  122. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  123. package/dist/types/excalidraw/components/icons.d.ts +3 -0
  124. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  125. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  126. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  127. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  128. package/dist/types/excalidraw/eraser/index.d.ts +14 -0
  129. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  130. package/dist/types/excalidraw/history.d.ts +14 -22
  131. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  132. package/dist/types/excalidraw/index.d.ts +9 -9
  133. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  134. package/dist/types/excalidraw/lasso/utils.d.ts +1 -2
  135. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  136. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  137. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  138. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  139. package/dist/types/excalidraw/scene/types.d.ts +2 -0
  140. package/dist/types/excalidraw/snapping.d.ts +2 -2
  141. package/dist/types/excalidraw/types.d.ts +28 -6
  142. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  143. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  144. package/dist/types/math/src/angle.d.ts +2 -0
  145. package/dist/types/math/src/curve.d.ts +2 -0
  146. package/dist/types/math/src/point.d.ts +1 -1
  147. package/dist/types/math/src/types.d.ts +1 -0
  148. package/dist/types/math/src/vector.d.ts +4 -0
  149. package/dist/types/utils/src/bbox.d.ts +1 -1
  150. package/dist/types/utils/src/index.d.ts +1 -1
  151. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  152. package/history.ts +68 -94
  153. package/package.json +3 -3
  154. package/dist/dev/chunk-H7XJ5UVD.js +0 -7
  155. package/dist/dev/chunk-H7XJ5UVD.js.map +0 -7
  156. package/dist/dev/chunk-KYBDXI6F.js.map +0 -7
  157. package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
  158. package/dist/prod/chunk-CAN5RS4P.js +0 -31
  159. package/dist/prod/chunk-KJYFYP64.js +0 -7
  160. package/dist/prod/data/image-5XD47O4X.js +0 -1
  161. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  162. package/dist/types/excalidraw/store.d.ts +0 -129
  163. /package/dist/dev/data/{image-NKFINVKH.js.map → image-OFYK7EOY.js.map} +0 -0
  164. /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-KIY5SGI3.js.map} +0 -0
@@ -1,11 +1,51 @@
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
+ };
45
+ suggestedBindings: never[];
46
+ };
47
+ captureUpdate: "IMMEDIATELY";
48
+ } | {
9
49
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
10
50
  appState: {
11
51
  cursorButton: "up";
@@ -22,14 +62,14 @@ export declare const actionFinalize: {
22
62
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
63
  state: "hover" | "active";
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;
31
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
32
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
70
+ startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
71
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
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;
@@ -75,7 +115,7 @@ export declare const actionFinalize: {
75
115
  zoom: Readonly<{
76
116
  value: import("../types").NormalizedZoomValue;
77
117
  }>;
78
- openMenu: "shape" | "canvas" | null;
118
+ openMenu: "canvas" | "shape" | null;
79
119
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
120
  openSidebar: {
81
121
  name: string;
@@ -158,7 +198,7 @@ export declare const actionFinalize: {
158
198
  data: import("../charts").Spreadsheet;
159
199
  };
160
200
  pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "editor" | "info";
201
+ showHyperlinkPopup: false | "info" | "editor";
162
202
  selectedLinearElement: LinearElementEditor | null;
163
203
  snapLines: readonly import("../snapping").SnapLine[];
164
204
  originSnapOffset: {
@@ -170,16 +210,14 @@ export declare const actionFinalize: {
170
210
  followedBy: Set<import("../types").SocketId>;
171
211
  isCropping: boolean;
172
212
  croppingElementId: string | null;
173
- searchMatches: readonly {
174
- id: string;
175
- focus: boolean;
176
- matchedLines: {
177
- offsetX: number;
178
- offsetY: number;
179
- width: number;
180
- height: number;
181
- }[];
182
- }[];
213
+ searchMatches: Readonly<{
214
+ focusedId: string | null;
215
+ matches: readonly import("../types").SearchMatch[];
216
+ }> | null;
217
+ activeLockedId: string | null;
218
+ lockedMultiSelections: {
219
+ [groupId: string]: true;
220
+ };
183
221
  };
184
222
  captureUpdate: "IMMEDIATELY";
185
223
  } | {
@@ -213,7 +251,7 @@ export declare const actionFinalize: {
213
251
  errorMessage: import("react").ReactNode;
214
252
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
215
253
  isBindingEnabled: boolean;
216
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
254
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
217
255
  frameRendering: {
218
256
  enabled: boolean;
219
257
  name: boolean;
@@ -221,7 +259,7 @@ export declare const actionFinalize: {
221
259
  clip: boolean;
222
260
  };
223
261
  editingFrame: string | null;
224
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
262
+ elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
225
263
  editingLinearElement: LinearElementEditor | null;
226
264
  penMode: boolean;
227
265
  penDetected: boolean;
@@ -254,7 +292,7 @@ export declare const actionFinalize: {
254
292
  zoom: Readonly<{
255
293
  value: import("../types").NormalizedZoomValue;
256
294
  }>;
257
- openMenu: "shape" | "canvas" | null;
295
+ openMenu: "canvas" | "shape" | null;
258
296
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
259
297
  openSidebar: {
260
298
  name: string;
@@ -333,7 +371,7 @@ export declare const actionFinalize: {
333
371
  shown: true;
334
372
  data: import("../charts").Spreadsheet;
335
373
  };
336
- showHyperlinkPopup: false | "editor" | "info";
374
+ showHyperlinkPopup: false | "info" | "editor";
337
375
  snapLines: readonly import("../snapping").SnapLine[];
338
376
  originSnapOffset: {
339
377
  x: number;
@@ -344,21 +382,19 @@ export declare const actionFinalize: {
344
382
  followedBy: Set<import("../types").SocketId>;
345
383
  isCropping: boolean;
346
384
  croppingElementId: string | null;
347
- searchMatches: readonly {
348
- id: string;
349
- focus: boolean;
350
- matchedLines: {
351
- offsetX: number;
352
- offsetY: number;
353
- width: number;
354
- height: number;
355
- }[];
356
- }[];
385
+ searchMatches: Readonly<{
386
+ focusedId: string | null;
387
+ matches: readonly import("../types").SearchMatch[];
388
+ }> | null;
389
+ activeLockedId: string | null;
390
+ lockedMultiSelections: {
391
+ [groupId: string]: true;
392
+ };
357
393
  };
358
394
  captureUpdate: "IMMEDIATELY";
359
395
  };
360
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
396
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
361
397
  PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
362
398
  } & {
363
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
399
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
364
400
  };
@@ -13,9 +13,9 @@ export declare const actionFlipHorizontal: {
13
13
  appState: Readonly<AppState>;
14
14
  captureUpdate: "IMMEDIATELY";
15
15
  };
16
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
16
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
17
17
  } & {
18
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
18
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => 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: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
32
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
33
33
  } & {
34
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
34
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => 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,7 @@ 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;
43
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
44
44
  activeTool: {
45
45
  lastActiveTool: import("../types").ActiveTool | null;
46
46
  locked: boolean;
@@ -78,7 +78,7 @@ export declare const actionSelectAllElementsInFrame: {
78
78
  zoom: Readonly<{
79
79
  value: import("../types").NormalizedZoomValue;
80
80
  }>;
81
- openMenu: "shape" | "canvas" | null;
81
+ openMenu: "canvas" | "shape" | null;
82
82
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
83
83
  openSidebar: {
84
84
  name: string;
@@ -158,8 +158,8 @@ export declare const actionSelectAllElementsInFrame: {
158
158
  data: import("../charts").Spreadsheet;
159
159
  };
160
160
  pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "editor" | "info";
162
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
161
+ showHyperlinkPopup: false | "info" | "editor";
162
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
163
  snapLines: readonly import("../snapping").SnapLine[];
164
164
  originSnapOffset: {
165
165
  x: number;
@@ -170,16 +170,14 @@ export declare const actionSelectAllElementsInFrame: {
170
170
  followedBy: Set<import("../types").SocketId>;
171
171
  isCropping: boolean;
172
172
  croppingElementId: string | null;
173
- searchMatches: readonly {
174
- id: string;
175
- focus: boolean;
176
- matchedLines: {
177
- offsetX: number;
178
- offsetY: number;
179
- width: number;
180
- height: number;
181
- }[];
182
- }[];
173
+ searchMatches: Readonly<{
174
+ focusedId: string | null;
175
+ matches: readonly import("../types").SearchMatch[];
176
+ }> | null;
177
+ activeLockedId: string | null;
178
+ lockedMultiSelections: {
179
+ [groupId: string]: true;
180
+ };
183
181
  };
184
182
  captureUpdate: "IMMEDIATELY";
185
183
  } | {
@@ -221,7 +219,7 @@ export declare const actionRemoveAllElementsFromFrame: {
221
219
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
220
  isBindingEnabled: boolean;
223
221
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
224
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
222
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
225
223
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
226
224
  frameRendering: {
227
225
  enabled: boolean;
@@ -232,7 +230,7 @@ export declare const actionRemoveAllElementsFromFrame: {
232
230
  editingFrame: string | null;
233
231
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
234
232
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
233
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
236
234
  activeTool: {
237
235
  lastActiveTool: import("../types").ActiveTool | null;
238
236
  locked: boolean;
@@ -270,7 +268,7 @@ export declare const actionRemoveAllElementsFromFrame: {
270
268
  zoom: Readonly<{
271
269
  value: import("../types").NormalizedZoomValue;
272
270
  }>;
273
- openMenu: "shape" | "canvas" | null;
271
+ openMenu: "canvas" | "shape" | null;
274
272
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
275
273
  openSidebar: {
276
274
  name: string;
@@ -350,8 +348,8 @@ export declare const actionRemoveAllElementsFromFrame: {
350
348
  data: import("../charts").Spreadsheet;
351
349
  };
352
350
  pendingImageElementId: string | null;
353
- showHyperlinkPopup: false | "editor" | "info";
354
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
351
+ showHyperlinkPopup: false | "info" | "editor";
352
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
355
353
  snapLines: readonly import("../snapping").SnapLine[];
356
354
  originSnapOffset: {
357
355
  x: number;
@@ -362,16 +360,14 @@ export declare const actionRemoveAllElementsFromFrame: {
362
360
  followedBy: Set<import("../types").SocketId>;
363
361
  isCropping: boolean;
364
362
  croppingElementId: string | null;
365
- searchMatches: readonly {
366
- id: string;
367
- focus: boolean;
368
- matchedLines: {
369
- offsetX: number;
370
- offsetY: number;
371
- width: number;
372
- height: number;
373
- }[];
374
- }[];
363
+ searchMatches: Readonly<{
364
+ focusedId: string | null;
365
+ matches: readonly import("../types").SearchMatch[];
366
+ }> | null;
367
+ activeLockedId: string | null;
368
+ lockedMultiSelections: {
369
+ [groupId: string]: true;
370
+ };
375
371
  };
376
372
  captureUpdate: "IMMEDIATELY";
377
373
  } | {
@@ -417,12 +413,12 @@ export declare const actionupdateFrameRendering: {
417
413
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
418
414
  isBindingEnabled: boolean;
419
415
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
420
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
416
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
421
417
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
422
418
  editingFrame: string | null;
423
419
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
424
420
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
425
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
421
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
426
422
  activeTool: {
427
423
  lastActiveTool: import("../types").ActiveTool | null;
428
424
  locked: boolean;
@@ -460,7 +456,7 @@ export declare const actionupdateFrameRendering: {
460
456
  zoom: Readonly<{
461
457
  value: import("../types").NormalizedZoomValue;
462
458
  }>;
463
- openMenu: "shape" | "canvas" | null;
459
+ openMenu: "canvas" | "shape" | null;
464
460
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
465
461
  openSidebar: {
466
462
  name: string;
@@ -543,8 +539,8 @@ export declare const actionupdateFrameRendering: {
543
539
  data: import("../charts").Spreadsheet;
544
540
  };
545
541
  pendingImageElementId: string | null;
546
- showHyperlinkPopup: false | "editor" | "info";
547
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
542
+ showHyperlinkPopup: false | "info" | "editor";
543
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
548
544
  snapLines: readonly import("../snapping").SnapLine[];
549
545
  originSnapOffset: {
550
546
  x: number;
@@ -555,16 +551,14 @@ export declare const actionupdateFrameRendering: {
555
551
  followedBy: Set<import("../types").SocketId>;
556
552
  isCropping: boolean;
557
553
  croppingElementId: string | null;
558
- searchMatches: readonly {
559
- id: string;
560
- focus: boolean;
561
- matchedLines: {
562
- offsetX: number;
563
- offsetY: number;
564
- width: number;
565
- height: number;
566
- }[];
567
- }[];
554
+ searchMatches: Readonly<{
555
+ focusedId: string | null;
556
+ matches: readonly import("../types").SearchMatch[];
557
+ }> | null;
558
+ activeLockedId: string | null;
559
+ lockedMultiSelections: {
560
+ [groupId: string]: true;
561
+ };
568
562
  };
569
563
  captureUpdate: "EVENTUALLY";
570
564
  };
@@ -606,7 +600,7 @@ export declare const actionSetFrameAsActiveTool: {
606
600
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
601
  isBindingEnabled: boolean;
608
602
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
603
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
610
604
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
611
605
  frameRendering: {
612
606
  enabled: boolean;
@@ -617,7 +611,7 @@ export declare const actionSetFrameAsActiveTool: {
617
611
  editingFrame: string | null;
618
612
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
619
613
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
614
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
621
615
  penMode: boolean;
622
616
  penDetected: boolean;
623
617
  exportBackground: boolean;
@@ -650,7 +644,7 @@ export declare const actionSetFrameAsActiveTool: {
650
644
  zoom: Readonly<{
651
645
  value: import("../types").NormalizedZoomValue;
652
646
  }>;
653
- openMenu: "shape" | "canvas" | null;
647
+ openMenu: "canvas" | "shape" | null;
654
648
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
655
649
  openSidebar: {
656
650
  name: string;
@@ -733,8 +727,8 @@ export declare const actionSetFrameAsActiveTool: {
733
727
  data: import("../charts").Spreadsheet;
734
728
  };
735
729
  pendingImageElementId: string | null;
736
- showHyperlinkPopup: false | "editor" | "info";
737
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
730
+ showHyperlinkPopup: false | "info" | "editor";
731
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
738
732
  snapLines: readonly import("../snapping").SnapLine[];
739
733
  originSnapOffset: {
740
734
  x: number;
@@ -745,22 +739,20 @@ export declare const actionSetFrameAsActiveTool: {
745
739
  followedBy: Set<import("../types").SocketId>;
746
740
  isCropping: boolean;
747
741
  croppingElementId: string | null;
748
- searchMatches: readonly {
749
- id: string;
750
- focus: boolean;
751
- matchedLines: {
752
- offsetX: number;
753
- offsetY: number;
754
- width: number;
755
- height: number;
756
- }[];
757
- }[];
742
+ searchMatches: Readonly<{
743
+ focusedId: string | null;
744
+ matches: readonly import("../types").SearchMatch[];
745
+ }> | null;
746
+ activeLockedId: string | null;
747
+ lockedMultiSelections: {
748
+ [groupId: string]: true;
749
+ };
758
750
  };
759
751
  captureUpdate: "EVENTUALLY";
760
752
  };
761
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
753
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
762
754
  } & {
763
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
755
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
764
756
  };
765
757
  export declare const actionWrapSelectionInFrame: {
766
758
  name: "wrapSelectionInFrame";
@@ -804,7 +796,7 @@ export declare const actionWrapSelectionInFrame: {
804
796
  locked: boolean;
805
797
  customData?: Record<string, any> | undefined;
806
798
  }> & {
807
- type: "rectangle";
799
+ type: "selection";
808
800
  } & {
809
801
  index: import("@excalidraw/element/types").FractionalIndex;
810
802
  }) | (Readonly<{
@@ -841,7 +833,7 @@ export declare const actionWrapSelectionInFrame: {
841
833
  locked: boolean;
842
834
  customData?: Record<string, any> | undefined;
843
835
  }> & {
844
- type: "diamond";
836
+ type: "rectangle";
845
837
  } & {
846
838
  index: import("@excalidraw/element/types").FractionalIndex;
847
839
  }) | (Readonly<{
@@ -878,8 +870,7 @@ export declare const actionWrapSelectionInFrame: {
878
870
  locked: boolean;
879
871
  customData?: Record<string, any> | undefined;
880
872
  }> & {
881
- type: "frame";
882
- name: string | null;
873
+ type: "diamond";
883
874
  } & {
884
875
  index: import("@excalidraw/element/types").FractionalIndex;
885
876
  }) | (Readonly<{
@@ -916,8 +907,7 @@ export declare const actionWrapSelectionInFrame: {
916
907
  locked: boolean;
917
908
  customData?: Record<string, any> | undefined;
918
909
  }> & {
919
- type: "magicframe";
920
- name: string | null;
910
+ type: "ellipse";
921
911
  } & {
922
912
  index: import("@excalidraw/element/types").FractionalIndex;
923
913
  }) | (Readonly<{
@@ -954,7 +944,18 @@ export declare const actionWrapSelectionInFrame: {
954
944
  locked: boolean;
955
945
  customData?: Record<string, any> | undefined;
956
946
  }> & Readonly<{
957
- type: "embeddable";
947
+ type: "text";
948
+ fontSize: number;
949
+ fontFamily: number;
950
+ text: string;
951
+ textAlign: string;
952
+ verticalAlign: string;
953
+ containerId: string | null;
954
+ originalText: string;
955
+ autoResize: boolean;
956
+ lineHeight: number & {
957
+ _brand: "unitlessLineHeight";
958
+ };
958
959
  }> & {
959
960
  index: import("@excalidraw/element/types").FractionalIndex;
960
961
  }) | (Readonly<{
@@ -991,11 +992,13 @@ export declare const actionWrapSelectionInFrame: {
991
992
  locked: boolean;
992
993
  customData?: Record<string, any> | undefined;
993
994
  }> & Readonly<{
994
- type: "image";
995
- fileId: import("@excalidraw/element/types").FileId | null;
996
- status: "pending" | "saved" | "error";
997
- scale: [number, number];
998
- crop: import("@excalidraw/element/types").ImageCrop | null;
995
+ type: "line" | "arrow";
996
+ points: readonly import("@excalidraw/math").LocalPoint[];
997
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
998
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
999
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
1000
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1001
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
999
1002
  }> & {
1000
1003
  index: import("@excalidraw/element/types").FractionalIndex;
1001
1004
  }) | (Readonly<{
@@ -1032,10 +1035,11 @@ export declare const actionWrapSelectionInFrame: {
1032
1035
  locked: boolean;
1033
1036
  customData?: Record<string, any> | undefined;
1034
1037
  }> & Readonly<{
1035
- type: "iframe";
1036
- customData?: {
1037
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1038
- } | undefined;
1038
+ type: "freedraw";
1039
+ points: readonly import("@excalidraw/math").LocalPoint[];
1040
+ pressures: readonly number[];
1041
+ simulatePressure: boolean;
1042
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1039
1043
  }> & {
1040
1044
  index: import("@excalidraw/element/types").FractionalIndex;
1041
1045
  }) | (Readonly<{
@@ -1072,18 +1076,11 @@ export declare const actionWrapSelectionInFrame: {
1072
1076
  locked: boolean;
1073
1077
  customData?: Record<string, any> | undefined;
1074
1078
  }> & Readonly<{
1075
- type: "text";
1076
- fontSize: number;
1077
- fontFamily: number;
1078
- text: string;
1079
- textAlign: string;
1080
- verticalAlign: string;
1081
- containerId: string | null;
1082
- originalText: string;
1083
- autoResize: boolean;
1084
- lineHeight: number & {
1085
- _brand: "unitlessLineHeight";
1086
- };
1079
+ type: "image";
1080
+ fileId: import("@excalidraw/element/types").FileId | null;
1081
+ status: "error" | "pending" | "saved";
1082
+ scale: [number, number];
1083
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1087
1084
  }> & {
1088
1085
  index: import("@excalidraw/element/types").FractionalIndex;
1089
1086
  }) | (Readonly<{
@@ -1120,7 +1117,8 @@ export declare const actionWrapSelectionInFrame: {
1120
1117
  locked: boolean;
1121
1118
  customData?: Record<string, any> | undefined;
1122
1119
  }> & {
1123
- type: "selection";
1120
+ type: "frame";
1121
+ name: string | null;
1124
1122
  } & {
1125
1123
  index: import("@excalidraw/element/types").FractionalIndex;
1126
1124
  }) | (Readonly<{
@@ -1157,7 +1155,8 @@ export declare const actionWrapSelectionInFrame: {
1157
1155
  locked: boolean;
1158
1156
  customData?: Record<string, any> | undefined;
1159
1157
  }> & {
1160
- type: "ellipse";
1158
+ type: "magicframe";
1159
+ name: string | null;
1161
1160
  } & {
1162
1161
  index: import("@excalidraw/element/types").FractionalIndex;
1163
1162
  }) | (Readonly<{
@@ -1194,13 +1193,10 @@ export declare const actionWrapSelectionInFrame: {
1194
1193
  locked: boolean;
1195
1194
  customData?: Record<string, any> | undefined;
1196
1195
  }> & Readonly<{
1197
- type: "line" | "arrow";
1198
- points: readonly import("@excalidraw/math").LocalPoint[];
1199
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1200
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1201
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1202
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1203
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1196
+ type: "iframe";
1197
+ customData?: {
1198
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1199
+ } | undefined;
1204
1200
  }> & {
1205
1201
  index: import("@excalidraw/element/types").FractionalIndex;
1206
1202
  }) | (Readonly<{
@@ -1237,11 +1233,7 @@ export declare const actionWrapSelectionInFrame: {
1237
1233
  locked: boolean;
1238
1234
  customData?: Record<string, any> | undefined;
1239
1235
  }> & Readonly<{
1240
- type: "freedraw";
1241
- points: readonly import("@excalidraw/math").LocalPoint[];
1242
- pressures: readonly number[];
1243
- simulatePressure: boolean;
1244
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1236
+ type: "embeddable";
1245
1237
  }> & {
1246
1238
  index: import("@excalidraw/element/types").FractionalIndex;
1247
1239
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];