@excalidraw/math 0.18.0-2874f9e → 0.18.0-2b0e4c9

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 (87) hide show
  1. package/dist/types/common/src/appEventBus.d.ts +27 -0
  2. package/dist/types/common/src/colors.d.ts +1 -1
  3. package/dist/types/common/src/index.d.ts +2 -0
  4. package/dist/types/common/src/utils.d.ts +1 -3
  5. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  6. package/dist/types/element/src/Scene.d.ts +2 -0
  7. package/dist/types/element/src/arrowheads.d.ts +3 -0
  8. package/dist/types/element/src/binding.d.ts +3 -4
  9. package/dist/types/element/src/bounds.d.ts +1 -1
  10. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  11. package/dist/types/element/src/index.d.ts +1 -0
  12. package/dist/types/element/src/linearElementEditor.d.ts +3 -0
  13. package/dist/types/element/src/mutateElement.d.ts +2 -0
  14. package/dist/types/element/src/types.d.ts +5 -2
  15. package/dist/types/element/src/utils.d.ts +1 -1
  16. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +23 -29
  17. package/dist/types/excalidraw/actions/actionBoundText.d.ts +16 -20
  18. package/dist/types/excalidraw/actions/actionCanvas.d.ts +96 -120
  19. package/dist/types/excalidraw/actions/actionClipboard.d.ts +16 -20
  20. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +8 -10
  21. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +24 -30
  22. package/dist/types/excalidraw/actions/actionElementLink.d.ts +4 -10
  23. package/dist/types/excalidraw/actions/actionElementLock.d.ts +16 -20
  24. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +8 -10
  25. package/dist/types/excalidraw/actions/actionExport.d.ts +59 -343
  26. package/dist/types/excalidraw/actions/actionFrame.d.ts +32 -40
  27. package/dist/types/excalidraw/actions/actionGroup.d.ts +16 -20
  28. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -10
  29. package/dist/types/excalidraw/actions/actionLink.d.ts +8 -10
  30. package/dist/types/excalidraw/actions/actionMenu.d.ts +4 -10
  31. package/dist/types/excalidraw/actions/actionProperties.d.ts +16 -20
  32. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +8 -10
  33. package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -9
  34. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
  35. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +8 -10
  36. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  37. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +8 -10
  38. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +4 -10
  39. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +8 -10
  40. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +8 -10
  41. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +8 -10
  42. package/dist/types/excalidraw/actions/index.d.ts +2 -0
  43. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  44. package/dist/types/excalidraw/appState.d.ts +3 -1
  45. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  46. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  47. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  48. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  49. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  50. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  51. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  52. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  53. package/dist/types/excalidraw/clipboard.d.ts +2 -5
  54. package/dist/types/excalidraw/components/App.d.ts +33 -11
  55. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  56. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  57. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  58. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  59. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  60. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
  61. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  62. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  63. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  64. package/dist/types/excalidraw/components/Toast.d.ts +8 -4
  65. package/dist/types/excalidraw/components/icons.d.ts +17 -8
  66. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -0
  67. package/dist/types/excalidraw/data/blob.d.ts +23 -28
  68. package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
  69. package/dist/types/excalidraw/data/index.d.ts +2 -3
  70. package/dist/types/excalidraw/data/json.d.ts +27 -21
  71. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  72. package/dist/types/excalidraw/types.d.ts +83 -13
  73. package/package.json +2 -2
  74. package/dist/types/excalidraw/charts.d.ts +0 -27
  75. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  76. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  77. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  78. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  79. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
  80. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  81. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
  82. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  83. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  84. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
  85. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  86. package/dist/types/excalidraw/index.d.ts +0 -47
  87. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -28,13 +28,6 @@ export declare const actionClearCanvas: {
28
28
  open: boolean;
29
29
  panels: number;
30
30
  };
31
- pasteDialog: {
32
- shown: false;
33
- data: null;
34
- } | {
35
- shown: true;
36
- data: import("../charts").Spreadsheet;
37
- };
38
31
  activeTool: {
39
32
  lastActiveTool: import("../types").ActiveTool | null;
40
33
  locked: boolean;
@@ -64,6 +57,10 @@ export declare const actionClearCanvas: {
64
57
  } | {
65
58
  name: "elementLinkSelector";
66
59
  sourceElementId: ExcalidrawElement["id"];
60
+ } | {
61
+ name: "charts";
62
+ data: import("../charts").Spreadsheet;
63
+ rawText: string;
67
64
  };
68
65
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
69
66
  selectedElementIds: Readonly<{
@@ -82,6 +79,7 @@ export declare const actionClearCanvas: {
82
79
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
83
80
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
84
81
  isBindingEnabled: boolean;
82
+ isMidpointSnappingEnabled: boolean;
85
83
  suggestedBinding: {
86
84
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
87
85
  midPoint?: import("@excalidraw/math").GlobalPoint;
@@ -115,6 +113,7 @@ export declare const actionClearCanvas: {
115
113
  isLoading: boolean;
116
114
  errorMessage: React.ReactNode;
117
115
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
116
+ bindingPreference: "enabled" | "disabled";
118
117
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
119
118
  editingFrame: string | null;
120
119
  preferredSelectionTool: {
@@ -152,12 +151,11 @@ export declare const actionClearCanvas: {
152
151
  };
153
152
  selectedElementsAreBeingDragged: boolean;
154
153
  toast: {
155
- message: string;
154
+ message: React.ReactNode;
156
155
  closable?: boolean;
157
156
  duration?: number;
158
157
  } | null;
159
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
160
- currentChartType: import("@excalidraw/element/types").ChartType;
158
+ fileHandle: FileSystemFileHandle | null;
161
159
  showHyperlinkPopup: false | "info" | "editor";
162
160
  originSnapOffset: {
163
161
  x: number;
@@ -208,6 +206,8 @@ export declare const actionZoomIn: {
208
206
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
209
207
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
210
208
  isBindingEnabled: boolean;
209
+ bindingPreference: "enabled" | "disabled";
210
+ isMidpointSnappingEnabled: boolean;
211
211
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
212
212
  suggestedBinding: {
213
213
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -277,6 +277,10 @@ export declare const actionZoomIn: {
277
277
  } | {
278
278
  name: "elementLinkSelector";
279
279
  sourceElementId: ExcalidrawElement["id"];
280
+ } | {
281
+ name: "charts";
282
+ data: import("../charts").Spreadsheet;
283
+ rawText: string;
280
284
  };
281
285
  defaultSidebarDockedPreference: boolean;
282
286
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -292,7 +296,7 @@ export declare const actionZoomIn: {
292
296
  selectedElementsAreBeingDragged: boolean;
293
297
  shouldCacheIgnoreZoom: boolean;
294
298
  toast: {
295
- message: string;
299
+ message: React.ReactNode;
296
300
  closable?: boolean;
297
301
  duration?: number;
298
302
  } | null;
@@ -310,20 +314,12 @@ export declare const actionZoomIn: {
310
314
  height: number;
311
315
  offsetTop: number;
312
316
  offsetLeft: number;
313
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
317
+ fileHandle: FileSystemFileHandle | null;
314
318
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
315
319
  stats: {
316
320
  open: boolean;
317
321
  panels: number;
318
322
  };
319
- currentChartType: import("@excalidraw/element/types").ChartType;
320
- pasteDialog: {
321
- shown: false;
322
- data: null;
323
- } | {
324
- shown: true;
325
- data: import("../charts").Spreadsheet;
326
- };
327
323
  showHyperlinkPopup: false | "info" | "editor";
328
324
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
329
325
  snapLines: readonly import("../snapping").SnapLine[];
@@ -385,6 +381,8 @@ export declare const actionZoomOut: {
385
381
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
386
382
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
387
383
  isBindingEnabled: boolean;
384
+ bindingPreference: "enabled" | "disabled";
385
+ isMidpointSnappingEnabled: boolean;
388
386
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
389
387
  suggestedBinding: {
390
388
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -454,6 +452,10 @@ export declare const actionZoomOut: {
454
452
  } | {
455
453
  name: "elementLinkSelector";
456
454
  sourceElementId: ExcalidrawElement["id"];
455
+ } | {
456
+ name: "charts";
457
+ data: import("../charts").Spreadsheet;
458
+ rawText: string;
457
459
  };
458
460
  defaultSidebarDockedPreference: boolean;
459
461
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -469,7 +471,7 @@ export declare const actionZoomOut: {
469
471
  selectedElementsAreBeingDragged: boolean;
470
472
  shouldCacheIgnoreZoom: boolean;
471
473
  toast: {
472
- message: string;
474
+ message: React.ReactNode;
473
475
  closable?: boolean;
474
476
  duration?: number;
475
477
  } | null;
@@ -487,20 +489,12 @@ export declare const actionZoomOut: {
487
489
  height: number;
488
490
  offsetTop: number;
489
491
  offsetLeft: number;
490
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
492
+ fileHandle: FileSystemFileHandle | null;
491
493
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
492
494
  stats: {
493
495
  open: boolean;
494
496
  panels: number;
495
497
  };
496
- currentChartType: import("@excalidraw/element/types").ChartType;
497
- pasteDialog: {
498
- shown: false;
499
- data: null;
500
- } | {
501
- shown: true;
502
- data: import("../charts").Spreadsheet;
503
- };
504
498
  showHyperlinkPopup: false | "info" | "editor";
505
499
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
506
500
  snapLines: readonly import("../snapping").SnapLine[];
@@ -562,6 +556,8 @@ export declare const actionResetZoom: {
562
556
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
563
557
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
564
558
  isBindingEnabled: boolean;
559
+ bindingPreference: "enabled" | "disabled";
560
+ isMidpointSnappingEnabled: boolean;
565
561
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
566
562
  suggestedBinding: {
567
563
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -631,6 +627,10 @@ export declare const actionResetZoom: {
631
627
  } | {
632
628
  name: "elementLinkSelector";
633
629
  sourceElementId: ExcalidrawElement["id"];
630
+ } | {
631
+ name: "charts";
632
+ data: import("../charts").Spreadsheet;
633
+ rawText: string;
634
634
  };
635
635
  defaultSidebarDockedPreference: boolean;
636
636
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -646,7 +646,7 @@ export declare const actionResetZoom: {
646
646
  selectedElementsAreBeingDragged: boolean;
647
647
  shouldCacheIgnoreZoom: boolean;
648
648
  toast: {
649
- message: string;
649
+ message: React.ReactNode;
650
650
  closable?: boolean;
651
651
  duration?: number;
652
652
  } | null;
@@ -664,20 +664,12 @@ export declare const actionResetZoom: {
664
664
  height: number;
665
665
  offsetTop: number;
666
666
  offsetLeft: number;
667
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
667
+ fileHandle: FileSystemFileHandle | null;
668
668
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
669
669
  stats: {
670
670
  open: boolean;
671
671
  panels: number;
672
672
  };
673
- currentChartType: import("@excalidraw/element/types").ChartType;
674
- pasteDialog: {
675
- shown: false;
676
- data: null;
677
- } | {
678
- shown: true;
679
- data: import("../charts").Spreadsheet;
680
- };
681
673
  showHyperlinkPopup: false | "info" | "editor";
682
674
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
683
675
  snapLines: readonly import("../snapping").SnapLine[];
@@ -740,6 +732,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
740
732
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
741
733
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
742
734
  isBindingEnabled: boolean;
735
+ bindingPreference: "enabled" | "disabled";
736
+ isMidpointSnappingEnabled: boolean;
743
737
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
744
738
  suggestedBinding: {
745
739
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -809,6 +803,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
809
803
  } | {
810
804
  name: "elementLinkSelector";
811
805
  sourceElementId: ExcalidrawElement["id"];
806
+ } | {
807
+ name: "charts";
808
+ data: import("../charts").Spreadsheet;
809
+ rawText: string;
812
810
  };
813
811
  defaultSidebarDockedPreference: boolean;
814
812
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -824,7 +822,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
824
822
  selectedElementsAreBeingDragged: boolean;
825
823
  shouldCacheIgnoreZoom: boolean;
826
824
  toast: {
827
- message: string;
825
+ message: React.ReactNode;
828
826
  closable?: boolean;
829
827
  duration?: number;
830
828
  } | null;
@@ -842,20 +840,12 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
842
840
  height: number;
843
841
  offsetTop: number;
844
842
  offsetLeft: number;
845
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
843
+ fileHandle: FileSystemFileHandle | null;
846
844
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
847
845
  stats: {
848
846
  open: boolean;
849
847
  panels: number;
850
848
  };
851
- currentChartType: import("@excalidraw/element/types").ChartType;
852
- pasteDialog: {
853
- shown: false;
854
- data: null;
855
- } | {
856
- shown: true;
857
- data: import("../charts").Spreadsheet;
858
- };
859
849
  showHyperlinkPopup: false | "info" | "editor";
860
850
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
861
851
  snapLines: readonly import("../snapping").SnapLine[];
@@ -914,6 +904,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
914
904
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
915
905
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
916
906
  isBindingEnabled: boolean;
907
+ bindingPreference: "enabled" | "disabled";
908
+ isMidpointSnappingEnabled: boolean;
917
909
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
918
910
  suggestedBinding: {
919
911
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -983,6 +975,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
983
975
  } | {
984
976
  name: "elementLinkSelector";
985
977
  sourceElementId: ExcalidrawElement["id"];
978
+ } | {
979
+ name: "charts";
980
+ data: import("../charts").Spreadsheet;
981
+ rawText: string;
986
982
  };
987
983
  defaultSidebarDockedPreference: boolean;
988
984
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -998,7 +994,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
998
994
  selectedElementsAreBeingDragged: boolean;
999
995
  shouldCacheIgnoreZoom: boolean;
1000
996
  toast: {
1001
- message: string;
997
+ message: React.ReactNode;
1002
998
  closable?: boolean;
1003
999
  duration?: number;
1004
1000
  } | null;
@@ -1016,20 +1012,12 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1016
1012
  height: number;
1017
1013
  offsetTop: number;
1018
1014
  offsetLeft: number;
1019
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1015
+ fileHandle: FileSystemFileHandle | null;
1020
1016
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1021
1017
  stats: {
1022
1018
  open: boolean;
1023
1019
  panels: number;
1024
1020
  };
1025
- currentChartType: import("@excalidraw/element/types").ChartType;
1026
- pasteDialog: {
1027
- shown: false;
1028
- data: null;
1029
- } | {
1030
- shown: true;
1031
- data: import("../charts").Spreadsheet;
1032
- };
1033
1021
  showHyperlinkPopup: false | "info" | "editor";
1034
1022
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1035
1023
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1085,6 +1073,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1085
1073
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1086
1074
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1087
1075
  isBindingEnabled: boolean;
1076
+ bindingPreference: "enabled" | "disabled";
1077
+ isMidpointSnappingEnabled: boolean;
1088
1078
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1089
1079
  suggestedBinding: {
1090
1080
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -1154,6 +1144,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1154
1144
  } | {
1155
1145
  name: "elementLinkSelector";
1156
1146
  sourceElementId: ExcalidrawElement["id"];
1147
+ } | {
1148
+ name: "charts";
1149
+ data: import("../charts").Spreadsheet;
1150
+ rawText: string;
1157
1151
  };
1158
1152
  defaultSidebarDockedPreference: boolean;
1159
1153
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1169,7 +1163,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1169
1163
  selectedElementsAreBeingDragged: boolean;
1170
1164
  shouldCacheIgnoreZoom: boolean;
1171
1165
  toast: {
1172
- message: string;
1166
+ message: React.ReactNode;
1173
1167
  closable?: boolean;
1174
1168
  duration?: number;
1175
1169
  } | null;
@@ -1187,20 +1181,12 @@ export declare const actionZoomToFitSelectionInViewport: {
1187
1181
  height: number;
1188
1182
  offsetTop: number;
1189
1183
  offsetLeft: number;
1190
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1184
+ fileHandle: FileSystemFileHandle | null;
1191
1185
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1192
1186
  stats: {
1193
1187
  open: boolean;
1194
1188
  panels: number;
1195
1189
  };
1196
- currentChartType: import("@excalidraw/element/types").ChartType;
1197
- pasteDialog: {
1198
- shown: false;
1199
- data: null;
1200
- } | {
1201
- shown: true;
1202
- data: import("../charts").Spreadsheet;
1203
- };
1204
1190
  showHyperlinkPopup: false | "info" | "editor";
1205
1191
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1206
1192
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1260,6 +1246,8 @@ export declare const actionZoomToFitSelection: {
1260
1246
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1261
1247
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1262
1248
  isBindingEnabled: boolean;
1249
+ bindingPreference: "enabled" | "disabled";
1250
+ isMidpointSnappingEnabled: boolean;
1263
1251
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1264
1252
  suggestedBinding: {
1265
1253
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -1329,6 +1317,10 @@ export declare const actionZoomToFitSelection: {
1329
1317
  } | {
1330
1318
  name: "elementLinkSelector";
1331
1319
  sourceElementId: ExcalidrawElement["id"];
1320
+ } | {
1321
+ name: "charts";
1322
+ data: import("../charts").Spreadsheet;
1323
+ rawText: string;
1332
1324
  };
1333
1325
  defaultSidebarDockedPreference: boolean;
1334
1326
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1344,7 +1336,7 @@ export declare const actionZoomToFitSelection: {
1344
1336
  selectedElementsAreBeingDragged: boolean;
1345
1337
  shouldCacheIgnoreZoom: boolean;
1346
1338
  toast: {
1347
- message: string;
1339
+ message: React.ReactNode;
1348
1340
  closable?: boolean;
1349
1341
  duration?: number;
1350
1342
  } | null;
@@ -1362,20 +1354,12 @@ export declare const actionZoomToFitSelection: {
1362
1354
  height: number;
1363
1355
  offsetTop: number;
1364
1356
  offsetLeft: number;
1365
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1357
+ fileHandle: FileSystemFileHandle | null;
1366
1358
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1367
1359
  stats: {
1368
1360
  open: boolean;
1369
1361
  panels: number;
1370
1362
  };
1371
- currentChartType: import("@excalidraw/element/types").ChartType;
1372
- pasteDialog: {
1373
- shown: false;
1374
- data: null;
1375
- } | {
1376
- shown: true;
1377
- data: import("../charts").Spreadsheet;
1378
- };
1379
1363
  showHyperlinkPopup: false | "info" | "editor";
1380
1364
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1381
1365
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1436,6 +1420,8 @@ export declare const actionZoomToFit: {
1436
1420
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1437
1421
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1438
1422
  isBindingEnabled: boolean;
1423
+ bindingPreference: "enabled" | "disabled";
1424
+ isMidpointSnappingEnabled: boolean;
1439
1425
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1440
1426
  suggestedBinding: {
1441
1427
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -1505,6 +1491,10 @@ export declare const actionZoomToFit: {
1505
1491
  } | {
1506
1492
  name: "elementLinkSelector";
1507
1493
  sourceElementId: ExcalidrawElement["id"];
1494
+ } | {
1495
+ name: "charts";
1496
+ data: import("../charts").Spreadsheet;
1497
+ rawText: string;
1508
1498
  };
1509
1499
  defaultSidebarDockedPreference: boolean;
1510
1500
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1520,7 +1510,7 @@ export declare const actionZoomToFit: {
1520
1510
  selectedElementsAreBeingDragged: boolean;
1521
1511
  shouldCacheIgnoreZoom: boolean;
1522
1512
  toast: {
1523
- message: string;
1513
+ message: React.ReactNode;
1524
1514
  closable?: boolean;
1525
1515
  duration?: number;
1526
1516
  } | null;
@@ -1538,20 +1528,12 @@ export declare const actionZoomToFit: {
1538
1528
  height: number;
1539
1529
  offsetTop: number;
1540
1530
  offsetLeft: number;
1541
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1531
+ fileHandle: FileSystemFileHandle | null;
1542
1532
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1543
1533
  stats: {
1544
1534
  open: boolean;
1545
1535
  panels: number;
1546
1536
  };
1547
- currentChartType: import("@excalidraw/element/types").ChartType;
1548
- pasteDialog: {
1549
- shown: false;
1550
- data: null;
1551
- } | {
1552
- shown: true;
1553
- data: import("../charts").Spreadsheet;
1554
- };
1555
1537
  showHyperlinkPopup: false | "info" | "editor";
1556
1538
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1557
1539
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1612,6 +1594,8 @@ export declare const actionToggleEraserTool: {
1612
1594
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1613
1595
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1614
1596
  isBindingEnabled: boolean;
1597
+ bindingPreference: "enabled" | "disabled";
1598
+ isMidpointSnappingEnabled: boolean;
1615
1599
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1616
1600
  suggestedBinding: {
1617
1601
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -1679,6 +1663,10 @@ export declare const actionToggleEraserTool: {
1679
1663
  } | {
1680
1664
  name: "elementLinkSelector";
1681
1665
  sourceElementId: ExcalidrawElement["id"];
1666
+ } | {
1667
+ name: "charts";
1668
+ data: import("../charts").Spreadsheet;
1669
+ rawText: string;
1682
1670
  };
1683
1671
  defaultSidebarDockedPreference: boolean;
1684
1672
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1691,7 +1679,7 @@ export declare const actionToggleEraserTool: {
1691
1679
  selectedElementsAreBeingDragged: boolean;
1692
1680
  shouldCacheIgnoreZoom: boolean;
1693
1681
  toast: {
1694
- message: string;
1682
+ message: React.ReactNode;
1695
1683
  closable?: boolean;
1696
1684
  duration?: number;
1697
1685
  } | null;
@@ -1706,20 +1694,12 @@ export declare const actionToggleEraserTool: {
1706
1694
  height: number;
1707
1695
  offsetTop: number;
1708
1696
  offsetLeft: number;
1709
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1697
+ fileHandle: FileSystemFileHandle | null;
1710
1698
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1711
1699
  stats: {
1712
1700
  open: boolean;
1713
1701
  panels: number;
1714
1702
  };
1715
- currentChartType: import("@excalidraw/element/types").ChartType;
1716
- pasteDialog: {
1717
- shown: false;
1718
- data: null;
1719
- } | {
1720
- shown: true;
1721
- data: import("../charts").Spreadsheet;
1722
- };
1723
1703
  showHyperlinkPopup: false | "info" | "editor";
1724
1704
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1725
1705
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1779,6 +1759,8 @@ export declare const actionToggleLassoTool: {
1779
1759
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1780
1760
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1781
1761
  isBindingEnabled: boolean;
1762
+ bindingPreference: "enabled" | "disabled";
1763
+ isMidpointSnappingEnabled: boolean;
1782
1764
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1783
1765
  suggestedBinding: {
1784
1766
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -1846,6 +1828,10 @@ export declare const actionToggleLassoTool: {
1846
1828
  } | {
1847
1829
  name: "elementLinkSelector";
1848
1830
  sourceElementId: ExcalidrawElement["id"];
1831
+ } | {
1832
+ name: "charts";
1833
+ data: import("../charts").Spreadsheet;
1834
+ rawText: string;
1849
1835
  };
1850
1836
  defaultSidebarDockedPreference: boolean;
1851
1837
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1858,7 +1844,7 @@ export declare const actionToggleLassoTool: {
1858
1844
  selectedElementsAreBeingDragged: boolean;
1859
1845
  shouldCacheIgnoreZoom: boolean;
1860
1846
  toast: {
1861
- message: string;
1847
+ message: React.ReactNode;
1862
1848
  closable?: boolean;
1863
1849
  duration?: number;
1864
1850
  } | null;
@@ -1873,20 +1859,12 @@ export declare const actionToggleLassoTool: {
1873
1859
  height: number;
1874
1860
  offsetTop: number;
1875
1861
  offsetLeft: number;
1876
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1862
+ fileHandle: FileSystemFileHandle | null;
1877
1863
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1878
1864
  stats: {
1879
1865
  open: boolean;
1880
1866
  panels: number;
1881
1867
  };
1882
- currentChartType: import("@excalidraw/element/types").ChartType;
1883
- pasteDialog: {
1884
- shown: false;
1885
- data: null;
1886
- } | {
1887
- shown: true;
1888
- data: import("../charts").Spreadsheet;
1889
- };
1890
1868
  showHyperlinkPopup: false | "info" | "editor";
1891
1869
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1892
1870
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1945,6 +1923,8 @@ export declare const actionToggleHandTool: {
1945
1923
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1946
1924
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1947
1925
  isBindingEnabled: boolean;
1926
+ bindingPreference: "enabled" | "disabled";
1927
+ isMidpointSnappingEnabled: boolean;
1948
1928
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1949
1929
  suggestedBinding: {
1950
1930
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
@@ -2012,6 +1992,10 @@ export declare const actionToggleHandTool: {
2012
1992
  } | {
2013
1993
  name: "elementLinkSelector";
2014
1994
  sourceElementId: ExcalidrawElement["id"];
1995
+ } | {
1996
+ name: "charts";
1997
+ data: import("../charts").Spreadsheet;
1998
+ rawText: string;
2015
1999
  };
2016
2000
  defaultSidebarDockedPreference: boolean;
2017
2001
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -2024,7 +2008,7 @@ export declare const actionToggleHandTool: {
2024
2008
  selectedElementsAreBeingDragged: boolean;
2025
2009
  shouldCacheIgnoreZoom: boolean;
2026
2010
  toast: {
2027
- message: string;
2011
+ message: React.ReactNode;
2028
2012
  closable?: boolean;
2029
2013
  duration?: number;
2030
2014
  } | null;
@@ -2039,20 +2023,12 @@ export declare const actionToggleHandTool: {
2039
2023
  height: number;
2040
2024
  offsetTop: number;
2041
2025
  offsetLeft: number;
2042
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2026
+ fileHandle: FileSystemFileHandle | null;
2043
2027
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2044
2028
  stats: {
2045
2029
  open: boolean;
2046
2030
  panels: number;
2047
2031
  };
2048
- currentChartType: import("@excalidraw/element/types").ChartType;
2049
- pasteDialog: {
2050
- shown: false;
2051
- data: null;
2052
- } | {
2053
- shown: true;
2054
- data: import("../charts").Spreadsheet;
2055
- };
2056
2032
  showHyperlinkPopup: false | "info" | "editor";
2057
2033
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2058
2034
  snapLines: readonly import("../snapping").SnapLine[];