@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
@@ -72,7 +72,7 @@ export declare const actionCopy: {
72
72
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
73
  currentHoveredFontFamily: number | null;
74
74
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
- currentItemArrowType: "round" | "sharp" | "elbow";
75
+ currentItemArrowType: "sharp" | "round" | "elbow";
76
76
  viewBackgroundColor: string;
77
77
  scrollX: number;
78
78
  scrollY: number;
@@ -166,7 +166,6 @@ export declare const actionCopy: {
166
166
  shown: true;
167
167
  data: import("../charts").Spreadsheet;
168
168
  };
169
- pendingImageElementId: string | null;
170
169
  showHyperlinkPopup: false | "info" | "editor";
171
170
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
172
171
  snapLines: readonly import("../snapping").SnapLine[];
@@ -183,6 +182,10 @@ export declare const actionCopy: {
183
182
  focusedId: string | null;
184
183
  matches: readonly import("../types").SearchMatch[];
185
184
  }> | null;
185
+ activeLockedId: string | null;
186
+ lockedMultiSelections: {
187
+ [groupId: string]: true;
188
+ };
186
189
  };
187
190
  } | {
188
191
  captureUpdate: "EVENTUALLY";
@@ -264,7 +267,7 @@ export declare const actionPaste: {
264
267
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
265
268
  currentHoveredFontFamily: number | null;
266
269
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
267
- currentItemArrowType: "round" | "sharp" | "elbow";
270
+ currentItemArrowType: "sharp" | "round" | "elbow";
268
271
  viewBackgroundColor: string;
269
272
  scrollX: number;
270
273
  scrollY: number;
@@ -358,7 +361,6 @@ export declare const actionPaste: {
358
361
  shown: true;
359
362
  data: import("../charts").Spreadsheet;
360
363
  };
361
- pendingImageElementId: string | null;
362
364
  showHyperlinkPopup: false | "info" | "editor";
363
365
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
364
366
  snapLines: readonly import("../snapping").SnapLine[];
@@ -375,6 +377,10 @@ export declare const actionPaste: {
375
377
  focusedId: string | null;
376
378
  matches: readonly import("../types").SearchMatch[];
377
379
  }> | null;
380
+ activeLockedId: string | null;
381
+ lockedMultiSelections: {
382
+ [groupId: string]: true;
383
+ };
378
384
  };
379
385
  } | {
380
386
  captureUpdate: "EVENTUALLY";
@@ -457,7 +463,7 @@ export declare const actionCut: {
457
463
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
458
464
  currentHoveredFontFamily: number | null;
459
465
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
460
- currentItemArrowType: "round" | "sharp" | "elbow";
466
+ currentItemArrowType: "sharp" | "round" | "elbow";
461
467
  viewBackgroundColor: string;
462
468
  scrollX: number;
463
469
  scrollY: number;
@@ -551,7 +557,6 @@ export declare const actionCut: {
551
557
  shown: true;
552
558
  data: import("../charts").Spreadsheet;
553
559
  };
554
- pendingImageElementId: string | null;
555
560
  showHyperlinkPopup: false | "info" | "editor";
556
561
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
557
562
  snapLines: readonly import("../snapping").SnapLine[];
@@ -568,6 +573,10 @@ export declare const actionCut: {
568
573
  focusedId: string | null;
569
574
  matches: readonly import("../types").SearchMatch[];
570
575
  }> | null;
576
+ activeLockedId: string | null;
577
+ lockedMultiSelections: {
578
+ [groupId: string]: true;
579
+ };
571
580
  };
572
581
  captureUpdate: "IMMEDIATELY";
573
582
  } | {
@@ -603,6 +612,7 @@ export declare const actionCut: {
603
612
  hoverPointIndex: number;
604
613
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
605
614
  elbowed: boolean;
615
+ customLineAngle: number | null;
606
616
  };
607
617
  contextMenu: {
608
618
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -666,7 +676,7 @@ export declare const actionCut: {
666
676
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
667
677
  currentHoveredFontFamily: number | null;
668
678
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
669
- currentItemArrowType: "round" | "sharp" | "elbow";
679
+ currentItemArrowType: "sharp" | "round" | "elbow";
670
680
  viewBackgroundColor: string;
671
681
  scrollX: number;
672
682
  scrollY: number;
@@ -760,7 +770,6 @@ export declare const actionCut: {
760
770
  shown: true;
761
771
  data: import("../charts").Spreadsheet;
762
772
  };
763
- pendingImageElementId: string | null;
764
773
  showHyperlinkPopup: false | "info" | "editor";
765
774
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
766
775
  snapLines: readonly import("../snapping").SnapLine[];
@@ -777,6 +786,10 @@ export declare const actionCut: {
777
786
  focusedId: string | null;
778
787
  matches: readonly import("../types").SearchMatch[];
779
788
  }> | null;
789
+ activeLockedId: string | null;
790
+ lockedMultiSelections: {
791
+ [groupId: string]: true;
792
+ };
780
793
  };
781
794
  captureUpdate: "IMMEDIATELY";
782
795
  } | {
@@ -850,7 +863,7 @@ export declare const actionCut: {
850
863
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
851
864
  currentHoveredFontFamily: number | null;
852
865
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
853
- currentItemArrowType: "round" | "sharp" | "elbow";
866
+ currentItemArrowType: "sharp" | "round" | "elbow";
854
867
  viewBackgroundColor: string;
855
868
  scrollX: number;
856
869
  scrollY: number;
@@ -937,7 +950,6 @@ export declare const actionCut: {
937
950
  shown: true;
938
951
  data: import("../charts").Spreadsheet;
939
952
  };
940
- pendingImageElementId: string | null;
941
953
  showHyperlinkPopup: false | "info" | "editor";
942
954
  snapLines: readonly import("../snapping").SnapLine[];
943
955
  originSnapOffset: {
@@ -953,6 +965,10 @@ export declare const actionCut: {
953
965
  focusedId: string | null;
954
966
  matches: readonly import("../types").SearchMatch[];
955
967
  }> | null;
968
+ activeLockedId: string | null;
969
+ lockedMultiSelections: {
970
+ [groupId: string]: true;
971
+ };
956
972
  };
957
973
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
958
974
  };
@@ -1065,7 +1081,7 @@ export declare const actionCopyAsPng: {
1065
1081
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1066
1082
  currentHoveredFontFamily: number | null;
1067
1083
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1068
- currentItemArrowType: "round" | "sharp" | "elbow";
1084
+ currentItemArrowType: "sharp" | "round" | "elbow";
1069
1085
  viewBackgroundColor: string;
1070
1086
  scrollX: number;
1071
1087
  scrollY: number;
@@ -1159,7 +1175,6 @@ export declare const actionCopyAsPng: {
1159
1175
  shown: true;
1160
1176
  data: import("../charts").Spreadsheet;
1161
1177
  };
1162
- pendingImageElementId: string | null;
1163
1178
  showHyperlinkPopup: false | "info" | "editor";
1164
1179
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1165
1180
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1176,6 +1191,10 @@ export declare const actionCopyAsPng: {
1176
1191
  focusedId: string | null;
1177
1192
  matches: readonly import("../types").SearchMatch[];
1178
1193
  }> | null;
1194
+ activeLockedId: string | null;
1195
+ lockedMultiSelections: {
1196
+ [groupId: string]: true;
1197
+ };
1179
1198
  };
1180
1199
  captureUpdate: "EVENTUALLY";
1181
1200
  }>;
@@ -75,7 +75,7 @@ export declare const actionToggleCropEditor: {
75
75
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
76
76
  currentHoveredFontFamily: number | null;
77
77
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
78
- currentItemArrowType: "round" | "sharp" | "elbow";
78
+ currentItemArrowType: "sharp" | "round" | "elbow";
79
79
  viewBackgroundColor: string;
80
80
  scrollX: number;
81
81
  scrollY: number;
@@ -169,7 +169,6 @@ export declare const actionToggleCropEditor: {
169
169
  shown: true;
170
170
  data: import("../charts").Spreadsheet;
171
171
  };
172
- pendingImageElementId: string | null;
173
172
  showHyperlinkPopup: false | "info" | "editor";
174
173
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
175
174
  snapLines: readonly import("../snapping").SnapLine[];
@@ -184,6 +183,10 @@ export declare const actionToggleCropEditor: {
184
183
  focusedId: string | null;
185
184
  matches: readonly import("../types").SearchMatch[];
186
185
  }> | null;
186
+ activeLockedId: string | null;
187
+ lockedMultiSelections: {
188
+ [groupId: string]: true;
189
+ };
187
190
  };
188
191
  captureUpdate: "IMMEDIATELY";
189
192
  };
@@ -76,7 +76,7 @@ export declare const actionDeleteSelected: {
76
76
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
77
77
  currentHoveredFontFamily: number | null;
78
78
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
79
- currentItemArrowType: "round" | "sharp" | "elbow";
79
+ currentItemArrowType: "sharp" | "round" | "elbow";
80
80
  viewBackgroundColor: string;
81
81
  scrollX: number;
82
82
  scrollY: number;
@@ -170,7 +170,6 @@ export declare const actionDeleteSelected: {
170
170
  shown: true;
171
171
  data: import("../charts").Spreadsheet;
172
172
  };
173
- pendingImageElementId: string | null;
174
173
  showHyperlinkPopup: false | "info" | "editor";
175
174
  selectedLinearElement: LinearElementEditor | null;
176
175
  snapLines: readonly import("../snapping").SnapLine[];
@@ -187,6 +186,10 @@ export declare const actionDeleteSelected: {
187
186
  focusedId: string | null;
188
187
  matches: readonly import("../types").SearchMatch[];
189
188
  }> | null;
189
+ activeLockedId: string | null;
190
+ lockedMultiSelections: {
191
+ [groupId: string]: true;
192
+ };
190
193
  };
191
194
  captureUpdate: "IMMEDIATELY";
192
195
  } | {
@@ -222,6 +225,7 @@ export declare const actionDeleteSelected: {
222
225
  hoverPointIndex: number;
223
226
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
224
227
  elbowed: boolean;
228
+ customLineAngle: number | null;
225
229
  };
226
230
  contextMenu: {
227
231
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -285,7 +289,7 @@ export declare const actionDeleteSelected: {
285
289
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
286
290
  currentHoveredFontFamily: number | null;
287
291
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
288
- currentItemArrowType: "round" | "sharp" | "elbow";
292
+ currentItemArrowType: "sharp" | "round" | "elbow";
289
293
  viewBackgroundColor: string;
290
294
  scrollX: number;
291
295
  scrollY: number;
@@ -379,7 +383,6 @@ export declare const actionDeleteSelected: {
379
383
  shown: true;
380
384
  data: import("../charts").Spreadsheet;
381
385
  };
382
- pendingImageElementId: string | null;
383
386
  showHyperlinkPopup: false | "info" | "editor";
384
387
  selectedLinearElement: LinearElementEditor | null;
385
388
  snapLines: readonly import("../snapping").SnapLine[];
@@ -396,6 +399,10 @@ export declare const actionDeleteSelected: {
396
399
  focusedId: string | null;
397
400
  matches: readonly import("../types").SearchMatch[];
398
401
  }> | null;
402
+ activeLockedId: string | null;
403
+ lockedMultiSelections: {
404
+ [groupId: string]: true;
405
+ };
399
406
  };
400
407
  captureUpdate: "IMMEDIATELY";
401
408
  } | {
@@ -469,7 +476,7 @@ export declare const actionDeleteSelected: {
469
476
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
470
477
  currentHoveredFontFamily: number | null;
471
478
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
472
- currentItemArrowType: "round" | "sharp" | "elbow";
479
+ currentItemArrowType: "sharp" | "round" | "elbow";
473
480
  viewBackgroundColor: string;
474
481
  scrollX: number;
475
482
  scrollY: number;
@@ -556,7 +563,6 @@ export declare const actionDeleteSelected: {
556
563
  shown: true;
557
564
  data: import("../charts").Spreadsheet;
558
565
  };
559
- pendingImageElementId: string | null;
560
566
  showHyperlinkPopup: false | "info" | "editor";
561
567
  snapLines: readonly import("../snapping").SnapLine[];
562
568
  originSnapOffset: {
@@ -572,6 +578,10 @@ export declare const actionDeleteSelected: {
572
578
  focusedId: string | null;
573
579
  matches: readonly import("../types").SearchMatch[];
574
580
  }> | null;
581
+ activeLockedId: string | null;
582
+ lockedMultiSelections: {
583
+ [groupId: string]: true;
584
+ };
575
585
  };
576
586
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
577
587
  };
@@ -104,7 +104,7 @@ export declare const actionLinkToElement: {
104
104
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
105
105
  currentHoveredFontFamily: number | null;
106
106
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
107
- currentItemArrowType: "round" | "sharp" | "elbow";
107
+ currentItemArrowType: "sharp" | "round" | "elbow";
108
108
  viewBackgroundColor: string;
109
109
  scrollX: number;
110
110
  scrollY: number;
@@ -187,7 +187,6 @@ export declare const actionLinkToElement: {
187
187
  shown: true;
188
188
  data: import("../charts").Spreadsheet;
189
189
  };
190
- pendingImageElementId: string | null;
191
190
  showHyperlinkPopup: false | "info" | "editor";
192
191
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
193
192
  snapLines: readonly import("../snapping").SnapLine[];
@@ -204,6 +203,10 @@ export declare const actionLinkToElement: {
204
203
  focusedId: string | null;
205
204
  matches: readonly import("../types").SearchMatch[];
206
205
  }> | null;
206
+ activeLockedId: string | null;
207
+ lockedMultiSelections: {
208
+ [groupId: string]: true;
209
+ };
207
210
  };
208
211
  captureUpdate: "IMMEDIATELY";
209
212
  elements?: undefined;
@@ -1,17 +1,28 @@
1
1
  /// <reference types="react" />
2
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
+ import type { AppState } from "../types";
3
4
  export declare const actionToggleElementLock: {
4
5
  name: "toggleElementLock";
5
- label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
6
+ label: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
6
7
  icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
7
8
  trackEvent: {
8
9
  category: "element";
9
10
  };
10
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
11
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => false | {
12
13
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
14
  appState: {
15
+ selectedElementIds: Readonly<{
16
+ [id: string]: true;
17
+ }>;
18
+ selectedGroupIds: {
19
+ [groupId: string]: boolean;
20
+ };
14
21
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
22
+ lockedMultiSelections: {
23
+ [x: string]: true;
24
+ };
25
+ activeLockedId: string | null;
15
26
  contextMenu: {
16
27
  items: import("../components/ContextMenu").ContextMenuItems;
17
28
  top: number;
@@ -75,7 +86,7 @@ export declare const actionToggleElementLock: {
75
86
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
76
87
  currentHoveredFontFamily: number | null;
77
88
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
78
- currentItemArrowType: "round" | "sharp" | "elbow";
89
+ currentItemArrowType: "sharp" | "round" | "elbow";
79
90
  viewBackgroundColor: string;
80
91
  scrollX: number;
81
92
  scrollY: number;
@@ -106,9 +117,6 @@ export declare const actionToggleElementLock: {
106
117
  } | null;
107
118
  defaultSidebarDockedPreference: boolean;
108
119
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
109
- selectedElementIds: Readonly<{
110
- [id: string]: true;
111
- }>;
112
120
  hoveredElementIds: Readonly<{
113
121
  [id: string]: true;
114
122
  }>;
@@ -128,9 +136,6 @@ export declare const actionToggleElementLock: {
128
136
  gridStep: number;
129
137
  gridModeEnabled: boolean;
130
138
  viewModeEnabled: boolean;
131
- selectedGroupIds: {
132
- [groupId: string]: boolean;
133
- };
134
139
  editingGroupId: string | null;
135
140
  width: number;
136
141
  height: number;
@@ -169,7 +174,6 @@ export declare const actionToggleElementLock: {
169
174
  shown: true;
170
175
  data: import("../charts").Spreadsheet;
171
176
  };
172
- pendingImageElementId: string | null;
173
177
  showHyperlinkPopup: false | "info" | "editor";
174
178
  snapLines: readonly import("../snapping").SnapLine[];
175
179
  originSnapOffset: {
@@ -188,9 +192,9 @@ export declare const actionToggleElementLock: {
188
192
  };
189
193
  captureUpdate: "IMMEDIATELY";
190
194
  };
191
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
195
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
192
196
  } & {
193
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
197
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
194
198
  };
195
199
  export declare const actionUnlockAllElements: {
196
200
  name: "unlockAllElements";
@@ -199,13 +203,18 @@ export declare const actionUnlockAllElements: {
199
203
  };
200
204
  viewMode: false;
201
205
  icon: import("react/jsx-runtime").JSX.Element;
202
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
203
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
206
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
207
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
204
208
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
205
209
  appState: {
206
210
  selectedElementIds: {
207
211
  [k: string]: true;
208
212
  };
213
+ selectedGroupIds: {
214
+ [groupId: string]: boolean;
215
+ };
216
+ lockedMultiSelections: {};
217
+ activeLockedId: null;
209
218
  contextMenu: {
210
219
  items: import("../components/ContextMenu").ContextMenuItems;
211
220
  top: number;
@@ -269,7 +278,7 @@ export declare const actionUnlockAllElements: {
269
278
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
270
279
  currentHoveredFontFamily: number | null;
271
280
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
272
- currentItemArrowType: "round" | "sharp" | "elbow";
281
+ currentItemArrowType: "sharp" | "round" | "elbow";
273
282
  viewBackgroundColor: string;
274
283
  scrollX: number;
275
284
  scrollY: number;
@@ -319,9 +328,6 @@ export declare const actionUnlockAllElements: {
319
328
  gridStep: number;
320
329
  gridModeEnabled: boolean;
321
330
  viewModeEnabled: boolean;
322
- selectedGroupIds: {
323
- [groupId: string]: boolean;
324
- };
325
331
  editingGroupId: string | null;
326
332
  width: number;
327
333
  height: number;
@@ -360,7 +366,6 @@ export declare const actionUnlockAllElements: {
360
366
  shown: true;
361
367
  data: import("../charts").Spreadsheet;
362
368
  };
363
- pendingImageElementId: string | null;
364
369
  showHyperlinkPopup: false | "info" | "editor";
365
370
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
366
371
  snapLines: readonly import("../snapping").SnapLine[];
@@ -72,7 +72,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
72
72
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
73
  currentHoveredFontFamily: number | null;
74
74
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
- currentItemArrowType: "round" | "sharp" | "elbow";
75
+ currentItemArrowType: "sharp" | "round" | "elbow";
76
76
  viewBackgroundColor: string;
77
77
  scrollX: number;
78
78
  scrollY: number;
@@ -166,7 +166,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
166
166
  shown: true;
167
167
  data: import("../charts").Spreadsheet;
168
168
  };
169
- pendingImageElementId: string | null;
170
169
  showHyperlinkPopup: false | "info" | "editor";
171
170
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
172
171
  snapLines: readonly import("../snapping").SnapLine[];
@@ -183,6 +182,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
183
182
  focusedId: string | null;
184
183
  matches: readonly import("../types").SearchMatch[];
185
184
  }> | null;
185
+ activeLockedId: string | null;
186
+ lockedMultiSelections: {
187
+ [groupId: string]: true;
188
+ };
186
189
  };
187
190
  captureUpdate: "EVENTUALLY";
188
191
  };