@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
@@ -27,8 +27,13 @@ export declare const actionPaste: {
27
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  isBindingEnabled: boolean;
30
+ bindingPreference: "enabled" | "disabled";
31
+ isMidpointSnappingEnabled: boolean;
30
32
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
+ suggestedBinding: {
34
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
+ midPoint?: import("@excalidraw/math").GlobalPoint;
36
+ } | null;
32
37
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
38
  frameRendering: {
34
39
  enabled: boolean;
@@ -38,7 +43,7 @@ export declare const actionPaste: {
38
43
  };
39
44
  editingFrame: string | null;
40
45
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
46
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
42
47
  activeTool: {
43
48
  lastActiveTool: import("../types").ActiveTool | null;
44
49
  locked: boolean;
@@ -96,6 +101,10 @@ export declare const actionPaste: {
96
101
  } | {
97
102
  name: "elementLinkSelector";
98
103
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
104
+ } | {
105
+ name: "charts";
106
+ data: import("../charts").Spreadsheet;
107
+ rawText: string;
99
108
  };
100
109
  defaultSidebarDockedPreference: boolean;
101
110
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -111,7 +120,7 @@ export declare const actionPaste: {
111
120
  selectedElementsAreBeingDragged: boolean;
112
121
  shouldCacheIgnoreZoom: boolean;
113
122
  toast: {
114
- message: string;
123
+ message: React.ReactNode;
115
124
  closable?: boolean;
116
125
  duration?: number;
117
126
  } | null;
@@ -129,20 +138,12 @@ export declare const actionPaste: {
129
138
  height: number;
130
139
  offsetTop: number;
131
140
  offsetLeft: number;
132
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
141
+ fileHandle: FileSystemFileHandle | null;
133
142
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
134
143
  stats: {
135
144
  open: boolean;
136
145
  panels: number;
137
146
  };
138
- currentChartType: import("@excalidraw/element/types").ChartType;
139
- pasteDialog: {
140
- shown: false;
141
- data: null;
142
- } | {
143
- shown: true;
144
- data: import("../charts").Spreadsheet;
145
- };
146
147
  showHyperlinkPopup: false | "info" | "editor";
147
148
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
148
149
  snapLines: readonly import("../snapping").SnapLine[];
@@ -235,8 +236,13 @@ export declare const actionCopyAsPng: {
235
236
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
236
237
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
238
  isBindingEnabled: boolean;
239
+ bindingPreference: "enabled" | "disabled";
240
+ isMidpointSnappingEnabled: boolean;
238
241
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
239
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
242
+ suggestedBinding: {
243
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
244
+ midPoint?: import("@excalidraw/math").GlobalPoint;
245
+ } | null;
240
246
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
241
247
  frameRendering: {
242
248
  enabled: boolean;
@@ -246,7 +252,7 @@ export declare const actionCopyAsPng: {
246
252
  };
247
253
  editingFrame: string | null;
248
254
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
249
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
255
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
250
256
  activeTool: {
251
257
  lastActiveTool: import("../types").ActiveTool | null;
252
258
  locked: boolean;
@@ -304,6 +310,10 @@ export declare const actionCopyAsPng: {
304
310
  } | {
305
311
  name: "elementLinkSelector";
306
312
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
313
+ } | {
314
+ name: "charts";
315
+ data: import("../charts").Spreadsheet;
316
+ rawText: string;
307
317
  };
308
318
  defaultSidebarDockedPreference: boolean;
309
319
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -319,7 +329,7 @@ export declare const actionCopyAsPng: {
319
329
  selectedElementsAreBeingDragged: boolean;
320
330
  shouldCacheIgnoreZoom: boolean;
321
331
  toast: {
322
- message: string;
332
+ message: React.ReactNode;
323
333
  closable?: boolean;
324
334
  duration?: number;
325
335
  } | null;
@@ -337,20 +347,12 @@ export declare const actionCopyAsPng: {
337
347
  height: number;
338
348
  offsetTop: number;
339
349
  offsetLeft: number;
340
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
350
+ fileHandle: FileSystemFileHandle | null;
341
351
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
342
352
  stats: {
343
353
  open: boolean;
344
354
  panels: number;
345
355
  };
346
- currentChartType: import("@excalidraw/element/types").ChartType;
347
- pasteDialog: {
348
- shown: false;
349
- data: null;
350
- } | {
351
- shown: true;
352
- data: import("../charts").Spreadsheet;
353
- };
354
356
  showHyperlinkPopup: false | "info" | "editor";
355
357
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
356
358
  snapLines: readonly import("../snapping").SnapLine[];
@@ -28,8 +28,13 @@ export declare const actionToggleCropEditor: {
28
28
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
29
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
+ bindingPreference: "enabled" | "disabled";
32
+ isMidpointSnappingEnabled: boolean;
31
33
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
+ suggestedBinding: {
35
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
+ midPoint?: import("@excalidraw/math").GlobalPoint;
37
+ } | null;
33
38
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
39
  frameRendering: {
35
40
  enabled: boolean;
@@ -39,7 +44,7 @@ export declare const actionToggleCropEditor: {
39
44
  };
40
45
  editingFrame: string | null;
41
46
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
42
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
47
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
43
48
  activeTool: {
44
49
  lastActiveTool: import("../types").ActiveTool | null;
45
50
  locked: boolean;
@@ -97,6 +102,10 @@ export declare const actionToggleCropEditor: {
97
102
  } | {
98
103
  name: "elementLinkSelector";
99
104
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
105
+ } | {
106
+ name: "charts";
107
+ data: import("../charts").Spreadsheet;
108
+ rawText: string;
100
109
  };
101
110
  defaultSidebarDockedPreference: boolean;
102
111
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -112,7 +121,7 @@ export declare const actionToggleCropEditor: {
112
121
  selectedElementsAreBeingDragged: boolean;
113
122
  shouldCacheIgnoreZoom: boolean;
114
123
  toast: {
115
- message: string;
124
+ message: React.ReactNode;
116
125
  closable?: boolean;
117
126
  duration?: number;
118
127
  } | null;
@@ -130,20 +139,12 @@ export declare const actionToggleCropEditor: {
130
139
  height: number;
131
140
  offsetTop: number;
132
141
  offsetLeft: number;
133
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
142
+ fileHandle: FileSystemFileHandle | null;
134
143
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
135
144
  stats: {
136
145
  open: boolean;
137
146
  panels: number;
138
147
  };
139
- currentChartType: import("@excalidraw/element/types").ChartType;
140
- pasteDialog: {
141
- shown: false;
142
- data: null;
143
- } | {
144
- shown: true;
145
- data: import("../charts").Spreadsheet;
146
- };
147
148
  showHyperlinkPopup: false | "info" | "editor";
148
149
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
149
150
  snapLines: readonly import("../snapping").SnapLine[];
@@ -29,8 +29,13 @@ export declare const actionDeleteSelected: {
29
29
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
30
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
31
  isBindingEnabled: boolean;
32
+ bindingPreference: "enabled" | "disabled";
33
+ isMidpointSnappingEnabled: boolean;
32
34
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
+ suggestedBinding: {
36
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
+ midPoint?: import("@excalidraw/math").GlobalPoint;
38
+ } | null;
34
39
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
40
  frameRendering: {
36
41
  enabled: boolean;
@@ -40,7 +45,7 @@ export declare const actionDeleteSelected: {
40
45
  };
41
46
  editingFrame: string | null;
42
47
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
43
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
44
49
  activeTool: {
45
50
  lastActiveTool: import("../types").ActiveTool | null;
46
51
  locked: boolean;
@@ -98,6 +103,10 @@ export declare const actionDeleteSelected: {
98
103
  } | {
99
104
  name: "elementLinkSelector";
100
105
  sourceElementId: ExcalidrawElement["id"];
106
+ } | {
107
+ name: "charts";
108
+ data: import("../charts").Spreadsheet;
109
+ rawText: string;
101
110
  };
102
111
  defaultSidebarDockedPreference: boolean;
103
112
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -113,7 +122,7 @@ export declare const actionDeleteSelected: {
113
122
  selectedElementsAreBeingDragged: boolean;
114
123
  shouldCacheIgnoreZoom: boolean;
115
124
  toast: {
116
- message: string;
125
+ message: React.ReactNode;
117
126
  closable?: boolean;
118
127
  duration?: number;
119
128
  } | null;
@@ -131,20 +140,12 @@ export declare const actionDeleteSelected: {
131
140
  height: number;
132
141
  offsetTop: number;
133
142
  offsetLeft: number;
134
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
143
+ fileHandle: FileSystemFileHandle | null;
135
144
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
136
145
  stats: {
137
146
  open: boolean;
138
147
  panels: number;
139
148
  };
140
- currentChartType: import("@excalidraw/element/types").ChartType;
141
- pasteDialog: {
142
- shown: false;
143
- data: null;
144
- } | {
145
- shown: true;
146
- data: import("../charts").Spreadsheet;
147
- };
148
149
  showHyperlinkPopup: false | "info" | "editor";
149
150
  snapLines: readonly import("../snapping").SnapLine[];
150
151
  originSnapOffset: {
@@ -196,6 +197,8 @@ export declare const actionDeleteSelected: {
196
197
  }>;
197
198
  hoverPointIndex: number;
198
199
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
200
+ hoveredFocusPointBinding: "start" | "end" | null;
201
+ draggedFocusPointBinding: "start" | "end" | null;
199
202
  elbowed: boolean;
200
203
  customLineAngle: number | null;
201
204
  isEditing: boolean;
@@ -218,8 +221,13 @@ export declare const actionDeleteSelected: {
218
221
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
219
222
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
220
223
  isBindingEnabled: boolean;
224
+ bindingPreference: "enabled" | "disabled";
225
+ isMidpointSnappingEnabled: boolean;
221
226
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
222
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
227
+ suggestedBinding: {
228
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
229
+ midPoint?: import("@excalidraw/math").GlobalPoint;
230
+ } | null;
223
231
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
224
232
  frameRendering: {
225
233
  enabled: boolean;
@@ -229,7 +237,7 @@ export declare const actionDeleteSelected: {
229
237
  };
230
238
  editingFrame: string | null;
231
239
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
232
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
240
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
233
241
  activeTool: {
234
242
  lastActiveTool: import("../types").ActiveTool | null;
235
243
  locked: boolean;
@@ -287,6 +295,10 @@ export declare const actionDeleteSelected: {
287
295
  } | {
288
296
  name: "elementLinkSelector";
289
297
  sourceElementId: ExcalidrawElement["id"];
298
+ } | {
299
+ name: "charts";
300
+ data: import("../charts").Spreadsheet;
301
+ rawText: string;
290
302
  };
291
303
  defaultSidebarDockedPreference: boolean;
292
304
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -302,7 +314,7 @@ export declare const actionDeleteSelected: {
302
314
  selectedElementsAreBeingDragged: boolean;
303
315
  shouldCacheIgnoreZoom: boolean;
304
316
  toast: {
305
- message: string;
317
+ message: React.ReactNode;
306
318
  closable?: boolean;
307
319
  duration?: number;
308
320
  } | null;
@@ -320,20 +332,12 @@ export declare const actionDeleteSelected: {
320
332
  height: number;
321
333
  offsetTop: number;
322
334
  offsetLeft: number;
323
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
335
+ fileHandle: FileSystemFileHandle | null;
324
336
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
325
337
  stats: {
326
338
  open: boolean;
327
339
  panels: number;
328
340
  };
329
- currentChartType: import("@excalidraw/element/types").ChartType;
330
- pasteDialog: {
331
- shown: false;
332
- data: null;
333
- } | {
334
- shown: true;
335
- data: import("../charts").Spreadsheet;
336
- };
337
341
  showHyperlinkPopup: false | "info" | "editor";
338
342
  snapLines: readonly import("../snapping").SnapLine[];
339
343
  originSnapOffset: {
@@ -382,8 +386,13 @@ export declare const actionDeleteSelected: {
382
386
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
383
387
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
384
388
  isBindingEnabled: boolean;
389
+ bindingPreference: "enabled" | "disabled";
390
+ isMidpointSnappingEnabled: boolean;
385
391
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
386
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
392
+ suggestedBinding: {
393
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
394
+ midPoint?: import("@excalidraw/math").GlobalPoint;
395
+ } | null;
387
396
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
388
397
  frameRendering: {
389
398
  enabled: boolean;
@@ -393,7 +402,7 @@ export declare const actionDeleteSelected: {
393
402
  };
394
403
  editingFrame: string | null;
395
404
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
396
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
405
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
397
406
  preferredSelectionTool: {
398
407
  type: "selection" | "lasso";
399
408
  initialized: boolean;
@@ -446,6 +455,10 @@ export declare const actionDeleteSelected: {
446
455
  } | {
447
456
  name: "elementLinkSelector";
448
457
  sourceElementId: ExcalidrawElement["id"];
458
+ } | {
459
+ name: "charts";
460
+ data: import("../charts").Spreadsheet;
461
+ rawText: string;
449
462
  };
450
463
  defaultSidebarDockedPreference: boolean;
451
464
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -458,7 +471,7 @@ export declare const actionDeleteSelected: {
458
471
  selectedElementsAreBeingDragged: boolean;
459
472
  shouldCacheIgnoreZoom: boolean;
460
473
  toast: {
461
- message: string;
474
+ message: React.ReactNode;
462
475
  closable?: boolean;
463
476
  duration?: number;
464
477
  } | null;
@@ -472,20 +485,12 @@ export declare const actionDeleteSelected: {
472
485
  height: number;
473
486
  offsetTop: number;
474
487
  offsetLeft: number;
475
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
488
+ fileHandle: FileSystemFileHandle | null;
476
489
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
477
490
  stats: {
478
491
  open: boolean;
479
492
  panels: number;
480
493
  };
481
- currentChartType: import("@excalidraw/element/types").ChartType;
482
- pasteDialog: {
483
- shown: false;
484
- data: null;
485
- } | {
486
- shown: true;
487
- data: import("../charts").Spreadsheet;
488
- };
489
494
  showHyperlinkPopup: false | "info" | "editor";
490
495
  snapLines: readonly import("../snapping").SnapLine[];
491
496
  originSnapOffset: {
@@ -57,8 +57,13 @@ export declare const actionLinkToElement: {
57
57
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
58
58
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
59
59
  isBindingEnabled: boolean;
60
+ bindingPreference: "enabled" | "disabled";
61
+ isMidpointSnappingEnabled: boolean;
60
62
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
61
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
63
+ suggestedBinding: {
64
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
65
+ midPoint?: import("@excalidraw/math").GlobalPoint;
66
+ } | null;
62
67
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
63
68
  frameRendering: {
64
69
  enabled: boolean;
@@ -68,7 +73,7 @@ export declare const actionLinkToElement: {
68
73
  };
69
74
  editingFrame: string | null;
70
75
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
71
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
76
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
72
77
  activeTool: {
73
78
  lastActiveTool: import("../types").ActiveTool | null;
74
79
  locked: boolean;
@@ -128,7 +133,7 @@ export declare const actionLinkToElement: {
128
133
  selectedElementsAreBeingDragged: boolean;
129
134
  shouldCacheIgnoreZoom: boolean;
130
135
  toast: {
131
- message: string;
136
+ message: React.ReactNode;
132
137
  closable?: boolean;
133
138
  duration?: number;
134
139
  } | null;
@@ -146,20 +151,12 @@ export declare const actionLinkToElement: {
146
151
  height: number;
147
152
  offsetTop: number;
148
153
  offsetLeft: number;
149
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
154
+ fileHandle: FileSystemFileHandle | null;
150
155
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
151
156
  stats: {
152
157
  open: boolean;
153
158
  panels: number;
154
159
  };
155
- currentChartType: import("@excalidraw/element/types").ChartType;
156
- pasteDialog: {
157
- shown: false;
158
- data: null;
159
- } | {
160
- shown: true;
161
- data: import("../charts").Spreadsheet;
162
- };
163
160
  showHyperlinkPopup: false | "info" | "editor";
164
161
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
165
162
  snapLines: readonly import("../snapping").SnapLine[];
@@ -39,8 +39,13 @@ export declare const actionToggleElementLock: {
39
39
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
40
40
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
41
  isBindingEnabled: boolean;
42
+ bindingPreference: "enabled" | "disabled";
43
+ isMidpointSnappingEnabled: boolean;
42
44
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
43
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
45
+ suggestedBinding: {
46
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
47
+ midPoint?: import("@excalidraw/math").GlobalPoint;
48
+ } | null;
44
49
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
45
50
  frameRendering: {
46
51
  enabled: boolean;
@@ -50,7 +55,7 @@ export declare const actionToggleElementLock: {
50
55
  };
51
56
  editingFrame: string | null;
52
57
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
53
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
58
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
54
59
  activeTool: {
55
60
  lastActiveTool: import("../types").ActiveTool | null;
56
61
  locked: boolean;
@@ -108,6 +113,10 @@ export declare const actionToggleElementLock: {
108
113
  } | {
109
114
  name: "elementLinkSelector";
110
115
  sourceElementId: ExcalidrawElement["id"];
116
+ } | {
117
+ name: "charts";
118
+ data: import("../charts").Spreadsheet;
119
+ rawText: string;
111
120
  };
112
121
  defaultSidebarDockedPreference: boolean;
113
122
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -120,7 +129,7 @@ export declare const actionToggleElementLock: {
120
129
  selectedElementsAreBeingDragged: boolean;
121
130
  shouldCacheIgnoreZoom: boolean;
122
131
  toast: {
123
- message: string;
132
+ message: React.ReactNode;
124
133
  closable?: boolean;
125
134
  duration?: number;
126
135
  } | null;
@@ -135,20 +144,12 @@ export declare const actionToggleElementLock: {
135
144
  height: number;
136
145
  offsetTop: number;
137
146
  offsetLeft: number;
138
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
147
+ fileHandle: FileSystemFileHandle | null;
139
148
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
140
149
  stats: {
141
150
  open: boolean;
142
151
  panels: number;
143
152
  };
144
- currentChartType: import("@excalidraw/element/types").ChartType;
145
- pasteDialog: {
146
- shown: false;
147
- data: null;
148
- } | {
149
- shown: true;
150
- data: import("../charts").Spreadsheet;
151
- };
152
153
  showHyperlinkPopup: false | "info" | "editor";
153
154
  snapLines: readonly import("../snapping").SnapLine[];
154
155
  originSnapOffset: {
@@ -208,8 +209,13 @@ export declare const actionUnlockAllElements: {
208
209
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
209
210
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
210
211
  isBindingEnabled: boolean;
212
+ bindingPreference: "enabled" | "disabled";
213
+ isMidpointSnappingEnabled: boolean;
211
214
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
212
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
215
+ suggestedBinding: {
216
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
217
+ midPoint?: import("@excalidraw/math").GlobalPoint;
218
+ } | null;
213
219
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
214
220
  frameRendering: {
215
221
  enabled: boolean;
@@ -219,7 +225,7 @@ export declare const actionUnlockAllElements: {
219
225
  };
220
226
  editingFrame: string | null;
221
227
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
222
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
228
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
223
229
  activeTool: {
224
230
  lastActiveTool: import("../types").ActiveTool | null;
225
231
  locked: boolean;
@@ -277,6 +283,10 @@ export declare const actionUnlockAllElements: {
277
283
  } | {
278
284
  name: "elementLinkSelector";
279
285
  sourceElementId: ExcalidrawElement["id"];
286
+ } | {
287
+ name: "charts";
288
+ data: import("../charts").Spreadsheet;
289
+ rawText: string;
280
290
  };
281
291
  defaultSidebarDockedPreference: boolean;
282
292
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -289,7 +299,7 @@ export declare const actionUnlockAllElements: {
289
299
  selectedElementsAreBeingDragged: boolean;
290
300
  shouldCacheIgnoreZoom: boolean;
291
301
  toast: {
292
- message: string;
302
+ message: React.ReactNode;
293
303
  closable?: boolean;
294
304
  duration?: number;
295
305
  } | null;
@@ -304,20 +314,12 @@ export declare const actionUnlockAllElements: {
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[];
@@ -30,8 +30,13 @@ export declare const actionSetEmbeddableAsActiveTool: {
30
30
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
31
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
32
  isBindingEnabled: boolean;
33
+ bindingPreference: "enabled" | "disabled";
34
+ isMidpointSnappingEnabled: boolean;
33
35
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
36
+ suggestedBinding: {
37
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
+ midPoint?: import("@excalidraw/math").GlobalPoint;
39
+ } | null;
35
40
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
41
  frameRendering: {
37
42
  enabled: boolean;
@@ -41,7 +46,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
41
46
  };
42
47
  editingFrame: string | null;
43
48
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
44
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
45
50
  preferredSelectionTool: {
46
51
  type: "selection" | "lasso";
47
52
  initialized: boolean;
@@ -94,6 +99,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
94
99
  } | {
95
100
  name: "elementLinkSelector";
96
101
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
102
+ } | {
103
+ name: "charts";
104
+ data: import("../charts").Spreadsheet;
105
+ rawText: string;
97
106
  };
98
107
  defaultSidebarDockedPreference: boolean;
99
108
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -109,7 +118,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
109
118
  selectedElementsAreBeingDragged: boolean;
110
119
  shouldCacheIgnoreZoom: boolean;
111
120
  toast: {
112
- message: string;
121
+ message: React.ReactNode;
113
122
  closable?: boolean;
114
123
  duration?: number;
115
124
  } | null;
@@ -127,20 +136,12 @@ export declare const actionSetEmbeddableAsActiveTool: {
127
136
  height: number;
128
137
  offsetTop: number;
129
138
  offsetLeft: number;
130
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
139
+ fileHandle: FileSystemFileHandle | null;
131
140
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
132
141
  stats: {
133
142
  open: boolean;
134
143
  panels: number;
135
144
  };
136
- currentChartType: import("@excalidraw/element/types").ChartType;
137
- pasteDialog: {
138
- shown: false;
139
- data: null;
140
- } | {
141
- shown: true;
142
- data: import("../charts").Spreadsheet;
143
- };
144
145
  showHyperlinkPopup: false | "info" | "editor";
145
146
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
146
147
  snapLines: readonly import("../snapping").SnapLine[];