@excalidraw/excalidraw 0.18.0-195a743 → 0.18.0-200a6bd94

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 (166) hide show
  1. package/dist/dev/chunk-CP5DND7P.js +7 -0
  2. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  3. package/dist/dev/{chunk-T3M44BFV.js → chunk-QF5FRM6O.js} +12 -4
  4. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  5. package/dist/dev/chunk-VISTIWDQ.js +5668 -0
  6. package/dist/dev/chunk-VISTIWDQ.js.map +7 -0
  7. package/dist/dev/data/{image-TTQKTTOH.js → image-XM2PNARE.js} +3 -3
  8. package/dist/dev/index.css +89 -22
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +7634 -9487
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-I23TB6DJ.js → en-SMAPCEOQ.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/chunk-A66AFZZU.js +7 -0
  16. package/dist/prod/chunk-I4UNSFV6.js +12 -0
  17. package/dist/prod/chunk-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 +26 -19
  21. package/dist/prod/locales/{en-TC3OFDA6.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 +20 -3
  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 +15 -5
  30. package/dist/types/element/src/Scene.d.ts +4 -4
  31. package/dist/types/element/src/align.d.ts +3 -2
  32. package/dist/types/element/src/binding.d.ts +11 -8
  33. package/dist/types/element/src/bounds.d.ts +12 -4
  34. package/dist/types/element/src/collision.d.ts +18 -12
  35. package/dist/types/element/src/cropElement.d.ts +1 -1
  36. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +73 -38
  37. package/dist/types/element/src/distance.d.ts +2 -2
  38. package/dist/types/element/src/distribute.d.ts +2 -1
  39. package/dist/types/element/src/dragElements.d.ts +1 -1
  40. package/dist/types/element/src/flowchart.d.ts +1 -1
  41. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  42. package/dist/types/element/src/frame.d.ts +3 -2
  43. package/dist/types/element/src/groups.d.ts +1 -0
  44. package/dist/types/element/src/index.d.ts +43 -2
  45. package/dist/types/element/src/linearElementEditor.d.ts +17 -30
  46. package/dist/types/element/src/mutateElement.d.ts +1 -1
  47. package/dist/types/element/src/newElement.d.ts +3 -2
  48. package/dist/types/element/src/resizeElements.d.ts +2 -1
  49. package/dist/types/element/src/selection.d.ts +0 -5
  50. package/dist/types/element/src/shape.d.ts +42 -0
  51. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  52. package/dist/types/element/src/store.d.ts +232 -0
  53. package/dist/types/element/src/textElement.d.ts +1 -1
  54. package/dist/types/element/src/typeChecks.d.ts +16 -1
  55. package/dist/types/element/src/types.d.ts +13 -3
  56. package/dist/types/element/src/utils.d.ts +16 -6
  57. package/dist/types/element/src/zindex.d.ts +3 -3
  58. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +36 -48
  59. package/dist/types/excalidraw/actions/actionBoundText.d.ts +24 -32
  60. package/dist/types/excalidraw/actions/actionCanvas.d.ts +160 -212
  61. package/dist/types/excalidraw/actions/actionClipboard.d.ts +72 -94
  62. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -16
  63. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +36 -47
  64. package/dist/types/excalidraw/actions/actionElementLink.d.ts +11 -15
  65. package/dist/types/excalidraw/actions/actionElementLock.d.ts +39 -48
  66. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +12 -16
  67. package/dist/types/excalidraw/actions/actionExport.d.ts +118 -154
  68. package/dist/types/excalidraw/actions/actionFinalize.d.ts +71 -38
  69. package/dist/types/excalidraw/actions/actionFrame.d.ts +95 -111
  70. package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -32
  71. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  72. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +537 -17
  73. package/dist/types/excalidraw/actions/actionLink.d.ts +12 -16
  74. package/dist/types/excalidraw/actions/actionMenu.d.ts +35 -47
  75. package/dist/types/excalidraw/actions/actionNavigate.d.ts +24 -32
  76. package/dist/types/excalidraw/actions/actionProperties.d.ts +186 -238
  77. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -16
  78. package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -16
  79. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +12 -16
  80. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +12 -16
  81. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +11 -188
  82. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +12 -16
  83. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -16
  84. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -16
  85. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
  86. package/dist/types/excalidraw/actions/types.d.ts +3 -2
  87. package/dist/types/excalidraw/appState.d.ts +16 -7
  88. package/dist/types/excalidraw/components/Actions.d.ts +0 -4
  89. package/dist/types/excalidraw/components/App.d.ts +18 -20
  90. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  91. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  92. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  93. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  94. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  95. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  96. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  97. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  98. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  99. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  100. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
  101. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  102. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  103. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  104. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  105. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  107. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  108. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  109. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  110. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  111. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -1
  117. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  118. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  119. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  120. package/dist/types/excalidraw/components/icons.d.ts +3 -0
  121. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  122. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  123. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  124. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  125. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  126. package/dist/types/excalidraw/history.d.ts +30 -22
  127. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  128. package/dist/types/excalidraw/index.d.ts +10 -9
  129. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  130. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  131. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  132. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  133. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  134. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  135. package/dist/types/excalidraw/snapping.d.ts +2 -2
  136. package/dist/types/excalidraw/types.d.ts +27 -14
  137. package/dist/types/math/src/angle.d.ts +2 -0
  138. package/dist/types/math/src/constants.d.ts +3 -0
  139. package/dist/types/math/src/curve.d.ts +34 -0
  140. package/dist/types/math/src/index.d.ts +1 -0
  141. package/dist/types/math/src/point.d.ts +1 -1
  142. package/dist/types/math/src/rectangle.d.ts +2 -0
  143. package/dist/types/math/src/vector.d.ts +8 -2
  144. package/dist/types/utils/src/bbox.d.ts +1 -1
  145. package/dist/types/utils/src/index.d.ts +1 -1
  146. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  147. package/history.ts +147 -110
  148. package/package.json +12 -9
  149. package/dist/dev/chunk-H3EW23X2.js +0 -18294
  150. package/dist/dev/chunk-H3EW23X2.js.map +0 -7
  151. package/dist/dev/chunk-T3M44BFV.js.map +0 -7
  152. package/dist/dev/chunk-WMGEUIQQ.js +0 -7
  153. package/dist/dev/chunk-WMGEUIQQ.js.map +0 -7
  154. package/dist/prod/chunk-2Z7RPVPO.js +0 -12
  155. package/dist/prod/chunk-7M43VNIB.js +0 -33
  156. package/dist/prod/chunk-GK4XUKZB.js +0 -7
  157. package/dist/prod/data/image-7YYIWLVQ.js +0 -1
  158. package/dist/types/element/src/Shape.d.ts +0 -17
  159. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  160. package/dist/types/element/src/shapes.d.ts +0 -23
  161. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  162. package/dist/types/excalidraw/store.d.ts +0 -129
  163. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  164. package/dist/types/utils/src/collision.d.ts +0 -8
  165. /package/dist/dev/data/{image-TTQKTTOH.js.map → image-XM2PNARE.js.map} +0 -0
  166. /package/dist/dev/locales/{en-I23TB6DJ.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -151,7 +151,7 @@ export type ExcalidrawFrameLikeElement = ExcalidrawFrameElement | ExcalidrawMagi
151
151
  */
152
152
  export type ExcalidrawGenericElement = ExcalidrawSelectionElement | ExcalidrawRectangleElement | ExcalidrawDiamondElement | ExcalidrawEllipseElement;
153
153
  export type ExcalidrawFlowchartNodeElement = ExcalidrawRectangleElement | ExcalidrawDiamondElement | ExcalidrawEllipseElement;
154
- export type ExcalidrawRectanguloidElement = ExcalidrawRectangleElement | ExcalidrawImageElement | ExcalidrawTextElement | ExcalidrawFreeDrawElement | ExcalidrawIframeLikeElement | ExcalidrawFrameLikeElement | ExcalidrawEmbeddableElement;
154
+ export type ExcalidrawRectanguloidElement = ExcalidrawRectangleElement | ExcalidrawImageElement | ExcalidrawTextElement | ExcalidrawFreeDrawElement | ExcalidrawIframeLikeElement | ExcalidrawFrameLikeElement | ExcalidrawEmbeddableElement | ExcalidrawSelectionElement;
155
155
  /**
156
156
  * ExcalidrawElement should be JSON serializable and (eventually) contain
157
157
  * no computed data. The list of all ExcalidrawElements should be shareable
@@ -205,6 +205,11 @@ export type PointBinding = {
205
205
  export type FixedPointBinding = Merge<PointBinding, {
206
206
  fixedPoint: FixedPoint;
207
207
  }>;
208
+ type Index = number;
209
+ export type PointsPositionUpdates = Map<Index, {
210
+ point: LocalPoint;
211
+ isDragging?: boolean;
212
+ }>;
208
213
  export type Arrowhead = "arrow" | "bar" | "dot" | "circle" | "circle_outline" | "triangle" | "triangle_outline" | "diamond" | "diamond_outline" | "crowfoot_one" | "crowfoot_many" | "crowfoot_one_or_many";
209
214
  export type ExcalidrawLinearElement = _ExcalidrawElementBase & Readonly<{
210
215
  type: "line" | "arrow";
@@ -215,10 +220,14 @@ export type ExcalidrawLinearElement = _ExcalidrawElementBase & Readonly<{
215
220
  startArrowhead: Arrowhead | null;
216
221
  endArrowhead: Arrowhead | null;
217
222
  }>;
223
+ export type ExcalidrawLineElement = ExcalidrawLinearElement & Readonly<{
224
+ type: "line";
225
+ polygon: boolean;
226
+ }>;
218
227
  export type FixedSegment = {
219
228
  start: LocalPoint;
220
229
  end: LocalPoint;
221
- index: number;
230
+ index: Index;
222
231
  };
223
232
  export type ExcalidrawArrowElement = ExcalidrawLinearElement & Readonly<{
224
233
  type: "arrow";
@@ -279,7 +288,8 @@ export type SceneElementsMap = Map<ExcalidrawElement["id"], Ordered<ExcalidrawEl
279
288
  */
280
289
  export type NonDeletedSceneElementsMap = Map<ExcalidrawElement["id"], Ordered<NonDeletedExcalidrawElement>> & MakeBrand<"NonDeletedSceneElementsMap">;
281
290
  export type ElementsMapOrArray = readonly ExcalidrawElement[] | Readonly<ElementsMap>;
291
+ export type ExcalidrawLinearElementSubType = "line" | "sharpArrow" | "curvedArrow" | "elbowArrow";
282
292
  export type ConvertibleGenericTypes = "rectangle" | "diamond" | "ellipse";
283
- export type ConvertibleLinearTypes = "line" | "sharpArrow" | "curvedArrow" | "elbowArrow";
293
+ export type ConvertibleLinearTypes = ExcalidrawLinearElementSubType;
284
294
  export type ConvertibleTypes = ConvertibleGenericTypes | ConvertibleLinearTypes;
285
295
  export {};
@@ -1,21 +1,31 @@
1
1
  import { type GlobalPoint } from "@excalidraw/math";
2
2
  import type { Curve, LineSegment } from "@excalidraw/math";
3
- import type { ExcalidrawDiamondElement, ExcalidrawRectanguloidElement } from "./types";
3
+ import type { Zoom } from "@excalidraw/excalidraw/types";
4
+ import type { ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, ExcalidrawRectanguloidElement } from "./types";
5
+ /**
6
+ * Returns the **rotated** components of freedraw, line or arrow elements.
7
+ *
8
+ * @param element The linear element to deconstruct
9
+ * @returns The rotated in components.
10
+ */
11
+ export declare function deconstructLinearOrFreeDrawElement(element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
4
12
  /**
5
13
  * Get the building components of a rectanguloid element in the form of
6
- * line segments and curves.
14
+ * line segments and curves **unrotated**.
7
15
  *
8
16
  * @param element Target rectanguloid element
9
17
  * @param offset Optional offset to expand the rectanguloid shape
10
- * @returns Tuple of line segments (0) and curves (1)
18
+ * @returns Tuple of **unrotated** line segments (0) and curves (1)
11
19
  */
12
20
  export declare function deconstructRectanguloidElement(element: ExcalidrawRectanguloidElement, offset?: number): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
13
21
  /**
14
- * Get the building components of a diamond element in the form of
15
- * line segments and curves as a tuple, in this order.
22
+ * Get the **unrotated** building components of a diamond element
23
+ * in the form of line segments and curves as a tuple, in this order.
16
24
  *
17
25
  * @param element The element to deconstruct
18
26
  * @param offset An optional offset
19
- * @returns Tuple of line segments (0) and curves (1)
27
+ * @returns Tuple of line **unrotated** segments (0) and curves (1)
20
28
  */
21
29
  export declare function deconstructDiamondElement(element: ExcalidrawDiamondElement, offset?: number): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
30
+ export declare const isPathALoop: (points: ExcalidrawLinearElement["points"], zoomValue?: Zoom["value"]) => boolean;
31
+ export declare const getCornerRadius: (x: number, element: ExcalidrawElement) => number;
@@ -1,7 +1,7 @@
1
1
  import type { AppState } from "@excalidraw/excalidraw/types";
2
- import type Scene from "./Scene";
2
+ import type { Scene } from "./Scene";
3
3
  import type { ExcalidrawElement } from "./types";
4
4
  export declare const moveOneLeft: (allElements: readonly ExcalidrawElement[], appState: AppState, scene: Scene) => readonly ExcalidrawElement[];
5
5
  export declare const moveOneRight: (allElements: readonly ExcalidrawElement[], appState: AppState, scene: Scene) => readonly ExcalidrawElement[];
6
- export declare const moveAllLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => ExcalidrawElement[] | readonly ExcalidrawElement[];
7
- export declare const moveAllRight: (allElements: readonly ExcalidrawElement[], appState: AppState) => ExcalidrawElement[] | readonly ExcalidrawElement[];
6
+ export declare const moveAllLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[] | ExcalidrawElement[];
7
+ export declare const moveAllRight: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[] | ExcalidrawElement[];
@@ -20,7 +20,7 @@ export declare const actionAddToLibrary: {
20
20
  errorMessage: import("react").ReactNode;
21
21
  activeEmbeddable: {
22
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
- state: "hover" | "active";
23
+ state: "active" | "hover";
24
24
  } | null;
25
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -28,7 +28,7 @@ export declare const actionAddToLibrary: {
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  isBindingEnabled: boolean;
30
30
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
31
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
32
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
33
  frameRendering: {
34
34
  enabled: boolean;
@@ -39,7 +39,6 @@ export declare const actionAddToLibrary: {
39
39
  editingFrame: string | null;
40
40
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
41
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
43
42
  activeTool: {
44
43
  lastActiveTool: import("../types").ActiveTool | null;
45
44
  locked: boolean;
@@ -87,7 +86,7 @@ export declare const actionAddToLibrary: {
87
86
  name: "imageExport" | "help" | "jsonExport";
88
87
  } | {
89
88
  name: "ttd";
90
- tab: "text-to-diagram" | "mermaid";
89
+ tab: "mermaid" | "text-to-diagram";
91
90
  } | {
92
91
  name: "commandPalette";
93
92
  } | {
@@ -154,9 +153,8 @@ export declare const actionAddToLibrary: {
154
153
  shown: true;
155
154
  data: import("../charts").Spreadsheet;
156
155
  };
157
- pendingImageElementId: string | null;
158
156
  showHyperlinkPopup: false | "editor" | "info";
159
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
157
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
160
158
  snapLines: readonly import("../snapping").SnapLine[];
161
159
  originSnapOffset: {
162
160
  x: number;
@@ -167,16 +165,14 @@ export declare const actionAddToLibrary: {
167
165
  followedBy: Set<import("../types").SocketId>;
168
166
  isCropping: boolean;
169
167
  croppingElementId: string | null;
170
- searchMatches: readonly {
171
- id: string;
172
- focus: boolean;
173
- matchedLines: {
174
- offsetX: number;
175
- offsetY: number;
176
- width: number;
177
- height: number;
178
- }[];
179
- }[];
168
+ searchMatches: Readonly<{
169
+ focusedId: string | null;
170
+ matches: readonly import("../types").SearchMatch[];
171
+ }> | null;
172
+ activeLockedId: string | null;
173
+ lockedMultiSelections: {
174
+ [groupId: string]: true;
175
+ };
180
176
  };
181
177
  } | {
182
178
  captureUpdate: "EVENTUALLY";
@@ -191,7 +187,7 @@ export declare const actionAddToLibrary: {
191
187
  isLoading: boolean;
192
188
  activeEmbeddable: {
193
189
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
194
- state: "hover" | "active";
190
+ state: "active" | "hover";
195
191
  } | null;
196
192
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
197
193
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -199,7 +195,7 @@ export declare const actionAddToLibrary: {
199
195
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
200
196
  isBindingEnabled: boolean;
201
197
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
202
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
198
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
203
199
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
204
200
  frameRendering: {
205
201
  enabled: boolean;
@@ -210,7 +206,6 @@ export declare const actionAddToLibrary: {
210
206
  editingFrame: string | null;
211
207
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
212
208
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
213
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
214
209
  activeTool: {
215
210
  lastActiveTool: import("../types").ActiveTool | null;
216
211
  locked: boolean;
@@ -258,7 +253,7 @@ export declare const actionAddToLibrary: {
258
253
  name: "imageExport" | "help" | "jsonExport";
259
254
  } | {
260
255
  name: "ttd";
261
- tab: "text-to-diagram" | "mermaid";
256
+ tab: "mermaid" | "text-to-diagram";
262
257
  } | {
263
258
  name: "commandPalette";
264
259
  } | {
@@ -330,9 +325,8 @@ export declare const actionAddToLibrary: {
330
325
  shown: true;
331
326
  data: import("../charts").Spreadsheet;
332
327
  };
333
- pendingImageElementId: string | null;
334
328
  showHyperlinkPopup: false | "editor" | "info";
335
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
329
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
336
330
  snapLines: readonly import("../snapping").SnapLine[];
337
331
  originSnapOffset: {
338
332
  x: number;
@@ -343,16 +337,14 @@ export declare const actionAddToLibrary: {
343
337
  followedBy: Set<import("../types").SocketId>;
344
338
  isCropping: boolean;
345
339
  croppingElementId: string | null;
346
- searchMatches: readonly {
347
- id: string;
348
- focus: boolean;
349
- matchedLines: {
350
- offsetX: number;
351
- offsetY: number;
352
- width: number;
353
- height: number;
354
- }[];
355
- }[];
340
+ searchMatches: Readonly<{
341
+ focusedId: string | null;
342
+ matches: readonly import("../types").SearchMatch[];
343
+ }> | null;
344
+ activeLockedId: string | null;
345
+ lockedMultiSelections: {
346
+ [groupId: string]: true;
347
+ };
356
348
  };
357
349
  }> | {
358
350
  captureUpdate: "EVENTUALLY";
@@ -367,7 +359,7 @@ export declare const actionAddToLibrary: {
367
359
  isLoading: boolean;
368
360
  activeEmbeddable: {
369
361
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
370
- state: "hover" | "active";
362
+ state: "active" | "hover";
371
363
  } | null;
372
364
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
373
365
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -375,7 +367,7 @@ export declare const actionAddToLibrary: {
375
367
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
376
368
  isBindingEnabled: boolean;
377
369
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
378
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
370
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
379
371
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
380
372
  frameRendering: {
381
373
  enabled: boolean;
@@ -386,7 +378,6 @@ export declare const actionAddToLibrary: {
386
378
  editingFrame: string | null;
387
379
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
388
380
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
389
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
390
381
  activeTool: {
391
382
  lastActiveTool: import("../types").ActiveTool | null;
392
383
  locked: boolean;
@@ -434,7 +425,7 @@ export declare const actionAddToLibrary: {
434
425
  name: "imageExport" | "help" | "jsonExport";
435
426
  } | {
436
427
  name: "ttd";
437
- tab: "text-to-diagram" | "mermaid";
428
+ tab: "mermaid" | "text-to-diagram";
438
429
  } | {
439
430
  name: "commandPalette";
440
431
  } | {
@@ -506,9 +497,8 @@ export declare const actionAddToLibrary: {
506
497
  shown: true;
507
498
  data: import("../charts").Spreadsheet;
508
499
  };
509
- pendingImageElementId: string | null;
510
500
  showHyperlinkPopup: false | "editor" | "info";
511
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
501
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
512
502
  snapLines: readonly import("../snapping").SnapLine[];
513
503
  originSnapOffset: {
514
504
  x: number;
@@ -519,16 +509,14 @@ export declare const actionAddToLibrary: {
519
509
  followedBy: Set<import("../types").SocketId>;
520
510
  isCropping: boolean;
521
511
  croppingElementId: string | null;
522
- searchMatches: readonly {
523
- id: string;
524
- focus: boolean;
525
- matchedLines: {
526
- offsetX: number;
527
- offsetY: number;
528
- width: number;
529
- height: number;
530
- }[];
531
- }[];
512
+ searchMatches: Readonly<{
513
+ focusedId: string | null;
514
+ matches: readonly import("../types").SearchMatch[];
515
+ }> | null;
516
+ activeLockedId: string | null;
517
+ lockedMultiSelections: {
518
+ [groupId: string]: true;
519
+ };
532
520
  };
533
521
  };
534
522
  label: string;
@@ -40,7 +40,7 @@ export declare const actionBindText: {
40
40
  errorMessage: import("react").ReactNode;
41
41
  activeEmbeddable: {
42
42
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
43
- state: "hover" | "active";
43
+ state: "active" | "hover";
44
44
  } | null;
45
45
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
46
46
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -48,7 +48,7 @@ export declare const actionBindText: {
48
48
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
49
  isBindingEnabled: boolean;
50
50
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
51
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
51
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
52
52
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
53
53
  frameRendering: {
54
54
  enabled: boolean;
@@ -59,7 +59,6 @@ export declare const actionBindText: {
59
59
  editingFrame: string | null;
60
60
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
61
61
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
62
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
63
62
  activeTool: {
64
63
  lastActiveTool: import("../types").ActiveTool | null;
65
64
  locked: boolean;
@@ -107,7 +106,7 @@ export declare const actionBindText: {
107
106
  name: "imageExport" | "help" | "jsonExport";
108
107
  } | {
109
108
  name: "ttd";
110
- tab: "text-to-diagram" | "mermaid";
109
+ tab: "mermaid" | "text-to-diagram";
111
110
  } | {
112
111
  name: "commandPalette";
113
112
  } | {
@@ -176,9 +175,8 @@ export declare const actionBindText: {
176
175
  shown: true;
177
176
  data: import("../charts").Spreadsheet;
178
177
  };
179
- pendingImageElementId: string | null;
180
178
  showHyperlinkPopup: false | "editor" | "info";
181
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
179
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
182
180
  snapLines: readonly import("../snapping").SnapLine[];
183
181
  originSnapOffset: {
184
182
  x: number;
@@ -189,16 +187,14 @@ export declare const actionBindText: {
189
187
  followedBy: Set<import("../types").SocketId>;
190
188
  isCropping: boolean;
191
189
  croppingElementId: string | null;
192
- searchMatches: readonly {
193
- id: string;
194
- focus: boolean;
195
- matchedLines: {
196
- offsetX: number;
197
- offsetY: number;
198
- width: number;
199
- height: number;
200
- }[];
201
- }[];
190
+ searchMatches: Readonly<{
191
+ focusedId: string | null;
192
+ matches: readonly import("../types").SearchMatch[];
193
+ }> | null;
194
+ activeLockedId: string | null;
195
+ lockedMultiSelections: {
196
+ [groupId: string]: true;
197
+ };
202
198
  };
203
199
  captureUpdate: "IMMEDIATELY";
204
200
  };
@@ -228,7 +224,7 @@ export declare const actionWrapTextInContainer: {
228
224
  errorMessage: import("react").ReactNode;
229
225
  activeEmbeddable: {
230
226
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
231
- state: "hover" | "active";
227
+ state: "active" | "hover";
232
228
  } | null;
233
229
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
234
230
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -236,7 +232,7 @@ export declare const actionWrapTextInContainer: {
236
232
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
233
  isBindingEnabled: boolean;
238
234
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
239
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
235
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
240
236
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
241
237
  frameRendering: {
242
238
  enabled: boolean;
@@ -247,7 +243,6 @@ export declare const actionWrapTextInContainer: {
247
243
  editingFrame: string | null;
248
244
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
249
245
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
250
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
251
246
  activeTool: {
252
247
  lastActiveTool: import("../types").ActiveTool | null;
253
248
  locked: boolean;
@@ -295,7 +290,7 @@ export declare const actionWrapTextInContainer: {
295
290
  name: "imageExport" | "help" | "jsonExport";
296
291
  } | {
297
292
  name: "ttd";
298
- tab: "text-to-diagram" | "mermaid";
293
+ tab: "mermaid" | "text-to-diagram";
299
294
  } | {
300
295
  name: "commandPalette";
301
296
  } | {
@@ -364,9 +359,8 @@ export declare const actionWrapTextInContainer: {
364
359
  shown: true;
365
360
  data: import("../charts").Spreadsheet;
366
361
  };
367
- pendingImageElementId: string | null;
368
362
  showHyperlinkPopup: false | "editor" | "info";
369
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
363
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
370
364
  snapLines: readonly import("../snapping").SnapLine[];
371
365
  originSnapOffset: {
372
366
  x: number;
@@ -377,16 +371,14 @@ export declare const actionWrapTextInContainer: {
377
371
  followedBy: Set<import("../types").SocketId>;
378
372
  isCropping: boolean;
379
373
  croppingElementId: string | null;
380
- searchMatches: readonly {
381
- id: string;
382
- focus: boolean;
383
- matchedLines: {
384
- offsetX: number;
385
- offsetY: number;
386
- width: number;
387
- height: number;
388
- }[];
389
- }[];
374
+ searchMatches: Readonly<{
375
+ focusedId: string | null;
376
+ matches: readonly import("../types").SearchMatch[];
377
+ }> | null;
378
+ activeLockedId: string | null;
379
+ lockedMultiSelections: {
380
+ [groupId: string]: true;
381
+ };
390
382
  };
391
383
  captureUpdate: "IMMEDIATELY";
392
384
  };