@myoc/excalidraw 0.18.17 → 0.18.19

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 (110) hide show
  1. package/dist/dev/{chunk-FQEIAL75.js → chunk-HDRNCSTL.js} +8745 -10813
  2. package/dist/dev/chunk-HDRNCSTL.js.map +7 -0
  3. package/dist/dev/{chunk-KJKC5BJI.js → chunk-QO4EFL6B.js} +6 -2
  4. package/dist/dev/chunk-QO4EFL6B.js.map +7 -0
  5. package/dist/dev/chunk-WD4YVUU4.js +7 -0
  6. package/dist/dev/chunk-WD4YVUU4.js.map +7 -0
  7. package/dist/dev/data/{image-WMF622SS.js → image-CW7TABKC.js} +3 -3
  8. package/dist/dev/index.css +32 -2
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +4750 -2340
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-UQFCZXHO.js → en-2WXBKZE2.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-23G2JOF5.js +33 -0
  16. package/dist/prod/{chunk-EJLAYNAE.js → chunk-KZXLT4YB.js} +4 -4
  17. package/dist/prod/chunk-W655L563.js +7 -0
  18. package/dist/prod/data/image-TLNQ4QKS.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +18 -18
  21. package/dist/prod/locales/{en-7EHYHCIL.js → en-XFR6MADM.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 +16 -1
  25. package/dist/types/common/src/points.d.ts +1 -1
  26. package/dist/types/common/src/utils.d.ts +1 -3
  27. package/dist/types/element/src/binding.d.ts +6 -7
  28. package/dist/types/element/src/bounds.d.ts +10 -4
  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/elbowArrow.d.ts +1 -1
  34. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  35. package/dist/types/element/src/heading.d.ts +2 -2
  36. package/dist/types/element/src/index.d.ts +1 -3
  37. package/dist/types/element/src/linearElementEditor.d.ts +11 -18
  38. package/dist/types/element/src/mutateElement.d.ts +1 -1
  39. package/dist/types/element/src/newElement.d.ts +2 -1
  40. package/dist/types/element/src/resizeElements.d.ts +1 -0
  41. package/dist/types/element/src/resizeTest.d.ts +2 -2
  42. package/dist/types/element/src/{ShapeCache.d.ts → shape.d.ts} +20 -3
  43. package/dist/types/element/src/shapes.d.ts +9 -9
  44. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  45. package/dist/types/element/src/store.d.ts +11 -7
  46. package/dist/types/element/src/typeChecks.d.ts +15 -1
  47. package/dist/types/element/src/types.d.ts +8 -3
  48. package/dist/types/element/src/utils.d.ts +5 -1
  49. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +15 -6
  50. package/dist/types/excalidraw/actions/actionBoundText.d.ts +10 -4
  51. package/dist/types/excalidraw/actions/actionCanvas.d.ts +60 -24
  52. package/dist/types/excalidraw/actions/actionClipboard.d.ts +31 -12
  53. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +5 -2
  54. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +16 -6
  55. package/dist/types/excalidraw/actions/actionElementLink.d.ts +5 -2
  56. package/dist/types/excalidraw/actions/actionElementLock.d.ts +25 -20
  57. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +5 -2
  58. package/dist/types/excalidraw/actions/actionExport.d.ts +45 -18
  59. package/dist/types/excalidraw/actions/actionFinalize.d.ts +58 -12
  60. package/dist/types/excalidraw/actions/actionFrame.d.ts +20 -8
  61. package/dist/types/excalidraw/actions/actionGroup.d.ts +10 -4
  62. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +498 -2
  63. package/dist/types/excalidraw/actions/actionLink.d.ts +5 -2
  64. package/dist/types/excalidraw/actions/actionMenu.d.ts +15 -6
  65. package/dist/types/excalidraw/actions/actionNavigate.d.ts +10 -4
  66. package/dist/types/excalidraw/actions/actionProperties.d.ts +84 -31
  67. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +5 -2
  68. package/dist/types/excalidraw/actions/actionStyles.d.ts +5 -2
  69. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -2
  70. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
  71. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -2
  72. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -2
  73. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -2
  74. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
  75. package/dist/types/excalidraw/actions/types.d.ts +2 -1
  76. package/dist/types/excalidraw/appState.d.ts +10 -1
  77. package/dist/types/excalidraw/components/App.d.ts +7 -14
  78. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  79. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  80. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  81. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  82. package/dist/types/excalidraw/history.d.ts +21 -5
  83. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  84. package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
  85. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  86. package/dist/types/excalidraw/types.d.ts +10 -4
  87. package/dist/types/math/src/angle.d.ts +3 -1
  88. package/dist/types/math/src/constants.d.ts +3 -0
  89. package/dist/types/math/src/curve.d.ts +33 -1
  90. package/dist/types/math/src/ellipse.d.ts +3 -3
  91. package/dist/types/math/src/index.d.ts +1 -0
  92. package/dist/types/math/src/point.d.ts +3 -3
  93. package/dist/types/math/src/polygon.d.ts +2 -2
  94. package/dist/types/math/src/segment.d.ts +5 -5
  95. package/dist/types/math/src/utils.d.ts +2 -0
  96. package/dist/types/math/src/vector.d.ts +4 -2
  97. package/dist/types/utils/src/shape.d.ts +12 -12
  98. package/history.ts +108 -45
  99. package/package.json +1 -1
  100. package/dist/dev/chunk-FQEIAL75.js.map +0 -7
  101. package/dist/dev/chunk-KJKC5BJI.js.map +0 -7
  102. package/dist/dev/chunk-XL2I4W52.js +0 -7
  103. package/dist/dev/chunk-XL2I4W52.js.map +0 -7
  104. package/dist/prod/chunk-5JAQX5EH.js +0 -7
  105. package/dist/prod/chunk-LSNMPGNI.js +0 -33
  106. package/dist/prod/data/image-Z433FUMH.js +0 -1
  107. package/dist/types/element/src/Shape.d.ts +0 -17
  108. package/dist/types/utils/src/collision.d.ts +0 -8
  109. /package/dist/dev/data/{image-WMF622SS.js.map → image-CW7TABKC.js.map} +0 -0
  110. /package/dist/dev/locales/{en-UQFCZXHO.js.map → en-2WXBKZE2.js.map} +0 -0
@@ -3,7 +3,7 @@ import type App from "@excalidraw/excalidraw/components/App";
3
3
  import type { DTO, ValueOf } from "@excalidraw/common/utility-types";
4
4
  import type { AppState, ObservedAppState } from "@excalidraw/excalidraw/types";
5
5
  import { ElementsDelta, AppStateDelta } from "./delta";
6
- import type { OrderedExcalidrawElement, SceneElementsMap } from "./types";
6
+ import type { ExcalidrawElement, OrderedExcalidrawElement, SceneElementsMap } from "./types";
7
7
  export declare const CaptureUpdateAction: {
8
8
  /**
9
9
  * Immediately undoable.
@@ -60,7 +60,7 @@ export declare class Store {
60
60
  */
61
61
  scheduleMicroAction(params: {
62
62
  action: CaptureUpdateActionType;
63
- elements: SceneElementsMap | undefined;
63
+ elements: readonly ExcalidrawElement[] | undefined;
64
64
  appState: AppState | ObservedAppState | undefined;
65
65
  } | {
66
66
  action: typeof CaptureUpdateAction.IMMEDIATELY;
@@ -157,6 +157,10 @@ export declare class StoreDelta {
157
157
  static create(elements: ElementsDelta, appState: AppStateDelta, opts?: {
158
158
  id: string;
159
159
  }): StoreDelta;
160
+ /**
161
+ * Calculate the delta between the previous and next snapshot.
162
+ */
163
+ static calculate(prevSnapshot: StoreSnapshot, nextSnapshot: StoreSnapshot): StoreDelta;
160
164
  /**
161
165
  * Restore a store delta instance from a DTO.
162
166
  */
@@ -170,13 +174,13 @@ export declare class StoreDelta {
170
174
  */
171
175
  static inverse(delta: StoreDelta): StoreDelta;
172
176
  /**
173
- * Apply latest (remote) changes to the delta, creates new instance of `StoreDelta`.
177
+ * Apply the delta to the passed elements and appState, does not modify the snapshot.
174
178
  */
175
- static applyLatestChanges(delta: StoreDelta, elements: SceneElementsMap, modifierOptions: "deleted" | "inserted"): StoreDelta;
179
+ static applyTo(delta: StoreDelta, elements: SceneElementsMap, appState: AppState): [SceneElementsMap, AppState, boolean];
176
180
  /**
177
- * Apply the delta to the passed elements and appState, does not modify the snapshot.
181
+ * Apply latest (remote) changes to the delta, creates new instance of `StoreDelta`.
178
182
  */
179
- static applyTo(delta: StoreDelta, elements: SceneElementsMap, appState: AppState, prevSnapshot?: StoreSnapshot): [SceneElementsMap, AppState, boolean];
183
+ static applyLatestChanges(delta: StoreDelta, prevElements: SceneElementsMap, nextElements: SceneElementsMap, modifierOptions?: "deleted" | "inserted"): StoreDelta;
180
184
  isEmpty(): boolean;
181
185
  }
182
186
  /**
@@ -224,4 +228,4 @@ export declare class StoreSnapshot {
224
228
  */
225
229
  private createElementsSnapshot;
226
230
  }
227
- export declare const getObservedAppState: (appState: AppState) => ObservedAppState;
231
+ export declare const getObservedAppState: (appState: AppState | ObservedAppState) => ObservedAppState;
@@ -1,7 +1,7 @@
1
1
  import type { ElementOrToolType } from "@excalidraw/excalidraw/types";
2
2
  import type { MarkNonNullable } from "@excalidraw/common/utility-types";
3
3
  import type { Bounds } from "./bounds";
4
- import type { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawEmbeddableElement, ExcalidrawLinearElement, ExcalidrawBindableElement, ExcalidrawFreeDrawElement, InitializedExcalidrawImageElement, ExcalidrawImageElement, ExcalidrawTextElementWithContainer, ExcalidrawTextContainer, ExcalidrawFrameElement, RoundnessType, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeElement, ExcalidrawIframeLikeElement, ExcalidrawMagicFrameElement, ExcalidrawArrowElement, ExcalidrawElbowArrowElement, PointBinding, FixedPointBinding, ExcalidrawFlowchartNodeElement, ExcalidrawLinearElementSubType } from "./types";
4
+ import type { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawEmbeddableElement, ExcalidrawLinearElement, ExcalidrawBindableElement, ExcalidrawFreeDrawElement, InitializedExcalidrawImageElement, ExcalidrawImageElement, ExcalidrawTextElementWithContainer, ExcalidrawTextContainer, ExcalidrawFrameElement, RoundnessType, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeElement, ExcalidrawIframeLikeElement, ExcalidrawMagicFrameElement, ExcalidrawArrowElement, ExcalidrawElbowArrowElement, ExcalidrawLineElement, PointBinding, FixedPointBinding, ExcalidrawFlowchartNodeElement, ExcalidrawLinearElementSubType } from "./types";
5
5
  export declare const isInitializedImageElement: (element: ExcalidrawElement | null) => element is InitializedExcalidrawImageElement;
6
6
  export declare const isImageElement: (element: ExcalidrawElement | null) => element is ExcalidrawImageElement;
7
7
  export declare const isEmbeddableElement: (element: ExcalidrawElement | null | undefined) => element is ExcalidrawEmbeddableElement;
@@ -14,8 +14,13 @@ export declare const isFrameLikeElement: (element: ExcalidrawElement | null) =>
14
14
  export declare const isFreeDrawElement: (element?: ExcalidrawElement | null) => element is ExcalidrawFreeDrawElement;
15
15
  export declare const isFreeDrawElementType: (elementType: ExcalidrawElementType) => boolean;
16
16
  export declare const isLinearElement: (element?: ExcalidrawElement | null) => element is ExcalidrawLinearElement;
17
+ export declare const isLineElement: (element?: ExcalidrawElement | null) => element is ExcalidrawLineElement;
17
18
  export declare const isArrowElement: (element?: ExcalidrawElement | null) => element is ExcalidrawArrowElement;
18
19
  export declare const isElbowArrow: (element?: ExcalidrawElement) => element is ExcalidrawElbowArrowElement;
20
+ /**
21
+ * sharp or curved arrow, but not elbow
22
+ */
23
+ export declare const isSimpleArrow: (element?: ExcalidrawElement) => element is ExcalidrawArrowElement;
19
24
  export declare const isSharpArrow: (element?: ExcalidrawElement) => element is ExcalidrawArrowElement;
20
25
  export declare const isCurvedArrow: (element?: ExcalidrawElement) => element is ExcalidrawArrowElement;
21
26
  export declare const isLinearElementType: (elementType: ElementOrToolType) => boolean;
@@ -41,3 +46,12 @@ export declare const getDefaultRoundnessTypeForElement: (element: ExcalidrawElem
41
46
  export declare const isFixedPointBinding: (binding: PointBinding | FixedPointBinding) => binding is FixedPointBinding;
42
47
  export declare const isBounds: (box: unknown) => box is Bounds;
43
48
  export declare const getLinearElementSubType: (element: ExcalidrawLinearElement) => ExcalidrawLinearElementSubType;
49
+ /**
50
+ * Checks if current element points meet all the conditions for polygon=true
51
+ * (this isn't a element type check, for that use isLineElement).
52
+ *
53
+ * If you want to check if points *can* be turned into a polygon, use
54
+ * canBecomePolygon(points).
55
+ */
56
+ export declare const isValidPolygon: (points: ExcalidrawLineElement["points"]) => boolean;
57
+ export declare const canBecomePolygon: (points: ExcalidrawLineElement["points"]) => boolean;
@@ -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,7 +205,8 @@ export type PointBinding = {
205
205
  export type FixedPointBinding = Merge<PointBinding, {
206
206
  fixedPoint: FixedPoint;
207
207
  }>;
208
- export type PointsPositionUpdates = Map<number, {
208
+ type Index = number;
209
+ export type PointsPositionUpdates = Map<Index, {
209
210
  point: LocalPoint;
210
211
  isDragging?: boolean;
211
212
  }>;
@@ -219,10 +220,14 @@ export type ExcalidrawLinearElement = _ExcalidrawElementBase & Readonly<{
219
220
  startArrowhead: Arrowhead | null;
220
221
  endArrowhead: Arrowhead | null;
221
222
  }>;
223
+ export type ExcalidrawLineElement = ExcalidrawLinearElement & Readonly<{
224
+ type: "line";
225
+ polygon: boolean;
226
+ }>;
222
227
  export type FixedSegment = {
223
228
  start: LocalPoint;
224
229
  end: LocalPoint;
225
- index: number;
230
+ index: Index;
226
231
  };
227
232
  export type ExcalidrawArrowElement = ExcalidrawLinearElement & Readonly<{
228
233
  type: "arrow";
@@ -1,6 +1,8 @@
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
+ export declare function deconstructLinearOrFreeDrawElement(element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
4
6
  /**
5
7
  * Get the building components of a rectanguloid element in the form of
6
8
  * line segments and curves.
@@ -19,3 +21,5 @@ export declare function deconstructRectanguloidElement(element: ExcalidrawRectan
19
21
  * @returns Tuple of line segments (0) and curves (1)
20
22
  */
21
23
  export declare function deconstructDiamondElement(element: ExcalidrawDiamondElement, offset?: number): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
24
+ export declare const isPathALoop: (points: ExcalidrawLinearElement["points"], zoomValue?: Zoom["value"]) => boolean;
25
+ export declare const getCornerRadius: (x: number, element: ExcalidrawElement) => number;
@@ -73,7 +73,7 @@ export declare const actionAddToLibrary: {
73
73
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
74
74
  currentHoveredFontFamily: number | null;
75
75
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
76
- currentItemArrowType: "round" | "sharp" | "elbow";
76
+ currentItemArrowType: "sharp" | "round" | "elbow";
77
77
  viewBackgroundColor: string;
78
78
  scrollX: number;
79
79
  scrollY: number;
@@ -162,7 +162,6 @@ export declare const actionAddToLibrary: {
162
162
  shown: true;
163
163
  data: import("../charts").Spreadsheet;
164
164
  };
165
- pendingImageElementId: string | null;
166
165
  showHyperlinkPopup: false | "info" | "editor";
167
166
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
168
167
  snapLines: readonly import("../snapping").SnapLine[];
@@ -179,6 +178,10 @@ export declare const actionAddToLibrary: {
179
178
  focusedId: string | null;
180
179
  matches: readonly import("../types").SearchMatch[];
181
180
  }> | null;
181
+ activeLockedId: string | null;
182
+ lockedMultiSelections: {
183
+ [groupId: string]: true;
184
+ };
182
185
  };
183
186
  } | {
184
187
  captureUpdate: "EVENTUALLY";
@@ -246,7 +249,7 @@ export declare const actionAddToLibrary: {
246
249
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
247
250
  currentHoveredFontFamily: number | null;
248
251
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
249
- currentItemArrowType: "round" | "sharp" | "elbow";
252
+ currentItemArrowType: "sharp" | "round" | "elbow";
250
253
  viewBackgroundColor: string;
251
254
  scrollX: number;
252
255
  scrollY: number;
@@ -340,7 +343,6 @@ export declare const actionAddToLibrary: {
340
343
  shown: true;
341
344
  data: import("../charts").Spreadsheet;
342
345
  };
343
- pendingImageElementId: string | null;
344
346
  showHyperlinkPopup: false | "info" | "editor";
345
347
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
346
348
  snapLines: readonly import("../snapping").SnapLine[];
@@ -357,6 +359,10 @@ export declare const actionAddToLibrary: {
357
359
  focusedId: string | null;
358
360
  matches: readonly import("../types").SearchMatch[];
359
361
  }> | null;
362
+ activeLockedId: string | null;
363
+ lockedMultiSelections: {
364
+ [groupId: string]: true;
365
+ };
360
366
  };
361
367
  }> | {
362
368
  captureUpdate: "EVENTUALLY";
@@ -424,7 +430,7 @@ export declare const actionAddToLibrary: {
424
430
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
425
431
  currentHoveredFontFamily: number | null;
426
432
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
427
- currentItemArrowType: "round" | "sharp" | "elbow";
433
+ currentItemArrowType: "sharp" | "round" | "elbow";
428
434
  viewBackgroundColor: string;
429
435
  scrollX: number;
430
436
  scrollY: number;
@@ -518,7 +524,6 @@ export declare const actionAddToLibrary: {
518
524
  shown: true;
519
525
  data: import("../charts").Spreadsheet;
520
526
  };
521
- pendingImageElementId: string | null;
522
527
  showHyperlinkPopup: false | "info" | "editor";
523
528
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
524
529
  snapLines: readonly import("../snapping").SnapLine[];
@@ -535,6 +540,10 @@ export declare const actionAddToLibrary: {
535
540
  focusedId: string | null;
536
541
  matches: readonly import("../types").SearchMatch[];
537
542
  }> | null;
543
+ activeLockedId: string | null;
544
+ lockedMultiSelections: {
545
+ [groupId: string]: true;
546
+ };
538
547
  };
539
548
  };
540
549
  label: string;
@@ -93,7 +93,7 @@ export declare const actionBindText: {
93
93
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
94
94
  currentHoveredFontFamily: number | null;
95
95
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
96
- currentItemArrowType: "round" | "sharp" | "elbow";
96
+ currentItemArrowType: "sharp" | "round" | "elbow";
97
97
  viewBackgroundColor: string;
98
98
  scrollX: number;
99
99
  scrollY: number;
@@ -184,7 +184,6 @@ export declare const actionBindText: {
184
184
  shown: true;
185
185
  data: import("../charts").Spreadsheet;
186
186
  };
187
- pendingImageElementId: string | null;
188
187
  showHyperlinkPopup: false | "info" | "editor";
189
188
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
190
189
  snapLines: readonly import("../snapping").SnapLine[];
@@ -201,6 +200,10 @@ export declare const actionBindText: {
201
200
  focusedId: string | null;
202
201
  matches: readonly import("../types").SearchMatch[];
203
202
  }> | null;
203
+ activeLockedId: string | null;
204
+ lockedMultiSelections: {
205
+ [groupId: string]: true;
206
+ };
204
207
  };
205
208
  captureUpdate: "IMMEDIATELY";
206
209
  };
@@ -283,7 +286,7 @@ export declare const actionWrapTextInContainer: {
283
286
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
284
287
  currentHoveredFontFamily: number | null;
285
288
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
286
- currentItemArrowType: "round" | "sharp" | "elbow";
289
+ currentItemArrowType: "sharp" | "round" | "elbow";
287
290
  viewBackgroundColor: string;
288
291
  scrollX: number;
289
292
  scrollY: number;
@@ -374,7 +377,6 @@ export declare const actionWrapTextInContainer: {
374
377
  shown: true;
375
378
  data: import("../charts").Spreadsheet;
376
379
  };
377
- pendingImageElementId: string | null;
378
380
  showHyperlinkPopup: false | "info" | "editor";
379
381
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
380
382
  snapLines: readonly import("../snapping").SnapLine[];
@@ -391,6 +393,10 @@ export declare const actionWrapTextInContainer: {
391
393
  focusedId: string | null;
392
394
  matches: readonly import("../types").SearchMatch[];
393
395
  }> | null;
396
+ activeLockedId: string | null;
397
+ lockedMultiSelections: {
398
+ [groupId: string]: true;
399
+ };
394
400
  };
395
401
  captureUpdate: "IMMEDIATELY";
396
402
  };
@@ -94,7 +94,7 @@ export declare const actionZoomIn: {
94
94
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
95
95
  currentHoveredFontFamily: number | null;
96
96
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
97
- currentItemArrowType: "round" | "sharp" | "elbow";
97
+ currentItemArrowType: "sharp" | "round" | "elbow";
98
98
  viewBackgroundColor: string;
99
99
  cursorButton: "up" | "down";
100
100
  scrolledOutside: boolean;
@@ -183,7 +183,6 @@ export declare const actionZoomIn: {
183
183
  shown: true;
184
184
  data: import("../charts").Spreadsheet;
185
185
  };
186
- pendingImageElementId: string | null;
187
186
  showHyperlinkPopup: false | "info" | "editor";
188
187
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
189
188
  snapLines: readonly import("../snapping").SnapLine[];
@@ -199,6 +198,10 @@ export declare const actionZoomIn: {
199
198
  focusedId: string | null;
200
199
  matches: readonly import("../types").SearchMatch[];
201
200
  }> | null;
201
+ activeLockedId: string | null;
202
+ lockedMultiSelections: {
203
+ [groupId: string]: true;
204
+ };
202
205
  };
203
206
  captureUpdate: "EVENTUALLY";
204
207
  };
@@ -286,7 +289,7 @@ export declare const actionZoomOut: {
286
289
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
287
290
  currentHoveredFontFamily: number | null;
288
291
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
289
- currentItemArrowType: "round" | "sharp" | "elbow";
292
+ currentItemArrowType: "sharp" | "round" | "elbow";
290
293
  viewBackgroundColor: string;
291
294
  cursorButton: "up" | "down";
292
295
  scrolledOutside: boolean;
@@ -375,7 +378,6 @@ export declare const actionZoomOut: {
375
378
  shown: true;
376
379
  data: import("../charts").Spreadsheet;
377
380
  };
378
- pendingImageElementId: string | null;
379
381
  showHyperlinkPopup: false | "info" | "editor";
380
382
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
381
383
  snapLines: readonly import("../snapping").SnapLine[];
@@ -391,6 +393,10 @@ export declare const actionZoomOut: {
391
393
  focusedId: string | null;
392
394
  matches: readonly import("../types").SearchMatch[];
393
395
  }> | null;
396
+ activeLockedId: string | null;
397
+ lockedMultiSelections: {
398
+ [groupId: string]: true;
399
+ };
394
400
  };
395
401
  captureUpdate: "EVENTUALLY";
396
402
  };
@@ -478,7 +484,7 @@ export declare const actionResetZoom: {
478
484
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
479
485
  currentHoveredFontFamily: number | null;
480
486
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
481
- currentItemArrowType: "round" | "sharp" | "elbow";
487
+ currentItemArrowType: "sharp" | "round" | "elbow";
482
488
  viewBackgroundColor: string;
483
489
  cursorButton: "up" | "down";
484
490
  scrolledOutside: boolean;
@@ -567,7 +573,6 @@ export declare const actionResetZoom: {
567
573
  shown: true;
568
574
  data: import("../charts").Spreadsheet;
569
575
  };
570
- pendingImageElementId: string | null;
571
576
  showHyperlinkPopup: false | "info" | "editor";
572
577
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
573
578
  snapLines: readonly import("../snapping").SnapLine[];
@@ -583,6 +588,10 @@ export declare const actionResetZoom: {
583
588
  focusedId: string | null;
584
589
  matches: readonly import("../types").SearchMatch[];
585
590
  }> | null;
591
+ activeLockedId: string | null;
592
+ lockedMultiSelections: {
593
+ [groupId: string]: true;
594
+ };
586
595
  };
587
596
  captureUpdate: "EVENTUALLY";
588
597
  };
@@ -676,7 +685,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
676
685
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
677
686
  currentHoveredFontFamily: number | null;
678
687
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
679
- currentItemArrowType: "round" | "sharp" | "elbow";
688
+ currentItemArrowType: "sharp" | "round" | "elbow";
680
689
  viewBackgroundColor: string;
681
690
  cursorButton: "up" | "down";
682
691
  scrolledOutside: boolean;
@@ -765,7 +774,6 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
765
774
  shown: true;
766
775
  data: import("../charts").Spreadsheet;
767
776
  };
768
- pendingImageElementId: string | null;
769
777
  showHyperlinkPopup: false | "info" | "editor";
770
778
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
771
779
  snapLines: readonly import("../snapping").SnapLine[];
@@ -782,6 +790,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
782
790
  focusedId: string | null;
783
791
  matches: readonly import("../types").SearchMatch[];
784
792
  }> | null;
793
+ activeLockedId: string | null;
794
+ lockedMultiSelections: {
795
+ [groupId: string]: true;
796
+ };
785
797
  };
786
798
  captureUpdate: "EVENTUALLY";
787
799
  };
@@ -870,7 +882,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
870
882
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
871
883
  currentHoveredFontFamily: number | null;
872
884
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
873
- currentItemArrowType: "round" | "sharp" | "elbow";
885
+ currentItemArrowType: "sharp" | "round" | "elbow";
874
886
  viewBackgroundColor: string;
875
887
  cursorButton: "up" | "down";
876
888
  scrolledOutside: boolean;
@@ -959,7 +971,6 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
959
971
  shown: true;
960
972
  data: import("../charts").Spreadsheet;
961
973
  };
962
- pendingImageElementId: string | null;
963
974
  showHyperlinkPopup: false | "info" | "editor";
964
975
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
965
976
  snapLines: readonly import("../snapping").SnapLine[];
@@ -976,6 +987,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
976
987
  focusedId: string | null;
977
988
  matches: readonly import("../types").SearchMatch[];
978
989
  }> | null;
990
+ activeLockedId: string | null;
991
+ lockedMultiSelections: {
992
+ [groupId: string]: true;
993
+ };
979
994
  };
980
995
  captureUpdate: "EVENTUALLY";
981
996
  };
@@ -1056,7 +1071,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1056
1071
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1057
1072
  currentHoveredFontFamily: number | null;
1058
1073
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1059
- currentItemArrowType: "round" | "sharp" | "elbow";
1074
+ currentItemArrowType: "sharp" | "round" | "elbow";
1060
1075
  viewBackgroundColor: string;
1061
1076
  cursorButton: "up" | "down";
1062
1077
  scrolledOutside: boolean;
@@ -1145,7 +1160,6 @@ export declare const actionZoomToFitSelectionInViewport: {
1145
1160
  shown: true;
1146
1161
  data: import("../charts").Spreadsheet;
1147
1162
  };
1148
- pendingImageElementId: string | null;
1149
1163
  showHyperlinkPopup: false | "info" | "editor";
1150
1164
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1151
1165
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1162,6 +1176,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1162
1176
  focusedId: string | null;
1163
1177
  matches: readonly import("../types").SearchMatch[];
1164
1178
  }> | null;
1179
+ activeLockedId: string | null;
1180
+ lockedMultiSelections: {
1181
+ [groupId: string]: true;
1182
+ };
1165
1183
  };
1166
1184
  captureUpdate: "EVENTUALLY";
1167
1185
  };
@@ -1246,7 +1264,7 @@ export declare const actionZoomToFitSelection: {
1246
1264
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1247
1265
  currentHoveredFontFamily: number | null;
1248
1266
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1249
- currentItemArrowType: "round" | "sharp" | "elbow";
1267
+ currentItemArrowType: "sharp" | "round" | "elbow";
1250
1268
  viewBackgroundColor: string;
1251
1269
  cursorButton: "up" | "down";
1252
1270
  scrolledOutside: boolean;
@@ -1335,7 +1353,6 @@ export declare const actionZoomToFitSelection: {
1335
1353
  shown: true;
1336
1354
  data: import("../charts").Spreadsheet;
1337
1355
  };
1338
- pendingImageElementId: string | null;
1339
1356
  showHyperlinkPopup: false | "info" | "editor";
1340
1357
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1341
1358
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1352,6 +1369,10 @@ export declare const actionZoomToFitSelection: {
1352
1369
  focusedId: string | null;
1353
1370
  matches: readonly import("../types").SearchMatch[];
1354
1371
  }> | null;
1372
+ activeLockedId: string | null;
1373
+ lockedMultiSelections: {
1374
+ [groupId: string]: true;
1375
+ };
1355
1376
  };
1356
1377
  captureUpdate: "EVENTUALLY";
1357
1378
  };
@@ -1437,7 +1458,7 @@ export declare const actionZoomToFit: {
1437
1458
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1438
1459
  currentHoveredFontFamily: number | null;
1439
1460
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1440
- currentItemArrowType: "round" | "sharp" | "elbow";
1461
+ currentItemArrowType: "sharp" | "round" | "elbow";
1441
1462
  viewBackgroundColor: string;
1442
1463
  cursorButton: "up" | "down";
1443
1464
  scrolledOutside: boolean;
@@ -1526,7 +1547,6 @@ export declare const actionZoomToFit: {
1526
1547
  shown: true;
1527
1548
  data: import("../charts").Spreadsheet;
1528
1549
  };
1529
- pendingImageElementId: string | null;
1530
1550
  showHyperlinkPopup: false | "info" | "editor";
1531
1551
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1532
1552
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1543,6 +1563,10 @@ export declare const actionZoomToFit: {
1543
1563
  focusedId: string | null;
1544
1564
  matches: readonly import("../types").SearchMatch[];
1545
1565
  }> | null;
1566
+ activeLockedId: string | null;
1567
+ lockedMultiSelections: {
1568
+ [groupId: string]: true;
1569
+ };
1546
1570
  };
1547
1571
  captureUpdate: "EVENTUALLY";
1548
1572
  };
@@ -1625,7 +1649,7 @@ export declare const actionToggleTheme: {
1625
1649
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1626
1650
  currentHoveredFontFamily: number | null;
1627
1651
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1628
- currentItemArrowType: "round" | "sharp" | "elbow";
1652
+ currentItemArrowType: "sharp" | "round" | "elbow";
1629
1653
  viewBackgroundColor: string;
1630
1654
  scrollX: number;
1631
1655
  scrollY: number;
@@ -1718,7 +1742,6 @@ export declare const actionToggleTheme: {
1718
1742
  shown: true;
1719
1743
  data: import("../charts").Spreadsheet;
1720
1744
  };
1721
- pendingImageElementId: string | null;
1722
1745
  showHyperlinkPopup: false | "info" | "editor";
1723
1746
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1724
1747
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1735,6 +1758,10 @@ export declare const actionToggleTheme: {
1735
1758
  focusedId: string | null;
1736
1759
  matches: readonly import("../types").SearchMatch[];
1737
1760
  }> | null;
1761
+ activeLockedId: string | null;
1762
+ lockedMultiSelections: {
1763
+ [groupId: string]: true;
1764
+ };
1738
1765
  };
1739
1766
  captureUpdate: "EVENTUALLY";
1740
1767
  };
@@ -1813,7 +1840,7 @@ export declare const actionToggleEraserTool: {
1813
1840
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1814
1841
  currentHoveredFontFamily: number | null;
1815
1842
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1816
- currentItemArrowType: "round" | "sharp" | "elbow";
1843
+ currentItemArrowType: "sharp" | "round" | "elbow";
1817
1844
  viewBackgroundColor: string;
1818
1845
  scrollX: number;
1819
1846
  scrollY: number;
@@ -1901,7 +1928,6 @@ export declare const actionToggleEraserTool: {
1901
1928
  shown: true;
1902
1929
  data: import("../charts").Spreadsheet;
1903
1930
  };
1904
- pendingImageElementId: string | null;
1905
1931
  showHyperlinkPopup: false | "info" | "editor";
1906
1932
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1907
1933
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1918,6 +1944,10 @@ export declare const actionToggleEraserTool: {
1918
1944
  focusedId: string | null;
1919
1945
  matches: readonly import("../types").SearchMatch[];
1920
1946
  }> | null;
1947
+ activeLockedId: string | null;
1948
+ lockedMultiSelections: {
1949
+ [groupId: string]: true;
1950
+ };
1921
1951
  };
1922
1952
  captureUpdate: "IMMEDIATELY";
1923
1953
  };
@@ -1996,7 +2026,7 @@ export declare const actionToggleLassoTool: {
1996
2026
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1997
2027
  currentHoveredFontFamily: number | null;
1998
2028
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1999
- currentItemArrowType: "round" | "sharp" | "elbow";
2029
+ currentItemArrowType: "sharp" | "round" | "elbow";
2000
2030
  viewBackgroundColor: string;
2001
2031
  scrollX: number;
2002
2032
  scrollY: number;
@@ -2084,7 +2114,6 @@ export declare const actionToggleLassoTool: {
2084
2114
  shown: true;
2085
2115
  data: import("../charts").Spreadsheet;
2086
2116
  };
2087
- pendingImageElementId: string | null;
2088
2117
  showHyperlinkPopup: false | "info" | "editor";
2089
2118
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2090
2119
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2101,6 +2130,10 @@ export declare const actionToggleLassoTool: {
2101
2130
  focusedId: string | null;
2102
2131
  matches: readonly import("../types").SearchMatch[];
2103
2132
  }> | null;
2133
+ activeLockedId: string | null;
2134
+ lockedMultiSelections: {
2135
+ [groupId: string]: true;
2136
+ };
2104
2137
  };
2105
2138
  captureUpdate: "NEVER";
2106
2139
  };
@@ -2179,7 +2212,7 @@ export declare const actionToggleHandTool: {
2179
2212
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2180
2213
  currentHoveredFontFamily: number | null;
2181
2214
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2182
- currentItemArrowType: "round" | "sharp" | "elbow";
2215
+ currentItemArrowType: "sharp" | "round" | "elbow";
2183
2216
  viewBackgroundColor: string;
2184
2217
  scrollX: number;
2185
2218
  scrollY: number;
@@ -2267,7 +2300,6 @@ export declare const actionToggleHandTool: {
2267
2300
  shown: true;
2268
2301
  data: import("../charts").Spreadsheet;
2269
2302
  };
2270
- pendingImageElementId: string | null;
2271
2303
  showHyperlinkPopup: false | "info" | "editor";
2272
2304
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2273
2305
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2284,6 +2316,10 @@ export declare const actionToggleHandTool: {
2284
2316
  focusedId: string | null;
2285
2317
  matches: readonly import("../types").SearchMatch[];
2286
2318
  }> | null;
2319
+ activeLockedId: string | null;
2320
+ lockedMultiSelections: {
2321
+ [groupId: string]: true;
2322
+ };
2287
2323
  };
2288
2324
  captureUpdate: "IMMEDIATELY";
2289
2325
  };