@myoc/excalidraw 0.18.18 → 0.18.20

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 (96) hide show
  1. package/dist/dev/chunk-5IFOUNFV.js +5684 -0
  2. package/dist/dev/chunk-5IFOUNFV.js.map +7 -0
  3. package/dist/dev/{chunk-WUH7JFG4.js → chunk-GR6GZQQD.js} +2 -2
  4. package/dist/dev/data/{image-BBHDGXQ3.js → image-QMTJGSU7.js} +3 -3
  5. package/dist/dev/index.css +4 -0
  6. package/dist/dev/index.css.map +2 -2
  7. package/dist/dev/index.js +6058 -4026
  8. package/dist/dev/index.js.map +4 -4
  9. package/dist/dev/subset-shared.chunk.js +1 -1
  10. package/dist/dev/subset-worker.chunk.js +1 -1
  11. package/dist/prod/{chunk-4Z2WWUCC.js → chunk-PPT7KBS3.js} +1 -1
  12. package/dist/prod/chunk-SHSFPXHA.js +4 -0
  13. package/dist/prod/data/image-TZAIFXB2.js +1 -0
  14. package/dist/prod/index.css +1 -1
  15. package/dist/prod/index.js +24 -17
  16. package/dist/prod/subset-shared.chunk.js +1 -1
  17. package/dist/prod/subset-worker.chunk.js +1 -1
  18. package/dist/types/common/src/constants.d.ts +2 -1
  19. package/dist/types/common/src/points.d.ts +1 -1
  20. package/dist/types/common/src/utils.d.ts +2 -2
  21. package/dist/types/element/src/Scene.d.ts +1 -1
  22. package/dist/types/element/src/align.d.ts +2 -1
  23. package/dist/types/element/src/binding.d.ts +4 -0
  24. package/dist/types/element/src/bounds.d.ts +3 -1
  25. package/dist/types/element/src/distribute.d.ts +2 -1
  26. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  27. package/dist/types/element/src/frame.d.ts +2 -2
  28. package/dist/types/element/src/groups.d.ts +1 -0
  29. package/dist/types/element/src/heading.d.ts +2 -2
  30. package/dist/types/element/src/linearElementEditor.d.ts +3 -5
  31. package/dist/types/element/src/resizeTest.d.ts +2 -2
  32. package/dist/types/element/src/selection.d.ts +1 -1
  33. package/dist/types/element/src/shape.d.ts +2 -2
  34. package/dist/types/element/src/shapes.d.ts +8 -8
  35. package/dist/types/element/src/store.d.ts +3 -2
  36. package/dist/types/element/src/utils.d.ts +11 -5
  37. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -15
  38. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  39. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  40. package/dist/types/excalidraw/actions/actionBoundText.d.ts +8 -10
  41. package/dist/types/excalidraw/actions/actionCanvas.d.ts +63 -75
  42. package/dist/types/excalidraw/actions/actionClipboard.d.ts +31 -36
  43. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +4 -5
  44. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +17 -20
  45. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  46. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  47. package/dist/types/excalidraw/actions/actionElementLink.d.ts +3 -4
  48. package/dist/types/excalidraw/actions/actionElementLock.d.ts +10 -12
  49. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +4 -5
  50. package/dist/types/excalidraw/actions/actionExport.d.ts +121 -130
  51. package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -12
  52. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  53. package/dist/types/excalidraw/actions/actionFrame.d.ts +66 -70
  54. package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -16
  55. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +85 -55
  56. package/dist/types/excalidraw/actions/actionLink.d.ts +5 -6
  57. package/dist/types/excalidraw/actions/actionMenu.d.ts +13 -16
  58. package/dist/types/excalidraw/actions/actionNavigate.d.ts +8 -10
  59. package/dist/types/excalidraw/actions/actionProperties.d.ts +63 -78
  60. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -8
  61. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  62. package/dist/types/excalidraw/actions/actionStyles.d.ts +8 -9
  63. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -7
  64. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -7
  65. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -6
  66. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -7
  67. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -7
  68. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +6 -7
  69. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  70. package/dist/types/excalidraw/appState.d.ts +21 -21
  71. package/dist/types/excalidraw/components/Actions.d.ts +0 -4
  72. package/dist/types/excalidraw/components/App.d.ts +12 -6
  73. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  74. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  75. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  76. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  77. package/dist/types/excalidraw/index.d.ts +1 -0
  78. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  79. package/dist/types/excalidraw/types.d.ts +2 -4
  80. package/dist/types/math/src/angle.d.ts +1 -1
  81. package/dist/types/math/src/curve.d.ts +1 -1
  82. package/dist/types/math/src/ellipse.d.ts +3 -3
  83. package/dist/types/math/src/point.d.ts +2 -2
  84. package/dist/types/math/src/polygon.d.ts +2 -2
  85. package/dist/types/math/src/rectangle.d.ts +2 -0
  86. package/dist/types/math/src/segment.d.ts +5 -5
  87. package/dist/types/math/src/utils.d.ts +0 -2
  88. package/dist/types/utils/src/shape.d.ts +12 -12
  89. package/package.json +4 -1
  90. package/dist/dev/chunk-MAGRVBVM.js +0 -23870
  91. package/dist/dev/chunk-MAGRVBVM.js.map +0 -7
  92. package/dist/prod/chunk-YBT3HBS6.js +0 -33
  93. package/dist/prod/data/image-JFILZTP3.js +0 -1
  94. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  95. /package/dist/dev/{chunk-WUH7JFG4.js.map → chunk-GR6GZQQD.js.map} +0 -0
  96. /package/dist/dev/data/{image-BBHDGXQ3.js.map → image-QMTJGSU7.js.map} +0 -0
@@ -27,7 +27,7 @@ export declare const actionCopy: {
27
27
  };
28
28
  activeEmbeddable: {
29
29
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
30
- state: "hover" | "active";
30
+ state: "active" | "hover";
31
31
  } | null;
32
32
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
33
33
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -46,7 +46,6 @@ export declare const actionCopy: {
46
46
  editingFrame: string | null;
47
47
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
48
48
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
50
49
  activeTool: {
51
50
  lastActiveTool: import("../types").ActiveTool | null;
52
51
  locked: boolean;
@@ -72,7 +71,7 @@ export declare const actionCopy: {
72
71
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
72
  currentHoveredFontFamily: number | null;
74
73
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
- currentItemArrowType: "sharp" | "round" | "elbow";
74
+ currentItemArrowType: "round" | "sharp" | "elbow";
76
75
  viewBackgroundColor: string;
77
76
  scrollX: number;
78
77
  scrollY: number;
@@ -94,7 +93,7 @@ export declare const actionCopy: {
94
93
  name: "imageExport" | "help" | "jsonExport";
95
94
  } | {
96
95
  name: "ttd";
97
- tab: "text-to-diagram" | "mermaid";
96
+ tab: "mermaid" | "text-to-diagram";
98
97
  } | {
99
98
  name: "commandPalette";
100
99
  } | {
@@ -166,7 +165,7 @@ export declare const actionCopy: {
166
165
  shown: true;
167
166
  data: import("../charts").Spreadsheet;
168
167
  };
169
- showHyperlinkPopup: false | "info" | "editor";
168
+ showHyperlinkPopup: false | "editor" | "info";
170
169
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
171
170
  snapLines: readonly import("../snapping").SnapLine[];
172
171
  originSnapOffset: {
@@ -222,7 +221,7 @@ export declare const actionPaste: {
222
221
  };
223
222
  activeEmbeddable: {
224
223
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
225
- state: "hover" | "active";
224
+ state: "active" | "hover";
226
225
  } | null;
227
226
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
228
227
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -241,7 +240,6 @@ export declare const actionPaste: {
241
240
  editingFrame: string | null;
242
241
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
243
242
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
244
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
245
243
  activeTool: {
246
244
  lastActiveTool: import("../types").ActiveTool | null;
247
245
  locked: boolean;
@@ -267,7 +265,7 @@ export declare const actionPaste: {
267
265
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
268
266
  currentHoveredFontFamily: number | null;
269
267
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
270
- currentItemArrowType: "sharp" | "round" | "elbow";
268
+ currentItemArrowType: "round" | "sharp" | "elbow";
271
269
  viewBackgroundColor: string;
272
270
  scrollX: number;
273
271
  scrollY: number;
@@ -289,7 +287,7 @@ export declare const actionPaste: {
289
287
  name: "imageExport" | "help" | "jsonExport";
290
288
  } | {
291
289
  name: "ttd";
292
- tab: "text-to-diagram" | "mermaid";
290
+ tab: "mermaid" | "text-to-diagram";
293
291
  } | {
294
292
  name: "commandPalette";
295
293
  } | {
@@ -361,7 +359,7 @@ export declare const actionPaste: {
361
359
  shown: true;
362
360
  data: import("../charts").Spreadsheet;
363
361
  };
364
- showHyperlinkPopup: false | "info" | "editor";
362
+ showHyperlinkPopup: false | "editor" | "info";
365
363
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
366
364
  snapLines: readonly import("../snapping").SnapLine[];
367
365
  originSnapOffset: {
@@ -400,7 +398,7 @@ export declare const actionCut: {
400
398
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
401
399
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
402
400
  appState: {
403
- editingLinearElement: null;
401
+ selectedLinearElement: null;
404
402
  contextMenu: {
405
403
  items: import("../components/ContextMenu").ContextMenuItems;
406
404
  top: number;
@@ -419,7 +417,7 @@ export declare const actionCut: {
419
417
  errorMessage: import("react").ReactNode;
420
418
  activeEmbeddable: {
421
419
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
422
- state: "hover" | "active";
420
+ state: "active" | "hover";
423
421
  } | null;
424
422
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
425
423
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -463,7 +461,7 @@ export declare const actionCut: {
463
461
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
464
462
  currentHoveredFontFamily: number | null;
465
463
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
466
- currentItemArrowType: "sharp" | "round" | "elbow";
464
+ currentItemArrowType: "round" | "sharp" | "elbow";
467
465
  viewBackgroundColor: string;
468
466
  scrollX: number;
469
467
  scrollY: number;
@@ -485,7 +483,7 @@ export declare const actionCut: {
485
483
  name: "imageExport" | "help" | "jsonExport";
486
484
  } | {
487
485
  name: "ttd";
488
- tab: "text-to-diagram" | "mermaid";
486
+ tab: "mermaid" | "text-to-diagram";
489
487
  } | {
490
488
  name: "commandPalette";
491
489
  } | {
@@ -557,8 +555,7 @@ export declare const actionCut: {
557
555
  shown: true;
558
556
  data: import("../charts").Spreadsheet;
559
557
  };
560
- showHyperlinkPopup: false | "info" | "editor";
561
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
558
+ showHyperlinkPopup: false | "editor" | "info";
562
559
  snapLines: readonly import("../snapping").SnapLine[];
563
560
  originSnapOffset: {
564
561
  x: number;
@@ -582,7 +579,7 @@ export declare const actionCut: {
582
579
  } | {
583
580
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
584
581
  appState: {
585
- editingLinearElement: {
582
+ selectedLinearElement: {
586
583
  selectedPointsIndices: number[];
587
584
  startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
588
585
  endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
@@ -613,6 +610,7 @@ export declare const actionCut: {
613
610
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
614
611
  elbowed: boolean;
615
612
  customLineAngle: number | null;
613
+ isEditing: boolean;
616
614
  };
617
615
  contextMenu: {
618
616
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -632,7 +630,7 @@ export declare const actionCut: {
632
630
  errorMessage: import("react").ReactNode;
633
631
  activeEmbeddable: {
634
632
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
635
- state: "hover" | "active";
633
+ state: "active" | "hover";
636
634
  } | null;
637
635
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
638
636
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -676,7 +674,7 @@ export declare const actionCut: {
676
674
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
677
675
  currentHoveredFontFamily: number | null;
678
676
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
679
- currentItemArrowType: "sharp" | "round" | "elbow";
677
+ currentItemArrowType: "round" | "sharp" | "elbow";
680
678
  viewBackgroundColor: string;
681
679
  scrollX: number;
682
680
  scrollY: number;
@@ -698,7 +696,7 @@ export declare const actionCut: {
698
696
  name: "imageExport" | "help" | "jsonExport";
699
697
  } | {
700
698
  name: "ttd";
701
- tab: "text-to-diagram" | "mermaid";
699
+ tab: "mermaid" | "text-to-diagram";
702
700
  } | {
703
701
  name: "commandPalette";
704
702
  } | {
@@ -770,8 +768,7 @@ export declare const actionCut: {
770
768
  shown: true;
771
769
  data: import("../charts").Spreadsheet;
772
770
  };
773
- showHyperlinkPopup: false | "info" | "editor";
774
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
771
+ showHyperlinkPopup: false | "editor" | "info";
775
772
  snapLines: readonly import("../snapping").SnapLine[];
776
773
  originSnapOffset: {
777
774
  x: number;
@@ -803,13 +800,13 @@ export declare const actionCut: {
803
800
  multiElement: null;
804
801
  activeEmbeddable: null;
805
802
  selectedLinearElement: null;
803
+ editingGroupId: string | null;
806
804
  selectedElementIds: Readonly<{
807
805
  [id: string]: true;
808
806
  }>;
809
807
  selectedGroupIds: {
810
808
  [groupId: string]: boolean;
811
809
  };
812
- editingGroupId: string | null;
813
810
  contextMenu: {
814
811
  items: import("../components/ContextMenu").ContextMenuItems;
815
812
  top: number;
@@ -842,7 +839,6 @@ export declare const actionCut: {
842
839
  editingFrame: string | null;
843
840
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
844
841
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
845
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
846
842
  penMode: boolean;
847
843
  penDetected: boolean;
848
844
  exportBackground: boolean;
@@ -863,7 +859,7 @@ export declare const actionCut: {
863
859
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
864
860
  currentHoveredFontFamily: number | null;
865
861
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
866
- currentItemArrowType: "sharp" | "round" | "elbow";
862
+ currentItemArrowType: "round" | "sharp" | "elbow";
867
863
  viewBackgroundColor: string;
868
864
  scrollX: number;
869
865
  scrollY: number;
@@ -885,7 +881,7 @@ export declare const actionCut: {
885
881
  name: "imageExport" | "help" | "jsonExport";
886
882
  } | {
887
883
  name: "ttd";
888
- tab: "text-to-diagram" | "mermaid";
884
+ tab: "mermaid" | "text-to-diagram";
889
885
  } | {
890
886
  name: "commandPalette";
891
887
  } | {
@@ -950,7 +946,7 @@ export declare const actionCut: {
950
946
  shown: true;
951
947
  data: import("../charts").Spreadsheet;
952
948
  };
953
- showHyperlinkPopup: false | "info" | "editor";
949
+ showHyperlinkPopup: false | "editor" | "info";
954
950
  snapLines: readonly import("../snapping").SnapLine[];
955
951
  originSnapOffset: {
956
952
  x: number;
@@ -972,9 +968,9 @@ export declare const actionCut: {
972
968
  };
973
969
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
974
970
  };
975
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
971
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
976
972
  } & {
977
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
973
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
978
974
  };
979
975
  export declare const actionCopyAsSvg: {
980
976
  name: "copyAsSvg";
@@ -1036,7 +1032,7 @@ export declare const actionCopyAsPng: {
1036
1032
  };
1037
1033
  activeEmbeddable: {
1038
1034
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1039
- state: "hover" | "active";
1035
+ state: "active" | "hover";
1040
1036
  } | null;
1041
1037
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1042
1038
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1055,7 +1051,6 @@ export declare const actionCopyAsPng: {
1055
1051
  editingFrame: string | null;
1056
1052
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1057
1053
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1058
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1059
1054
  activeTool: {
1060
1055
  lastActiveTool: import("../types").ActiveTool | null;
1061
1056
  locked: boolean;
@@ -1081,7 +1076,7 @@ export declare const actionCopyAsPng: {
1081
1076
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1082
1077
  currentHoveredFontFamily: number | null;
1083
1078
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1084
- currentItemArrowType: "sharp" | "round" | "elbow";
1079
+ currentItemArrowType: "round" | "sharp" | "elbow";
1085
1080
  viewBackgroundColor: string;
1086
1081
  scrollX: number;
1087
1082
  scrollY: number;
@@ -1103,7 +1098,7 @@ export declare const actionCopyAsPng: {
1103
1098
  name: "imageExport" | "help" | "jsonExport";
1104
1099
  } | {
1105
1100
  name: "ttd";
1106
- tab: "text-to-diagram" | "mermaid";
1101
+ tab: "mermaid" | "text-to-diagram";
1107
1102
  } | {
1108
1103
  name: "commandPalette";
1109
1104
  } | {
@@ -1175,7 +1170,7 @@ export declare const actionCopyAsPng: {
1175
1170
  shown: true;
1176
1171
  data: import("../charts").Spreadsheet;
1177
1172
  };
1178
- showHyperlinkPopup: false | "info" | "editor";
1173
+ showHyperlinkPopup: false | "editor" | "info";
1179
1174
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1180
1175
  snapLines: readonly import("../snapping").SnapLine[];
1181
1176
  originSnapOffset: {
@@ -1199,10 +1194,10 @@ export declare const actionCopyAsPng: {
1199
1194
  captureUpdate: "EVENTUALLY";
1200
1195
  }>;
1201
1196
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1202
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1197
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1203
1198
  keywords: string[];
1204
1199
  } & {
1205
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1200
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1206
1201
  };
1207
1202
  export declare const copyText: {
1208
1203
  name: "copyText";
@@ -30,7 +30,7 @@ export declare const actionToggleCropEditor: {
30
30
  errorMessage: import("react").ReactNode;
31
31
  activeEmbeddable: {
32
32
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
33
- state: "hover" | "active";
33
+ state: "active" | "hover";
34
34
  } | null;
35
35
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
36
36
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -49,7 +49,6 @@ export declare const actionToggleCropEditor: {
49
49
  editingFrame: string | null;
50
50
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
51
51
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
52
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
53
52
  activeTool: {
54
53
  lastActiveTool: import("../types").ActiveTool | null;
55
54
  locked: boolean;
@@ -75,7 +74,7 @@ export declare const actionToggleCropEditor: {
75
74
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
76
75
  currentHoveredFontFamily: number | null;
77
76
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
78
- currentItemArrowType: "sharp" | "round" | "elbow";
77
+ currentItemArrowType: "round" | "sharp" | "elbow";
79
78
  viewBackgroundColor: string;
80
79
  scrollX: number;
81
80
  scrollY: number;
@@ -97,7 +96,7 @@ export declare const actionToggleCropEditor: {
97
96
  name: "imageExport" | "help" | "jsonExport";
98
97
  } | {
99
98
  name: "ttd";
100
- tab: "text-to-diagram" | "mermaid";
99
+ tab: "mermaid" | "text-to-diagram";
101
100
  } | {
102
101
  name: "commandPalette";
103
102
  } | {
@@ -169,7 +168,7 @@ export declare const actionToggleCropEditor: {
169
168
  shown: true;
170
169
  data: import("../charts").Spreadsheet;
171
170
  };
172
- showHyperlinkPopup: false | "info" | "editor";
171
+ showHyperlinkPopup: false | "editor" | "info";
173
172
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
174
173
  snapLines: readonly import("../snapping").SnapLine[];
175
174
  originSnapOffset: {
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element";
3
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
4
3
  import type { AppClassProperties, AppState } from "../types";
5
4
  export declare const actionDeleteSelected: {
@@ -13,7 +12,7 @@ export declare const actionDeleteSelected: {
13
12
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => false | {
14
13
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
15
14
  appState: {
16
- editingLinearElement: null;
15
+ selectedLinearElement: null;
17
16
  contextMenu: {
18
17
  items: import("../components/ContextMenu").ContextMenuItems;
19
18
  top: number;
@@ -32,7 +31,7 @@ export declare const actionDeleteSelected: {
32
31
  errorMessage: import("react").ReactNode;
33
32
  activeEmbeddable: {
34
33
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
35
- state: "hover" | "active";
34
+ state: "active" | "hover";
36
35
  } | null;
37
36
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
38
37
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -76,7 +75,7 @@ export declare const actionDeleteSelected: {
76
75
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
77
76
  currentHoveredFontFamily: number | null;
78
77
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
79
- currentItemArrowType: "sharp" | "round" | "elbow";
78
+ currentItemArrowType: "round" | "sharp" | "elbow";
80
79
  viewBackgroundColor: string;
81
80
  scrollX: number;
82
81
  scrollY: number;
@@ -98,7 +97,7 @@ export declare const actionDeleteSelected: {
98
97
  name: "imageExport" | "help" | "jsonExport";
99
98
  } | {
100
99
  name: "ttd";
101
- tab: "text-to-diagram" | "mermaid";
100
+ tab: "mermaid" | "text-to-diagram";
102
101
  } | {
103
102
  name: "commandPalette";
104
103
  } | {
@@ -170,8 +169,7 @@ export declare const actionDeleteSelected: {
170
169
  shown: true;
171
170
  data: import("../charts").Spreadsheet;
172
171
  };
173
- showHyperlinkPopup: false | "info" | "editor";
174
- selectedLinearElement: LinearElementEditor | null;
172
+ showHyperlinkPopup: false | "editor" | "info";
175
173
  snapLines: readonly import("../snapping").SnapLine[];
176
174
  originSnapOffset: {
177
175
  x: number;
@@ -195,7 +193,7 @@ export declare const actionDeleteSelected: {
195
193
  } | {
196
194
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
197
195
  appState: {
198
- editingLinearElement: {
196
+ selectedLinearElement: {
199
197
  selectedPointsIndices: number[];
200
198
  startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
201
199
  endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
@@ -226,6 +224,7 @@ export declare const actionDeleteSelected: {
226
224
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
227
225
  elbowed: boolean;
228
226
  customLineAngle: number | null;
227
+ isEditing: boolean;
229
228
  };
230
229
  contextMenu: {
231
230
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -245,7 +244,7 @@ export declare const actionDeleteSelected: {
245
244
  errorMessage: import("react").ReactNode;
246
245
  activeEmbeddable: {
247
246
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
248
- state: "hover" | "active";
247
+ state: "active" | "hover";
249
248
  } | null;
250
249
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
251
250
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -289,7 +288,7 @@ export declare const actionDeleteSelected: {
289
288
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
290
289
  currentHoveredFontFamily: number | null;
291
290
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
292
- currentItemArrowType: "sharp" | "round" | "elbow";
291
+ currentItemArrowType: "round" | "sharp" | "elbow";
293
292
  viewBackgroundColor: string;
294
293
  scrollX: number;
295
294
  scrollY: number;
@@ -311,7 +310,7 @@ export declare const actionDeleteSelected: {
311
310
  name: "imageExport" | "help" | "jsonExport";
312
311
  } | {
313
312
  name: "ttd";
314
- tab: "text-to-diagram" | "mermaid";
313
+ tab: "mermaid" | "text-to-diagram";
315
314
  } | {
316
315
  name: "commandPalette";
317
316
  } | {
@@ -383,8 +382,7 @@ export declare const actionDeleteSelected: {
383
382
  shown: true;
384
383
  data: import("../charts").Spreadsheet;
385
384
  };
386
- showHyperlinkPopup: false | "info" | "editor";
387
- selectedLinearElement: LinearElementEditor | null;
385
+ showHyperlinkPopup: false | "editor" | "info";
388
386
  snapLines: readonly import("../snapping").SnapLine[];
389
387
  originSnapOffset: {
390
388
  x: number;
@@ -416,13 +414,13 @@ export declare const actionDeleteSelected: {
416
414
  multiElement: null;
417
415
  activeEmbeddable: null;
418
416
  selectedLinearElement: null;
417
+ editingGroupId: string | null;
419
418
  selectedElementIds: Readonly<{
420
419
  [id: string]: true;
421
420
  }>;
422
421
  selectedGroupIds: {
423
422
  [groupId: string]: boolean;
424
423
  };
425
- editingGroupId: string | null;
426
424
  contextMenu: {
427
425
  items: import("../components/ContextMenu").ContextMenuItems;
428
426
  top: number;
@@ -455,7 +453,6 @@ export declare const actionDeleteSelected: {
455
453
  editingFrame: string | null;
456
454
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
457
455
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
458
- editingLinearElement: LinearElementEditor | null;
459
456
  penMode: boolean;
460
457
  penDetected: boolean;
461
458
  exportBackground: boolean;
@@ -476,7 +473,7 @@ export declare const actionDeleteSelected: {
476
473
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
477
474
  currentHoveredFontFamily: number | null;
478
475
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
479
- currentItemArrowType: "sharp" | "round" | "elbow";
476
+ currentItemArrowType: "round" | "sharp" | "elbow";
480
477
  viewBackgroundColor: string;
481
478
  scrollX: number;
482
479
  scrollY: number;
@@ -498,7 +495,7 @@ export declare const actionDeleteSelected: {
498
495
  name: "imageExport" | "help" | "jsonExport";
499
496
  } | {
500
497
  name: "ttd";
501
- tab: "text-to-diagram" | "mermaid";
498
+ tab: "mermaid" | "text-to-diagram";
502
499
  } | {
503
500
  name: "commandPalette";
504
501
  } | {
@@ -563,7 +560,7 @@ export declare const actionDeleteSelected: {
563
560
  shown: true;
564
561
  data: import("../charts").Spreadsheet;
565
562
  };
566
- showHyperlinkPopup: false | "info" | "editor";
563
+ showHyperlinkPopup: false | "editor" | "info";
567
564
  snapLines: readonly import("../snapping").SnapLine[];
568
565
  originSnapOffset: {
569
566
  x: number;
@@ -585,8 +582,8 @@ export declare const actionDeleteSelected: {
585
582
  };
586
583
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
587
584
  };
588
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
585
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
589
586
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
590
587
  } & {
591
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
588
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
592
589
  };
@@ -12,10 +12,10 @@ export declare const distributeHorizontally: {
12
12
  elements: ExcalidrawElement[];
13
13
  captureUpdate: "IMMEDIATELY";
14
14
  };
15
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
15
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
16
16
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
17
17
  } & {
18
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
18
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
19
19
  };
20
20
  export declare const distributeVertically: {
21
21
  name: "distributeVertically";
@@ -28,8 +28,8 @@ export declare const distributeVertically: {
28
28
  elements: ExcalidrawElement[];
29
29
  captureUpdate: "IMMEDIATELY";
30
30
  };
31
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
31
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
32
32
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
33
33
  } & {
34
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
34
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
35
35
  };
@@ -11,8 +11,8 @@ export declare const actionDuplicateSelection: {
11
11
  appState: import("../types").AppState;
12
12
  captureUpdate: "IMMEDIATELY";
13
13
  };
14
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
14
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
15
15
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
16
16
  } & {
17
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
17
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
18
18
  };
@@ -59,7 +59,7 @@ export declare const actionLinkToElement: {
59
59
  errorMessage: import("react").ReactNode;
60
60
  activeEmbeddable: {
61
61
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
62
- state: "hover" | "active";
62
+ state: "active" | "hover";
63
63
  } | null;
64
64
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
65
65
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -78,7 +78,6 @@ export declare const actionLinkToElement: {
78
78
  editingFrame: string | null;
79
79
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
80
80
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
81
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
82
81
  activeTool: {
83
82
  lastActiveTool: import("../types").ActiveTool | null;
84
83
  locked: boolean;
@@ -104,7 +103,7 @@ export declare const actionLinkToElement: {
104
103
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
105
104
  currentHoveredFontFamily: number | null;
106
105
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
107
- currentItemArrowType: "sharp" | "round" | "elbow";
106
+ currentItemArrowType: "round" | "sharp" | "elbow";
108
107
  viewBackgroundColor: string;
109
108
  scrollX: number;
110
109
  scrollY: number;
@@ -187,7 +186,7 @@ export declare const actionLinkToElement: {
187
186
  shown: true;
188
187
  data: import("../charts").Spreadsheet;
189
188
  };
190
- showHyperlinkPopup: false | "info" | "editor";
189
+ showHyperlinkPopup: false | "editor" | "info";
191
190
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
192
191
  snapLines: readonly import("../snapping").SnapLine[];
193
192
  originSnapOffset: {