@excalidraw/math 0.18.0-9ba0f5d → 0.18.0-a9ca16e

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 (128) hide show
  1. package/dist/dev/index.js +116 -125
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/colors.d.ts +1 -1
  7. package/dist/types/common/src/constants.d.ts +4 -0
  8. package/dist/types/common/src/index.d.ts +3 -0
  9. package/dist/types/common/src/utils.d.ts +4 -7
  10. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  11. package/dist/types/element/src/Scene.d.ts +2 -0
  12. package/dist/types/element/src/arrowheads.d.ts +3 -0
  13. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  14. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  15. package/dist/types/element/src/binding.d.ts +13 -8
  16. package/dist/types/element/src/bounds.d.ts +1 -1
  17. package/dist/types/element/src/collision.d.ts +4 -3
  18. package/dist/types/element/src/distribute.d.ts +2 -1
  19. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  20. package/dist/types/element/src/index.d.ts +3 -0
  21. package/dist/types/element/src/linearElementEditor.d.ts +5 -0
  22. package/dist/types/element/src/mutateElement.d.ts +2 -0
  23. package/dist/types/element/src/selection.d.ts +5 -1
  24. package/dist/types/element/src/textElement.d.ts +1 -1
  25. package/dist/types/element/src/textWrapping.d.ts +26 -0
  26. package/dist/types/element/src/types.d.ts +5 -2
  27. package/dist/types/element/src/utils.d.ts +5 -3
  28. package/dist/types/element/src/zindex.d.ts +1 -1
  29. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +38 -35
  30. package/dist/types/excalidraw/actions/actionBoundText.d.ts +27 -25
  31. package/dist/types/excalidraw/actions/actionCanvas.d.ts +157 -145
  32. package/dist/types/excalidraw/actions/actionClipboard.d.ts +26 -24
  33. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -12
  34. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +41 -36
  35. package/dist/types/excalidraw/actions/actionElementLink.d.ts +9 -12
  36. package/dist/types/excalidraw/actions/actionElementLock.d.ts +26 -24
  37. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -12
  38. package/dist/types/excalidraw/actions/actionExport.d.ts +75 -347
  39. package/dist/types/excalidraw/actions/actionFrame.d.ts +52 -48
  40. package/dist/types/excalidraw/actions/actionGroup.d.ts +27 -25
  41. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -12
  42. package/dist/types/excalidraw/actions/actionLink.d.ts +13 -12
  43. package/dist/types/excalidraw/actions/actionMenu.d.ts +9 -12
  44. package/dist/types/excalidraw/actions/actionProperties.d.ts +28 -26
  45. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +13 -12
  46. package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -11
  47. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  48. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
  49. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +13 -12
  50. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  51. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -12
  52. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +9 -12
  53. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -12
  54. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +13 -12
  55. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -12
  56. package/dist/types/excalidraw/actions/index.d.ts +2 -0
  57. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  58. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  59. package/dist/types/excalidraw/appState.d.ts +9 -7
  60. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  61. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  62. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  63. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  64. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  65. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  66. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  67. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  68. package/dist/types/excalidraw/clipboard.d.ts +6 -7
  69. package/dist/types/excalidraw/components/App.d.ts +53 -13
  70. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  71. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
  72. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  73. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  74. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  75. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  76. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +2 -6
  77. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
  78. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  79. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
  80. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  81. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
  82. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  83. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  84. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  85. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +4 -0
  86. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  87. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  88. package/dist/types/excalidraw/components/Toast.d.ts +8 -4
  89. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  90. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
  91. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
  92. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
  93. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  94. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
  95. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  96. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  97. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  98. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  99. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  100. package/dist/types/excalidraw/components/icons.d.ts +23 -9
  101. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -0
  102. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
  103. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  104. package/dist/types/excalidraw/data/blob.d.ts +45 -44
  105. package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
  106. package/dist/types/excalidraw/data/index.d.ts +2 -3
  107. package/dist/types/excalidraw/data/json.d.ts +37 -28
  108. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  109. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  110. package/dist/types/excalidraw/types.d.ts +93 -16
  111. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
  112. package/dist/types/math/src/point.d.ts +7 -2
  113. package/dist/types/math/src/types.d.ts +25 -1
  114. package/package.json +2 -2
  115. package/dist/types/excalidraw/charts.d.ts +0 -27
  116. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  117. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  118. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  119. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  120. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
  121. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  122. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
  123. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  124. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  125. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
  126. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  127. package/dist/types/excalidraw/index.d.ts +0 -46
  128. 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,13 +79,17 @@ 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;
85
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
82
+ isMidpointSnappingEnabled: boolean;
83
+ suggestedBinding: {
84
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
85
+ midPoint?: import("@excalidraw/math").GlobalPoint;
86
+ } | null;
86
87
  isRotating: boolean;
87
88
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
88
89
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
89
90
  snapLines: readonly import("../snapping").SnapLine[];
90
91
  zenModeEnabled: boolean;
91
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
92
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
92
93
  isCropping: boolean;
93
94
  croppingElementId: ExcalidrawElement["id"] | null;
94
95
  searchMatches: Readonly<{
@@ -101,6 +102,7 @@ export declare const actionClearCanvas: {
101
102
  }>;
102
103
  shouldCacheIgnoreZoom: boolean;
103
104
  exportScale: number;
105
+ currentItemArrowType: "sharp" | "round" | "elbow";
104
106
  bindMode: import("@excalidraw/element/types").BindMode;
105
107
  contextMenu: {
106
108
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -111,6 +113,7 @@ export declare const actionClearCanvas: {
111
113
  isLoading: boolean;
112
114
  errorMessage: React.ReactNode;
113
115
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
116
+ bindingPreference: "enabled" | "disabled";
114
117
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
115
118
  editingFrame: string | null;
116
119
  preferredSelectionTool: {
@@ -132,7 +135,6 @@ export declare const actionClearCanvas: {
132
135
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
133
136
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
134
137
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
135
- currentItemArrowType: "sharp" | "round" | "elbow";
136
138
  cursorButton: "up" | "down";
137
139
  scrolledOutside: boolean;
138
140
  isResizing: boolean;
@@ -149,12 +151,11 @@ export declare const actionClearCanvas: {
149
151
  };
150
152
  selectedElementsAreBeingDragged: boolean;
151
153
  toast: {
152
- message: string;
154
+ message: React.ReactNode;
153
155
  closable?: boolean;
154
156
  duration?: number;
155
157
  } | null;
156
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
157
- currentChartType: import("@excalidraw/element/types").ChartType;
158
+ fileHandle: FileSystemFileHandle | null;
158
159
  showHyperlinkPopup: false | "info" | "editor";
159
160
  originSnapOffset: {
160
161
  x: number;
@@ -205,8 +206,13 @@ export declare const actionZoomIn: {
205
206
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
206
207
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
207
208
  isBindingEnabled: boolean;
209
+ bindingPreference: "enabled" | "disabled";
210
+ isMidpointSnappingEnabled: boolean;
208
211
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
209
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
212
+ suggestedBinding: {
213
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
214
+ midPoint?: import("@excalidraw/math").GlobalPoint;
215
+ } | null;
210
216
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
211
217
  frameRendering: {
212
218
  enabled: boolean;
@@ -216,7 +222,7 @@ export declare const actionZoomIn: {
216
222
  };
217
223
  editingFrame: string | null;
218
224
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
219
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
220
226
  activeTool: {
221
227
  lastActiveTool: import("../types").ActiveTool | null;
222
228
  locked: boolean;
@@ -271,6 +277,10 @@ export declare const actionZoomIn: {
271
277
  } | {
272
278
  name: "elementLinkSelector";
273
279
  sourceElementId: ExcalidrawElement["id"];
280
+ } | {
281
+ name: "charts";
282
+ data: import("../charts").Spreadsheet;
283
+ rawText: string;
274
284
  };
275
285
  defaultSidebarDockedPreference: boolean;
276
286
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -286,7 +296,7 @@ export declare const actionZoomIn: {
286
296
  selectedElementsAreBeingDragged: boolean;
287
297
  shouldCacheIgnoreZoom: boolean;
288
298
  toast: {
289
- message: string;
299
+ message: React.ReactNode;
290
300
  closable?: boolean;
291
301
  duration?: number;
292
302
  } | null;
@@ -304,20 +314,12 @@ export declare const actionZoomIn: {
304
314
  height: number;
305
315
  offsetTop: number;
306
316
  offsetLeft: number;
307
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
317
+ fileHandle: FileSystemFileHandle | null;
308
318
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
309
319
  stats: {
310
320
  open: boolean;
311
321
  panels: number;
312
322
  };
313
- currentChartType: import("@excalidraw/element/types").ChartType;
314
- pasteDialog: {
315
- shown: false;
316
- data: null;
317
- } | {
318
- shown: true;
319
- data: import("../charts").Spreadsheet;
320
- };
321
323
  showHyperlinkPopup: false | "info" | "editor";
322
324
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
323
325
  snapLines: readonly import("../snapping").SnapLine[];
@@ -379,8 +381,13 @@ export declare const actionZoomOut: {
379
381
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
380
382
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
381
383
  isBindingEnabled: boolean;
384
+ bindingPreference: "enabled" | "disabled";
385
+ isMidpointSnappingEnabled: boolean;
382
386
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
383
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
387
+ suggestedBinding: {
388
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
389
+ midPoint?: import("@excalidraw/math").GlobalPoint;
390
+ } | null;
384
391
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
385
392
  frameRendering: {
386
393
  enabled: boolean;
@@ -390,7 +397,7 @@ export declare const actionZoomOut: {
390
397
  };
391
398
  editingFrame: string | null;
392
399
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
393
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
400
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
394
401
  activeTool: {
395
402
  lastActiveTool: import("../types").ActiveTool | null;
396
403
  locked: boolean;
@@ -445,6 +452,10 @@ export declare const actionZoomOut: {
445
452
  } | {
446
453
  name: "elementLinkSelector";
447
454
  sourceElementId: ExcalidrawElement["id"];
455
+ } | {
456
+ name: "charts";
457
+ data: import("../charts").Spreadsheet;
458
+ rawText: string;
448
459
  };
449
460
  defaultSidebarDockedPreference: boolean;
450
461
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -460,7 +471,7 @@ export declare const actionZoomOut: {
460
471
  selectedElementsAreBeingDragged: boolean;
461
472
  shouldCacheIgnoreZoom: boolean;
462
473
  toast: {
463
- message: string;
474
+ message: React.ReactNode;
464
475
  closable?: boolean;
465
476
  duration?: number;
466
477
  } | null;
@@ -478,20 +489,12 @@ export declare const actionZoomOut: {
478
489
  height: number;
479
490
  offsetTop: number;
480
491
  offsetLeft: number;
481
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
492
+ fileHandle: FileSystemFileHandle | null;
482
493
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
483
494
  stats: {
484
495
  open: boolean;
485
496
  panels: number;
486
497
  };
487
- currentChartType: import("@excalidraw/element/types").ChartType;
488
- pasteDialog: {
489
- shown: false;
490
- data: null;
491
- } | {
492
- shown: true;
493
- data: import("../charts").Spreadsheet;
494
- };
495
498
  showHyperlinkPopup: false | "info" | "editor";
496
499
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
497
500
  snapLines: readonly import("../snapping").SnapLine[];
@@ -553,8 +556,13 @@ export declare const actionResetZoom: {
553
556
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
554
557
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
555
558
  isBindingEnabled: boolean;
559
+ bindingPreference: "enabled" | "disabled";
560
+ isMidpointSnappingEnabled: boolean;
556
561
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
557
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
562
+ suggestedBinding: {
563
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
564
+ midPoint?: import("@excalidraw/math").GlobalPoint;
565
+ } | null;
558
566
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
559
567
  frameRendering: {
560
568
  enabled: boolean;
@@ -564,7 +572,7 @@ export declare const actionResetZoom: {
564
572
  };
565
573
  editingFrame: string | null;
566
574
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
567
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
575
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
568
576
  activeTool: {
569
577
  lastActiveTool: import("../types").ActiveTool | null;
570
578
  locked: boolean;
@@ -619,6 +627,10 @@ export declare const actionResetZoom: {
619
627
  } | {
620
628
  name: "elementLinkSelector";
621
629
  sourceElementId: ExcalidrawElement["id"];
630
+ } | {
631
+ name: "charts";
632
+ data: import("../charts").Spreadsheet;
633
+ rawText: string;
622
634
  };
623
635
  defaultSidebarDockedPreference: boolean;
624
636
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -634,7 +646,7 @@ export declare const actionResetZoom: {
634
646
  selectedElementsAreBeingDragged: boolean;
635
647
  shouldCacheIgnoreZoom: boolean;
636
648
  toast: {
637
- message: string;
649
+ message: React.ReactNode;
638
650
  closable?: boolean;
639
651
  duration?: number;
640
652
  } | null;
@@ -652,20 +664,12 @@ export declare const actionResetZoom: {
652
664
  height: number;
653
665
  offsetTop: number;
654
666
  offsetLeft: number;
655
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
667
+ fileHandle: FileSystemFileHandle | null;
656
668
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
657
669
  stats: {
658
670
  open: boolean;
659
671
  panels: number;
660
672
  };
661
- currentChartType: import("@excalidraw/element/types").ChartType;
662
- pasteDialog: {
663
- shown: false;
664
- data: null;
665
- } | {
666
- shown: true;
667
- data: import("../charts").Spreadsheet;
668
- };
669
673
  showHyperlinkPopup: false | "info" | "editor";
670
674
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
671
675
  snapLines: readonly import("../snapping").SnapLine[];
@@ -728,8 +732,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
728
732
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
729
733
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
730
734
  isBindingEnabled: boolean;
735
+ bindingPreference: "enabled" | "disabled";
736
+ isMidpointSnappingEnabled: boolean;
731
737
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
732
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
738
+ suggestedBinding: {
739
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
740
+ midPoint?: import("@excalidraw/math").GlobalPoint;
741
+ } | null;
733
742
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
734
743
  frameRendering: {
735
744
  enabled: boolean;
@@ -739,7 +748,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
739
748
  };
740
749
  editingFrame: string | null;
741
750
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
742
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
751
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
743
752
  activeTool: {
744
753
  lastActiveTool: import("../types").ActiveTool | null;
745
754
  locked: boolean;
@@ -794,6 +803,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
794
803
  } | {
795
804
  name: "elementLinkSelector";
796
805
  sourceElementId: ExcalidrawElement["id"];
806
+ } | {
807
+ name: "charts";
808
+ data: import("../charts").Spreadsheet;
809
+ rawText: string;
797
810
  };
798
811
  defaultSidebarDockedPreference: boolean;
799
812
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -809,7 +822,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
809
822
  selectedElementsAreBeingDragged: boolean;
810
823
  shouldCacheIgnoreZoom: boolean;
811
824
  toast: {
812
- message: string;
825
+ message: React.ReactNode;
813
826
  closable?: boolean;
814
827
  duration?: number;
815
828
  } | null;
@@ -827,20 +840,12 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
827
840
  height: number;
828
841
  offsetTop: number;
829
842
  offsetLeft: number;
830
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
843
+ fileHandle: FileSystemFileHandle | null;
831
844
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
832
845
  stats: {
833
846
  open: boolean;
834
847
  panels: number;
835
848
  };
836
- currentChartType: import("@excalidraw/element/types").ChartType;
837
- pasteDialog: {
838
- shown: false;
839
- data: null;
840
- } | {
841
- shown: true;
842
- data: import("../charts").Spreadsheet;
843
- };
844
849
  showHyperlinkPopup: false | "info" | "editor";
845
850
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
846
851
  snapLines: readonly import("../snapping").SnapLine[];
@@ -899,8 +904,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
899
904
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
900
905
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
901
906
  isBindingEnabled: boolean;
907
+ bindingPreference: "enabled" | "disabled";
908
+ isMidpointSnappingEnabled: boolean;
902
909
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
903
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
910
+ suggestedBinding: {
911
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
912
+ midPoint?: import("@excalidraw/math").GlobalPoint;
913
+ } | null;
904
914
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
905
915
  frameRendering: {
906
916
  enabled: boolean;
@@ -910,7 +920,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
910
920
  };
911
921
  editingFrame: string | null;
912
922
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
913
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
923
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
914
924
  activeTool: {
915
925
  lastActiveTool: import("../types").ActiveTool | null;
916
926
  locked: boolean;
@@ -965,6 +975,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
965
975
  } | {
966
976
  name: "elementLinkSelector";
967
977
  sourceElementId: ExcalidrawElement["id"];
978
+ } | {
979
+ name: "charts";
980
+ data: import("../charts").Spreadsheet;
981
+ rawText: string;
968
982
  };
969
983
  defaultSidebarDockedPreference: boolean;
970
984
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -980,7 +994,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
980
994
  selectedElementsAreBeingDragged: boolean;
981
995
  shouldCacheIgnoreZoom: boolean;
982
996
  toast: {
983
- message: string;
997
+ message: React.ReactNode;
984
998
  closable?: boolean;
985
999
  duration?: number;
986
1000
  } | null;
@@ -998,20 +1012,12 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
998
1012
  height: number;
999
1013
  offsetTop: number;
1000
1014
  offsetLeft: number;
1001
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1015
+ fileHandle: FileSystemFileHandle | null;
1002
1016
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1003
1017
  stats: {
1004
1018
  open: boolean;
1005
1019
  panels: number;
1006
1020
  };
1007
- currentChartType: import("@excalidraw/element/types").ChartType;
1008
- pasteDialog: {
1009
- shown: false;
1010
- data: null;
1011
- } | {
1012
- shown: true;
1013
- data: import("../charts").Spreadsheet;
1014
- };
1015
1021
  showHyperlinkPopup: false | "info" | "editor";
1016
1022
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1017
1023
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1067,8 +1073,13 @@ export declare const actionZoomToFitSelectionInViewport: {
1067
1073
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1068
1074
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1069
1075
  isBindingEnabled: boolean;
1076
+ bindingPreference: "enabled" | "disabled";
1077
+ isMidpointSnappingEnabled: boolean;
1070
1078
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1071
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1079
+ suggestedBinding: {
1080
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1081
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1082
+ } | null;
1072
1083
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1073
1084
  frameRendering: {
1074
1085
  enabled: boolean;
@@ -1078,7 +1089,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1078
1089
  };
1079
1090
  editingFrame: string | null;
1080
1091
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1081
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1092
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1082
1093
  activeTool: {
1083
1094
  lastActiveTool: import("../types").ActiveTool | null;
1084
1095
  locked: boolean;
@@ -1133,6 +1144,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1133
1144
  } | {
1134
1145
  name: "elementLinkSelector";
1135
1146
  sourceElementId: ExcalidrawElement["id"];
1147
+ } | {
1148
+ name: "charts";
1149
+ data: import("../charts").Spreadsheet;
1150
+ rawText: string;
1136
1151
  };
1137
1152
  defaultSidebarDockedPreference: boolean;
1138
1153
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1148,7 +1163,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1148
1163
  selectedElementsAreBeingDragged: boolean;
1149
1164
  shouldCacheIgnoreZoom: boolean;
1150
1165
  toast: {
1151
- message: string;
1166
+ message: React.ReactNode;
1152
1167
  closable?: boolean;
1153
1168
  duration?: number;
1154
1169
  } | null;
@@ -1166,20 +1181,12 @@ export declare const actionZoomToFitSelectionInViewport: {
1166
1181
  height: number;
1167
1182
  offsetTop: number;
1168
1183
  offsetLeft: number;
1169
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1184
+ fileHandle: FileSystemFileHandle | null;
1170
1185
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1171
1186
  stats: {
1172
1187
  open: boolean;
1173
1188
  panels: number;
1174
1189
  };
1175
- currentChartType: import("@excalidraw/element/types").ChartType;
1176
- pasteDialog: {
1177
- shown: false;
1178
- data: null;
1179
- } | {
1180
- shown: true;
1181
- data: import("../charts").Spreadsheet;
1182
- };
1183
1190
  showHyperlinkPopup: false | "info" | "editor";
1184
1191
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1185
1192
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1239,8 +1246,13 @@ export declare const actionZoomToFitSelection: {
1239
1246
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1240
1247
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1241
1248
  isBindingEnabled: boolean;
1249
+ bindingPreference: "enabled" | "disabled";
1250
+ isMidpointSnappingEnabled: boolean;
1242
1251
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1243
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1252
+ suggestedBinding: {
1253
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1254
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1255
+ } | null;
1244
1256
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1245
1257
  frameRendering: {
1246
1258
  enabled: boolean;
@@ -1250,7 +1262,7 @@ export declare const actionZoomToFitSelection: {
1250
1262
  };
1251
1263
  editingFrame: string | null;
1252
1264
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1253
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1265
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1254
1266
  activeTool: {
1255
1267
  lastActiveTool: import("../types").ActiveTool | null;
1256
1268
  locked: boolean;
@@ -1305,6 +1317,10 @@ export declare const actionZoomToFitSelection: {
1305
1317
  } | {
1306
1318
  name: "elementLinkSelector";
1307
1319
  sourceElementId: ExcalidrawElement["id"];
1320
+ } | {
1321
+ name: "charts";
1322
+ data: import("../charts").Spreadsheet;
1323
+ rawText: string;
1308
1324
  };
1309
1325
  defaultSidebarDockedPreference: boolean;
1310
1326
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1320,7 +1336,7 @@ export declare const actionZoomToFitSelection: {
1320
1336
  selectedElementsAreBeingDragged: boolean;
1321
1337
  shouldCacheIgnoreZoom: boolean;
1322
1338
  toast: {
1323
- message: string;
1339
+ message: React.ReactNode;
1324
1340
  closable?: boolean;
1325
1341
  duration?: number;
1326
1342
  } | null;
@@ -1338,20 +1354,12 @@ export declare const actionZoomToFitSelection: {
1338
1354
  height: number;
1339
1355
  offsetTop: number;
1340
1356
  offsetLeft: number;
1341
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1357
+ fileHandle: FileSystemFileHandle | null;
1342
1358
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1343
1359
  stats: {
1344
1360
  open: boolean;
1345
1361
  panels: number;
1346
1362
  };
1347
- currentChartType: import("@excalidraw/element/types").ChartType;
1348
- pasteDialog: {
1349
- shown: false;
1350
- data: null;
1351
- } | {
1352
- shown: true;
1353
- data: import("../charts").Spreadsheet;
1354
- };
1355
1363
  showHyperlinkPopup: false | "info" | "editor";
1356
1364
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1357
1365
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1412,8 +1420,13 @@ export declare const actionZoomToFit: {
1412
1420
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1413
1421
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1414
1422
  isBindingEnabled: boolean;
1423
+ bindingPreference: "enabled" | "disabled";
1424
+ isMidpointSnappingEnabled: boolean;
1415
1425
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1416
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1426
+ suggestedBinding: {
1427
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1428
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1429
+ } | null;
1417
1430
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1418
1431
  frameRendering: {
1419
1432
  enabled: boolean;
@@ -1423,7 +1436,7 @@ export declare const actionZoomToFit: {
1423
1436
  };
1424
1437
  editingFrame: string | null;
1425
1438
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1426
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1439
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1427
1440
  activeTool: {
1428
1441
  lastActiveTool: import("../types").ActiveTool | null;
1429
1442
  locked: boolean;
@@ -1478,6 +1491,10 @@ export declare const actionZoomToFit: {
1478
1491
  } | {
1479
1492
  name: "elementLinkSelector";
1480
1493
  sourceElementId: ExcalidrawElement["id"];
1494
+ } | {
1495
+ name: "charts";
1496
+ data: import("../charts").Spreadsheet;
1497
+ rawText: string;
1481
1498
  };
1482
1499
  defaultSidebarDockedPreference: boolean;
1483
1500
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1493,7 +1510,7 @@ export declare const actionZoomToFit: {
1493
1510
  selectedElementsAreBeingDragged: boolean;
1494
1511
  shouldCacheIgnoreZoom: boolean;
1495
1512
  toast: {
1496
- message: string;
1513
+ message: React.ReactNode;
1497
1514
  closable?: boolean;
1498
1515
  duration?: number;
1499
1516
  } | null;
@@ -1511,20 +1528,12 @@ export declare const actionZoomToFit: {
1511
1528
  height: number;
1512
1529
  offsetTop: number;
1513
1530
  offsetLeft: number;
1514
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1531
+ fileHandle: FileSystemFileHandle | null;
1515
1532
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1516
1533
  stats: {
1517
1534
  open: boolean;
1518
1535
  panels: number;
1519
1536
  };
1520
- currentChartType: import("@excalidraw/element/types").ChartType;
1521
- pasteDialog: {
1522
- shown: false;
1523
- data: null;
1524
- } | {
1525
- shown: true;
1526
- data: import("../charts").Spreadsheet;
1527
- };
1528
1537
  showHyperlinkPopup: false | "info" | "editor";
1529
1538
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1530
1539
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1585,8 +1594,13 @@ export declare const actionToggleEraserTool: {
1585
1594
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1586
1595
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1587
1596
  isBindingEnabled: boolean;
1597
+ bindingPreference: "enabled" | "disabled";
1598
+ isMidpointSnappingEnabled: boolean;
1588
1599
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1589
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1600
+ suggestedBinding: {
1601
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1602
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1603
+ } | null;
1590
1604
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1591
1605
  frameRendering: {
1592
1606
  enabled: boolean;
@@ -1596,7 +1610,7 @@ export declare const actionToggleEraserTool: {
1596
1610
  };
1597
1611
  editingFrame: string | null;
1598
1612
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1599
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1613
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1600
1614
  preferredSelectionTool: {
1601
1615
  type: "selection" | "lasso";
1602
1616
  initialized: boolean;
@@ -1649,6 +1663,10 @@ export declare const actionToggleEraserTool: {
1649
1663
  } | {
1650
1664
  name: "elementLinkSelector";
1651
1665
  sourceElementId: ExcalidrawElement["id"];
1666
+ } | {
1667
+ name: "charts";
1668
+ data: import("../charts").Spreadsheet;
1669
+ rawText: string;
1652
1670
  };
1653
1671
  defaultSidebarDockedPreference: boolean;
1654
1672
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1661,7 +1679,7 @@ export declare const actionToggleEraserTool: {
1661
1679
  selectedElementsAreBeingDragged: boolean;
1662
1680
  shouldCacheIgnoreZoom: boolean;
1663
1681
  toast: {
1664
- message: string;
1682
+ message: React.ReactNode;
1665
1683
  closable?: boolean;
1666
1684
  duration?: number;
1667
1685
  } | null;
@@ -1676,20 +1694,12 @@ export declare const actionToggleEraserTool: {
1676
1694
  height: number;
1677
1695
  offsetTop: number;
1678
1696
  offsetLeft: number;
1679
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1697
+ fileHandle: FileSystemFileHandle | null;
1680
1698
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1681
1699
  stats: {
1682
1700
  open: boolean;
1683
1701
  panels: number;
1684
1702
  };
1685
- currentChartType: import("@excalidraw/element/types").ChartType;
1686
- pasteDialog: {
1687
- shown: false;
1688
- data: null;
1689
- } | {
1690
- shown: true;
1691
- data: import("../charts").Spreadsheet;
1692
- };
1693
1703
  showHyperlinkPopup: false | "info" | "editor";
1694
1704
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1695
1705
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1749,8 +1759,13 @@ export declare const actionToggleLassoTool: {
1749
1759
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1750
1760
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1751
1761
  isBindingEnabled: boolean;
1762
+ bindingPreference: "enabled" | "disabled";
1763
+ isMidpointSnappingEnabled: boolean;
1752
1764
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1753
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1765
+ suggestedBinding: {
1766
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1767
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1768
+ } | null;
1754
1769
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1755
1770
  frameRendering: {
1756
1771
  enabled: boolean;
@@ -1760,7 +1775,7 @@ export declare const actionToggleLassoTool: {
1760
1775
  };
1761
1776
  editingFrame: string | null;
1762
1777
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1763
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1778
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1764
1779
  preferredSelectionTool: {
1765
1780
  type: "selection" | "lasso";
1766
1781
  initialized: boolean;
@@ -1813,6 +1828,10 @@ export declare const actionToggleLassoTool: {
1813
1828
  } | {
1814
1829
  name: "elementLinkSelector";
1815
1830
  sourceElementId: ExcalidrawElement["id"];
1831
+ } | {
1832
+ name: "charts";
1833
+ data: import("../charts").Spreadsheet;
1834
+ rawText: string;
1816
1835
  };
1817
1836
  defaultSidebarDockedPreference: boolean;
1818
1837
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1825,7 +1844,7 @@ export declare const actionToggleLassoTool: {
1825
1844
  selectedElementsAreBeingDragged: boolean;
1826
1845
  shouldCacheIgnoreZoom: boolean;
1827
1846
  toast: {
1828
- message: string;
1847
+ message: React.ReactNode;
1829
1848
  closable?: boolean;
1830
1849
  duration?: number;
1831
1850
  } | null;
@@ -1840,20 +1859,12 @@ export declare const actionToggleLassoTool: {
1840
1859
  height: number;
1841
1860
  offsetTop: number;
1842
1861
  offsetLeft: number;
1843
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1862
+ fileHandle: FileSystemFileHandle | null;
1844
1863
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1845
1864
  stats: {
1846
1865
  open: boolean;
1847
1866
  panels: number;
1848
1867
  };
1849
- currentChartType: import("@excalidraw/element/types").ChartType;
1850
- pasteDialog: {
1851
- shown: false;
1852
- data: null;
1853
- } | {
1854
- shown: true;
1855
- data: import("../charts").Spreadsheet;
1856
- };
1857
1868
  showHyperlinkPopup: false | "info" | "editor";
1858
1869
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1859
1870
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1912,8 +1923,13 @@ export declare const actionToggleHandTool: {
1912
1923
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1913
1924
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1914
1925
  isBindingEnabled: boolean;
1926
+ bindingPreference: "enabled" | "disabled";
1927
+ isMidpointSnappingEnabled: boolean;
1915
1928
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1916
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1929
+ suggestedBinding: {
1930
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1931
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1932
+ } | null;
1917
1933
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1918
1934
  frameRendering: {
1919
1935
  enabled: boolean;
@@ -1923,7 +1939,7 @@ export declare const actionToggleHandTool: {
1923
1939
  };
1924
1940
  editingFrame: string | null;
1925
1941
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1926
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1942
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1927
1943
  preferredSelectionTool: {
1928
1944
  type: "selection" | "lasso";
1929
1945
  initialized: boolean;
@@ -1976,6 +1992,10 @@ export declare const actionToggleHandTool: {
1976
1992
  } | {
1977
1993
  name: "elementLinkSelector";
1978
1994
  sourceElementId: ExcalidrawElement["id"];
1995
+ } | {
1996
+ name: "charts";
1997
+ data: import("../charts").Spreadsheet;
1998
+ rawText: string;
1979
1999
  };
1980
2000
  defaultSidebarDockedPreference: boolean;
1981
2001
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1988,7 +2008,7 @@ export declare const actionToggleHandTool: {
1988
2008
  selectedElementsAreBeingDragged: boolean;
1989
2009
  shouldCacheIgnoreZoom: boolean;
1990
2010
  toast: {
1991
- message: string;
2011
+ message: React.ReactNode;
1992
2012
  closable?: boolean;
1993
2013
  duration?: number;
1994
2014
  } | null;
@@ -2003,20 +2023,12 @@ export declare const actionToggleHandTool: {
2003
2023
  height: number;
2004
2024
  offsetTop: number;
2005
2025
  offsetLeft: number;
2006
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2026
+ fileHandle: FileSystemFileHandle | null;
2007
2027
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2008
2028
  stats: {
2009
2029
  open: boolean;
2010
2030
  panels: number;
2011
2031
  };
2012
- currentChartType: import("@excalidraw/element/types").ChartType;
2013
- pasteDialog: {
2014
- shown: false;
2015
- data: null;
2016
- } | {
2017
- shown: true;
2018
- data: import("../charts").Spreadsheet;
2019
- };
2020
2032
  showHyperlinkPopup: false | "info" | "editor";
2021
2033
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2022
2034
  snapLines: readonly import("../snapping").SnapLine[];