@myoc/excalidraw 0.18.19 → 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-WD4YVUU4.js → chunk-GR6GZQQD.js} +2 -2
  4. package/dist/dev/data/{image-CW7TABKC.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 +6055 -4020
  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-W655L563.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-HDRNCSTL.js +0 -23870
  91. package/dist/dev/chunk-HDRNCSTL.js.map +0 -7
  92. package/dist/prod/chunk-23G2JOF5.js +0 -33
  93. package/dist/prod/data/image-TLNQ4QKS.js +0 -1
  94. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  95. /package/dist/dev/{chunk-WD4YVUU4.js.map → chunk-GR6GZQQD.js.map} +0 -0
  96. /package/dist/dev/data/{image-CW7TABKC.js.map → image-QMTJGSU7.js.map} +0 -0
@@ -56,7 +56,7 @@ export declare const actionChangeFillStyle: {
56
56
  errorMessage: import("react").ReactNode;
57
57
  activeEmbeddable: {
58
58
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
59
- state: "hover" | "active";
59
+ state: "active" | "hover";
60
60
  } | null;
61
61
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
62
62
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -75,7 +75,6 @@ export declare const actionChangeFillStyle: {
75
75
  editingFrame: string | null;
76
76
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
77
77
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
78
- editingLinearElement: LinearElementEditor | null;
79
78
  activeTool: {
80
79
  lastActiveTool: import("../types").ActiveTool | null;
81
80
  locked: boolean;
@@ -100,7 +99,7 @@ export declare const actionChangeFillStyle: {
100
99
  currentItemEndArrowhead: Arrowhead | null;
101
100
  currentHoveredFontFamily: number | null;
102
101
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
103
- currentItemArrowType: "sharp" | "round" | "elbow";
102
+ currentItemArrowType: "round" | "sharp" | "elbow";
104
103
  viewBackgroundColor: string;
105
104
  scrollX: number;
106
105
  scrollY: number;
@@ -122,7 +121,7 @@ export declare const actionChangeFillStyle: {
122
121
  name: "imageExport" | "help" | "jsonExport";
123
122
  } | {
124
123
  name: "ttd";
125
- tab: "text-to-diagram" | "mermaid";
124
+ tab: "mermaid" | "text-to-diagram";
126
125
  } | {
127
126
  name: "commandPalette";
128
127
  } | {
@@ -194,7 +193,7 @@ export declare const actionChangeFillStyle: {
194
193
  shown: true;
195
194
  data: import("../charts").Spreadsheet;
196
195
  };
197
- showHyperlinkPopup: false | "info" | "editor";
196
+ showHyperlinkPopup: false | "editor" | "info";
198
197
  selectedLinearElement: LinearElementEditor | null;
199
198
  snapLines: readonly import("../snapping").SnapLine[];
200
199
  originSnapOffset: {
@@ -247,7 +246,7 @@ export declare const actionChangeStrokeWidth: {
247
246
  errorMessage: import("react").ReactNode;
248
247
  activeEmbeddable: {
249
248
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
250
- state: "hover" | "active";
249
+ state: "active" | "hover";
251
250
  } | null;
252
251
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
253
252
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -266,7 +265,6 @@ export declare const actionChangeStrokeWidth: {
266
265
  editingFrame: string | null;
267
266
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
268
267
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
269
- editingLinearElement: LinearElementEditor | null;
270
268
  activeTool: {
271
269
  lastActiveTool: import("../types").ActiveTool | null;
272
270
  locked: boolean;
@@ -291,7 +289,7 @@ export declare const actionChangeStrokeWidth: {
291
289
  currentItemEndArrowhead: Arrowhead | null;
292
290
  currentHoveredFontFamily: number | null;
293
291
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
294
- currentItemArrowType: "sharp" | "round" | "elbow";
292
+ currentItemArrowType: "round" | "sharp" | "elbow";
295
293
  viewBackgroundColor: string;
296
294
  scrollX: number;
297
295
  scrollY: number;
@@ -313,7 +311,7 @@ export declare const actionChangeStrokeWidth: {
313
311
  name: "imageExport" | "help" | "jsonExport";
314
312
  } | {
315
313
  name: "ttd";
316
- tab: "text-to-diagram" | "mermaid";
314
+ tab: "mermaid" | "text-to-diagram";
317
315
  } | {
318
316
  name: "commandPalette";
319
317
  } | {
@@ -385,7 +383,7 @@ export declare const actionChangeStrokeWidth: {
385
383
  shown: true;
386
384
  data: import("../charts").Spreadsheet;
387
385
  };
388
- showHyperlinkPopup: false | "info" | "editor";
386
+ showHyperlinkPopup: false | "editor" | "info";
389
387
  selectedLinearElement: LinearElementEditor | null;
390
388
  snapLines: readonly import("../snapping").SnapLine[];
391
389
  originSnapOffset: {
@@ -438,7 +436,7 @@ export declare const actionChangeSloppiness: {
438
436
  errorMessage: import("react").ReactNode;
439
437
  activeEmbeddable: {
440
438
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
441
- state: "hover" | "active";
439
+ state: "active" | "hover";
442
440
  } | null;
443
441
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
444
442
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -457,7 +455,6 @@ export declare const actionChangeSloppiness: {
457
455
  editingFrame: string | null;
458
456
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
459
457
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
460
- editingLinearElement: LinearElementEditor | null;
461
458
  activeTool: {
462
459
  lastActiveTool: import("../types").ActiveTool | null;
463
460
  locked: boolean;
@@ -482,7 +479,7 @@ export declare const actionChangeSloppiness: {
482
479
  currentItemEndArrowhead: Arrowhead | null;
483
480
  currentHoveredFontFamily: number | null;
484
481
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
485
- currentItemArrowType: "sharp" | "round" | "elbow";
482
+ currentItemArrowType: "round" | "sharp" | "elbow";
486
483
  viewBackgroundColor: string;
487
484
  scrollX: number;
488
485
  scrollY: number;
@@ -504,7 +501,7 @@ export declare const actionChangeSloppiness: {
504
501
  name: "imageExport" | "help" | "jsonExport";
505
502
  } | {
506
503
  name: "ttd";
507
- tab: "text-to-diagram" | "mermaid";
504
+ tab: "mermaid" | "text-to-diagram";
508
505
  } | {
509
506
  name: "commandPalette";
510
507
  } | {
@@ -576,7 +573,7 @@ export declare const actionChangeSloppiness: {
576
573
  shown: true;
577
574
  data: import("../charts").Spreadsheet;
578
575
  };
579
- showHyperlinkPopup: false | "info" | "editor";
576
+ showHyperlinkPopup: false | "editor" | "info";
580
577
  selectedLinearElement: LinearElementEditor | null;
581
578
  snapLines: readonly import("../snapping").SnapLine[];
582
579
  originSnapOffset: {
@@ -629,7 +626,7 @@ export declare const actionChangeStrokeStyle: {
629
626
  errorMessage: import("react").ReactNode;
630
627
  activeEmbeddable: {
631
628
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
632
- state: "hover" | "active";
629
+ state: "active" | "hover";
633
630
  } | null;
634
631
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
635
632
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -648,7 +645,6 @@ export declare const actionChangeStrokeStyle: {
648
645
  editingFrame: string | null;
649
646
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
650
647
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
651
- editingLinearElement: LinearElementEditor | null;
652
648
  activeTool: {
653
649
  lastActiveTool: import("../types").ActiveTool | null;
654
650
  locked: boolean;
@@ -673,7 +669,7 @@ export declare const actionChangeStrokeStyle: {
673
669
  currentItemEndArrowhead: Arrowhead | null;
674
670
  currentHoveredFontFamily: number | null;
675
671
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
676
- currentItemArrowType: "sharp" | "round" | "elbow";
672
+ currentItemArrowType: "round" | "sharp" | "elbow";
677
673
  viewBackgroundColor: string;
678
674
  scrollX: number;
679
675
  scrollY: number;
@@ -695,7 +691,7 @@ export declare const actionChangeStrokeStyle: {
695
691
  name: "imageExport" | "help" | "jsonExport";
696
692
  } | {
697
693
  name: "ttd";
698
- tab: "text-to-diagram" | "mermaid";
694
+ tab: "mermaid" | "text-to-diagram";
699
695
  } | {
700
696
  name: "commandPalette";
701
697
  } | {
@@ -767,7 +763,7 @@ export declare const actionChangeStrokeStyle: {
767
763
  shown: true;
768
764
  data: import("../charts").Spreadsheet;
769
765
  };
770
- showHyperlinkPopup: false | "info" | "editor";
766
+ showHyperlinkPopup: false | "editor" | "info";
771
767
  selectedLinearElement: LinearElementEditor | null;
772
768
  snapLines: readonly import("../snapping").SnapLine[];
773
769
  originSnapOffset: {
@@ -820,7 +816,7 @@ export declare const actionChangeOpacity: {
820
816
  errorMessage: import("react").ReactNode;
821
817
  activeEmbeddable: {
822
818
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
823
- state: "hover" | "active";
819
+ state: "active" | "hover";
824
820
  } | null;
825
821
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
826
822
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -839,7 +835,6 @@ export declare const actionChangeOpacity: {
839
835
  editingFrame: string | null;
840
836
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
841
837
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
842
- editingLinearElement: LinearElementEditor | null;
843
838
  activeTool: {
844
839
  lastActiveTool: import("../types").ActiveTool | null;
845
840
  locked: boolean;
@@ -864,7 +859,7 @@ export declare const actionChangeOpacity: {
864
859
  currentItemEndArrowhead: Arrowhead | null;
865
860
  currentHoveredFontFamily: number | null;
866
861
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
867
- currentItemArrowType: "sharp" | "round" | "elbow";
862
+ currentItemArrowType: "round" | "sharp" | "elbow";
868
863
  viewBackgroundColor: string;
869
864
  scrollX: number;
870
865
  scrollY: number;
@@ -886,7 +881,7 @@ export declare const actionChangeOpacity: {
886
881
  name: "imageExport" | "help" | "jsonExport";
887
882
  } | {
888
883
  name: "ttd";
889
- tab: "text-to-diagram" | "mermaid";
884
+ tab: "mermaid" | "text-to-diagram";
890
885
  } | {
891
886
  name: "commandPalette";
892
887
  } | {
@@ -958,7 +953,7 @@ export declare const actionChangeOpacity: {
958
953
  shown: true;
959
954
  data: import("../charts").Spreadsheet;
960
955
  };
961
- showHyperlinkPopup: false | "info" | "editor";
956
+ showHyperlinkPopup: false | "editor" | "info";
962
957
  selectedLinearElement: LinearElementEditor | null;
963
958
  snapLines: readonly import("../snapping").SnapLine[];
964
959
  originSnapOffset: {
@@ -1011,7 +1006,7 @@ export declare const actionChangeFontSize: {
1011
1006
  errorMessage: import("react").ReactNode;
1012
1007
  activeEmbeddable: {
1013
1008
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1014
- state: "hover" | "active";
1009
+ state: "active" | "hover";
1015
1010
  } | null;
1016
1011
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1017
1012
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1030,7 +1025,6 @@ export declare const actionChangeFontSize: {
1030
1025
  editingFrame: string | null;
1031
1026
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1032
1027
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1033
- editingLinearElement: LinearElementEditor | null;
1034
1028
  activeTool: {
1035
1029
  lastActiveTool: import("../types").ActiveTool | null;
1036
1030
  locked: boolean;
@@ -1055,7 +1049,7 @@ export declare const actionChangeFontSize: {
1055
1049
  currentItemEndArrowhead: Arrowhead | null;
1056
1050
  currentHoveredFontFamily: number | null;
1057
1051
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1058
- currentItemArrowType: "sharp" | "round" | "elbow";
1052
+ currentItemArrowType: "round" | "sharp" | "elbow";
1059
1053
  viewBackgroundColor: string;
1060
1054
  scrollX: number;
1061
1055
  scrollY: number;
@@ -1077,7 +1071,7 @@ export declare const actionChangeFontSize: {
1077
1071
  name: "imageExport" | "help" | "jsonExport";
1078
1072
  } | {
1079
1073
  name: "ttd";
1080
- tab: "text-to-diagram" | "mermaid";
1074
+ tab: "mermaid" | "text-to-diagram";
1081
1075
  } | {
1082
1076
  name: "commandPalette";
1083
1077
  } | {
@@ -1149,7 +1143,7 @@ export declare const actionChangeFontSize: {
1149
1143
  shown: true;
1150
1144
  data: import("../charts").Spreadsheet;
1151
1145
  };
1152
- showHyperlinkPopup: false | "info" | "editor";
1146
+ showHyperlinkPopup: false | "editor" | "info";
1153
1147
  selectedLinearElement: LinearElementEditor | null;
1154
1148
  snapLines: readonly import("../snapping").SnapLine[];
1155
1149
  originSnapOffset: {
@@ -1203,7 +1197,7 @@ export declare const actionDecreaseFontSize: {
1203
1197
  errorMessage: import("react").ReactNode;
1204
1198
  activeEmbeddable: {
1205
1199
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1206
- state: "hover" | "active";
1200
+ state: "active" | "hover";
1207
1201
  } | null;
1208
1202
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1209
1203
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1222,7 +1216,6 @@ export declare const actionDecreaseFontSize: {
1222
1216
  editingFrame: string | null;
1223
1217
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1224
1218
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1225
- editingLinearElement: LinearElementEditor | null;
1226
1219
  activeTool: {
1227
1220
  lastActiveTool: import("../types").ActiveTool | null;
1228
1221
  locked: boolean;
@@ -1247,7 +1240,7 @@ export declare const actionDecreaseFontSize: {
1247
1240
  currentItemEndArrowhead: Arrowhead | null;
1248
1241
  currentHoveredFontFamily: number | null;
1249
1242
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1250
- currentItemArrowType: "sharp" | "round" | "elbow";
1243
+ currentItemArrowType: "round" | "sharp" | "elbow";
1251
1244
  viewBackgroundColor: string;
1252
1245
  scrollX: number;
1253
1246
  scrollY: number;
@@ -1269,7 +1262,7 @@ export declare const actionDecreaseFontSize: {
1269
1262
  name: "imageExport" | "help" | "jsonExport";
1270
1263
  } | {
1271
1264
  name: "ttd";
1272
- tab: "text-to-diagram" | "mermaid";
1265
+ tab: "mermaid" | "text-to-diagram";
1273
1266
  } | {
1274
1267
  name: "commandPalette";
1275
1268
  } | {
@@ -1341,7 +1334,7 @@ export declare const actionDecreaseFontSize: {
1341
1334
  shown: true;
1342
1335
  data: import("../charts").Spreadsheet;
1343
1336
  };
1344
- showHyperlinkPopup: false | "info" | "editor";
1337
+ showHyperlinkPopup: false | "editor" | "info";
1345
1338
  selectedLinearElement: LinearElementEditor | null;
1346
1339
  snapLines: readonly import("../snapping").SnapLine[];
1347
1340
  originSnapOffset: {
@@ -1364,9 +1357,9 @@ export declare const actionDecreaseFontSize: {
1364
1357
  };
1365
1358
  captureUpdate: "IMMEDIATELY";
1366
1359
  };
1367
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1360
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1368
1361
  } & {
1369
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1362
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1370
1363
  };
1371
1364
  export declare const actionIncreaseFontSize: {
1372
1365
  name: "increaseFontSize";
@@ -1395,7 +1388,7 @@ export declare const actionIncreaseFontSize: {
1395
1388
  errorMessage: import("react").ReactNode;
1396
1389
  activeEmbeddable: {
1397
1390
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1398
- state: "hover" | "active";
1391
+ state: "active" | "hover";
1399
1392
  } | null;
1400
1393
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1401
1394
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1414,7 +1407,6 @@ export declare const actionIncreaseFontSize: {
1414
1407
  editingFrame: string | null;
1415
1408
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1416
1409
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1417
- editingLinearElement: LinearElementEditor | null;
1418
1410
  activeTool: {
1419
1411
  lastActiveTool: import("../types").ActiveTool | null;
1420
1412
  locked: boolean;
@@ -1439,7 +1431,7 @@ export declare const actionIncreaseFontSize: {
1439
1431
  currentItemEndArrowhead: Arrowhead | null;
1440
1432
  currentHoveredFontFamily: number | null;
1441
1433
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1442
- currentItemArrowType: "sharp" | "round" | "elbow";
1434
+ currentItemArrowType: "round" | "sharp" | "elbow";
1443
1435
  viewBackgroundColor: string;
1444
1436
  scrollX: number;
1445
1437
  scrollY: number;
@@ -1461,7 +1453,7 @@ export declare const actionIncreaseFontSize: {
1461
1453
  name: "imageExport" | "help" | "jsonExport";
1462
1454
  } | {
1463
1455
  name: "ttd";
1464
- tab: "text-to-diagram" | "mermaid";
1456
+ tab: "mermaid" | "text-to-diagram";
1465
1457
  } | {
1466
1458
  name: "commandPalette";
1467
1459
  } | {
@@ -1533,7 +1525,7 @@ export declare const actionIncreaseFontSize: {
1533
1525
  shown: true;
1534
1526
  data: import("../charts").Spreadsheet;
1535
1527
  };
1536
- showHyperlinkPopup: false | "info" | "editor";
1528
+ showHyperlinkPopup: false | "editor" | "info";
1537
1529
  selectedLinearElement: LinearElementEditor | null;
1538
1530
  snapLines: readonly import("../snapping").SnapLine[];
1539
1531
  originSnapOffset: {
@@ -1556,9 +1548,9 @@ export declare const actionIncreaseFontSize: {
1556
1548
  };
1557
1549
  captureUpdate: "IMMEDIATELY";
1558
1550
  };
1559
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1551
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1560
1552
  } & {
1561
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1553
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1562
1554
  };
1563
1555
  export declare const actionChangeFontFamily: {
1564
1556
  name: "changeFontFamily";
@@ -1587,7 +1579,7 @@ export declare const actionChangeFontFamily: {
1587
1579
  errorMessage: import("react").ReactNode;
1588
1580
  activeEmbeddable: {
1589
1581
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1590
- state: "hover" | "active";
1582
+ state: "active" | "hover";
1591
1583
  } | null;
1592
1584
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1593
1585
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1606,7 +1598,6 @@ export declare const actionChangeFontFamily: {
1606
1598
  editingFrame: string | null;
1607
1599
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1608
1600
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1609
- editingLinearElement: LinearElementEditor | null;
1610
1601
  activeTool: {
1611
1602
  lastActiveTool: import("../types").ActiveTool | null;
1612
1603
  locked: boolean;
@@ -1630,7 +1621,7 @@ export declare const actionChangeFontFamily: {
1630
1621
  currentItemStartArrowhead: Arrowhead | null;
1631
1622
  currentItemEndArrowhead: Arrowhead | null;
1632
1623
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1633
- currentItemArrowType: "sharp" | "round" | "elbow";
1624
+ currentItemArrowType: "round" | "sharp" | "elbow";
1634
1625
  viewBackgroundColor: string;
1635
1626
  scrollX: number;
1636
1627
  scrollY: number;
@@ -1651,7 +1642,7 @@ export declare const actionChangeFontFamily: {
1651
1642
  name: "imageExport" | "help" | "jsonExport";
1652
1643
  } | {
1653
1644
  name: "ttd";
1654
- tab: "text-to-diagram" | "mermaid";
1645
+ tab: "mermaid" | "text-to-diagram";
1655
1646
  } | {
1656
1647
  name: "commandPalette";
1657
1648
  } | {
@@ -1723,7 +1714,7 @@ export declare const actionChangeFontFamily: {
1723
1714
  shown: true;
1724
1715
  data: import("../charts").Spreadsheet;
1725
1716
  };
1726
- showHyperlinkPopup: false | "info" | "editor";
1717
+ showHyperlinkPopup: false | "editor" | "info";
1727
1718
  selectedLinearElement: LinearElementEditor | null;
1728
1719
  snapLines: readonly import("../snapping").SnapLine[];
1729
1720
  originSnapOffset: {
@@ -1769,7 +1760,7 @@ export declare const actionChangeFontFamily: {
1769
1760
  errorMessage: import("react").ReactNode;
1770
1761
  activeEmbeddable: {
1771
1762
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1772
- state: "hover" | "active";
1763
+ state: "active" | "hover";
1773
1764
  } | null;
1774
1765
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1775
1766
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1788,7 +1779,6 @@ export declare const actionChangeFontFamily: {
1788
1779
  editingFrame: string | null;
1789
1780
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1790
1781
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1791
- editingLinearElement: LinearElementEditor | null;
1792
1782
  activeTool: {
1793
1783
  lastActiveTool: import("../types").ActiveTool | null;
1794
1784
  locked: boolean;
@@ -1812,7 +1802,7 @@ export declare const actionChangeFontFamily: {
1812
1802
  currentItemStartArrowhead: Arrowhead | null;
1813
1803
  currentItemEndArrowhead: Arrowhead | null;
1814
1804
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1815
- currentItemArrowType: "sharp" | "round" | "elbow";
1805
+ currentItemArrowType: "round" | "sharp" | "elbow";
1816
1806
  viewBackgroundColor: string;
1817
1807
  scrollX: number;
1818
1808
  scrollY: number;
@@ -1833,7 +1823,7 @@ export declare const actionChangeFontFamily: {
1833
1823
  name: "imageExport" | "help" | "jsonExport";
1834
1824
  } | {
1835
1825
  name: "ttd";
1836
- tab: "text-to-diagram" | "mermaid";
1826
+ tab: "mermaid" | "text-to-diagram";
1837
1827
  } | {
1838
1828
  name: "commandPalette";
1839
1829
  } | {
@@ -1905,7 +1895,7 @@ export declare const actionChangeFontFamily: {
1905
1895
  shown: true;
1906
1896
  data: import("../charts").Spreadsheet;
1907
1897
  };
1908
- showHyperlinkPopup: false | "info" | "editor";
1898
+ showHyperlinkPopup: false | "editor" | "info";
1909
1899
  selectedLinearElement: LinearElementEditor | null;
1910
1900
  snapLines: readonly import("../snapping").SnapLine[];
1911
1901
  originSnapOffset: {
@@ -1958,7 +1948,7 @@ export declare const actionChangeTextAlign: {
1958
1948
  errorMessage: import("react").ReactNode;
1959
1949
  activeEmbeddable: {
1960
1950
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1961
- state: "hover" | "active";
1951
+ state: "active" | "hover";
1962
1952
  } | null;
1963
1953
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1964
1954
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1977,7 +1967,6 @@ export declare const actionChangeTextAlign: {
1977
1967
  editingFrame: string | null;
1978
1968
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1979
1969
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1980
- editingLinearElement: LinearElementEditor | null;
1981
1970
  activeTool: {
1982
1971
  lastActiveTool: import("../types").ActiveTool | null;
1983
1972
  locked: boolean;
@@ -2002,7 +1991,7 @@ export declare const actionChangeTextAlign: {
2002
1991
  currentItemEndArrowhead: Arrowhead | null;
2003
1992
  currentHoveredFontFamily: number | null;
2004
1993
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2005
- currentItemArrowType: "sharp" | "round" | "elbow";
1994
+ currentItemArrowType: "round" | "sharp" | "elbow";
2006
1995
  viewBackgroundColor: string;
2007
1996
  scrollX: number;
2008
1997
  scrollY: number;
@@ -2024,7 +2013,7 @@ export declare const actionChangeTextAlign: {
2024
2013
  name: "imageExport" | "help" | "jsonExport";
2025
2014
  } | {
2026
2015
  name: "ttd";
2027
- tab: "text-to-diagram" | "mermaid";
2016
+ tab: "mermaid" | "text-to-diagram";
2028
2017
  } | {
2029
2018
  name: "commandPalette";
2030
2019
  } | {
@@ -2096,7 +2085,7 @@ export declare const actionChangeTextAlign: {
2096
2085
  shown: true;
2097
2086
  data: import("../charts").Spreadsheet;
2098
2087
  };
2099
- showHyperlinkPopup: false | "info" | "editor";
2088
+ showHyperlinkPopup: false | "editor" | "info";
2100
2089
  selectedLinearElement: LinearElementEditor | null;
2101
2090
  snapLines: readonly import("../snapping").SnapLine[];
2102
2091
  originSnapOffset: {
@@ -2150,7 +2139,7 @@ export declare const actionChangeVerticalAlign: {
2150
2139
  errorMessage: import("react").ReactNode;
2151
2140
  activeEmbeddable: {
2152
2141
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2153
- state: "hover" | "active";
2142
+ state: "active" | "hover";
2154
2143
  } | null;
2155
2144
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2156
2145
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2169,7 +2158,6 @@ export declare const actionChangeVerticalAlign: {
2169
2158
  editingFrame: string | null;
2170
2159
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2171
2160
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2172
- editingLinearElement: LinearElementEditor | null;
2173
2161
  activeTool: {
2174
2162
  lastActiveTool: import("../types").ActiveTool | null;
2175
2163
  locked: boolean;
@@ -2195,7 +2183,7 @@ export declare const actionChangeVerticalAlign: {
2195
2183
  currentItemEndArrowhead: Arrowhead | null;
2196
2184
  currentHoveredFontFamily: number | null;
2197
2185
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2198
- currentItemArrowType: "sharp" | "round" | "elbow";
2186
+ currentItemArrowType: "round" | "sharp" | "elbow";
2199
2187
  viewBackgroundColor: string;
2200
2188
  scrollX: number;
2201
2189
  scrollY: number;
@@ -2217,7 +2205,7 @@ export declare const actionChangeVerticalAlign: {
2217
2205
  name: "imageExport" | "help" | "jsonExport";
2218
2206
  } | {
2219
2207
  name: "ttd";
2220
- tab: "text-to-diagram" | "mermaid";
2208
+ tab: "mermaid" | "text-to-diagram";
2221
2209
  } | {
2222
2210
  name: "commandPalette";
2223
2211
  } | {
@@ -2289,7 +2277,7 @@ export declare const actionChangeVerticalAlign: {
2289
2277
  shown: true;
2290
2278
  data: import("../charts").Spreadsheet;
2291
2279
  };
2292
- showHyperlinkPopup: false | "info" | "editor";
2280
+ showHyperlinkPopup: false | "editor" | "info";
2293
2281
  selectedLinearElement: LinearElementEditor | null;
2294
2282
  snapLines: readonly import("../snapping").SnapLine[];
2295
2283
  originSnapOffset: {
@@ -2342,7 +2330,7 @@ export declare const actionChangeRoundness: {
2342
2330
  errorMessage: import("react").ReactNode;
2343
2331
  activeEmbeddable: {
2344
2332
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2345
- state: "hover" | "active";
2333
+ state: "active" | "hover";
2346
2334
  } | null;
2347
2335
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2348
2336
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2361,7 +2349,6 @@ export declare const actionChangeRoundness: {
2361
2349
  editingFrame: string | null;
2362
2350
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2363
2351
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2364
- editingLinearElement: LinearElementEditor | null;
2365
2352
  activeTool: {
2366
2353
  lastActiveTool: import("../types").ActiveTool | null;
2367
2354
  locked: boolean;
@@ -2386,7 +2373,7 @@ export declare const actionChangeRoundness: {
2386
2373
  currentItemStartArrowhead: Arrowhead | null;
2387
2374
  currentItemEndArrowhead: Arrowhead | null;
2388
2375
  currentHoveredFontFamily: number | null;
2389
- currentItemArrowType: "sharp" | "round" | "elbow";
2376
+ currentItemArrowType: "round" | "sharp" | "elbow";
2390
2377
  viewBackgroundColor: string;
2391
2378
  scrollX: number;
2392
2379
  scrollY: number;
@@ -2408,7 +2395,7 @@ export declare const actionChangeRoundness: {
2408
2395
  name: "imageExport" | "help" | "jsonExport";
2409
2396
  } | {
2410
2397
  name: "ttd";
2411
- tab: "text-to-diagram" | "mermaid";
2398
+ tab: "mermaid" | "text-to-diagram";
2412
2399
  } | {
2413
2400
  name: "commandPalette";
2414
2401
  } | {
@@ -2480,7 +2467,7 @@ export declare const actionChangeRoundness: {
2480
2467
  shown: true;
2481
2468
  data: import("../charts").Spreadsheet;
2482
2469
  };
2483
- showHyperlinkPopup: false | "info" | "editor";
2470
+ showHyperlinkPopup: false | "editor" | "info";
2484
2471
  selectedLinearElement: LinearElementEditor | null;
2485
2472
  snapLines: readonly import("../snapping").SnapLine[];
2486
2473
  originSnapOffset: {
@@ -2535,7 +2522,7 @@ export declare const actionChangeArrowhead: {
2535
2522
  errorMessage: import("react").ReactNode;
2536
2523
  activeEmbeddable: {
2537
2524
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2538
- state: "hover" | "active";
2525
+ state: "active" | "hover";
2539
2526
  } | null;
2540
2527
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2541
2528
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2554,7 +2541,6 @@ export declare const actionChangeArrowhead: {
2554
2541
  editingFrame: string | null;
2555
2542
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2556
2543
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2557
- editingLinearElement: LinearElementEditor | null;
2558
2544
  activeTool: {
2559
2545
  lastActiveTool: import("../types").ActiveTool | null;
2560
2546
  locked: boolean;
@@ -2580,7 +2566,7 @@ export declare const actionChangeArrowhead: {
2580
2566
  currentItemEndArrowhead: Arrowhead | null;
2581
2567
  currentHoveredFontFamily: number | null;
2582
2568
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2583
- currentItemArrowType: "sharp" | "round" | "elbow";
2569
+ currentItemArrowType: "round" | "sharp" | "elbow";
2584
2570
  viewBackgroundColor: string;
2585
2571
  scrollX: number;
2586
2572
  scrollY: number;
@@ -2602,7 +2588,7 @@ export declare const actionChangeArrowhead: {
2602
2588
  name: "imageExport" | "help" | "jsonExport";
2603
2589
  } | {
2604
2590
  name: "ttd";
2605
- tab: "text-to-diagram" | "mermaid";
2591
+ tab: "mermaid" | "text-to-diagram";
2606
2592
  } | {
2607
2593
  name: "commandPalette";
2608
2594
  } | {
@@ -2674,7 +2660,7 @@ export declare const actionChangeArrowhead: {
2674
2660
  shown: true;
2675
2661
  data: import("../charts").Spreadsheet;
2676
2662
  };
2677
- showHyperlinkPopup: false | "info" | "editor";
2663
+ showHyperlinkPopup: false | "editor" | "info";
2678
2664
  selectedLinearElement: LinearElementEditor | null;
2679
2665
  snapLines: readonly import("../snapping").SnapLine[];
2680
2666
  originSnapOffset: {
@@ -2727,7 +2713,7 @@ export declare const actionChangeArrowType: {
2727
2713
  errorMessage: import("react").ReactNode;
2728
2714
  activeEmbeddable: {
2729
2715
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2730
- state: "hover" | "active";
2716
+ state: "active" | "hover";
2731
2717
  } | null;
2732
2718
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2733
2719
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2746,7 +2732,6 @@ export declare const actionChangeArrowType: {
2746
2732
  editingFrame: string | null;
2747
2733
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2748
2734
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2749
- editingLinearElement: LinearElementEditor | null;
2750
2735
  activeTool: {
2751
2736
  lastActiveTool: import("../types").ActiveTool | null;
2752
2737
  locked: boolean;
@@ -2793,7 +2778,7 @@ export declare const actionChangeArrowType: {
2793
2778
  name: "imageExport" | "help" | "jsonExport";
2794
2779
  } | {
2795
2780
  name: "ttd";
2796
- tab: "text-to-diagram" | "mermaid";
2781
+ tab: "mermaid" | "text-to-diagram";
2797
2782
  } | {
2798
2783
  name: "commandPalette";
2799
2784
  } | {
@@ -2865,7 +2850,7 @@ export declare const actionChangeArrowType: {
2865
2850
  shown: true;
2866
2851
  data: import("../charts").Spreadsheet;
2867
2852
  };
2868
- showHyperlinkPopup: false | "info" | "editor";
2853
+ showHyperlinkPopup: false | "editor" | "info";
2869
2854
  selectedLinearElement: LinearElementEditor | null;
2870
2855
  snapLines: readonly import("../snapping").SnapLine[];
2871
2856
  originSnapOffset: {