@excalidraw/element 0.18.0-c158187 → 0.18.0-c1dbbdf

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 (121) hide show
  1. package/dist/dev/index.js +3420 -2566
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +12 -12
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/colors.d.ts +57 -40
  6. package/dist/types/common/src/constants.d.ts +4 -0
  7. package/dist/types/common/src/editorInterface.d.ts +1 -1
  8. package/dist/types/common/src/index.d.ts +1 -1
  9. package/dist/types/common/src/utils.d.ts +3 -5
  10. package/dist/types/element/src/Scene.d.ts +2 -0
  11. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  12. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  13. package/dist/types/element/src/binding.d.ts +13 -8
  14. package/dist/types/element/src/collision.d.ts +4 -3
  15. package/dist/types/element/src/distribute.d.ts +2 -1
  16. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  17. package/dist/types/element/src/index.d.ts +2 -0
  18. package/dist/types/element/src/linearElementEditor.d.ts +5 -0
  19. package/dist/types/element/src/mutateElement.d.ts +2 -0
  20. package/dist/types/element/src/types.d.ts +1 -1
  21. package/dist/types/element/src/utils.d.ts +5 -3
  22. package/dist/types/{common → element}/src/visualdebug.d.ts +20 -2
  23. package/dist/types/element/src/zindex.d.ts +1 -1
  24. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -27
  25. package/dist/types/excalidraw/actions/actionBoundText.d.ts +20 -18
  26. package/dist/types/excalidraw/actions/actionCanvas.d.ts +121 -109
  27. package/dist/types/excalidraw/actions/actionClipboard.d.ts +20 -18
  28. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -9
  29. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +32 -27
  30. package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -9
  31. package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -18
  32. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +10 -9
  33. package/dist/types/excalidraw/actions/actionExport.d.ts +42 -42
  34. package/dist/types/excalidraw/actions/actionFrame.d.ts +40 -36
  35. package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -18
  36. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +12 -9
  37. package/dist/types/excalidraw/actions/actionLink.d.ts +10 -9
  38. package/dist/types/excalidraw/actions/actionMenu.d.ts +6 -9
  39. package/dist/types/excalidraw/actions/actionProperties.d.ts +20 -18
  40. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -9
  41. package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -9
  42. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
  43. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -9
  44. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  45. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -9
  46. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +6 -9
  47. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -9
  48. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -9
  49. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -9
  50. package/dist/types/excalidraw/actions/index.d.ts +2 -0
  51. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  52. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  53. package/dist/types/excalidraw/appState.d.ts +9 -7
  54. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  55. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  56. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  57. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  58. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  59. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  60. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  61. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  62. package/dist/types/excalidraw/clipboard.d.ts +4 -4
  63. package/dist/types/excalidraw/components/App.d.ts +10 -3
  64. package/dist/types/excalidraw/components/Card.d.ts +1 -2
  65. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +0 -5
  66. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  67. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
  68. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -0
  69. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  70. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  71. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  72. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  73. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  74. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  75. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  76. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  77. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  78. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  79. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  80. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -28
  81. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  82. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -1
  83. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  84. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  85. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  86. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  87. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +14 -13
  88. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  89. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  90. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  91. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  92. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  93. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  94. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  95. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  96. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  97. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  98. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  99. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
  100. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
  101. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
  102. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  103. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
  104. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  105. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  106. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  107. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  108. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  109. package/dist/types/excalidraw/components/icons.d.ts +11 -2
  110. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -0
  111. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
  112. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  113. package/dist/types/excalidraw/data/blob.d.ts +32 -30
  114. package/dist/types/excalidraw/data/json.d.ts +16 -15
  115. package/dist/types/excalidraw/errors.d.ts +14 -0
  116. package/dist/types/excalidraw/index.d.ts +4 -0
  117. package/dist/types/excalidraw/types.d.ts +24 -13
  118. package/dist/types/math/src/point.d.ts +6 -1
  119. package/dist/types/math/src/types.d.ts +25 -1
  120. package/package.json +9 -3
  121. package/dist/types/excalidraw/charts.d.ts +0 -27
@@ -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;
@@ -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;
@@ -137,14 +146,6 @@ export declare const actionDeleteSelected: {
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;
@@ -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;
@@ -326,14 +338,6 @@ export declare const actionDeleteSelected: {
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;
@@ -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;
@@ -478,14 +491,6 @@ export declare const actionDeleteSelected: {
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;
@@ -152,14 +157,6 @@ export declare const actionLinkToElement: {
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;
@@ -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;
@@ -141,14 +150,6 @@ export declare const actionToggleElementLock: {
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;
@@ -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;
@@ -310,14 +320,6 @@ export declare const actionUnlockAllElements: {
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;
@@ -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;
@@ -133,14 +142,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
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[];
@@ -45,8 +45,13 @@ export declare const actionSaveToActiveFile: {
45
45
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
46
46
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
47
47
  isBindingEnabled: boolean;
48
+ bindingPreference: "enabled" | "disabled";
49
+ isMidpointSnappingEnabled: boolean;
48
50
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
49
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
51
+ suggestedBinding: {
52
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
53
+ midPoint?: import("@excalidraw/math").GlobalPoint;
54
+ } | null;
50
55
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
51
56
  frameRendering: {
52
57
  enabled: boolean;
@@ -114,6 +119,10 @@ export declare const actionSaveToActiveFile: {
114
119
  } | {
115
120
  name: "elementLinkSelector";
116
121
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
122
+ } | {
123
+ name: "charts";
124
+ data: import("../charts").Spreadsheet;
125
+ rawText: string;
117
126
  };
118
127
  defaultSidebarDockedPreference: boolean;
119
128
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -147,14 +156,6 @@ export declare const actionSaveToActiveFile: {
147
156
  open: boolean;
148
157
  panels: number;
149
158
  };
150
- currentChartType: import("@excalidraw/element/types").ChartType;
151
- pasteDialog: {
152
- shown: false;
153
- data: null;
154
- } | {
155
- shown: true;
156
- data: import("../charts").Spreadsheet;
157
- };
158
159
  showHyperlinkPopup: false | "info" | "editor";
159
160
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
160
161
  snapLines: readonly import("../snapping").SnapLine[];
@@ -218,8 +219,13 @@ export declare const actionSaveFileToDisk: {
218
219
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
219
220
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
220
221
  isBindingEnabled: boolean;
222
+ bindingPreference: "enabled" | "disabled";
223
+ isMidpointSnappingEnabled: boolean;
221
224
  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;
225
+ suggestedBinding: {
226
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
227
+ midPoint?: import("@excalidraw/math").GlobalPoint;
228
+ } | null;
223
229
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
224
230
  frameRendering: {
225
231
  enabled: boolean;
@@ -307,14 +313,6 @@ export declare const actionSaveFileToDisk: {
307
313
  open: boolean;
308
314
  panels: number;
309
315
  };
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
316
  showHyperlinkPopup: false | "info" | "editor";
319
317
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
320
318
  snapLines: readonly import("../snapping").SnapLine[];
@@ -381,12 +379,21 @@ export declare const actionLoadScene: {
381
379
  } | {
382
380
  name: "elementLinkSelector";
383
381
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
382
+ } | {
383
+ name: "charts";
384
+ data: import("../charts").Spreadsheet;
385
+ rawText: string;
384
386
  };
385
387
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
386
388
  selectedElementIds: Readonly<{
387
389
  [id: string]: true;
388
390
  }>;
389
391
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
392
+ activeTool: {
393
+ lastActiveTool: import("../types").ActiveTool | null;
394
+ locked: boolean;
395
+ fromSelection: boolean;
396
+ } & import("../types").ActiveTool;
390
397
  activeEmbeddable: {
391
398
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
392
399
  state: "hover" | "active";
@@ -399,7 +406,11 @@ export declare const actionLoadScene: {
399
406
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
400
407
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
401
408
  isBindingEnabled: boolean;
402
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
409
+ isMidpointSnappingEnabled: boolean;
410
+ suggestedBinding: {
411
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
412
+ midPoint?: import("@excalidraw/math").GlobalPoint;
413
+ } | null;
403
414
  isRotating: boolean;
404
415
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
405
416
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
@@ -418,6 +429,7 @@ export declare const actionLoadScene: {
418
429
  }>;
419
430
  shouldCacheIgnoreZoom: boolean;
420
431
  exportScale: number;
432
+ currentItemArrowType: "sharp" | "round" | "elbow";
421
433
  bindMode: import("@excalidraw/element/types").BindMode;
422
434
  gridSize: number;
423
435
  contextMenu: {
@@ -429,13 +441,9 @@ export declare const actionLoadScene: {
429
441
  isLoading: boolean;
430
442
  errorMessage: React.ReactNode;
431
443
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
444
+ bindingPreference: "enabled" | "disabled";
432
445
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
433
446
  editingFrame: string | null;
434
- activeTool: {
435
- lastActiveTool: import("../types").ActiveTool | null;
436
- locked: boolean;
437
- fromSelection: boolean;
438
- } & import("../types").ActiveTool;
439
447
  preferredSelectionTool: {
440
448
  type: "selection" | "lasso";
441
449
  initialized: boolean;
@@ -459,7 +467,6 @@ export declare const actionLoadScene: {
459
467
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
460
468
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
461
469
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
462
- currentItemArrowType: "sharp" | "round" | "elbow";
463
470
  cursorButton: "up" | "down";
464
471
  scrolledOutside: boolean;
465
472
  isResizing: boolean;
@@ -487,14 +494,6 @@ export declare const actionLoadScene: {
487
494
  open: boolean;
488
495
  panels: number;
489
496
  };
490
- currentChartType: import("@excalidraw/element/types").ChartType;
491
- pasteDialog: {
492
- shown: false;
493
- data: null;
494
- } | {
495
- shown: true;
496
- data: import("../charts").Spreadsheet;
497
- };
498
497
  showHyperlinkPopup: false | "info" | "editor";
499
498
  originSnapOffset: {
500
499
  x: number;
@@ -529,8 +528,13 @@ export declare const actionLoadScene: {
529
528
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
530
529
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
531
530
  isBindingEnabled: boolean;
531
+ bindingPreference: "enabled" | "disabled";
532
+ isMidpointSnappingEnabled: boolean;
532
533
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
533
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
534
+ suggestedBinding: {
535
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
536
+ midPoint?: import("@excalidraw/math").GlobalPoint;
537
+ } | null;
534
538
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
535
539
  frameRendering: {
536
540
  enabled: boolean;
@@ -598,6 +602,10 @@ export declare const actionLoadScene: {
598
602
  } | {
599
603
  name: "elementLinkSelector";
600
604
  sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
605
+ } | {
606
+ name: "charts";
607
+ data: import("../charts").Spreadsheet;
608
+ rawText: string;
601
609
  };
602
610
  defaultSidebarDockedPreference: boolean;
603
611
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -637,14 +645,6 @@ export declare const actionLoadScene: {
637
645
  open: boolean;
638
646
  panels: number;
639
647
  };
640
- currentChartType: import("@excalidraw/element/types").ChartType;
641
- pasteDialog: {
642
- shown: false;
643
- data: null;
644
- } | {
645
- shown: true;
646
- data: import("../charts").Spreadsheet;
647
- };
648
648
  showHyperlinkPopup: false | "info" | "editor";
649
649
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
650
650
  snapLines: readonly import("../snapping").SnapLine[];
@@ -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;
@@ -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;
@@ -132,14 +141,6 @@ export declare const actionSelectAllElementsInFrame: {
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;
@@ -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;
@@ -306,14 +316,6 @@ export declare const actionRemoveAllElementsFromFrame: {
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,8 +381,13 @@ 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;
@@ -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;
@@ -481,14 +492,6 @@ export declare const actionupdateFrameRendering: {
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;
@@ -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;
@@ -653,14 +665,6 @@ export declare const actionSetFrameAsActiveTool: {
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[];