@myoc/excalidraw 0.18.19 → 0.18.21

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-WD4YVUU4.js → chunk-DUURZLYX.js} +2 -2
  2. package/dist/dev/chunk-XJGMBAJT.js +5684 -0
  3. package/dist/dev/chunk-XJGMBAJT.js.map +7 -0
  4. package/dist/dev/data/{image-CW7TABKC.js → image-NCRXXRJW.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-4UANJTGP.js} +1 -1
  12. package/dist/prod/chunk-ESVIN3T7.js +4 -0
  13. package/dist/prod/data/image-7MUHAX25.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 +7 -4
  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-DUURZLYX.js.map} +0 -0
  96. /package/dist/dev/data/{image-CW7TABKC.js.map → image-NCRXXRJW.js.map} +0 -0
@@ -26,7 +26,7 @@ export declare const actionChangeProjectName: {
26
26
  errorMessage: import("react").ReactNode;
27
27
  activeEmbeddable: {
28
28
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
29
- state: "hover" | "active";
29
+ state: "active" | "hover";
30
30
  } | null;
31
31
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
32
32
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -45,7 +45,6 @@ export declare const actionChangeProjectName: {
45
45
  editingFrame: string | null;
46
46
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
47
47
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
49
48
  activeTool: {
50
49
  lastActiveTool: import("../types").ActiveTool | null;
51
50
  locked: boolean;
@@ -71,7 +70,7 @@ export declare const actionChangeProjectName: {
71
70
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
71
  currentHoveredFontFamily: number | null;
73
72
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
74
- currentItemArrowType: "sharp" | "round" | "elbow";
73
+ currentItemArrowType: "round" | "sharp" | "elbow";
75
74
  viewBackgroundColor: string;
76
75
  scrollX: number;
77
76
  scrollY: number;
@@ -92,7 +91,7 @@ export declare const actionChangeProjectName: {
92
91
  name: "imageExport" | "help" | "jsonExport";
93
92
  } | {
94
93
  name: "ttd";
95
- tab: "text-to-diagram" | "mermaid";
94
+ tab: "mermaid" | "text-to-diagram";
96
95
  } | {
97
96
  name: "commandPalette";
98
97
  } | {
@@ -164,7 +163,7 @@ export declare const actionChangeProjectName: {
164
163
  shown: true;
165
164
  data: import("../charts").Spreadsheet;
166
165
  };
167
- showHyperlinkPopup: false | "info" | "editor";
166
+ showHyperlinkPopup: false | "editor" | "info";
168
167
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
169
168
  snapLines: readonly import("../snapping").SnapLine[];
170
169
  originSnapOffset: {
@@ -219,7 +218,7 @@ export declare const actionChangeExportScale: {
219
218
  errorMessage: import("react").ReactNode;
220
219
  activeEmbeddable: {
221
220
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
222
- state: "hover" | "active";
221
+ state: "active" | "hover";
223
222
  } | null;
224
223
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
225
224
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -238,7 +237,6 @@ export declare const actionChangeExportScale: {
238
237
  editingFrame: string | null;
239
238
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
240
239
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
241
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
242
240
  activeTool: {
243
241
  lastActiveTool: import("../types").ActiveTool | null;
244
242
  locked: boolean;
@@ -263,7 +261,7 @@ export declare const actionChangeExportScale: {
263
261
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
264
262
  currentHoveredFontFamily: number | null;
265
263
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
266
- currentItemArrowType: "sharp" | "round" | "elbow";
264
+ currentItemArrowType: "round" | "sharp" | "elbow";
267
265
  viewBackgroundColor: string;
268
266
  scrollX: number;
269
267
  scrollY: number;
@@ -285,7 +283,7 @@ export declare const actionChangeExportScale: {
285
283
  name: "imageExport" | "help" | "jsonExport";
286
284
  } | {
287
285
  name: "ttd";
288
- tab: "text-to-diagram" | "mermaid";
286
+ tab: "mermaid" | "text-to-diagram";
289
287
  } | {
290
288
  name: "commandPalette";
291
289
  } | {
@@ -357,7 +355,7 @@ export declare const actionChangeExportScale: {
357
355
  shown: true;
358
356
  data: import("../charts").Spreadsheet;
359
357
  };
360
- showHyperlinkPopup: false | "info" | "editor";
358
+ showHyperlinkPopup: false | "editor" | "info";
361
359
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
362
360
  snapLines: readonly import("../snapping").SnapLine[];
363
361
  originSnapOffset: {
@@ -412,7 +410,7 @@ export declare const actionChangeExportBackground: {
412
410
  errorMessage: import("react").ReactNode;
413
411
  activeEmbeddable: {
414
412
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
415
- state: "hover" | "active";
413
+ state: "active" | "hover";
416
414
  } | null;
417
415
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
418
416
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -431,7 +429,6 @@ export declare const actionChangeExportBackground: {
431
429
  editingFrame: string | null;
432
430
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
433
431
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
434
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
435
432
  activeTool: {
436
433
  lastActiveTool: import("../types").ActiveTool | null;
437
434
  locked: boolean;
@@ -456,7 +453,7 @@ export declare const actionChangeExportBackground: {
456
453
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
457
454
  currentHoveredFontFamily: number | null;
458
455
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
459
- currentItemArrowType: "sharp" | "round" | "elbow";
456
+ currentItemArrowType: "round" | "sharp" | "elbow";
460
457
  viewBackgroundColor: string;
461
458
  scrollX: number;
462
459
  scrollY: number;
@@ -478,7 +475,7 @@ export declare const actionChangeExportBackground: {
478
475
  name: "imageExport" | "help" | "jsonExport";
479
476
  } | {
480
477
  name: "ttd";
481
- tab: "text-to-diagram" | "mermaid";
478
+ tab: "mermaid" | "text-to-diagram";
482
479
  } | {
483
480
  name: "commandPalette";
484
481
  } | {
@@ -550,7 +547,7 @@ export declare const actionChangeExportBackground: {
550
547
  shown: true;
551
548
  data: import("../charts").Spreadsheet;
552
549
  };
553
- showHyperlinkPopup: false | "info" | "editor";
550
+ showHyperlinkPopup: false | "editor" | "info";
554
551
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
555
552
  snapLines: readonly import("../snapping").SnapLine[];
556
553
  originSnapOffset: {
@@ -605,7 +602,7 @@ export declare const actionChangeExportEmbedScene: {
605
602
  errorMessage: import("react").ReactNode;
606
603
  activeEmbeddable: {
607
604
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
608
- state: "hover" | "active";
605
+ state: "active" | "hover";
609
606
  } | null;
610
607
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
611
608
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -624,7 +621,6 @@ export declare const actionChangeExportEmbedScene: {
624
621
  editingFrame: string | null;
625
622
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
626
623
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
627
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
628
624
  activeTool: {
629
625
  lastActiveTool: import("../types").ActiveTool | null;
630
626
  locked: boolean;
@@ -649,7 +645,7 @@ export declare const actionChangeExportEmbedScene: {
649
645
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
650
646
  currentHoveredFontFamily: number | null;
651
647
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
652
- currentItemArrowType: "sharp" | "round" | "elbow";
648
+ currentItemArrowType: "round" | "sharp" | "elbow";
653
649
  viewBackgroundColor: string;
654
650
  scrollX: number;
655
651
  scrollY: number;
@@ -671,7 +667,7 @@ export declare const actionChangeExportEmbedScene: {
671
667
  name: "imageExport" | "help" | "jsonExport";
672
668
  } | {
673
669
  name: "ttd";
674
- tab: "text-to-diagram" | "mermaid";
670
+ tab: "mermaid" | "text-to-diagram";
675
671
  } | {
676
672
  name: "commandPalette";
677
673
  } | {
@@ -743,7 +739,7 @@ export declare const actionChangeExportEmbedScene: {
743
739
  shown: true;
744
740
  data: import("../charts").Spreadsheet;
745
741
  };
746
- showHyperlinkPopup: false | "info" | "editor";
742
+ showHyperlinkPopup: false | "editor" | "info";
747
743
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
748
744
  snapLines: readonly import("../snapping").SnapLine[];
749
745
  originSnapOffset: {
@@ -803,7 +799,7 @@ export declare const actionSaveToActiveFile: {
803
799
  errorMessage: import("react").ReactNode;
804
800
  activeEmbeddable: {
805
801
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
806
- state: "hover" | "active";
802
+ state: "active" | "hover";
807
803
  } | null;
808
804
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
809
805
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -822,7 +818,6 @@ export declare const actionSaveToActiveFile: {
822
818
  editingFrame: string | null;
823
819
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
824
820
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
825
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
826
821
  activeTool: {
827
822
  lastActiveTool: import("../types").ActiveTool | null;
828
823
  locked: boolean;
@@ -848,7 +843,7 @@ export declare const actionSaveToActiveFile: {
848
843
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
849
844
  currentHoveredFontFamily: number | null;
850
845
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
851
- currentItemArrowType: "sharp" | "round" | "elbow";
846
+ currentItemArrowType: "round" | "sharp" | "elbow";
852
847
  viewBackgroundColor: string;
853
848
  scrollX: number;
854
849
  scrollY: number;
@@ -870,7 +865,7 @@ export declare const actionSaveToActiveFile: {
870
865
  name: "imageExport" | "help" | "jsonExport";
871
866
  } | {
872
867
  name: "ttd";
873
- tab: "text-to-diagram" | "mermaid";
868
+ tab: "mermaid" | "text-to-diagram";
874
869
  } | {
875
870
  name: "commandPalette";
876
871
  } | {
@@ -936,7 +931,7 @@ export declare const actionSaveToActiveFile: {
936
931
  shown: true;
937
932
  data: import("../charts").Spreadsheet;
938
933
  };
939
- showHyperlinkPopup: false | "info" | "editor";
934
+ showHyperlinkPopup: false | "editor" | "info";
940
935
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
941
936
  snapLines: readonly import("../snapping").SnapLine[];
942
937
  originSnapOffset: {
@@ -961,9 +956,9 @@ export declare const actionSaveToActiveFile: {
961
956
  captureUpdate: "EVENTUALLY";
962
957
  appState?: undefined;
963
958
  }>;
964
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false;
959
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false;
965
960
  } & {
966
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false) | undefined;
961
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false) | undefined;
967
962
  };
968
963
  export declare const actionSaveFileToDisk: {
969
964
  name: "saveFileToDisk";
@@ -999,7 +994,7 @@ export declare const actionSaveFileToDisk: {
999
994
  errorMessage: import("react").ReactNode;
1000
995
  activeEmbeddable: {
1001
996
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1002
- state: "hover" | "active";
997
+ state: "active" | "hover";
1003
998
  } | null;
1004
999
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1005
1000
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1018,7 +1013,6 @@ export declare const actionSaveFileToDisk: {
1018
1013
  editingFrame: string | null;
1019
1014
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1020
1015
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1021
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1022
1016
  activeTool: {
1023
1017
  lastActiveTool: import("../types").ActiveTool | null;
1024
1018
  locked: boolean;
@@ -1044,7 +1038,7 @@ export declare const actionSaveFileToDisk: {
1044
1038
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1045
1039
  currentHoveredFontFamily: number | null;
1046
1040
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1047
- currentItemArrowType: "sharp" | "round" | "elbow";
1041
+ currentItemArrowType: "round" | "sharp" | "elbow";
1048
1042
  viewBackgroundColor: string;
1049
1043
  scrollX: number;
1050
1044
  scrollY: number;
@@ -1121,7 +1115,7 @@ export declare const actionSaveFileToDisk: {
1121
1115
  shown: true;
1122
1116
  data: import("../charts").Spreadsheet;
1123
1117
  };
1124
- showHyperlinkPopup: false | "info" | "editor";
1118
+ showHyperlinkPopup: false | "editor" | "info";
1125
1119
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1126
1120
  snapLines: readonly import("../snapping").SnapLine[];
1127
1121
  originSnapOffset: {
@@ -1146,10 +1140,10 @@ export declare const actionSaveFileToDisk: {
1146
1140
  captureUpdate: "EVENTUALLY";
1147
1141
  appState?: undefined;
1148
1142
  }>;
1149
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1143
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1150
1144
  PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1151
1145
  } & {
1152
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1146
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1153
1147
  };
1154
1148
  export declare const actionLoadScene: {
1155
1149
  name: "loadScene";
@@ -1161,21 +1155,86 @@ export declare const actionLoadScene: {
1161
1155
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1162
1156
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1163
1157
  appState: {
1158
+ viewBackgroundColor: string;
1159
+ frameRendering: {
1160
+ enabled: boolean;
1161
+ name: boolean;
1162
+ outline: boolean;
1163
+ clip: boolean;
1164
+ };
1165
+ name: string | null;
1166
+ zoom: Readonly<{
1167
+ value: import("../types").NormalizedZoomValue;
1168
+ }>;
1169
+ scrollX: number;
1170
+ scrollY: number;
1171
+ viewModeEnabled: boolean;
1172
+ openDialog: {
1173
+ name: "imageExport" | "help" | "jsonExport";
1174
+ } | {
1175
+ name: "ttd";
1176
+ tab: "mermaid" | "text-to-diagram";
1177
+ } | {
1178
+ name: "commandPalette";
1179
+ } | {
1180
+ name: "elementLinkSelector";
1181
+ sourceElementId: string;
1182
+ } | null;
1183
+ editingGroupId: string | null;
1184
+ selectedElementIds: Readonly<{
1185
+ [id: string]: true;
1186
+ }>;
1187
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1188
+ theme: Theme;
1189
+ activeEmbeddable: {
1190
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1191
+ state: "active" | "hover";
1192
+ } | null;
1193
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1194
+ selectedGroupIds: {
1195
+ [groupId: string]: boolean;
1196
+ };
1197
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1198
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1199
+ isBindingEnabled: boolean;
1200
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1201
+ isRotating: boolean;
1202
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1203
+ collaborators: Map<import("../types").SocketId, Readonly<{
1204
+ pointer?: import("../types").CollaboratorPointer | undefined;
1205
+ button?: "up" | "down" | undefined;
1206
+ selectedElementIds?: Readonly<{
1207
+ [id: string]: true;
1208
+ }> | undefined;
1209
+ username?: string | null | undefined;
1210
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1211
+ color?: {
1212
+ background: string;
1213
+ stroke: string;
1214
+ } | undefined;
1215
+ avatarUrl?: string | undefined;
1216
+ id?: string | undefined;
1217
+ socketId?: import("../types").SocketId | undefined;
1218
+ isCurrentUser?: boolean | undefined;
1219
+ isInCall?: boolean | undefined;
1220
+ isSpeaking?: boolean | undefined;
1221
+ isMuted?: boolean | undefined;
1222
+ }>>;
1223
+ snapLines: readonly import("../snapping").SnapLine[];
1224
+ zenModeEnabled: boolean;
1225
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1226
+ isCropping: boolean;
1227
+ croppingElementId: string | null;
1228
+ searchMatches: Readonly<{
1229
+ focusedId: string | null;
1230
+ matches: readonly import("../types").SearchMatch[];
1231
+ }> | null;
1232
+ activeLockedId: string | null;
1164
1233
  contextMenu: {
1165
1234
  items: import("../components/ContextMenu").ContextMenuItems;
1166
1235
  top: number;
1167
1236
  left: number;
1168
1237
  } | null;
1169
- stats: {
1170
- open: boolean;
1171
- panels: number;
1172
- };
1173
- exportWithDarkMode: boolean;
1174
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1175
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1176
- cursorButton: "up" | "down";
1177
- scrollX: number;
1178
- scrollY: number;
1179
1238
  showWelcomeScreen: boolean;
1180
1239
  isLoading: boolean;
1181
1240
  myocSimplifiedMode: boolean;
@@ -1187,26 +1246,10 @@ export declare const actionLoadScene: {
1187
1246
  gap: number;
1188
1247
  };
1189
1248
  errorMessage: import("react").ReactNode;
1190
- activeEmbeddable: {
1191
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1192
- state: "hover" | "active";
1193
- } | null;
1194
1249
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1195
1250
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1196
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1197
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1198
- isBindingEnabled: boolean;
1199
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1200
- frameRendering: {
1201
- enabled: boolean;
1202
- name: boolean;
1203
- outline: boolean;
1204
- clip: boolean;
1205
- };
1251
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1206
1252
  editingFrame: string | null;
1207
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1208
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1209
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1210
1253
  activeTool: {
1211
1254
  lastActiveTool: import("../types").ActiveTool | null;
1212
1255
  locked: boolean;
@@ -1216,6 +1259,7 @@ export declare const actionLoadScene: {
1216
1259
  penDetected: boolean;
1217
1260
  exportBackground: boolean;
1218
1261
  exportEmbedScene: boolean;
1262
+ exportWithDarkMode: boolean;
1219
1263
  exportScale: number;
1220
1264
  currentItemStrokeColor: string;
1221
1265
  currentItemBackgroundColor: string;
@@ -1231,37 +1275,18 @@ export declare const actionLoadScene: {
1231
1275
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1232
1276
  currentHoveredFontFamily: number | null;
1233
1277
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1234
- currentItemArrowType: "sharp" | "round" | "elbow";
1235
- viewBackgroundColor: string;
1278
+ currentItemArrowType: "round" | "sharp" | "elbow";
1279
+ cursorButton: "up" | "down";
1236
1280
  scrolledOutside: boolean;
1237
- name: string | null;
1238
1281
  isResizing: boolean;
1239
- isRotating: boolean;
1240
- zoom: Readonly<{
1241
- value: import("../types").NormalizedZoomValue;
1242
- }>;
1243
1282
  openMenu: "canvas" | "shape" | null;
1244
1283
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1245
1284
  openSidebar: {
1246
1285
  name: string;
1247
1286
  tab?: string | undefined;
1248
1287
  } | null;
1249
- openDialog: {
1250
- name: "imageExport" | "help" | "jsonExport";
1251
- } | {
1252
- name: "ttd";
1253
- tab: "text-to-diagram" | "mermaid";
1254
- } | {
1255
- name: "commandPalette";
1256
- } | {
1257
- name: "elementLinkSelector";
1258
- sourceElementId: string;
1259
- } | null;
1260
1288
  defaultSidebarDockedPreference: boolean;
1261
1289
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1262
- selectedElementIds: Readonly<{
1263
- [id: string]: true;
1264
- }>;
1265
1290
  hoveredElementIds: Readonly<{
1266
1291
  [id: string]: true;
1267
1292
  }>;
@@ -1275,37 +1300,14 @@ export declare const actionLoadScene: {
1275
1300
  closable?: boolean | undefined;
1276
1301
  duration?: number | undefined;
1277
1302
  } | null;
1278
- zenModeEnabled: boolean;
1279
- theme: Theme;
1280
1303
  gridSize: number;
1281
1304
  gridStep: number;
1282
1305
  gridModeEnabled: boolean;
1283
- viewModeEnabled: boolean;
1284
- selectedGroupIds: {
1285
- [groupId: string]: boolean;
1286
- };
1287
- editingGroupId: string | null;
1288
1306
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1289
- collaborators: Map<import("../types").SocketId, Readonly<{
1290
- pointer?: import("../types").CollaboratorPointer | undefined;
1291
- button?: "up" | "down" | undefined;
1292
- selectedElementIds?: Readonly<{
1293
- [id: string]: true;
1294
- }> | undefined;
1295
- username?: string | null | undefined;
1296
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1297
- color?: {
1298
- background: string;
1299
- stroke: string;
1300
- } | undefined;
1301
- avatarUrl?: string | undefined;
1302
- id?: string | undefined;
1303
- socketId?: import("../types").SocketId | undefined;
1304
- isCurrentUser?: boolean | undefined;
1305
- isInCall?: boolean | undefined;
1306
- isSpeaking?: boolean | undefined;
1307
- isMuted?: boolean | undefined;
1308
- }>>;
1307
+ stats: {
1308
+ open: boolean;
1309
+ panels: number;
1310
+ };
1309
1311
  currentChartType: import("@excalidraw/element/types").ChartType;
1310
1312
  pasteDialog: {
1311
1313
  shown: false;
@@ -1314,9 +1316,7 @@ export declare const actionLoadScene: {
1314
1316
  shown: true;
1315
1317
  data: import("../charts").Spreadsheet;
1316
1318
  };
1317
- showHyperlinkPopup: false | "info" | "editor";
1318
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1319
- snapLines: readonly import("../snapping").SnapLine[];
1319
+ showHyperlinkPopup: false | "editor" | "info";
1320
1320
  originSnapOffset: {
1321
1321
  x: number;
1322
1322
  y: number;
@@ -1324,13 +1324,6 @@ export declare const actionLoadScene: {
1324
1324
  objectsSnapModeEnabled: boolean;
1325
1325
  userToFollow: import("../types").UserToFollow | null;
1326
1326
  followedBy: Set<import("../types").SocketId>;
1327
- isCropping: boolean;
1328
- croppingElementId: string | null;
1329
- searchMatches: Readonly<{
1330
- focusedId: string | null;
1331
- matches: readonly import("../types").SearchMatch[];
1332
- }> | null;
1333
- activeLockedId: string | null;
1334
1327
  lockedMultiSelections: {
1335
1328
  [groupId: string]: true;
1336
1329
  };
@@ -1358,7 +1351,7 @@ export declare const actionLoadScene: {
1358
1351
  };
1359
1352
  activeEmbeddable: {
1360
1353
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1361
- state: "hover" | "active";
1354
+ state: "active" | "hover";
1362
1355
  } | null;
1363
1356
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1364
1357
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1377,7 +1370,6 @@ export declare const actionLoadScene: {
1377
1370
  editingFrame: string | null;
1378
1371
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1379
1372
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1380
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1381
1373
  activeTool: {
1382
1374
  lastActiveTool: import("../types").ActiveTool | null;
1383
1375
  locked: boolean;
@@ -1403,7 +1395,7 @@ export declare const actionLoadScene: {
1403
1395
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1404
1396
  currentHoveredFontFamily: number | null;
1405
1397
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1406
- currentItemArrowType: "sharp" | "round" | "elbow";
1398
+ currentItemArrowType: "round" | "sharp" | "elbow";
1407
1399
  viewBackgroundColor: string;
1408
1400
  scrollX: number;
1409
1401
  scrollY: number;
@@ -1425,7 +1417,7 @@ export declare const actionLoadScene: {
1425
1417
  name: "imageExport" | "help" | "jsonExport";
1426
1418
  } | {
1427
1419
  name: "ttd";
1428
- tab: "text-to-diagram" | "mermaid";
1420
+ tab: "mermaid" | "text-to-diagram";
1429
1421
  } | {
1430
1422
  name: "commandPalette";
1431
1423
  } | {
@@ -1497,7 +1489,7 @@ export declare const actionLoadScene: {
1497
1489
  shown: true;
1498
1490
  data: import("../charts").Spreadsheet;
1499
1491
  };
1500
- showHyperlinkPopup: false | "info" | "editor";
1492
+ showHyperlinkPopup: false | "editor" | "info";
1501
1493
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1502
1494
  snapLines: readonly import("../snapping").SnapLine[];
1503
1495
  originSnapOffset: {
@@ -1521,9 +1513,9 @@ export declare const actionLoadScene: {
1521
1513
  files: import("../types").BinaryFiles;
1522
1514
  captureUpdate: "EVENTUALLY";
1523
1515
  }>;
1524
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1516
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1525
1517
  } & {
1526
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1518
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1527
1519
  };
1528
1520
  export declare const actionExportWithDarkMode: {
1529
1521
  name: "exportWithDarkMode";
@@ -1553,7 +1545,7 @@ export declare const actionExportWithDarkMode: {
1553
1545
  errorMessage: import("react").ReactNode;
1554
1546
  activeEmbeddable: {
1555
1547
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1556
- state: "hover" | "active";
1548
+ state: "active" | "hover";
1557
1549
  } | null;
1558
1550
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1559
1551
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1572,7 +1564,6 @@ export declare const actionExportWithDarkMode: {
1572
1564
  editingFrame: string | null;
1573
1565
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1574
1566
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1575
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1576
1567
  activeTool: {
1577
1568
  lastActiveTool: import("../types").ActiveTool | null;
1578
1569
  locked: boolean;
@@ -1597,7 +1588,7 @@ export declare const actionExportWithDarkMode: {
1597
1588
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1598
1589
  currentHoveredFontFamily: number | null;
1599
1590
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1600
- currentItemArrowType: "sharp" | "round" | "elbow";
1591
+ currentItemArrowType: "round" | "sharp" | "elbow";
1601
1592
  viewBackgroundColor: string;
1602
1593
  scrollX: number;
1603
1594
  scrollY: number;
@@ -1619,7 +1610,7 @@ export declare const actionExportWithDarkMode: {
1619
1610
  name: "imageExport" | "help" | "jsonExport";
1620
1611
  } | {
1621
1612
  name: "ttd";
1622
- tab: "text-to-diagram" | "mermaid";
1613
+ tab: "mermaid" | "text-to-diagram";
1623
1614
  } | {
1624
1615
  name: "commandPalette";
1625
1616
  } | {
@@ -1691,7 +1682,7 @@ export declare const actionExportWithDarkMode: {
1691
1682
  shown: true;
1692
1683
  data: import("../charts").Spreadsheet;
1693
1684
  };
1694
- showHyperlinkPopup: false | "info" | "editor";
1685
+ showHyperlinkPopup: false | "editor" | "info";
1695
1686
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1696
1687
  snapLines: readonly import("../snapping").SnapLine[];
1697
1688
  originSnapOffset: {