@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 actionSelectAllElementsInFrame: {
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 actionSelectAllElementsInFrame: {
38
43
  };
39
44
  editingFrame: string | null;
40
45
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<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 actionSelectAllElementsInFrame: {
96
101
  } | {
97
102
  name: "elementLinkSelector";
98
103
  sourceElementId: 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;
@@ -108,7 +117,7 @@ export declare const actionSelectAllElementsInFrame: {
108
117
  selectedElementsAreBeingDragged: boolean;
109
118
  shouldCacheIgnoreZoom: boolean;
110
119
  toast: {
111
- message: string;
120
+ message: React.ReactNode;
112
121
  closable?: boolean;
113
122
  duration?: number;
114
123
  } | null;
@@ -126,20 +135,12 @@ export declare const actionSelectAllElementsInFrame: {
126
135
  height: number;
127
136
  offsetTop: number;
128
137
  offsetLeft: number;
129
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
138
+ fileHandle: FileSystemFileHandle | null;
130
139
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
131
140
  stats: {
132
141
  open: boolean;
133
142
  panels: number;
134
143
  };
135
- currentChartType: import("@excalidraw/element/types").ChartType;
136
- pasteDialog: {
137
- shown: false;
138
- data: null;
139
- } | {
140
- shown: true;
141
- data: import("../charts").Spreadsheet;
142
- };
143
144
  showHyperlinkPopup: false | "info" | "editor";
144
145
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
145
146
  snapLines: readonly import("../snapping").SnapLine[];
@@ -201,8 +202,13 @@ export declare const actionRemoveAllElementsFromFrame: {
201
202
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
202
203
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
203
204
  isBindingEnabled: boolean;
205
+ bindingPreference: "enabled" | "disabled";
206
+ isMidpointSnappingEnabled: boolean;
204
207
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
205
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
208
+ suggestedBinding: {
209
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
210
+ midPoint?: import("@excalidraw/math").GlobalPoint;
211
+ } | null;
206
212
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
207
213
  frameRendering: {
208
214
  enabled: boolean;
@@ -212,7 +218,7 @@ export declare const actionRemoveAllElementsFromFrame: {
212
218
  };
213
219
  editingFrame: string | null;
214
220
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
215
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
221
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
216
222
  activeTool: {
217
223
  lastActiveTool: import("../types").ActiveTool | null;
218
224
  locked: boolean;
@@ -270,6 +276,10 @@ export declare const actionRemoveAllElementsFromFrame: {
270
276
  } | {
271
277
  name: "elementLinkSelector";
272
278
  sourceElementId: ExcalidrawElement["id"];
279
+ } | {
280
+ name: "charts";
281
+ data: import("../charts").Spreadsheet;
282
+ rawText: string;
273
283
  };
274
284
  defaultSidebarDockedPreference: boolean;
275
285
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -282,7 +292,7 @@ export declare const actionRemoveAllElementsFromFrame: {
282
292
  selectedElementsAreBeingDragged: boolean;
283
293
  shouldCacheIgnoreZoom: boolean;
284
294
  toast: {
285
- message: string;
295
+ message: React.ReactNode;
286
296
  closable?: boolean;
287
297
  duration?: number;
288
298
  } | null;
@@ -300,20 +310,12 @@ export declare const actionRemoveAllElementsFromFrame: {
300
310
  height: number;
301
311
  offsetTop: number;
302
312
  offsetLeft: number;
303
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
313
+ fileHandle: FileSystemFileHandle | null;
304
314
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
305
315
  stats: {
306
316
  open: boolean;
307
317
  panels: number;
308
318
  };
309
- currentChartType: import("@excalidraw/element/types").ChartType;
310
- pasteDialog: {
311
- shown: false;
312
- data: null;
313
- } | {
314
- shown: true;
315
- data: import("../charts").Spreadsheet;
316
- };
317
319
  showHyperlinkPopup: false | "info" | "editor";
318
320
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
319
321
  snapLines: readonly import("../snapping").SnapLine[];
@@ -379,12 +381,17 @@ export declare const actionupdateFrameRendering: {
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
  editingFrame: string | null;
386
393
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
387
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
394
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
388
395
  activeTool: {
389
396
  lastActiveTool: import("../types").ActiveTool | null;
390
397
  locked: boolean;
@@ -442,6 +449,10 @@ export declare const actionupdateFrameRendering: {
442
449
  } | {
443
450
  name: "elementLinkSelector";
444
451
  sourceElementId: ExcalidrawElement["id"];
452
+ } | {
453
+ name: "charts";
454
+ data: import("../charts").Spreadsheet;
455
+ rawText: string;
445
456
  };
446
457
  defaultSidebarDockedPreference: boolean;
447
458
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -457,7 +468,7 @@ export declare const actionupdateFrameRendering: {
457
468
  selectedElementsAreBeingDragged: boolean;
458
469
  shouldCacheIgnoreZoom: boolean;
459
470
  toast: {
460
- message: string;
471
+ message: React.ReactNode;
461
472
  closable?: boolean;
462
473
  duration?: number;
463
474
  } | null;
@@ -475,20 +486,12 @@ export declare const actionupdateFrameRendering: {
475
486
  height: number;
476
487
  offsetTop: number;
477
488
  offsetLeft: number;
478
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
489
+ fileHandle: FileSystemFileHandle | null;
479
490
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
480
491
  stats: {
481
492
  open: boolean;
482
493
  panels: number;
483
494
  };
484
- currentChartType: import("@excalidraw/element/types").ChartType;
485
- pasteDialog: {
486
- shown: false;
487
- data: null;
488
- } | {
489
- shown: true;
490
- data: import("../charts").Spreadsheet;
491
- };
492
495
  showHyperlinkPopup: false | "info" | "editor";
493
496
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
494
497
  snapLines: readonly import("../snapping").SnapLine[];
@@ -550,8 +553,13 @@ export declare const actionSetFrameAsActiveTool: {
550
553
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
551
554
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
552
555
  isBindingEnabled: boolean;
556
+ bindingPreference: "enabled" | "disabled";
557
+ isMidpointSnappingEnabled: boolean;
553
558
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
554
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
559
+ suggestedBinding: {
560
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
561
+ midPoint?: import("@excalidraw/math").GlobalPoint;
562
+ } | null;
555
563
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
556
564
  frameRendering: {
557
565
  enabled: boolean;
@@ -561,7 +569,7 @@ export declare const actionSetFrameAsActiveTool: {
561
569
  };
562
570
  editingFrame: string | null;
563
571
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
564
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
572
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
565
573
  preferredSelectionTool: {
566
574
  type: "selection" | "lasso";
567
575
  initialized: boolean;
@@ -614,6 +622,10 @@ export declare const actionSetFrameAsActiveTool: {
614
622
  } | {
615
623
  name: "elementLinkSelector";
616
624
  sourceElementId: ExcalidrawElement["id"];
625
+ } | {
626
+ name: "charts";
627
+ data: import("../charts").Spreadsheet;
628
+ rawText: string;
617
629
  };
618
630
  defaultSidebarDockedPreference: boolean;
619
631
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -629,7 +641,7 @@ export declare const actionSetFrameAsActiveTool: {
629
641
  selectedElementsAreBeingDragged: boolean;
630
642
  shouldCacheIgnoreZoom: boolean;
631
643
  toast: {
632
- message: string;
644
+ message: React.ReactNode;
633
645
  closable?: boolean;
634
646
  duration?: number;
635
647
  } | null;
@@ -647,20 +659,12 @@ export declare const actionSetFrameAsActiveTool: {
647
659
  height: number;
648
660
  offsetTop: number;
649
661
  offsetLeft: number;
650
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
662
+ fileHandle: FileSystemFileHandle | null;
651
663
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
652
664
  stats: {
653
665
  open: boolean;
654
666
  panels: number;
655
667
  };
656
- currentChartType: import("@excalidraw/element/types").ChartType;
657
- pasteDialog: {
658
- shown: false;
659
- data: null;
660
- } | {
661
- shown: true;
662
- data: import("../charts").Spreadsheet;
663
- };
664
668
  showHyperlinkPopup: false | "info" | "editor";
665
669
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
666
670
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
2
2
  import type { AppClassProperties, AppState } from "../types";
3
3
  export declare const actionGroup: {
4
4
  name: "group";
@@ -33,8 +33,13 @@ export declare const actionGroup: {
33
33
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
34
34
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
35
35
  isBindingEnabled: boolean;
36
+ bindingPreference: "enabled" | "disabled";
37
+ isMidpointSnappingEnabled: boolean;
36
38
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
39
+ suggestedBinding: {
40
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
41
+ midPoint?: import("@excalidraw/math").GlobalPoint;
42
+ } | null;
38
43
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
39
44
  frameRendering: {
40
45
  enabled: boolean;
@@ -44,7 +49,7 @@ export declare const actionGroup: {
44
49
  };
45
50
  editingFrame: string | null;
46
51
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
47
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
52
+ editingTextElement: ExcalidrawTextElement | null;
48
53
  activeTool: {
49
54
  lastActiveTool: import("../types").ActiveTool | null;
50
55
  locked: boolean;
@@ -102,6 +107,10 @@ export declare const actionGroup: {
102
107
  } | {
103
108
  name: "elementLinkSelector";
104
109
  sourceElementId: ExcalidrawElement["id"];
110
+ } | {
111
+ name: "charts";
112
+ data: import("../charts").Spreadsheet;
113
+ rawText: string;
105
114
  };
106
115
  defaultSidebarDockedPreference: boolean;
107
116
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -114,7 +123,7 @@ export declare const actionGroup: {
114
123
  selectedElementsAreBeingDragged: boolean;
115
124
  shouldCacheIgnoreZoom: boolean;
116
125
  toast: {
117
- message: string;
126
+ message: React.ReactNode;
118
127
  closable?: boolean;
119
128
  duration?: number;
120
129
  } | null;
@@ -128,20 +137,12 @@ export declare const actionGroup: {
128
137
  height: number;
129
138
  offsetTop: number;
130
139
  offsetLeft: number;
131
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
140
+ fileHandle: FileSystemFileHandle | null;
132
141
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
133
142
  stats: {
134
143
  open: boolean;
135
144
  panels: number;
136
145
  };
137
- currentChartType: import("@excalidraw/element/types").ChartType;
138
- pasteDialog: {
139
- shown: false;
140
- data: null;
141
- } | {
142
- shown: true;
143
- data: import("../charts").Spreadsheet;
144
- };
145
146
  showHyperlinkPopup: false | "info" | "editor";
146
147
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
147
148
  snapLines: readonly import("../snapping").SnapLine[];
@@ -206,8 +207,13 @@ export declare const actionUngroup: {
206
207
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
207
208
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
208
209
  isBindingEnabled: boolean;
210
+ bindingPreference: "enabled" | "disabled";
211
+ isMidpointSnappingEnabled: boolean;
209
212
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
210
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
213
+ suggestedBinding: {
214
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
215
+ midPoint?: import("@excalidraw/math").GlobalPoint;
216
+ } | null;
211
217
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
212
218
  frameRendering: {
213
219
  enabled: boolean;
@@ -217,7 +223,7 @@ export declare const actionUngroup: {
217
223
  };
218
224
  editingFrame: string | null;
219
225
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
220
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
226
+ editingTextElement: ExcalidrawTextElement | null;
221
227
  activeTool: {
222
228
  lastActiveTool: import("../types").ActiveTool | null;
223
229
  locked: boolean;
@@ -275,6 +281,10 @@ export declare const actionUngroup: {
275
281
  } | {
276
282
  name: "elementLinkSelector";
277
283
  sourceElementId: ExcalidrawElement["id"];
284
+ } | {
285
+ name: "charts";
286
+ data: import("../charts").Spreadsheet;
287
+ rawText: string;
278
288
  };
279
289
  defaultSidebarDockedPreference: boolean;
280
290
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -287,7 +297,7 @@ export declare const actionUngroup: {
287
297
  selectedElementsAreBeingDragged: boolean;
288
298
  shouldCacheIgnoreZoom: boolean;
289
299
  toast: {
290
- message: string;
300
+ message: React.ReactNode;
291
301
  closable?: boolean;
292
302
  duration?: number;
293
303
  } | null;
@@ -301,20 +311,12 @@ export declare const actionUngroup: {
301
311
  height: number;
302
312
  offsetTop: number;
303
313
  offsetLeft: number;
304
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
314
+ fileHandle: FileSystemFileHandle | null;
305
315
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
306
316
  stats: {
307
317
  open: boolean;
308
318
  panels: number;
309
319
  };
310
- currentChartType: import("@excalidraw/element/types").ChartType;
311
- pasteDialog: {
312
- shown: false;
313
- data: null;
314
- } | {
315
- shown: true;
316
- data: import("../charts").Spreadsheet;
317
- };
318
320
  showHyperlinkPopup: false | "info" | "editor";
319
321
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
320
322
  snapLines: readonly import("../snapping").SnapLine[];
@@ -37,6 +37,8 @@ export declare const actionToggleLinearEditor: {
37
37
  }>;
38
38
  hoverPointIndex: number;
39
39
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
40
+ hoveredFocusPointBinding: "start" | "end" | null;
41
+ draggedFocusPointBinding: "start" | "end" | null;
40
42
  elbowed: boolean;
41
43
  customLineAngle: number | null;
42
44
  pointerDownState: never;
@@ -58,8 +60,13 @@ export declare const actionToggleLinearEditor: {
58
60
  multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
59
61
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
60
62
  isBindingEnabled: boolean;
63
+ bindingPreference: "enabled" | "disabled";
64
+ isMidpointSnappingEnabled: boolean;
61
65
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
62
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
66
+ suggestedBinding: {
67
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
68
+ midPoint?: import("@excalidraw/math").GlobalPoint;
69
+ } | null;
63
70
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
64
71
  frameRendering: {
65
72
  enabled: boolean;
@@ -69,7 +76,7 @@ export declare const actionToggleLinearEditor: {
69
76
  };
70
77
  editingFrame: string | null;
71
78
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
72
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
79
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
73
80
  activeTool: {
74
81
  lastActiveTool: import("../types").ActiveTool | null;
75
82
  locked: boolean;
@@ -127,6 +134,10 @@ export declare const actionToggleLinearEditor: {
127
134
  } | {
128
135
  name: "elementLinkSelector";
129
136
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
137
+ } | {
138
+ name: "charts";
139
+ data: import("../charts").Spreadsheet;
140
+ rawText: string;
130
141
  };
131
142
  defaultSidebarDockedPreference: boolean;
132
143
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -142,7 +153,7 @@ export declare const actionToggleLinearEditor: {
142
153
  selectedElementsAreBeingDragged: boolean;
143
154
  shouldCacheIgnoreZoom: boolean;
144
155
  toast: {
145
- message: string;
156
+ message: React.ReactNode;
146
157
  closable?: boolean;
147
158
  duration?: number;
148
159
  } | null;
@@ -160,20 +171,12 @@ export declare const actionToggleLinearEditor: {
160
171
  height: number;
161
172
  offsetTop: number;
162
173
  offsetLeft: number;
163
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
174
+ fileHandle: FileSystemFileHandle | null;
164
175
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
165
176
  stats: {
166
177
  open: boolean;
167
178
  panels: number;
168
179
  };
169
- currentChartType: import("@excalidraw/element/types").ChartType;
170
- pasteDialog: {
171
- shown: false;
172
- data: null;
173
- } | {
174
- shown: true;
175
- data: import("../charts").Spreadsheet;
176
- };
177
180
  showHyperlinkPopup: false | "info" | "editor";
178
181
  snapLines: readonly import("../snapping").SnapLine[];
179
182
  originSnapOffset: {
@@ -24,8 +24,13 @@ export declare const actionLink: {
24
24
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
25
25
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
26
  isBindingEnabled: boolean;
27
+ bindingPreference: "enabled" | "disabled";
28
+ isMidpointSnappingEnabled: boolean;
27
29
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
+ suggestedBinding: {
31
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
32
+ midPoint?: import("@excalidraw/math").GlobalPoint;
33
+ } | null;
29
34
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
35
  frameRendering: {
31
36
  enabled: boolean;
@@ -35,7 +40,7 @@ export declare const actionLink: {
35
40
  };
36
41
  editingFrame: string | null;
37
42
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
39
44
  activeTool: {
40
45
  lastActiveTool: import("../types").ActiveTool | null;
41
46
  locked: boolean;
@@ -92,6 +97,10 @@ export declare const actionLink: {
92
97
  } | {
93
98
  name: "elementLinkSelector";
94
99
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
100
+ } | {
101
+ name: "charts";
102
+ data: import("../charts").Spreadsheet;
103
+ rawText: string;
95
104
  };
96
105
  defaultSidebarDockedPreference: boolean;
97
106
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -107,7 +116,7 @@ export declare const actionLink: {
107
116
  selectedElementsAreBeingDragged: boolean;
108
117
  shouldCacheIgnoreZoom: boolean;
109
118
  toast: {
110
- message: string;
119
+ message: React.ReactNode;
111
120
  closable?: boolean;
112
121
  duration?: number;
113
122
  } | null;
@@ -125,20 +134,12 @@ export declare const actionLink: {
125
134
  height: number;
126
135
  offsetTop: number;
127
136
  offsetLeft: number;
128
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
137
+ fileHandle: FileSystemFileHandle | null;
129
138
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
130
139
  stats: {
131
140
  open: boolean;
132
141
  panels: number;
133
142
  };
134
- currentChartType: import("@excalidraw/element/types").ChartType;
135
- pasteDialog: {
136
- shown: false;
137
- data: null;
138
- } | {
139
- shown: true;
140
- data: import("../charts").Spreadsheet;
141
- };
142
143
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
143
144
  snapLines: readonly import("../snapping").SnapLine[];
144
145
  originSnapOffset: {
@@ -31,8 +31,13 @@ export declare const actionShortcuts: {
31
31
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
32
32
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
33
  isBindingEnabled: boolean;
34
+ bindingPreference: "enabled" | "disabled";
35
+ isMidpointSnappingEnabled: boolean;
34
36
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
+ suggestedBinding: {
38
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
+ midPoint?: import("@excalidraw/math").GlobalPoint;
40
+ } | null;
36
41
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
37
42
  frameRendering: {
38
43
  enabled: boolean;
@@ -42,7 +47,7 @@ export declare const actionShortcuts: {
42
47
  };
43
48
  editingFrame: string | null;
44
49
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
45
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
50
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
46
51
  activeTool: {
47
52
  lastActiveTool: import("../types").ActiveTool | null;
48
53
  locked: boolean;
@@ -100,7 +105,7 @@ export declare const actionShortcuts: {
100
105
  selectedElementsAreBeingDragged: boolean;
101
106
  shouldCacheIgnoreZoom: boolean;
102
107
  toast: {
103
- message: string;
108
+ message: React.ReactNode;
104
109
  closable?: boolean;
105
110
  duration?: number;
106
111
  } | null;
@@ -118,20 +123,12 @@ export declare const actionShortcuts: {
118
123
  height: number;
119
124
  offsetTop: number;
120
125
  offsetLeft: number;
121
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
126
+ fileHandle: FileSystemFileHandle | null;
122
127
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
123
128
  stats: {
124
129
  open: boolean;
125
130
  panels: number;
126
131
  };
127
- currentChartType: import("@excalidraw/element/types").ChartType;
128
- pasteDialog: {
129
- shown: false;
130
- data: null;
131
- } | {
132
- shown: true;
133
- data: import("../charts").Spreadsheet;
134
- };
135
132
  showHyperlinkPopup: false | "info" | "editor";
136
133
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
137
134
  snapLines: readonly import("../snapping").SnapLine[];