@myoc/excalidraw 0.18.17 → 0.18.18

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-MAGRVBVM.js} +8745 -10813
  2. package/dist/dev/chunk-MAGRVBVM.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-WUH7JFG4.js +7 -0
  6. package/dist/dev/chunk-WUH7JFG4.js.map +7 -0
  7. package/dist/dev/data/{image-WMF622SS.js → image-BBHDGXQ3.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 +4749 -2336
  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-4Z2WWUCC.js +7 -0
  16. package/dist/prod/{chunk-EJLAYNAE.js → chunk-KZXLT4YB.js} +4 -4
  17. package/dist/prod/chunk-YBT3HBS6.js +33 -0
  18. package/dist/prod/data/image-JFILZTP3.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-BBHDGXQ3.js.map} +0 -0
  110. /package/dist/dev/locales/{en-UQFCZXHO.js.map → en-2WXBKZE2.js.map} +0 -0
@@ -71,7 +71,7 @@ export declare const actionChangeProjectName: {
71
71
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
72
  currentHoveredFontFamily: number | null;
73
73
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
74
- currentItemArrowType: "round" | "sharp" | "elbow";
74
+ currentItemArrowType: "sharp" | "round" | "elbow";
75
75
  viewBackgroundColor: string;
76
76
  scrollX: number;
77
77
  scrollY: number;
@@ -164,7 +164,6 @@ export declare const actionChangeProjectName: {
164
164
  shown: true;
165
165
  data: import("../charts").Spreadsheet;
166
166
  };
167
- pendingImageElementId: string | null;
168
167
  showHyperlinkPopup: false | "info" | "editor";
169
168
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
170
169
  snapLines: readonly import("../snapping").SnapLine[];
@@ -181,6 +180,10 @@ export declare const actionChangeProjectName: {
181
180
  focusedId: string | null;
182
181
  matches: readonly import("../types").SearchMatch[];
183
182
  }> | null;
183
+ activeLockedId: string | null;
184
+ lockedMultiSelections: {
185
+ [groupId: string]: true;
186
+ };
184
187
  };
185
188
  captureUpdate: "EVENTUALLY";
186
189
  };
@@ -260,7 +263,7 @@ export declare const actionChangeExportScale: {
260
263
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
261
264
  currentHoveredFontFamily: number | null;
262
265
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
263
- currentItemArrowType: "round" | "sharp" | "elbow";
266
+ currentItemArrowType: "sharp" | "round" | "elbow";
264
267
  viewBackgroundColor: string;
265
268
  scrollX: number;
266
269
  scrollY: number;
@@ -354,7 +357,6 @@ export declare const actionChangeExportScale: {
354
357
  shown: true;
355
358
  data: import("../charts").Spreadsheet;
356
359
  };
357
- pendingImageElementId: string | null;
358
360
  showHyperlinkPopup: false | "info" | "editor";
359
361
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
360
362
  snapLines: readonly import("../snapping").SnapLine[];
@@ -371,6 +373,10 @@ export declare const actionChangeExportScale: {
371
373
  focusedId: string | null;
372
374
  matches: readonly import("../types").SearchMatch[];
373
375
  }> | null;
376
+ activeLockedId: string | null;
377
+ lockedMultiSelections: {
378
+ [groupId: string]: true;
379
+ };
374
380
  };
375
381
  captureUpdate: "EVENTUALLY";
376
382
  };
@@ -450,7 +456,7 @@ export declare const actionChangeExportBackground: {
450
456
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
451
457
  currentHoveredFontFamily: number | null;
452
458
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
453
- currentItemArrowType: "round" | "sharp" | "elbow";
459
+ currentItemArrowType: "sharp" | "round" | "elbow";
454
460
  viewBackgroundColor: string;
455
461
  scrollX: number;
456
462
  scrollY: number;
@@ -544,7 +550,6 @@ export declare const actionChangeExportBackground: {
544
550
  shown: true;
545
551
  data: import("../charts").Spreadsheet;
546
552
  };
547
- pendingImageElementId: string | null;
548
553
  showHyperlinkPopup: false | "info" | "editor";
549
554
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
550
555
  snapLines: readonly import("../snapping").SnapLine[];
@@ -561,6 +566,10 @@ export declare const actionChangeExportBackground: {
561
566
  focusedId: string | null;
562
567
  matches: readonly import("../types").SearchMatch[];
563
568
  }> | null;
569
+ activeLockedId: string | null;
570
+ lockedMultiSelections: {
571
+ [groupId: string]: true;
572
+ };
564
573
  };
565
574
  captureUpdate: "EVENTUALLY";
566
575
  };
@@ -640,7 +649,7 @@ export declare const actionChangeExportEmbedScene: {
640
649
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
641
650
  currentHoveredFontFamily: number | null;
642
651
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
643
- currentItemArrowType: "round" | "sharp" | "elbow";
652
+ currentItemArrowType: "sharp" | "round" | "elbow";
644
653
  viewBackgroundColor: string;
645
654
  scrollX: number;
646
655
  scrollY: number;
@@ -734,7 +743,6 @@ export declare const actionChangeExportEmbedScene: {
734
743
  shown: true;
735
744
  data: import("../charts").Spreadsheet;
736
745
  };
737
- pendingImageElementId: string | null;
738
746
  showHyperlinkPopup: false | "info" | "editor";
739
747
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
740
748
  snapLines: readonly import("../snapping").SnapLine[];
@@ -751,6 +759,10 @@ export declare const actionChangeExportEmbedScene: {
751
759
  focusedId: string | null;
752
760
  matches: readonly import("../types").SearchMatch[];
753
761
  }> | null;
762
+ activeLockedId: string | null;
763
+ lockedMultiSelections: {
764
+ [groupId: string]: true;
765
+ };
754
766
  };
755
767
  captureUpdate: "EVENTUALLY";
756
768
  };
@@ -836,7 +848,7 @@ export declare const actionSaveToActiveFile: {
836
848
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
837
849
  currentHoveredFontFamily: number | null;
838
850
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
839
- currentItemArrowType: "round" | "sharp" | "elbow";
851
+ currentItemArrowType: "sharp" | "round" | "elbow";
840
852
  viewBackgroundColor: string;
841
853
  scrollX: number;
842
854
  scrollY: number;
@@ -924,7 +936,6 @@ export declare const actionSaveToActiveFile: {
924
936
  shown: true;
925
937
  data: import("../charts").Spreadsheet;
926
938
  };
927
- pendingImageElementId: string | null;
928
939
  showHyperlinkPopup: false | "info" | "editor";
929
940
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
930
941
  snapLines: readonly import("../snapping").SnapLine[];
@@ -941,6 +952,10 @@ export declare const actionSaveToActiveFile: {
941
952
  focusedId: string | null;
942
953
  matches: readonly import("../types").SearchMatch[];
943
954
  }> | null;
955
+ activeLockedId: string | null;
956
+ lockedMultiSelections: {
957
+ [groupId: string]: true;
958
+ };
944
959
  };
945
960
  } | {
946
961
  captureUpdate: "EVENTUALLY";
@@ -1029,7 +1044,7 @@ export declare const actionSaveFileToDisk: {
1029
1044
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1030
1045
  currentHoveredFontFamily: number | null;
1031
1046
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1032
- currentItemArrowType: "round" | "sharp" | "elbow";
1047
+ currentItemArrowType: "sharp" | "round" | "elbow";
1033
1048
  viewBackgroundColor: string;
1034
1049
  scrollX: number;
1035
1050
  scrollY: number;
@@ -1106,7 +1121,6 @@ export declare const actionSaveFileToDisk: {
1106
1121
  shown: true;
1107
1122
  data: import("../charts").Spreadsheet;
1108
1123
  };
1109
- pendingImageElementId: string | null;
1110
1124
  showHyperlinkPopup: false | "info" | "editor";
1111
1125
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1112
1126
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1123,6 +1137,10 @@ export declare const actionSaveFileToDisk: {
1123
1137
  focusedId: string | null;
1124
1138
  matches: readonly import("../types").SearchMatch[];
1125
1139
  }> | null;
1140
+ activeLockedId: string | null;
1141
+ lockedMultiSelections: {
1142
+ [groupId: string]: true;
1143
+ };
1126
1144
  };
1127
1145
  } | {
1128
1146
  captureUpdate: "EVENTUALLY";
@@ -1213,7 +1231,7 @@ export declare const actionLoadScene: {
1213
1231
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1214
1232
  currentHoveredFontFamily: number | null;
1215
1233
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1216
- currentItemArrowType: "round" | "sharp" | "elbow";
1234
+ currentItemArrowType: "sharp" | "round" | "elbow";
1217
1235
  viewBackgroundColor: string;
1218
1236
  scrolledOutside: boolean;
1219
1237
  name: string | null;
@@ -1296,7 +1314,6 @@ export declare const actionLoadScene: {
1296
1314
  shown: true;
1297
1315
  data: import("../charts").Spreadsheet;
1298
1316
  };
1299
- pendingImageElementId: string | null;
1300
1317
  showHyperlinkPopup: false | "info" | "editor";
1301
1318
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1302
1319
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1313,6 +1330,10 @@ export declare const actionLoadScene: {
1313
1330
  focusedId: string | null;
1314
1331
  matches: readonly import("../types").SearchMatch[];
1315
1332
  }> | null;
1333
+ activeLockedId: string | null;
1334
+ lockedMultiSelections: {
1335
+ [groupId: string]: true;
1336
+ };
1316
1337
  };
1317
1338
  files: import("../types").BinaryFiles;
1318
1339
  captureUpdate: "IMMEDIATELY";
@@ -1382,7 +1403,7 @@ export declare const actionLoadScene: {
1382
1403
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1383
1404
  currentHoveredFontFamily: number | null;
1384
1405
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1385
- currentItemArrowType: "round" | "sharp" | "elbow";
1406
+ currentItemArrowType: "sharp" | "round" | "elbow";
1386
1407
  viewBackgroundColor: string;
1387
1408
  scrollX: number;
1388
1409
  scrollY: number;
@@ -1476,7 +1497,6 @@ export declare const actionLoadScene: {
1476
1497
  shown: true;
1477
1498
  data: import("../charts").Spreadsheet;
1478
1499
  };
1479
- pendingImageElementId: string | null;
1480
1500
  showHyperlinkPopup: false | "info" | "editor";
1481
1501
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1482
1502
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1493,6 +1513,10 @@ export declare const actionLoadScene: {
1493
1513
  focusedId: string | null;
1494
1514
  matches: readonly import("../types").SearchMatch[];
1495
1515
  }> | null;
1516
+ activeLockedId: string | null;
1517
+ lockedMultiSelections: {
1518
+ [groupId: string]: true;
1519
+ };
1496
1520
  };
1497
1521
  files: import("../types").BinaryFiles;
1498
1522
  captureUpdate: "EVENTUALLY";
@@ -1573,7 +1597,7 @@ export declare const actionExportWithDarkMode: {
1573
1597
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1574
1598
  currentHoveredFontFamily: number | null;
1575
1599
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1576
- currentItemArrowType: "round" | "sharp" | "elbow";
1600
+ currentItemArrowType: "sharp" | "round" | "elbow";
1577
1601
  viewBackgroundColor: string;
1578
1602
  scrollX: number;
1579
1603
  scrollY: number;
@@ -1667,7 +1691,6 @@ export declare const actionExportWithDarkMode: {
1667
1691
  shown: true;
1668
1692
  data: import("../charts").Spreadsheet;
1669
1693
  };
1670
- pendingImageElementId: string | null;
1671
1694
  showHyperlinkPopup: false | "info" | "editor";
1672
1695
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1673
1696
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1684,6 +1707,10 @@ export declare const actionExportWithDarkMode: {
1684
1707
  focusedId: string | null;
1685
1708
  matches: readonly import("../types").SearchMatch[];
1686
1709
  }> | null;
1710
+ activeLockedId: string | null;
1711
+ lockedMultiSelections: {
1712
+ [groupId: string]: true;
1713
+ };
1687
1714
  };
1688
1715
  captureUpdate: "EVENTUALLY";
1689
1716
  };
@@ -1,11 +1,51 @@
1
1
  /// <reference types="react" />
2
2
  import { LinearElementEditor } from "@excalidraw/element";
3
+ import type { LocalPoint } from "@excalidraw/math";
4
+ import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
3
5
  import type { AppState } from "../types";
4
6
  export declare const actionFinalize: {
5
7
  name: "finalize";
6
8
  label: string;
7
9
  trackEvent: false;
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, data: any, app: import("../types").AppClassProperties) => {
11
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
12
+ appState: {
13
+ selectedLinearElement: {
14
+ selectedPointsIndices: null;
15
+ elementId: string & {
16
+ _brand: "excalidrawLinearElementId";
17
+ };
18
+ pointerDownState: Readonly<{
19
+ prevSelectedPointsIndices: readonly number[] | null;
20
+ lastClickedPoint: number;
21
+ lastClickedIsEndPoint: boolean;
22
+ origin: Readonly<{
23
+ x: number;
24
+ y: number;
25
+ }> | null;
26
+ segmentMidpoint: {
27
+ value: import("@excalidraw/math").GlobalPoint | null;
28
+ index: number | null;
29
+ added: boolean;
30
+ };
31
+ }>;
32
+ isDragging: boolean;
33
+ lastUncommittedPoint: LocalPoint | null;
34
+ pointerOffset: Readonly<{
35
+ x: number;
36
+ y: number;
37
+ }>;
38
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
39
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
40
+ hoverPointIndex: number;
41
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
42
+ elbowed: boolean;
43
+ customLineAngle: number | null;
44
+ };
45
+ suggestedBindings: never[];
46
+ };
47
+ captureUpdate: "IMMEDIATELY";
48
+ } | {
9
49
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
10
50
  appState: {
11
51
  cursorButton: "up";
@@ -30,14 +70,14 @@ export declare const actionFinalize: {
30
70
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
31
71
  state: "hover" | "active";
32
72
  } | null;
33
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
73
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
34
74
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
35
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
75
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
36
76
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
37
77
  isBindingEnabled: boolean;
38
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
78
+ startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
39
79
  suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
40
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
80
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
81
  frameRendering: {
42
82
  enabled: boolean;
43
83
  name: boolean;
@@ -45,7 +85,7 @@ export declare const actionFinalize: {
45
85
  clip: boolean;
46
86
  };
47
87
  editingFrame: string | null;
48
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
88
+ elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
49
89
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
50
90
  activeTool: {
51
91
  lastActiveTool: import("../types").ActiveTool | null;
@@ -72,7 +112,7 @@ export declare const actionFinalize: {
72
112
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
113
  currentHoveredFontFamily: number | null;
74
114
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
- currentItemArrowType: "round" | "sharp" | "elbow";
115
+ currentItemArrowType: "sharp" | "round" | "elbow";
76
116
  viewBackgroundColor: string;
77
117
  scrollX: number;
78
118
  scrollY: number;
@@ -165,7 +205,6 @@ export declare const actionFinalize: {
165
205
  shown: true;
166
206
  data: import("../charts").Spreadsheet;
167
207
  };
168
- pendingImageElementId: string | null;
169
208
  showHyperlinkPopup: false | "info" | "editor";
170
209
  selectedLinearElement: LinearElementEditor | null;
171
210
  snapLines: readonly import("../snapping").SnapLine[];
@@ -182,6 +221,10 @@ export declare const actionFinalize: {
182
221
  focusedId: string | null;
183
222
  matches: readonly import("../types").SearchMatch[];
184
223
  }> | null;
224
+ activeLockedId: string | null;
225
+ lockedMultiSelections: {
226
+ [groupId: string]: true;
227
+ };
185
228
  };
186
229
  captureUpdate: "IMMEDIATELY";
187
230
  } | {
@@ -204,7 +247,6 @@ export declare const actionFinalize: {
204
247
  [id: string]: true;
205
248
  }>;
206
249
  selectedLinearElement: LinearElementEditor | null;
207
- pendingImageElementId: null;
208
250
  contextMenu: {
209
251
  items: import("../components/ContextMenu").ContextMenuItems;
210
252
  top: number;
@@ -223,7 +265,7 @@ export declare const actionFinalize: {
223
265
  errorMessage: import("react").ReactNode;
224
266
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
267
  isBindingEnabled: boolean;
226
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
268
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
227
269
  frameRendering: {
228
270
  enabled: boolean;
229
271
  name: boolean;
@@ -231,7 +273,7 @@ export declare const actionFinalize: {
231
273
  clip: boolean;
232
274
  };
233
275
  editingFrame: string | null;
234
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
276
+ elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
235
277
  editingLinearElement: LinearElementEditor | null;
236
278
  penMode: boolean;
237
279
  penDetected: boolean;
@@ -253,7 +295,7 @@ export declare const actionFinalize: {
253
295
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
254
296
  currentHoveredFontFamily: number | null;
255
297
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
256
- currentItemArrowType: "round" | "sharp" | "elbow";
298
+ currentItemArrowType: "sharp" | "round" | "elbow";
257
299
  viewBackgroundColor: string;
258
300
  scrollX: number;
259
301
  scrollY: number;
@@ -358,6 +400,10 @@ export declare const actionFinalize: {
358
400
  focusedId: string | null;
359
401
  matches: readonly import("../types").SearchMatch[];
360
402
  }> | null;
403
+ activeLockedId: string | null;
404
+ lockedMultiSelections: {
405
+ [groupId: string]: true;
406
+ };
361
407
  };
362
408
  captureUpdate: "IMMEDIATELY";
363
409
  };
@@ -74,7 +74,7 @@ export declare const actionSelectAllElementsInFrame: {
74
74
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
75
75
  currentHoveredFontFamily: number | null;
76
76
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
77
- currentItemArrowType: "round" | "sharp" | "elbow";
77
+ currentItemArrowType: "sharp" | "round" | "elbow";
78
78
  viewBackgroundColor: string;
79
79
  scrollX: number;
80
80
  scrollY: number;
@@ -165,7 +165,6 @@ export declare const actionSelectAllElementsInFrame: {
165
165
  shown: true;
166
166
  data: import("../charts").Spreadsheet;
167
167
  };
168
- pendingImageElementId: string | null;
169
168
  showHyperlinkPopup: false | "info" | "editor";
170
169
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
171
170
  snapLines: readonly import("../snapping").SnapLine[];
@@ -182,6 +181,10 @@ export declare const actionSelectAllElementsInFrame: {
182
181
  focusedId: string | null;
183
182
  matches: readonly import("../types").SearchMatch[];
184
183
  }> | null;
184
+ activeLockedId: string | null;
185
+ lockedMultiSelections: {
186
+ [groupId: string]: true;
187
+ };
185
188
  };
186
189
  captureUpdate: "IMMEDIATELY";
187
190
  } | {
@@ -268,7 +271,7 @@ export declare const actionRemoveAllElementsFromFrame: {
268
271
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
269
272
  currentHoveredFontFamily: number | null;
270
273
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
271
- currentItemArrowType: "round" | "sharp" | "elbow";
274
+ currentItemArrowType: "sharp" | "round" | "elbow";
272
275
  viewBackgroundColor: string;
273
276
  scrollX: number;
274
277
  scrollY: number;
@@ -359,7 +362,6 @@ export declare const actionRemoveAllElementsFromFrame: {
359
362
  shown: true;
360
363
  data: import("../charts").Spreadsheet;
361
364
  };
362
- pendingImageElementId: string | null;
363
365
  showHyperlinkPopup: false | "info" | "editor";
364
366
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
365
367
  snapLines: readonly import("../snapping").SnapLine[];
@@ -376,6 +378,10 @@ export declare const actionRemoveAllElementsFromFrame: {
376
378
  focusedId: string | null;
377
379
  matches: readonly import("../types").SearchMatch[];
378
380
  }> | null;
381
+ activeLockedId: string | null;
382
+ lockedMultiSelections: {
383
+ [groupId: string]: true;
384
+ };
379
385
  };
380
386
  captureUpdate: "IMMEDIATELY";
381
387
  } | {
@@ -460,7 +466,7 @@ export declare const actionupdateFrameRendering: {
460
466
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
461
467
  currentHoveredFontFamily: number | null;
462
468
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
463
- currentItemArrowType: "round" | "sharp" | "elbow";
469
+ currentItemArrowType: "sharp" | "round" | "elbow";
464
470
  viewBackgroundColor: string;
465
471
  scrollX: number;
466
472
  scrollY: number;
@@ -554,7 +560,6 @@ export declare const actionupdateFrameRendering: {
554
560
  shown: true;
555
561
  data: import("../charts").Spreadsheet;
556
562
  };
557
- pendingImageElementId: string | null;
558
563
  showHyperlinkPopup: false | "info" | "editor";
559
564
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
560
565
  snapLines: readonly import("../snapping").SnapLine[];
@@ -571,6 +576,10 @@ export declare const actionupdateFrameRendering: {
571
576
  focusedId: string | null;
572
577
  matches: readonly import("../types").SearchMatch[];
573
578
  }> | null;
579
+ activeLockedId: string | null;
580
+ lockedMultiSelections: {
581
+ [groupId: string]: true;
582
+ };
574
583
  };
575
584
  captureUpdate: "EVENTUALLY";
576
585
  };
@@ -652,7 +661,7 @@ export declare const actionSetFrameAsActiveTool: {
652
661
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
653
662
  currentHoveredFontFamily: number | null;
654
663
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
655
- currentItemArrowType: "round" | "sharp" | "elbow";
664
+ currentItemArrowType: "sharp" | "round" | "elbow";
656
665
  viewBackgroundColor: string;
657
666
  scrollX: number;
658
667
  scrollY: number;
@@ -746,7 +755,6 @@ export declare const actionSetFrameAsActiveTool: {
746
755
  shown: true;
747
756
  data: import("../charts").Spreadsheet;
748
757
  };
749
- pendingImageElementId: string | null;
750
758
  showHyperlinkPopup: false | "info" | "editor";
751
759
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
752
760
  snapLines: readonly import("../snapping").SnapLine[];
@@ -763,6 +771,10 @@ export declare const actionSetFrameAsActiveTool: {
763
771
  focusedId: string | null;
764
772
  matches: readonly import("../types").SearchMatch[];
765
773
  }> | null;
774
+ activeLockedId: string | null;
775
+ lockedMultiSelections: {
776
+ [groupId: string]: true;
777
+ };
766
778
  };
767
779
  captureUpdate: "EVENTUALLY";
768
780
  };
@@ -84,7 +84,7 @@ export declare const actionGroup: {
84
84
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
85
85
  currentHoveredFontFamily: number | null;
86
86
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
87
- currentItemArrowType: "round" | "sharp" | "elbow";
87
+ currentItemArrowType: "sharp" | "round" | "elbow";
88
88
  viewBackgroundColor: string;
89
89
  scrollX: number;
90
90
  scrollY: number;
@@ -171,7 +171,6 @@ export declare const actionGroup: {
171
171
  shown: true;
172
172
  data: import("../charts").Spreadsheet;
173
173
  };
174
- pendingImageElementId: string | null;
175
174
  showHyperlinkPopup: false | "info" | "editor";
176
175
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
177
176
  snapLines: readonly import("../snapping").SnapLine[];
@@ -188,6 +187,10 @@ export declare const actionGroup: {
188
187
  focusedId: string | null;
189
188
  matches: readonly import("../types").SearchMatch[];
190
189
  }> | null;
190
+ activeLockedId: string | null;
191
+ lockedMultiSelections: {
192
+ [groupId: string]: true;
193
+ };
191
194
  };
192
195
  elements: OrderedExcalidrawElement[];
193
196
  captureUpdate: "IMMEDIATELY";
@@ -281,7 +284,7 @@ export declare const actionUngroup: {
281
284
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
282
285
  currentHoveredFontFamily: number | null;
283
286
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
284
- currentItemArrowType: "round" | "sharp" | "elbow";
287
+ currentItemArrowType: "sharp" | "round" | "elbow";
285
288
  viewBackgroundColor: string;
286
289
  scrollX: number;
287
290
  scrollY: number;
@@ -368,7 +371,6 @@ export declare const actionUngroup: {
368
371
  shown: true;
369
372
  data: import("../charts").Spreadsheet;
370
373
  };
371
- pendingImageElementId: string | null;
372
374
  showHyperlinkPopup: false | "info" | "editor";
373
375
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
374
376
  snapLines: readonly import("../snapping").SnapLine[];
@@ -385,6 +387,10 @@ export declare const actionUngroup: {
385
387
  focusedId: string | null;
386
388
  matches: readonly import("../types").SearchMatch[];
387
389
  }> | null;
390
+ activeLockedId: string | null;
391
+ lockedMultiSelections: {
392
+ [groupId: string]: true;
393
+ };
388
394
  };
389
395
  elements: OrderedExcalidrawElement[];
390
396
  captureUpdate: "IMMEDIATELY";