@excalidraw/excalidraw 0.18.0-864353b → 0.18.0-9036812b6

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 (113) hide show
  1. package/dist/dev/{chunk-BBNNHA7I.js → chunk-CP5DND7P.js} +2 -2
  2. package/dist/dev/{chunk-BBNNHA7I.js.map → chunk-CP5DND7P.js.map} +1 -1
  3. package/dist/dev/chunk-FRLWKCNE.js +5668 -0
  4. package/dist/dev/chunk-FRLWKCNE.js.map +7 -0
  5. package/dist/dev/{chunk-7YMZV3TY.js → chunk-QF5FRM6O.js} +2 -2
  6. package/dist/dev/{chunk-7YMZV3TY.js.map → chunk-QF5FRM6O.js.map} +2 -2
  7. package/dist/dev/data/{image-OFYK7EOY.js → image-T2LJEHDP.js} +3 -3
  8. package/dist/dev/index.css +4 -0
  9. package/dist/dev/index.css.map +2 -2
  10. package/dist/dev/index.js +6280 -4106
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-KIY5SGI3.js → en-SMAPCEOQ.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/{chunk-UH6Q3EIV.js → chunk-A66AFZZU.js} +1 -1
  16. package/dist/prod/{chunk-OUULIERA.js → chunk-I4UNSFV6.js} +3 -3
  17. package/dist/prod/chunk-YZO7PSYQ.js +4 -0
  18. package/dist/prod/data/image-53OPA26C.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +25 -18
  21. package/dist/prod/locales/{en-GCLCIHXH.js → en-TYY6KWIJ.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +12 -2
  25. package/dist/types/common/src/utils.d.ts +3 -5
  26. package/dist/types/element/src/Scene.d.ts +1 -1
  27. package/dist/types/element/src/align.d.ts +2 -1
  28. package/dist/types/element/src/binding.d.ts +10 -7
  29. package/dist/types/element/src/bounds.d.ts +11 -3
  30. package/dist/types/element/src/collision.d.ts +18 -12
  31. package/dist/types/element/src/cropElement.d.ts +1 -1
  32. package/dist/types/element/src/delta.d.ts +37 -8
  33. package/dist/types/element/src/distance.d.ts +2 -2
  34. package/dist/types/element/src/distribute.d.ts +2 -1
  35. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  36. package/dist/types/element/src/frame.d.ts +2 -2
  37. package/dist/types/element/src/groups.d.ts +1 -0
  38. package/dist/types/element/src/index.d.ts +1 -3
  39. package/dist/types/element/src/linearElementEditor.d.ts +5 -7
  40. package/dist/types/element/src/mutateElement.d.ts +1 -1
  41. package/dist/types/element/src/resizeElements.d.ts +1 -0
  42. package/dist/types/element/src/selection.d.ts +1 -1
  43. package/dist/types/element/src/shape.d.ts +42 -0
  44. package/dist/types/element/src/store.d.ts +13 -8
  45. package/dist/types/element/src/transformHandles.d.ts +4 -4
  46. package/dist/types/element/src/typeChecks.d.ts +4 -0
  47. package/dist/types/element/src/types.d.ts +1 -1
  48. package/dist/types/element/src/utils.d.ts +16 -6
  49. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +9 -15
  50. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  51. package/dist/types/excalidraw/actions/actionBoundText.d.ts +6 -10
  52. package/dist/types/excalidraw/actions/actionCanvas.d.ts +129 -155
  53. package/dist/types/excalidraw/actions/actionClipboard.d.ts +25 -36
  54. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +3 -5
  55. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +14 -20
  56. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  57. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  58. package/dist/types/excalidraw/actions/actionElementLink.d.ts +2 -4
  59. package/dist/types/excalidraw/actions/actionElementLock.d.ts +8 -12
  60. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +3 -5
  61. package/dist/types/excalidraw/actions/actionExport.d.ts +112 -130
  62. package/dist/types/excalidraw/actions/actionFinalize.d.ts +9 -12
  63. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  64. package/dist/types/excalidraw/actions/actionFrame.d.ts +62 -70
  65. package/dist/types/excalidraw/actions/actionGroup.d.ts +12 -16
  66. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +84 -55
  67. package/dist/types/excalidraw/actions/actionLink.d.ts +4 -6
  68. package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -16
  69. package/dist/types/excalidraw/actions/actionNavigate.d.ts +6 -10
  70. package/dist/types/excalidraw/actions/actionProperties.d.ts +49 -79
  71. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +6 -8
  72. package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -9
  73. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -7
  74. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -7
  75. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +4 -6
  76. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -7
  77. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -7
  78. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -7
  79. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  80. package/dist/types/excalidraw/appState.d.ts +20 -20
  81. package/dist/types/excalidraw/components/Actions.d.ts +0 -4
  82. package/dist/types/excalidraw/components/App.d.ts +14 -16
  83. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  84. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  85. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  86. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  87. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  88. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  89. package/dist/types/excalidraw/history.d.ts +21 -5
  90. package/dist/types/excalidraw/index.d.ts +1 -0
  91. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  92. package/dist/types/excalidraw/renderer/helpers.d.ts +3 -3
  93. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  94. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  95. package/dist/types/excalidraw/types.d.ts +6 -8
  96. package/dist/types/math/src/constants.d.ts +3 -0
  97. package/dist/types/math/src/curve.d.ts +32 -0
  98. package/dist/types/math/src/index.d.ts +1 -0
  99. package/dist/types/math/src/rectangle.d.ts +2 -0
  100. package/dist/types/math/src/vector.d.ts +4 -2
  101. package/history.ts +108 -45
  102. package/package.json +12 -9
  103. package/dist/dev/chunk-LL55DS44.js +0 -23677
  104. package/dist/dev/chunk-LL55DS44.js.map +0 -7
  105. package/dist/prod/chunk-F44EGBV2.js +0 -33
  106. package/dist/prod/data/image-CUOH64HE.js +0 -1
  107. package/dist/types/element/src/Shape.d.ts +0 -17
  108. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  109. package/dist/types/element/src/shapes.d.ts +0 -27
  110. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  111. package/dist/types/utils/src/collision.d.ts +0 -8
  112. /package/dist/dev/data/{image-OFYK7EOY.js.map → image-T2LJEHDP.js.map} +0 -0
  113. /package/dist/dev/locales/{en-KIY5SGI3.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -18,7 +18,7 @@ export declare const actionChangeProjectName: {
18
18
  errorMessage: import("react").ReactNode;
19
19
  activeEmbeddable: {
20
20
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "hover" | "active";
21
+ state: "active" | "hover";
22
22
  } | null;
23
23
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
24
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -37,7 +37,6 @@ export declare const actionChangeProjectName: {
37
37
  editingFrame: string | null;
38
38
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
39
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
40
  activeTool: {
42
41
  lastActiveTool: import("../types").ActiveTool | null;
43
42
  locked: boolean;
@@ -84,7 +83,7 @@ export declare const actionChangeProjectName: {
84
83
  name: "imageExport" | "help" | "jsonExport";
85
84
  } | {
86
85
  name: "ttd";
87
- tab: "text-to-diagram" | "mermaid";
86
+ tab: "mermaid" | "text-to-diagram";
88
87
  } | {
89
88
  name: "commandPalette";
90
89
  } | {
@@ -156,8 +155,7 @@ export declare const actionChangeProjectName: {
156
155
  shown: true;
157
156
  data: import("../charts").Spreadsheet;
158
157
  };
159
- pendingImageElementId: string | null;
160
- showHyperlinkPopup: false | "info" | "editor";
158
+ showHyperlinkPopup: false | "editor" | "info";
161
159
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
160
  snapLines: readonly import("../snapping").SnapLine[];
163
161
  originSnapOffset: {
@@ -204,7 +202,7 @@ export declare const actionChangeExportScale: {
204
202
  errorMessage: import("react").ReactNode;
205
203
  activeEmbeddable: {
206
204
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
207
- state: "hover" | "active";
205
+ state: "active" | "hover";
208
206
  } | null;
209
207
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
210
208
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -223,7 +221,6 @@ export declare const actionChangeExportScale: {
223
221
  editingFrame: string | null;
224
222
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
225
223
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
226
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
227
224
  activeTool: {
228
225
  lastActiveTool: import("../types").ActiveTool | null;
229
226
  locked: boolean;
@@ -270,7 +267,7 @@ export declare const actionChangeExportScale: {
270
267
  name: "imageExport" | "help" | "jsonExport";
271
268
  } | {
272
269
  name: "ttd";
273
- tab: "text-to-diagram" | "mermaid";
270
+ tab: "mermaid" | "text-to-diagram";
274
271
  } | {
275
272
  name: "commandPalette";
276
273
  } | {
@@ -342,8 +339,7 @@ export declare const actionChangeExportScale: {
342
339
  shown: true;
343
340
  data: import("../charts").Spreadsheet;
344
341
  };
345
- pendingImageElementId: string | null;
346
- showHyperlinkPopup: false | "info" | "editor";
342
+ showHyperlinkPopup: false | "editor" | "info";
347
343
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
348
344
  snapLines: readonly import("../snapping").SnapLine[];
349
345
  originSnapOffset: {
@@ -390,7 +386,7 @@ export declare const actionChangeExportBackground: {
390
386
  errorMessage: import("react").ReactNode;
391
387
  activeEmbeddable: {
392
388
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
393
- state: "hover" | "active";
389
+ state: "active" | "hover";
394
390
  } | null;
395
391
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
396
392
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -409,7 +405,6 @@ export declare const actionChangeExportBackground: {
409
405
  editingFrame: string | null;
410
406
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
411
407
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
412
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
413
408
  activeTool: {
414
409
  lastActiveTool: import("../types").ActiveTool | null;
415
410
  locked: boolean;
@@ -456,7 +451,7 @@ export declare const actionChangeExportBackground: {
456
451
  name: "imageExport" | "help" | "jsonExport";
457
452
  } | {
458
453
  name: "ttd";
459
- tab: "text-to-diagram" | "mermaid";
454
+ tab: "mermaid" | "text-to-diagram";
460
455
  } | {
461
456
  name: "commandPalette";
462
457
  } | {
@@ -528,8 +523,7 @@ export declare const actionChangeExportBackground: {
528
523
  shown: true;
529
524
  data: import("../charts").Spreadsheet;
530
525
  };
531
- pendingImageElementId: string | null;
532
- showHyperlinkPopup: false | "info" | "editor";
526
+ showHyperlinkPopup: false | "editor" | "info";
533
527
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
534
528
  snapLines: readonly import("../snapping").SnapLine[];
535
529
  originSnapOffset: {
@@ -576,7 +570,7 @@ export declare const actionChangeExportEmbedScene: {
576
570
  errorMessage: import("react").ReactNode;
577
571
  activeEmbeddable: {
578
572
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
579
- state: "hover" | "active";
573
+ state: "active" | "hover";
580
574
  } | null;
581
575
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
582
576
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -595,7 +589,6 @@ export declare const actionChangeExportEmbedScene: {
595
589
  editingFrame: string | null;
596
590
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
597
591
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
598
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
599
592
  activeTool: {
600
593
  lastActiveTool: import("../types").ActiveTool | null;
601
594
  locked: boolean;
@@ -642,7 +635,7 @@ export declare const actionChangeExportEmbedScene: {
642
635
  name: "imageExport" | "help" | "jsonExport";
643
636
  } | {
644
637
  name: "ttd";
645
- tab: "text-to-diagram" | "mermaid";
638
+ tab: "mermaid" | "text-to-diagram";
646
639
  } | {
647
640
  name: "commandPalette";
648
641
  } | {
@@ -714,8 +707,7 @@ export declare const actionChangeExportEmbedScene: {
714
707
  shown: true;
715
708
  data: import("../charts").Spreadsheet;
716
709
  };
717
- pendingImageElementId: string | null;
718
- showHyperlinkPopup: false | "info" | "editor";
710
+ showHyperlinkPopup: false | "editor" | "info";
719
711
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
720
712
  snapLines: readonly import("../snapping").SnapLine[];
721
713
  originSnapOffset: {
@@ -767,7 +759,7 @@ export declare const actionSaveToActiveFile: {
767
759
  errorMessage: import("react").ReactNode;
768
760
  activeEmbeddable: {
769
761
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
770
- state: "hover" | "active";
762
+ state: "active" | "hover";
771
763
  } | null;
772
764
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
773
765
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -786,7 +778,6 @@ export declare const actionSaveToActiveFile: {
786
778
  editingFrame: string | null;
787
779
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
788
780
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
789
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
790
781
  activeTool: {
791
782
  lastActiveTool: import("../types").ActiveTool | null;
792
783
  locked: boolean;
@@ -834,7 +825,7 @@ export declare const actionSaveToActiveFile: {
834
825
  name: "imageExport" | "help" | "jsonExport";
835
826
  } | {
836
827
  name: "ttd";
837
- tab: "text-to-diagram" | "mermaid";
828
+ tab: "mermaid" | "text-to-diagram";
838
829
  } | {
839
830
  name: "commandPalette";
840
831
  } | {
@@ -900,8 +891,7 @@ export declare const actionSaveToActiveFile: {
900
891
  shown: true;
901
892
  data: import("../charts").Spreadsheet;
902
893
  };
903
- pendingImageElementId: string | null;
904
- showHyperlinkPopup: false | "info" | "editor";
894
+ showHyperlinkPopup: false | "editor" | "info";
905
895
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
906
896
  snapLines: readonly import("../snapping").SnapLine[];
907
897
  originSnapOffset: {
@@ -926,9 +916,9 @@ export declare const actionSaveToActiveFile: {
926
916
  captureUpdate: "EVENTUALLY";
927
917
  appState?: undefined;
928
918
  }>;
929
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
919
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
930
920
  } & {
931
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
921
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
932
922
  };
933
923
  export declare const actionSaveFileToDisk: {
934
924
  name: "saveFileToDisk";
@@ -956,7 +946,7 @@ export declare const actionSaveFileToDisk: {
956
946
  errorMessage: import("react").ReactNode;
957
947
  activeEmbeddable: {
958
948
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
959
- state: "hover" | "active";
949
+ state: "active" | "hover";
960
950
  } | null;
961
951
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
962
952
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -975,7 +965,6 @@ export declare const actionSaveFileToDisk: {
975
965
  editingFrame: string | null;
976
966
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
977
967
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
978
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
979
968
  activeTool: {
980
969
  lastActiveTool: import("../types").ActiveTool | null;
981
970
  locked: boolean;
@@ -1078,8 +1067,7 @@ export declare const actionSaveFileToDisk: {
1078
1067
  shown: true;
1079
1068
  data: import("../charts").Spreadsheet;
1080
1069
  };
1081
- pendingImageElementId: string | null;
1082
- showHyperlinkPopup: false | "info" | "editor";
1070
+ showHyperlinkPopup: false | "editor" | "info";
1083
1071
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1084
1072
  snapLines: readonly import("../snapping").SnapLine[];
1085
1073
  originSnapOffset: {
@@ -1104,10 +1092,10 @@ export declare const actionSaveFileToDisk: {
1104
1092
  captureUpdate: "EVENTUALLY";
1105
1093
  appState?: undefined;
1106
1094
  }>;
1107
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1095
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1108
1096
  PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1109
1097
  } & {
1110
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1098
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1111
1099
  };
1112
1100
  export declare const actionLoadScene: {
1113
1101
  name: "loadScene";
@@ -1119,44 +1107,93 @@ export declare const actionLoadScene: {
1119
1107
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1120
1108
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1121
1109
  appState: {
1110
+ viewBackgroundColor: string;
1111
+ frameRendering: {
1112
+ enabled: boolean;
1113
+ name: boolean;
1114
+ outline: boolean;
1115
+ clip: boolean;
1116
+ };
1117
+ name: string | null;
1118
+ zoom: Readonly<{
1119
+ value: import("../types").NormalizedZoomValue;
1120
+ }>;
1121
+ scrollX: number;
1122
+ scrollY: number;
1123
+ viewModeEnabled: boolean;
1124
+ openDialog: {
1125
+ name: "imageExport" | "help" | "jsonExport";
1126
+ } | {
1127
+ name: "ttd";
1128
+ tab: "mermaid" | "text-to-diagram";
1129
+ } | {
1130
+ name: "commandPalette";
1131
+ } | {
1132
+ name: "elementLinkSelector";
1133
+ sourceElementId: string;
1134
+ } | null;
1135
+ editingGroupId: string | null;
1136
+ selectedElementIds: Readonly<{
1137
+ [id: string]: true;
1138
+ }>;
1139
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1140
+ theme: Theme;
1141
+ activeEmbeddable: {
1142
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1143
+ state: "active" | "hover";
1144
+ } | null;
1145
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1146
+ selectedGroupIds: {
1147
+ [groupId: string]: boolean;
1148
+ };
1149
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1150
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1151
+ isBindingEnabled: boolean;
1152
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1153
+ isRotating: boolean;
1154
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1155
+ collaborators: Map<import("../types").SocketId, Readonly<{
1156
+ pointer?: import("../types").CollaboratorPointer | undefined;
1157
+ button?: "up" | "down" | undefined;
1158
+ selectedElementIds?: Readonly<{
1159
+ [id: string]: true;
1160
+ }> | undefined;
1161
+ username?: string | null | undefined;
1162
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1163
+ color?: {
1164
+ background: string;
1165
+ stroke: string;
1166
+ } | undefined;
1167
+ avatarUrl?: string | undefined;
1168
+ id?: string | undefined;
1169
+ socketId?: import("../types").SocketId | undefined;
1170
+ isCurrentUser?: boolean | undefined;
1171
+ isInCall?: boolean | undefined;
1172
+ isSpeaking?: boolean | undefined;
1173
+ isMuted?: boolean | undefined;
1174
+ }>>;
1175
+ snapLines: readonly import("../snapping").SnapLine[];
1176
+ zenModeEnabled: boolean;
1177
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1178
+ isCropping: boolean;
1179
+ croppingElementId: string | null;
1180
+ searchMatches: Readonly<{
1181
+ focusedId: string | null;
1182
+ matches: readonly import("../types").SearchMatch[];
1183
+ }> | null;
1184
+ activeLockedId: string | null;
1122
1185
  contextMenu: {
1123
1186
  items: import("../components/ContextMenu").ContextMenuItems;
1124
1187
  top: number;
1125
1188
  left: number;
1126
1189
  } | null;
1127
- stats: {
1128
- open: boolean;
1129
- panels: number;
1130
- };
1131
- exportWithDarkMode: boolean;
1132
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1133
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1134
- cursorButton: "up" | "down";
1135
- scrollX: number;
1136
- scrollY: number;
1137
1190
  showWelcomeScreen: boolean;
1138
1191
  isLoading: boolean;
1139
1192
  errorMessage: import("react").ReactNode;
1140
- activeEmbeddable: {
1141
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1142
- state: "hover" | "active";
1143
- } | null;
1144
1193
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1145
1194
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1146
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1147
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1148
- isBindingEnabled: boolean;
1149
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1150
- frameRendering: {
1151
- enabled: boolean;
1152
- name: boolean;
1153
- outline: boolean;
1154
- clip: boolean;
1155
- };
1195
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1156
1196
  editingFrame: string | null;
1157
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1158
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1159
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1160
1197
  activeTool: {
1161
1198
  lastActiveTool: import("../types").ActiveTool | null;
1162
1199
  locked: boolean;
@@ -1166,6 +1203,7 @@ export declare const actionLoadScene: {
1166
1203
  penDetected: boolean;
1167
1204
  exportBackground: boolean;
1168
1205
  exportEmbedScene: boolean;
1206
+ exportWithDarkMode: boolean;
1169
1207
  exportScale: number;
1170
1208
  currentItemStrokeColor: string;
1171
1209
  currentItemBackgroundColor: string;
@@ -1182,36 +1220,17 @@ export declare const actionLoadScene: {
1182
1220
  currentHoveredFontFamily: number | null;
1183
1221
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1184
1222
  currentItemArrowType: "round" | "sharp" | "elbow";
1185
- viewBackgroundColor: string;
1223
+ cursorButton: "up" | "down";
1186
1224
  scrolledOutside: boolean;
1187
- name: string | null;
1188
1225
  isResizing: boolean;
1189
- isRotating: boolean;
1190
- zoom: Readonly<{
1191
- value: import("../types").NormalizedZoomValue;
1192
- }>;
1193
1226
  openMenu: "canvas" | "shape" | null;
1194
1227
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1195
1228
  openSidebar: {
1196
1229
  name: string;
1197
1230
  tab?: string | undefined;
1198
1231
  } | null;
1199
- openDialog: {
1200
- name: "imageExport" | "help" | "jsonExport";
1201
- } | {
1202
- name: "ttd";
1203
- tab: "text-to-diagram" | "mermaid";
1204
- } | {
1205
- name: "commandPalette";
1206
- } | {
1207
- name: "elementLinkSelector";
1208
- sourceElementId: string;
1209
- } | null;
1210
1232
  defaultSidebarDockedPreference: boolean;
1211
1233
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1212
- selectedElementIds: Readonly<{
1213
- [id: string]: true;
1214
- }>;
1215
1234
  hoveredElementIds: Readonly<{
1216
1235
  [id: string]: true;
1217
1236
  }>;
@@ -1225,37 +1244,14 @@ export declare const actionLoadScene: {
1225
1244
  closable?: boolean | undefined;
1226
1245
  duration?: number | undefined;
1227
1246
  } | null;
1228
- zenModeEnabled: boolean;
1229
- theme: Theme;
1230
1247
  gridSize: number;
1231
1248
  gridStep: number;
1232
1249
  gridModeEnabled: boolean;
1233
- viewModeEnabled: boolean;
1234
- selectedGroupIds: {
1235
- [groupId: string]: boolean;
1236
- };
1237
- editingGroupId: string | null;
1238
1250
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1239
- collaborators: Map<import("../types").SocketId, Readonly<{
1240
- pointer?: import("../types").CollaboratorPointer | undefined;
1241
- button?: "up" | "down" | undefined;
1242
- selectedElementIds?: Readonly<{
1243
- [id: string]: true;
1244
- }> | undefined;
1245
- username?: string | null | undefined;
1246
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1247
- color?: {
1248
- background: string;
1249
- stroke: string;
1250
- } | undefined;
1251
- avatarUrl?: string | undefined;
1252
- id?: string | undefined;
1253
- socketId?: import("../types").SocketId | undefined;
1254
- isCurrentUser?: boolean | undefined;
1255
- isInCall?: boolean | undefined;
1256
- isSpeaking?: boolean | undefined;
1257
- isMuted?: boolean | undefined;
1258
- }>>;
1251
+ stats: {
1252
+ open: boolean;
1253
+ panels: number;
1254
+ };
1259
1255
  currentChartType: import("@excalidraw/element/types").ChartType;
1260
1256
  pasteDialog: {
1261
1257
  shown: false;
@@ -1264,10 +1260,7 @@ export declare const actionLoadScene: {
1264
1260
  shown: true;
1265
1261
  data: import("../charts").Spreadsheet;
1266
1262
  };
1267
- pendingImageElementId: string | null;
1268
- showHyperlinkPopup: false | "info" | "editor";
1269
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1270
- snapLines: readonly import("../snapping").SnapLine[];
1263
+ showHyperlinkPopup: false | "editor" | "info";
1271
1264
  originSnapOffset: {
1272
1265
  x: number;
1273
1266
  y: number;
@@ -1275,13 +1268,6 @@ export declare const actionLoadScene: {
1275
1268
  objectsSnapModeEnabled: boolean;
1276
1269
  userToFollow: import("../types").UserToFollow | null;
1277
1270
  followedBy: Set<import("../types").SocketId>;
1278
- isCropping: boolean;
1279
- croppingElementId: string | null;
1280
- searchMatches: Readonly<{
1281
- focusedId: string | null;
1282
- matches: readonly import("../types").SearchMatch[];
1283
- }> | null;
1284
- activeLockedId: string | null;
1285
1271
  lockedMultiSelections: {
1286
1272
  [groupId: string]: true;
1287
1273
  };
@@ -1301,7 +1287,7 @@ export declare const actionLoadScene: {
1301
1287
  isLoading: boolean;
1302
1288
  activeEmbeddable: {
1303
1289
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1304
- state: "hover" | "active";
1290
+ state: "active" | "hover";
1305
1291
  } | null;
1306
1292
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1307
1293
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1320,7 +1306,6 @@ export declare const actionLoadScene: {
1320
1306
  editingFrame: string | null;
1321
1307
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1322
1308
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1323
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1324
1309
  activeTool: {
1325
1310
  lastActiveTool: import("../types").ActiveTool | null;
1326
1311
  locked: boolean;
@@ -1368,7 +1353,7 @@ export declare const actionLoadScene: {
1368
1353
  name: "imageExport" | "help" | "jsonExport";
1369
1354
  } | {
1370
1355
  name: "ttd";
1371
- tab: "text-to-diagram" | "mermaid";
1356
+ tab: "mermaid" | "text-to-diagram";
1372
1357
  } | {
1373
1358
  name: "commandPalette";
1374
1359
  } | {
@@ -1440,8 +1425,7 @@ export declare const actionLoadScene: {
1440
1425
  shown: true;
1441
1426
  data: import("../charts").Spreadsheet;
1442
1427
  };
1443
- pendingImageElementId: string | null;
1444
- showHyperlinkPopup: false | "info" | "editor";
1428
+ showHyperlinkPopup: false | "editor" | "info";
1445
1429
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1446
1430
  snapLines: readonly import("../snapping").SnapLine[];
1447
1431
  originSnapOffset: {
@@ -1465,9 +1449,9 @@ export declare const actionLoadScene: {
1465
1449
  files: import("../types").BinaryFiles;
1466
1450
  captureUpdate: "EVENTUALLY";
1467
1451
  }>;
1468
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1452
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1469
1453
  } & {
1470
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1454
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1471
1455
  };
1472
1456
  export declare const actionExportWithDarkMode: {
1473
1457
  name: "exportWithDarkMode";
@@ -1489,7 +1473,7 @@ export declare const actionExportWithDarkMode: {
1489
1473
  errorMessage: import("react").ReactNode;
1490
1474
  activeEmbeddable: {
1491
1475
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1492
- state: "hover" | "active";
1476
+ state: "active" | "hover";
1493
1477
  } | null;
1494
1478
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1495
1479
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1508,7 +1492,6 @@ export declare const actionExportWithDarkMode: {
1508
1492
  editingFrame: string | null;
1509
1493
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1510
1494
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1511
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1512
1495
  activeTool: {
1513
1496
  lastActiveTool: import("../types").ActiveTool | null;
1514
1497
  locked: boolean;
@@ -1555,7 +1538,7 @@ export declare const actionExportWithDarkMode: {
1555
1538
  name: "imageExport" | "help" | "jsonExport";
1556
1539
  } | {
1557
1540
  name: "ttd";
1558
- tab: "text-to-diagram" | "mermaid";
1541
+ tab: "mermaid" | "text-to-diagram";
1559
1542
  } | {
1560
1543
  name: "commandPalette";
1561
1544
  } | {
@@ -1627,8 +1610,7 @@ export declare const actionExportWithDarkMode: {
1627
1610
  shown: true;
1628
1611
  data: import("../charts").Spreadsheet;
1629
1612
  };
1630
- pendingImageElementId: string | null;
1631
- showHyperlinkPopup: false | "info" | "editor";
1613
+ showHyperlinkPopup: false | "editor" | "info";
1632
1614
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1633
1615
  snapLines: readonly import("../snapping").SnapLine[];
1634
1616
  originSnapOffset: {
@@ -41,6 +41,7 @@ export declare const actionFinalize: {
41
41
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
42
42
  elbowed: boolean;
43
43
  customLineAngle: number | null;
44
+ isEditing: boolean;
44
45
  };
45
46
  suggestedBindings: never[];
46
47
  };
@@ -49,7 +50,7 @@ export declare const actionFinalize: {
49
50
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
50
51
  appState: {
51
52
  cursorButton: "up";
52
- editingLinearElement: null;
53
+ selectedLinearElement: LinearElementEditor;
53
54
  contextMenu: {
54
55
  items: import("../components/ContextMenu").ContextMenuItems;
55
56
  top: number;
@@ -60,7 +61,7 @@ export declare const actionFinalize: {
60
61
  errorMessage: import("react").ReactNode;
61
62
  activeEmbeddable: {
62
63
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
63
- state: "hover" | "active";
64
+ state: "active" | "hover";
64
65
  } | null;
65
66
  newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
66
67
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -125,7 +126,7 @@ export declare const actionFinalize: {
125
126
  name: "imageExport" | "help" | "jsonExport";
126
127
  } | {
127
128
  name: "ttd";
128
- tab: "text-to-diagram" | "mermaid";
129
+ tab: "mermaid" | "text-to-diagram";
129
130
  } | {
130
131
  name: "commandPalette";
131
132
  } | {
@@ -197,9 +198,7 @@ export declare const actionFinalize: {
197
198
  shown: true;
198
199
  data: import("../charts").Spreadsheet;
199
200
  };
200
- pendingImageElementId: string | null;
201
- showHyperlinkPopup: false | "info" | "editor";
202
- selectedLinearElement: LinearElementEditor | null;
201
+ showHyperlinkPopup: false | "editor" | "info";
203
202
  snapLines: readonly import("../snapping").SnapLine[];
204
203
  originSnapOffset: {
205
204
  x: number;
@@ -240,7 +239,6 @@ export declare const actionFinalize: {
240
239
  [id: string]: true;
241
240
  }>;
242
241
  selectedLinearElement: LinearElementEditor | null;
243
- pendingImageElementId: null;
244
242
  contextMenu: {
245
243
  items: import("../components/ContextMenu").ContextMenuItems;
246
244
  top: number;
@@ -260,7 +258,6 @@ export declare const actionFinalize: {
260
258
  };
261
259
  editingFrame: string | null;
262
260
  elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
263
- editingLinearElement: LinearElementEditor | null;
264
261
  penMode: boolean;
265
262
  penDetected: boolean;
266
263
  exportBackground: boolean;
@@ -302,7 +299,7 @@ export declare const actionFinalize: {
302
299
  name: "imageExport" | "help" | "jsonExport";
303
300
  } | {
304
301
  name: "ttd";
305
- tab: "text-to-diagram" | "mermaid";
302
+ tab: "mermaid" | "text-to-diagram";
306
303
  } | {
307
304
  name: "commandPalette";
308
305
  } | {
@@ -371,7 +368,7 @@ export declare const actionFinalize: {
371
368
  shown: true;
372
369
  data: import("../charts").Spreadsheet;
373
370
  };
374
- showHyperlinkPopup: false | "info" | "editor";
371
+ showHyperlinkPopup: false | "editor" | "info";
375
372
  snapLines: readonly import("../snapping").SnapLine[];
376
373
  originSnapOffset: {
377
374
  x: number;
@@ -393,8 +390,8 @@ export declare const actionFinalize: {
393
390
  };
394
391
  captureUpdate: "IMMEDIATELY";
395
392
  };
396
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
393
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
397
394
  PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
398
395
  } & {
399
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
396
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
400
397
  };
@@ -13,9 +13,9 @@ export declare const actionFlipHorizontal: {
13
13
  appState: Readonly<AppState>;
14
14
  captureUpdate: "IMMEDIATELY";
15
15
  };
16
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
16
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
17
17
  } & {
18
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
18
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
19
19
  };
20
20
  export declare const actionFlipVertical: {
21
21
  name: "flipVertical";
@@ -29,7 +29,7 @@ export declare const actionFlipVertical: {
29
29
  appState: Readonly<AppState>;
30
30
  captureUpdate: "IMMEDIATELY";
31
31
  };
32
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
32
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
33
33
  } & {
34
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
34
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
35
35
  };