@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
@@ -49,7 +49,7 @@ export declare const actionZoomIn: {
49
49
  errorMessage: import("react").ReactNode;
50
50
  activeEmbeddable: {
51
51
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
52
- state: "hover" | "active";
52
+ state: "active" | "hover";
53
53
  } | null;
54
54
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
55
55
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -68,7 +68,6 @@ export declare const actionZoomIn: {
68
68
  editingFrame: string | null;
69
69
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
70
70
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
71
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
72
71
  activeTool: {
73
72
  lastActiveTool: import("../types").ActiveTool | null;
74
73
  locked: boolean;
@@ -94,7 +93,7 @@ export declare const actionZoomIn: {
94
93
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
95
94
  currentHoveredFontFamily: number | null;
96
95
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
97
- currentItemArrowType: "sharp" | "round" | "elbow";
96
+ currentItemArrowType: "round" | "sharp" | "elbow";
98
97
  viewBackgroundColor: string;
99
98
  cursorButton: "up" | "down";
100
99
  scrolledOutside: boolean;
@@ -111,7 +110,7 @@ export declare const actionZoomIn: {
111
110
  name: "imageExport" | "help" | "jsonExport";
112
111
  } | {
113
112
  name: "ttd";
114
- tab: "text-to-diagram" | "mermaid";
113
+ tab: "mermaid" | "text-to-diagram";
115
114
  } | {
116
115
  name: "commandPalette";
117
116
  } | {
@@ -183,7 +182,7 @@ export declare const actionZoomIn: {
183
182
  shown: true;
184
183
  data: import("../charts").Spreadsheet;
185
184
  };
186
- showHyperlinkPopup: false | "info" | "editor";
185
+ showHyperlinkPopup: false | "editor" | "info";
187
186
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
188
187
  snapLines: readonly import("../snapping").SnapLine[];
189
188
  originSnapOffset: {
@@ -206,9 +205,9 @@ export declare const actionZoomIn: {
206
205
  captureUpdate: "EVENTUALLY";
207
206
  };
208
207
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
209
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
208
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
210
209
  } & {
211
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
210
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
212
211
  };
213
212
  export declare const actionZoomOut: {
214
213
  name: "zoomOut";
@@ -244,7 +243,7 @@ export declare const actionZoomOut: {
244
243
  errorMessage: import("react").ReactNode;
245
244
  activeEmbeddable: {
246
245
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
247
- state: "hover" | "active";
246
+ state: "active" | "hover";
248
247
  } | null;
249
248
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
250
249
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -263,7 +262,6 @@ export declare const actionZoomOut: {
263
262
  editingFrame: string | null;
264
263
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
265
264
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
266
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
267
265
  activeTool: {
268
266
  lastActiveTool: import("../types").ActiveTool | null;
269
267
  locked: boolean;
@@ -289,7 +287,7 @@ export declare const actionZoomOut: {
289
287
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
290
288
  currentHoveredFontFamily: number | null;
291
289
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
292
- currentItemArrowType: "sharp" | "round" | "elbow";
290
+ currentItemArrowType: "round" | "sharp" | "elbow";
293
291
  viewBackgroundColor: string;
294
292
  cursorButton: "up" | "down";
295
293
  scrolledOutside: boolean;
@@ -306,7 +304,7 @@ export declare const actionZoomOut: {
306
304
  name: "imageExport" | "help" | "jsonExport";
307
305
  } | {
308
306
  name: "ttd";
309
- tab: "text-to-diagram" | "mermaid";
307
+ tab: "mermaid" | "text-to-diagram";
310
308
  } | {
311
309
  name: "commandPalette";
312
310
  } | {
@@ -378,7 +376,7 @@ export declare const actionZoomOut: {
378
376
  shown: true;
379
377
  data: import("../charts").Spreadsheet;
380
378
  };
381
- showHyperlinkPopup: false | "info" | "editor";
379
+ showHyperlinkPopup: false | "editor" | "info";
382
380
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
383
381
  snapLines: readonly import("../snapping").SnapLine[];
384
382
  originSnapOffset: {
@@ -401,9 +399,9 @@ export declare const actionZoomOut: {
401
399
  captureUpdate: "EVENTUALLY";
402
400
  };
403
401
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
404
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
402
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
405
403
  } & {
406
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
404
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
407
405
  };
408
406
  export declare const actionResetZoom: {
409
407
  name: "resetZoom";
@@ -439,7 +437,7 @@ export declare const actionResetZoom: {
439
437
  errorMessage: import("react").ReactNode;
440
438
  activeEmbeddable: {
441
439
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
442
- state: "hover" | "active";
440
+ state: "active" | "hover";
443
441
  } | null;
444
442
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
445
443
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -458,7 +456,6 @@ export declare const actionResetZoom: {
458
456
  editingFrame: string | null;
459
457
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
460
458
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
461
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
462
459
  activeTool: {
463
460
  lastActiveTool: import("../types").ActiveTool | null;
464
461
  locked: boolean;
@@ -484,7 +481,7 @@ export declare const actionResetZoom: {
484
481
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
485
482
  currentHoveredFontFamily: number | null;
486
483
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
487
- currentItemArrowType: "sharp" | "round" | "elbow";
484
+ currentItemArrowType: "round" | "sharp" | "elbow";
488
485
  viewBackgroundColor: string;
489
486
  cursorButton: "up" | "down";
490
487
  scrolledOutside: boolean;
@@ -501,7 +498,7 @@ export declare const actionResetZoom: {
501
498
  name: "imageExport" | "help" | "jsonExport";
502
499
  } | {
503
500
  name: "ttd";
504
- tab: "text-to-diagram" | "mermaid";
501
+ tab: "mermaid" | "text-to-diagram";
505
502
  } | {
506
503
  name: "commandPalette";
507
504
  } | {
@@ -573,7 +570,7 @@ export declare const actionResetZoom: {
573
570
  shown: true;
574
571
  data: import("../charts").Spreadsheet;
575
572
  };
576
- showHyperlinkPopup: false | "info" | "editor";
573
+ showHyperlinkPopup: false | "editor" | "info";
577
574
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
578
575
  snapLines: readonly import("../snapping").SnapLine[];
579
576
  originSnapOffset: {
@@ -596,9 +593,9 @@ export declare const actionResetZoom: {
596
593
  captureUpdate: "EVENTUALLY";
597
594
  };
598
595
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
599
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
596
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
600
597
  } & {
601
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
598
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
602
599
  };
603
600
  export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
604
601
  bounds: SceneBounds;
@@ -640,7 +637,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
640
637
  errorMessage: import("react").ReactNode;
641
638
  activeEmbeddable: {
642
639
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
643
- state: "hover" | "active";
640
+ state: "active" | "hover";
644
641
  } | null;
645
642
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
646
643
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -659,7 +656,6 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
659
656
  editingFrame: string | null;
660
657
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
661
658
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
662
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
663
659
  activeTool: {
664
660
  lastActiveTool: import("../types").ActiveTool | null;
665
661
  locked: boolean;
@@ -685,7 +681,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
685
681
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
686
682
  currentHoveredFontFamily: number | null;
687
683
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
688
- currentItemArrowType: "sharp" | "round" | "elbow";
684
+ currentItemArrowType: "round" | "sharp" | "elbow";
689
685
  viewBackgroundColor: string;
690
686
  cursorButton: "up" | "down";
691
687
  scrolledOutside: boolean;
@@ -702,7 +698,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
702
698
  name: "imageExport" | "help" | "jsonExport";
703
699
  } | {
704
700
  name: "ttd";
705
- tab: "text-to-diagram" | "mermaid";
701
+ tab: "mermaid" | "text-to-diagram";
706
702
  } | {
707
703
  name: "commandPalette";
708
704
  } | {
@@ -774,7 +770,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
774
770
  shown: true;
775
771
  data: import("../charts").Spreadsheet;
776
772
  };
777
- showHyperlinkPopup: false | "info" | "editor";
773
+ showHyperlinkPopup: false | "editor" | "info";
778
774
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
779
775
  snapLines: readonly import("../snapping").SnapLine[];
780
776
  originSnapOffset: {
@@ -837,7 +833,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
837
833
  errorMessage: import("react").ReactNode;
838
834
  activeEmbeddable: {
839
835
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
840
- state: "hover" | "active";
836
+ state: "active" | "hover";
841
837
  } | null;
842
838
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
843
839
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -856,7 +852,6 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
856
852
  editingFrame: string | null;
857
853
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
858
854
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
859
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
860
855
  activeTool: {
861
856
  lastActiveTool: import("../types").ActiveTool | null;
862
857
  locked: boolean;
@@ -882,7 +877,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
882
877
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
883
878
  currentHoveredFontFamily: number | null;
884
879
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
885
- currentItemArrowType: "sharp" | "round" | "elbow";
880
+ currentItemArrowType: "round" | "sharp" | "elbow";
886
881
  viewBackgroundColor: string;
887
882
  cursorButton: "up" | "down";
888
883
  scrolledOutside: boolean;
@@ -899,7 +894,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
899
894
  name: "imageExport" | "help" | "jsonExport";
900
895
  } | {
901
896
  name: "ttd";
902
- tab: "text-to-diagram" | "mermaid";
897
+ tab: "mermaid" | "text-to-diagram";
903
898
  } | {
904
899
  name: "commandPalette";
905
900
  } | {
@@ -971,7 +966,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
971
966
  shown: true;
972
967
  data: import("../charts").Spreadsheet;
973
968
  };
974
- showHyperlinkPopup: false | "info" | "editor";
969
+ showHyperlinkPopup: false | "editor" | "info";
975
970
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
976
971
  snapLines: readonly import("../snapping").SnapLine[];
977
972
  originSnapOffset: {
@@ -1026,7 +1021,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1026
1021
  errorMessage: import("react").ReactNode;
1027
1022
  activeEmbeddable: {
1028
1023
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1029
- state: "hover" | "active";
1024
+ state: "active" | "hover";
1030
1025
  } | null;
1031
1026
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1032
1027
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1045,7 +1040,6 @@ export declare const actionZoomToFitSelectionInViewport: {
1045
1040
  editingFrame: string | null;
1046
1041
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1047
1042
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1048
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1049
1043
  activeTool: {
1050
1044
  lastActiveTool: import("../types").ActiveTool | null;
1051
1045
  locked: boolean;
@@ -1071,7 +1065,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1071
1065
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1072
1066
  currentHoveredFontFamily: number | null;
1073
1067
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1074
- currentItemArrowType: "sharp" | "round" | "elbow";
1068
+ currentItemArrowType: "round" | "sharp" | "elbow";
1075
1069
  viewBackgroundColor: string;
1076
1070
  cursorButton: "up" | "down";
1077
1071
  scrolledOutside: boolean;
@@ -1088,7 +1082,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1088
1082
  name: "imageExport" | "help" | "jsonExport";
1089
1083
  } | {
1090
1084
  name: "ttd";
1091
- tab: "text-to-diagram" | "mermaid";
1085
+ tab: "mermaid" | "text-to-diagram";
1092
1086
  } | {
1093
1087
  name: "commandPalette";
1094
1088
  } | {
@@ -1160,7 +1154,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1160
1154
  shown: true;
1161
1155
  data: import("../charts").Spreadsheet;
1162
1156
  };
1163
- showHyperlinkPopup: false | "info" | "editor";
1157
+ showHyperlinkPopup: false | "editor" | "info";
1164
1158
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1165
1159
  snapLines: readonly import("../snapping").SnapLine[];
1166
1160
  originSnapOffset: {
@@ -1183,9 +1177,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1183
1177
  };
1184
1178
  captureUpdate: "EVENTUALLY";
1185
1179
  };
1186
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1180
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1187
1181
  } & {
1188
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1182
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1189
1183
  };
1190
1184
  export declare const actionZoomToFitSelection: {
1191
1185
  name: "zoomToFitSelection";
@@ -1219,7 +1213,7 @@ export declare const actionZoomToFitSelection: {
1219
1213
  errorMessage: import("react").ReactNode;
1220
1214
  activeEmbeddable: {
1221
1215
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1222
- state: "hover" | "active";
1216
+ state: "active" | "hover";
1223
1217
  } | null;
1224
1218
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1225
1219
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1238,7 +1232,6 @@ export declare const actionZoomToFitSelection: {
1238
1232
  editingFrame: string | null;
1239
1233
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1240
1234
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1241
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1242
1235
  activeTool: {
1243
1236
  lastActiveTool: import("../types").ActiveTool | null;
1244
1237
  locked: boolean;
@@ -1264,7 +1257,7 @@ export declare const actionZoomToFitSelection: {
1264
1257
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1265
1258
  currentHoveredFontFamily: number | null;
1266
1259
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1267
- currentItemArrowType: "sharp" | "round" | "elbow";
1260
+ currentItemArrowType: "round" | "sharp" | "elbow";
1268
1261
  viewBackgroundColor: string;
1269
1262
  cursorButton: "up" | "down";
1270
1263
  scrolledOutside: boolean;
@@ -1281,7 +1274,7 @@ export declare const actionZoomToFitSelection: {
1281
1274
  name: "imageExport" | "help" | "jsonExport";
1282
1275
  } | {
1283
1276
  name: "ttd";
1284
- tab: "text-to-diagram" | "mermaid";
1277
+ tab: "mermaid" | "text-to-diagram";
1285
1278
  } | {
1286
1279
  name: "commandPalette";
1287
1280
  } | {
@@ -1353,7 +1346,7 @@ export declare const actionZoomToFitSelection: {
1353
1346
  shown: true;
1354
1347
  data: import("../charts").Spreadsheet;
1355
1348
  };
1356
- showHyperlinkPopup: false | "info" | "editor";
1349
+ showHyperlinkPopup: false | "editor" | "info";
1357
1350
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1358
1351
  snapLines: readonly import("../snapping").SnapLine[];
1359
1352
  originSnapOffset: {
@@ -1376,9 +1369,9 @@ export declare const actionZoomToFitSelection: {
1376
1369
  };
1377
1370
  captureUpdate: "EVENTUALLY";
1378
1371
  };
1379
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1372
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1380
1373
  } & {
1381
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1374
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1382
1375
  };
1383
1376
  export declare const actionZoomToFit: {
1384
1377
  name: "zoomToFit";
@@ -1413,7 +1406,7 @@ export declare const actionZoomToFit: {
1413
1406
  errorMessage: import("react").ReactNode;
1414
1407
  activeEmbeddable: {
1415
1408
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1416
- state: "hover" | "active";
1409
+ state: "active" | "hover";
1417
1410
  } | null;
1418
1411
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1419
1412
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1432,7 +1425,6 @@ export declare const actionZoomToFit: {
1432
1425
  editingFrame: string | null;
1433
1426
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1434
1427
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1435
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1436
1428
  activeTool: {
1437
1429
  lastActiveTool: import("../types").ActiveTool | null;
1438
1430
  locked: boolean;
@@ -1458,7 +1450,7 @@ export declare const actionZoomToFit: {
1458
1450
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1459
1451
  currentHoveredFontFamily: number | null;
1460
1452
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1461
- currentItemArrowType: "sharp" | "round" | "elbow";
1453
+ currentItemArrowType: "round" | "sharp" | "elbow";
1462
1454
  viewBackgroundColor: string;
1463
1455
  cursorButton: "up" | "down";
1464
1456
  scrolledOutside: boolean;
@@ -1475,7 +1467,7 @@ export declare const actionZoomToFit: {
1475
1467
  name: "imageExport" | "help" | "jsonExport";
1476
1468
  } | {
1477
1469
  name: "ttd";
1478
- tab: "text-to-diagram" | "mermaid";
1470
+ tab: "mermaid" | "text-to-diagram";
1479
1471
  } | {
1480
1472
  name: "commandPalette";
1481
1473
  } | {
@@ -1547,7 +1539,7 @@ export declare const actionZoomToFit: {
1547
1539
  shown: true;
1548
1540
  data: import("../charts").Spreadsheet;
1549
1541
  };
1550
- showHyperlinkPopup: false | "info" | "editor";
1542
+ showHyperlinkPopup: false | "editor" | "info";
1551
1543
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1552
1544
  snapLines: readonly import("../snapping").SnapLine[];
1553
1545
  originSnapOffset: {
@@ -1570,9 +1562,9 @@ export declare const actionZoomToFit: {
1570
1562
  };
1571
1563
  captureUpdate: "EVENTUALLY";
1572
1564
  };
1573
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1565
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1574
1566
  } & {
1575
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1567
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1576
1568
  };
1577
1569
  export declare const actionToggleTheme: {
1578
1570
  name: "toggleTheme";
@@ -1604,7 +1596,7 @@ export declare const actionToggleTheme: {
1604
1596
  errorMessage: import("react").ReactNode;
1605
1597
  activeEmbeddable: {
1606
1598
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1607
- state: "hover" | "active";
1599
+ state: "active" | "hover";
1608
1600
  } | null;
1609
1601
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1610
1602
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1623,7 +1615,6 @@ export declare const actionToggleTheme: {
1623
1615
  editingFrame: string | null;
1624
1616
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1625
1617
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1626
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1627
1618
  activeTool: {
1628
1619
  lastActiveTool: import("../types").ActiveTool | null;
1629
1620
  locked: boolean;
@@ -1649,7 +1640,7 @@ export declare const actionToggleTheme: {
1649
1640
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1650
1641
  currentHoveredFontFamily: number | null;
1651
1642
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1652
- currentItemArrowType: "sharp" | "round" | "elbow";
1643
+ currentItemArrowType: "round" | "sharp" | "elbow";
1653
1644
  viewBackgroundColor: string;
1654
1645
  scrollX: number;
1655
1646
  scrollY: number;
@@ -1671,7 +1662,7 @@ export declare const actionToggleTheme: {
1671
1662
  name: "imageExport" | "help" | "jsonExport";
1672
1663
  } | {
1673
1664
  name: "ttd";
1674
- tab: "text-to-diagram" | "mermaid";
1665
+ tab: "mermaid" | "text-to-diagram";
1675
1666
  } | {
1676
1667
  name: "commandPalette";
1677
1668
  } | {
@@ -1742,7 +1733,7 @@ export declare const actionToggleTheme: {
1742
1733
  shown: true;
1743
1734
  data: import("../charts").Spreadsheet;
1744
1735
  };
1745
- showHyperlinkPopup: false | "info" | "editor";
1736
+ showHyperlinkPopup: false | "editor" | "info";
1746
1737
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1747
1738
  snapLines: readonly import("../snapping").SnapLine[];
1748
1739
  originSnapOffset: {
@@ -1765,10 +1756,10 @@ export declare const actionToggleTheme: {
1765
1756
  };
1766
1757
  captureUpdate: "EVENTUALLY";
1767
1758
  };
1768
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1759
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1769
1760
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1770
1761
  } & {
1771
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1762
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1772
1763
  };
1773
1764
  export declare const actionToggleEraserTool: {
1774
1765
  name: "toggleEraserTool";
@@ -1819,7 +1810,6 @@ export declare const actionToggleEraserTool: {
1819
1810
  editingFrame: string | null;
1820
1811
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1821
1812
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1822
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1823
1813
  penMode: boolean;
1824
1814
  penDetected: boolean;
1825
1815
  exportBackground: boolean;
@@ -1840,7 +1830,7 @@ export declare const actionToggleEraserTool: {
1840
1830
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1841
1831
  currentHoveredFontFamily: number | null;
1842
1832
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1843
- currentItemArrowType: "sharp" | "round" | "elbow";
1833
+ currentItemArrowType: "round" | "sharp" | "elbow";
1844
1834
  viewBackgroundColor: string;
1845
1835
  scrollX: number;
1846
1836
  scrollY: number;
@@ -1862,7 +1852,7 @@ export declare const actionToggleEraserTool: {
1862
1852
  name: "imageExport" | "help" | "jsonExport";
1863
1853
  } | {
1864
1854
  name: "ttd";
1865
- tab: "text-to-diagram" | "mermaid";
1855
+ tab: "mermaid" | "text-to-diagram";
1866
1856
  } | {
1867
1857
  name: "commandPalette";
1868
1858
  } | {
@@ -1928,7 +1918,7 @@ export declare const actionToggleEraserTool: {
1928
1918
  shown: true;
1929
1919
  data: import("../charts").Spreadsheet;
1930
1920
  };
1931
- showHyperlinkPopup: false | "info" | "editor";
1921
+ showHyperlinkPopup: false | "editor" | "info";
1932
1922
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1933
1923
  snapLines: readonly import("../snapping").SnapLine[];
1934
1924
  originSnapOffset: {
@@ -1951,9 +1941,9 @@ export declare const actionToggleEraserTool: {
1951
1941
  };
1952
1942
  captureUpdate: "IMMEDIATELY";
1953
1943
  };
1954
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1944
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1955
1945
  } & {
1956
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1946
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1957
1947
  };
1958
1948
  export declare const actionToggleLassoTool: {
1959
1949
  name: "toggleLassoTool";
@@ -2005,7 +1995,6 @@ export declare const actionToggleLassoTool: {
2005
1995
  editingFrame: string | null;
2006
1996
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2007
1997
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2008
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2009
1998
  penMode: boolean;
2010
1999
  penDetected: boolean;
2011
2000
  exportBackground: boolean;
@@ -2026,7 +2015,7 @@ export declare const actionToggleLassoTool: {
2026
2015
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2027
2016
  currentHoveredFontFamily: number | null;
2028
2017
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2029
- currentItemArrowType: "sharp" | "round" | "elbow";
2018
+ currentItemArrowType: "round" | "sharp" | "elbow";
2030
2019
  viewBackgroundColor: string;
2031
2020
  scrollX: number;
2032
2021
  scrollY: number;
@@ -2048,7 +2037,7 @@ export declare const actionToggleLassoTool: {
2048
2037
  name: "imageExport" | "help" | "jsonExport";
2049
2038
  } | {
2050
2039
  name: "ttd";
2051
- tab: "text-to-diagram" | "mermaid";
2040
+ tab: "mermaid" | "text-to-diagram";
2052
2041
  } | {
2053
2042
  name: "commandPalette";
2054
2043
  } | {
@@ -2114,7 +2103,7 @@ export declare const actionToggleLassoTool: {
2114
2103
  shown: true;
2115
2104
  data: import("../charts").Spreadsheet;
2116
2105
  };
2117
- showHyperlinkPopup: false | "info" | "editor";
2106
+ showHyperlinkPopup: false | "editor" | "info";
2118
2107
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2119
2108
  snapLines: readonly import("../snapping").SnapLine[];
2120
2109
  originSnapOffset: {
@@ -2191,7 +2180,6 @@ export declare const actionToggleHandTool: {
2191
2180
  editingFrame: string | null;
2192
2181
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2193
2182
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2194
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2195
2183
  penMode: boolean;
2196
2184
  penDetected: boolean;
2197
2185
  exportBackground: boolean;
@@ -2212,7 +2200,7 @@ export declare const actionToggleHandTool: {
2212
2200
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2213
2201
  currentHoveredFontFamily: number | null;
2214
2202
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2215
- currentItemArrowType: "sharp" | "round" | "elbow";
2203
+ currentItemArrowType: "round" | "sharp" | "elbow";
2216
2204
  viewBackgroundColor: string;
2217
2205
  scrollX: number;
2218
2206
  scrollY: number;
@@ -2234,7 +2222,7 @@ export declare const actionToggleHandTool: {
2234
2222
  name: "imageExport" | "help" | "jsonExport";
2235
2223
  } | {
2236
2224
  name: "ttd";
2237
- tab: "text-to-diagram" | "mermaid";
2225
+ tab: "mermaid" | "text-to-diagram";
2238
2226
  } | {
2239
2227
  name: "commandPalette";
2240
2228
  } | {
@@ -2300,7 +2288,7 @@ export declare const actionToggleHandTool: {
2300
2288
  shown: true;
2301
2289
  data: import("../charts").Spreadsheet;
2302
2290
  };
2303
- showHyperlinkPopup: false | "info" | "editor";
2291
+ showHyperlinkPopup: false | "editor" | "info";
2304
2292
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2305
2293
  snapLines: readonly import("../snapping").SnapLine[];
2306
2294
  originSnapOffset: {
@@ -2323,7 +2311,7 @@ export declare const actionToggleHandTool: {
2323
2311
  };
2324
2312
  captureUpdate: "IMMEDIATELY";
2325
2313
  };
2326
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2314
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2327
2315
  } & {
2328
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2316
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2329
2317
  };