@excalidraw/common 0.18.0-063e025 → 0.18.0-1acf66e

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 (94) hide show
  1. package/dist/dev/index.js +9 -5
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/constants.d.ts +2 -0
  5. package/dist/types/common/src/points.d.ts +1 -1
  6. package/dist/types/common/src/utils.d.ts +1 -1
  7. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  8. package/dist/types/element/src/arrows/focus.d.ts +5 -2
  9. package/dist/types/element/src/binding.d.ts +12 -3
  10. package/dist/types/element/src/comparisons.d.ts +4 -4
  11. package/dist/types/element/src/convertToShape.d.ts +23 -0
  12. package/dist/types/element/src/dragElements.d.ts +27 -0
  13. package/dist/types/element/src/flowchart.d.ts +6 -6
  14. package/dist/types/element/src/groups.d.ts +1 -1
  15. package/dist/types/element/src/index.d.ts +2 -0
  16. package/dist/types/element/src/linearElementEditor.d.ts +7 -0
  17. package/dist/types/element/src/newElement.d.ts +13 -0
  18. package/dist/types/element/src/selection.d.ts +1 -1
  19. package/dist/types/element/src/textElement.d.ts +6 -3
  20. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +15 -3
  21. package/dist/types/excalidraw/actions/actionBoundText.d.ts +10 -2
  22. package/dist/types/excalidraw/actions/actionCanvas.d.ts +99 -565
  23. package/dist/types/excalidraw/actions/actionClipboard.d.ts +10 -2
  24. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +5 -1
  25. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +16 -3
  26. package/dist/types/excalidraw/actions/actionDeselect.d.ts +2 -1
  27. package/dist/types/excalidraw/actions/actionElementLink.d.ts +5 -1
  28. package/dist/types/excalidraw/actions/actionElementLock.d.ts +10 -2
  29. package/dist/types/excalidraw/actions/actionExport.d.ts +15 -7
  30. package/dist/types/excalidraw/actions/actionFrame.d.ts +15 -178
  31. package/dist/types/excalidraw/actions/actionGroup.d.ts +10 -2
  32. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +6 -1
  33. package/dist/types/excalidraw/actions/actionLink.d.ts +5 -1
  34. package/dist/types/excalidraw/actions/actionMenu.d.ts +5 -1
  35. package/dist/types/excalidraw/actions/actionProperties.d.ts +10 -2
  36. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +5 -1
  37. package/dist/types/excalidraw/actions/actionStyles.d.ts +5 -1
  38. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  39. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +5 -1
  40. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -1
  41. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +5 -1
  42. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -1
  43. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -1
  44. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -1
  45. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -2
  46. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -1
  47. package/dist/types/excalidraw/actions/index.d.ts +0 -1
  48. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  49. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  50. package/dist/types/excalidraw/actions/types.d.ts +5 -1
  51. package/dist/types/excalidraw/appState.d.ts +5 -5
  52. package/dist/types/excalidraw/components/Actions.d.ts +16 -10
  53. package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
  54. package/dist/types/excalidraw/components/App.cursor.d.ts +31 -0
  55. package/dist/types/excalidraw/components/App.d.ts +322 -76
  56. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  57. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  58. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  59. package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
  60. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  61. package/dist/types/excalidraw/components/LayerUI.d.ts +4 -2
  62. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  63. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  64. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  65. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  66. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  67. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  68. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  69. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  70. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  71. package/dist/types/excalidraw/components/Tools.d.ts +145 -0
  72. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -0
  73. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  74. package/dist/types/excalidraw/components/icons.d.ts +1 -1
  75. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  76. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  77. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  78. package/dist/types/excalidraw/data/blob.d.ts +20 -12
  79. package/dist/types/excalidraw/data/json.d.ts +10 -6
  80. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  81. package/dist/types/excalidraw/scene/types.d.ts +3 -0
  82. package/dist/types/excalidraw/types.d.ts +199 -13
  83. package/dist/types/excalidraw/viewport.d.ts +20 -64
  84. package/dist/types/laser-pointer/src/state.d.ts +1 -0
  85. package/dist/types/math/src/index.d.ts +1 -0
  86. package/dist/types/math/src/pca.d.ts +79 -0
  87. package/dist/types/math/src/polygon.d.ts +25 -1
  88. package/package.json +1 -1
  89. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -173
  90. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  91. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  92. package/dist/types/excalidraw/components/shapes.d.ts +0 -270
  93. package/dist/types/excalidraw/cursor.d.ts +0 -5
  94. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
@@ -34,6 +34,10 @@ export declare const actionPaste: {
34
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
36
36
  } | null;
37
+ hoveredArrowTextAnchor: {
38
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
39
+ anchor: "start" | "end" | "label";
40
+ } | null;
37
41
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
38
42
  frameRendering: {
39
43
  enabled: boolean;
@@ -41,7 +45,7 @@ export declare const actionPaste: {
41
45
  outline: boolean;
42
46
  clip: boolean;
43
47
  };
44
- editingFrame: string | null;
48
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
45
49
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
46
50
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
47
51
  activeTool: {
@@ -245,6 +249,10 @@ export declare const actionCopyAsPng: {
245
249
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
246
250
  midPoint?: import("@excalidraw/math").GlobalPoint;
247
251
  } | null;
252
+ hoveredArrowTextAnchor: {
253
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
254
+ anchor: "start" | "end" | "label";
255
+ } | null;
248
256
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
249
257
  frameRendering: {
250
258
  enabled: boolean;
@@ -252,7 +260,7 @@ export declare const actionCopyAsPng: {
252
260
  outline: boolean;
253
261
  clip: boolean;
254
262
  };
255
- editingFrame: string | null;
263
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
256
264
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
257
265
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
258
266
  activeTool: {
@@ -35,6 +35,10 @@ export declare const actionToggleCropEditor: {
35
35
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
36
  midPoint?: import("@excalidraw/math").GlobalPoint;
37
37
  } | null;
38
+ hoveredArrowTextAnchor: {
39
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
40
+ anchor: "start" | "end" | "label";
41
+ } | null;
38
42
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
39
43
  frameRendering: {
40
44
  enabled: boolean;
@@ -42,7 +46,7 @@ export declare const actionToggleCropEditor: {
42
46
  outline: boolean;
43
47
  clip: boolean;
44
48
  };
45
- editingFrame: string | null;
49
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
46
50
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
47
51
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
48
52
  activeTool: {
@@ -36,6 +36,10 @@ export declare const actionDeleteSelected: {
36
36
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
37
  midPoint?: import("@excalidraw/math").GlobalPoint;
38
38
  } | null;
39
+ hoveredArrowTextAnchor: {
40
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
41
+ anchor: "start" | "end" | "label";
42
+ } | null;
39
43
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
40
44
  frameRendering: {
41
45
  enabled: boolean;
@@ -43,7 +47,7 @@ export declare const actionDeleteSelected: {
43
47
  outline: boolean;
44
48
  clip: boolean;
45
49
  };
46
- editingFrame: string | null;
50
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
47
51
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
48
52
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
49
53
  activeTool: {
@@ -189,6 +193,7 @@ export declare const actionDeleteSelected: {
189
193
  };
190
194
  arrowStartIsInside: boolean;
191
195
  altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
196
+ arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
192
197
  }>;
193
198
  isDragging: boolean;
194
199
  lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
@@ -230,6 +235,10 @@ export declare const actionDeleteSelected: {
230
235
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
231
236
  midPoint?: import("@excalidraw/math").GlobalPoint;
232
237
  } | null;
238
+ hoveredArrowTextAnchor: {
239
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
240
+ anchor: "start" | "end" | "label";
241
+ } | null;
233
242
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
234
243
  frameRendering: {
235
244
  enabled: boolean;
@@ -237,7 +246,7 @@ export declare const actionDeleteSelected: {
237
246
  outline: boolean;
238
247
  clip: boolean;
239
248
  };
240
- editingFrame: string | null;
249
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
241
250
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
242
251
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
243
252
  activeTool: {
@@ -397,6 +406,10 @@ export declare const actionDeleteSelected: {
397
406
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
398
407
  midPoint?: import("@excalidraw/math").GlobalPoint;
399
408
  } | null;
409
+ hoveredArrowTextAnchor: {
410
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
411
+ anchor: "start" | "end" | "label";
412
+ } | null;
400
413
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
401
414
  frameRendering: {
402
415
  enabled: boolean;
@@ -404,7 +417,7 @@ export declare const actionDeleteSelected: {
404
417
  outline: boolean;
405
418
  clip: boolean;
406
419
  };
407
- editingFrame: string | null;
420
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
408
421
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
409
422
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
410
423
  preferredSelectionTool: {
@@ -15,6 +15,7 @@ export declare const actionDeselect: {
15
15
  selectionElement: null;
16
16
  showHyperlinkPopup: false;
17
17
  suggestedBinding: null;
18
+ hoveredArrowTextAnchor: null;
18
19
  frameToHighlight: null;
19
20
  selectedElementIds: AppState["selectedElementIds"];
20
21
  selectedGroupIds: AppState["selectedGroupIds"];
@@ -40,7 +41,7 @@ export declare const actionDeselect: {
40
41
  outline: boolean;
41
42
  clip: boolean;
42
43
  };
43
- editingFrame: string | null;
44
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
44
45
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
45
46
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
46
47
  preferredSelectionTool: {
@@ -64,6 +64,10 @@ export declare const actionLinkToElement: {
64
64
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
65
65
  midPoint?: import("@excalidraw/math").GlobalPoint;
66
66
  } | null;
67
+ hoveredArrowTextAnchor: {
68
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
69
+ anchor: "start" | "end" | "label";
70
+ } | null;
67
71
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
68
72
  frameRendering: {
69
73
  enabled: boolean;
@@ -71,7 +75,7 @@ export declare const actionLinkToElement: {
71
75
  outline: boolean;
72
76
  clip: boolean;
73
77
  };
74
- editingFrame: string | null;
78
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
75
79
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
76
80
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
77
81
  activeTool: {
@@ -46,6 +46,10 @@ export declare const actionToggleElementLock: {
46
46
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
47
47
  midPoint?: import("@excalidraw/math").GlobalPoint;
48
48
  } | null;
49
+ hoveredArrowTextAnchor: {
50
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
51
+ anchor: "start" | "end" | "label";
52
+ } | null;
49
53
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
50
54
  frameRendering: {
51
55
  enabled: boolean;
@@ -53,7 +57,7 @@ export declare const actionToggleElementLock: {
53
57
  outline: boolean;
54
58
  clip: boolean;
55
59
  };
56
- editingFrame: string | null;
60
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
57
61
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
58
62
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
59
63
  activeTool: {
@@ -218,6 +222,10 @@ export declare const actionUnlockAllElements: {
218
222
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
219
223
  midPoint?: import("@excalidraw/math").GlobalPoint;
220
224
  } | null;
225
+ hoveredArrowTextAnchor: {
226
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
227
+ anchor: "start" | "end" | "label";
228
+ } | null;
221
229
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
222
230
  frameRendering: {
223
231
  enabled: boolean;
@@ -225,7 +233,7 @@ export declare const actionUnlockAllElements: {
225
233
  outline: boolean;
226
234
  clip: boolean;
227
235
  };
228
- editingFrame: string | null;
236
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
229
237
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
230
238
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
231
239
  activeTool: {
@@ -83,6 +83,11 @@ export declare const actionLoadScene: {
83
83
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
84
84
  appState: {
85
85
  viewModeEnabled: boolean;
86
+ activeTool: {
87
+ lastActiveTool: import("../types").ActiveTool | null;
88
+ locked: boolean;
89
+ fromSelection: boolean;
90
+ } & import("../types").ActiveTool;
86
91
  zenModeEnabled: boolean;
87
92
  gridModeEnabled: boolean;
88
93
  objectsSnapModeEnabled: boolean;
@@ -90,11 +95,6 @@ export declare const actionLoadScene: {
90
95
  name: string | null;
91
96
  currentItemArrowType: "sharp" | "round" | "elbow";
92
97
  gridSize: number;
93
- activeTool: {
94
- lastActiveTool: import("../types").ActiveTool | null;
95
- locked: boolean;
96
- fromSelection: boolean;
97
- } & import("../types").ActiveTool;
98
98
  contextMenu: {
99
99
  items: import("../components/ContextMenu").ContextMenuItems;
100
100
  top: number;
@@ -119,6 +119,10 @@ export declare const actionLoadScene: {
119
119
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
120
120
  midPoint?: import("@excalidraw/math").GlobalPoint;
121
121
  } | null;
122
+ hoveredArrowTextAnchor: {
123
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
124
+ anchor: "start" | "end" | "label";
125
+ } | null;
122
126
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
123
127
  frameRendering: {
124
128
  enabled: boolean;
@@ -126,7 +130,7 @@ export declare const actionLoadScene: {
126
130
  outline: boolean;
127
131
  clip: boolean;
128
132
  };
129
- editingFrame: string | null;
133
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
130
134
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
131
135
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
132
136
  preferredSelectionTool: {
@@ -265,6 +269,10 @@ export declare const actionLoadScene: {
265
269
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
266
270
  midPoint?: import("@excalidraw/math").GlobalPoint;
267
271
  } | null;
272
+ hoveredArrowTextAnchor: {
273
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
274
+ anchor: "start" | "end" | "label";
275
+ } | null;
268
276
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
269
277
  frameRendering: {
270
278
  enabled: boolean;
@@ -272,7 +280,7 @@ export declare const actionLoadScene: {
272
280
  outline: boolean;
273
281
  clip: boolean;
274
282
  };
275
- editingFrame: string | null;
283
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
276
284
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
277
285
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
278
286
  activeTool: {
@@ -34,6 +34,10 @@ export declare const actionSelectAllElementsInFrame: {
34
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
36
36
  } | null;
37
+ hoveredArrowTextAnchor: {
38
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
39
+ anchor: "start" | "end" | "label";
40
+ } | null;
37
41
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
38
42
  frameRendering: {
39
43
  enabled: boolean;
@@ -41,7 +45,7 @@ export declare const actionSelectAllElementsInFrame: {
41
45
  outline: boolean;
42
46
  clip: boolean;
43
47
  };
44
- editingFrame: string | null;
48
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
45
49
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
46
50
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
47
51
  activeTool: {
@@ -211,6 +215,10 @@ export declare const actionRemoveAllElementsFromFrame: {
211
215
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
212
216
  midPoint?: import("@excalidraw/math").GlobalPoint;
213
217
  } | null;
218
+ hoveredArrowTextAnchor: {
219
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
220
+ anchor: "start" | "end" | "label";
221
+ } | null;
214
222
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
215
223
  frameRendering: {
216
224
  enabled: boolean;
@@ -218,7 +226,7 @@ export declare const actionRemoveAllElementsFromFrame: {
218
226
  outline: boolean;
219
227
  clip: boolean;
220
228
  };
221
- editingFrame: string | null;
229
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
222
230
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
223
231
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
224
232
  activeTool: {
@@ -392,8 +400,12 @@ export declare const actionupdateFrameRendering: {
392
400
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
393
401
  midPoint?: import("@excalidraw/math").GlobalPoint;
394
402
  } | null;
403
+ hoveredArrowTextAnchor: {
404
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
405
+ anchor: "start" | "end" | "label";
406
+ } | null;
395
407
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
396
- editingFrame: string | null;
408
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
397
409
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
398
410
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
399
411
  activeTool: {
@@ -526,181 +538,6 @@ export declare const actionupdateFrameRendering: {
526
538
  } & {
527
539
  keyTest?: undefined;
528
540
  };
529
- export declare const actionSetFrameAsActiveTool: {
530
- name: "setFrameAsActiveTool";
531
- label: string;
532
- trackEvent: {
533
- category: "toolbar";
534
- };
535
- icon: import("react/jsx-runtime").JSX.Element;
536
- viewMode: false;
537
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
538
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
539
- appState: {
540
- activeTool: {
541
- lastActiveTool: import("../types").ActiveTool | null;
542
- locked: boolean;
543
- fromSelection: boolean;
544
- } & import("../types").ActiveTool;
545
- contextMenu: {
546
- items: import("../components/ContextMenu").ContextMenuItems;
547
- top: number;
548
- left: number;
549
- } | null;
550
- showWelcomeScreen: boolean;
551
- isLoading: boolean;
552
- errorMessage: React.ReactNode;
553
- activeEmbeddable: {
554
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
555
- state: "hover" | "active";
556
- } | null;
557
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
558
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
559
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
560
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
561
- isBindingEnabled: boolean;
562
- boxSelectionMode: import("../types").BoxSelectionMode;
563
- bindingPreference: "enabled" | "disabled";
564
- isMidpointSnappingEnabled: boolean;
565
- suggestedBinding: {
566
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
567
- midPoint?: import("@excalidraw/math").GlobalPoint;
568
- } | null;
569
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
570
- frameRendering: {
571
- enabled: boolean;
572
- name: boolean;
573
- outline: boolean;
574
- clip: boolean;
575
- };
576
- editingFrame: string | null;
577
- elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
578
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
579
- preferredSelectionTool: {
580
- type: "selection" | "lasso";
581
- initialized: boolean;
582
- };
583
- penMode: boolean;
584
- penDetected: boolean;
585
- exportBackground: boolean;
586
- exportEmbedScene: boolean;
587
- exportWithDarkMode: boolean;
588
- exportScale: number;
589
- currentItemStrokeColor: string;
590
- currentItemBackgroundColor: string;
591
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
592
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
593
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
594
- currentItemRoughness: number;
595
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
596
- currentItemOpacity: number;
597
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
598
- currentItemFontSize: number;
599
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
600
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
601
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
602
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
603
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
604
- currentItemArrowType: "sharp" | "round" | "elbow";
605
- viewBackgroundColor: string;
606
- scrollX: number;
607
- scrollY: number;
608
- scrollConstraints: import("../types").ScrollConstraints | null;
609
- cursorButton: "up" | "down";
610
- scrolledOutside: boolean;
611
- name: string | null;
612
- isResizing: boolean;
613
- isRotating: boolean;
614
- zoom: import("../types").Zoom;
615
- openMenu: "canvas" | null;
616
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
617
- openSidebar: {
618
- name: import("../types").SidebarName;
619
- tab?: import("../types").SidebarTabName;
620
- } | null;
621
- openDialog: null | {
622
- name: "imageExport" | "help" | "jsonExport";
623
- } | {
624
- name: "ttd";
625
- tab: "text-to-diagram" | "mermaid";
626
- } | {
627
- name: "commandPalette";
628
- } | {
629
- name: "settings";
630
- } | {
631
- name: "elementLinkSelector";
632
- sourceElementId: ExcalidrawElement["id"];
633
- } | {
634
- name: "charts";
635
- data: import("../charts").Spreadsheet;
636
- rawText: string;
637
- };
638
- defaultSidebarDockedPreference: boolean;
639
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
640
- selectedElementIds: Readonly<{
641
- [id: string]: true;
642
- }>;
643
- hoveredElementIds: Readonly<{
644
- [id: string]: true;
645
- }>;
646
- previousSelectedElementIds: {
647
- [id: string]: true;
648
- };
649
- selectedElementsAreBeingDragged: boolean;
650
- shouldCacheIgnoreZoom: boolean;
651
- toast: {
652
- message: React.ReactNode;
653
- closable?: boolean;
654
- duration?: number;
655
- } | null;
656
- zenModeEnabled: boolean;
657
- theme: import("@excalidraw/element/types").Theme;
658
- gridSize: number;
659
- gridStep: number;
660
- gridModeEnabled: boolean;
661
- viewModeEnabled: boolean;
662
- selectedGroupIds: {
663
- [groupId: string]: boolean;
664
- };
665
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
666
- width: number;
667
- height: number;
668
- offsetTop: number;
669
- offsetLeft: number;
670
- fileHandle: FileSystemFileHandle | null;
671
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
672
- stats: {
673
- open: boolean;
674
- panels: number;
675
- };
676
- showHyperlinkPopup: false | "info" | "editor";
677
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
678
- snapLines: readonly import("../snapping").SnapLine[];
679
- originSnapOffset: {
680
- x: number;
681
- y: number;
682
- } | null;
683
- objectsSnapModeEnabled: boolean;
684
- userToFollow: import("../types").UserToFollow | null;
685
- followedBy: Set<import("../types").SocketId>;
686
- isCropping: boolean;
687
- croppingElementId: ExcalidrawElement["id"] | null;
688
- searchMatches: Readonly<{
689
- focusedId: ExcalidrawElement["id"] | null;
690
- matches: readonly import("../types").SearchMatch[];
691
- }> | null;
692
- activeLockedId: string | null;
693
- lockedMultiSelections: {
694
- [groupId: string]: true;
695
- };
696
- bindMode: import("@excalidraw/element/types").BindMode;
697
- };
698
- captureUpdate: "EVENTUALLY";
699
- };
700
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
701
- } & {
702
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
703
- };
704
541
  export declare const actionWrapSelectionInFrame: {
705
542
  name: "wrapSelectionInFrame";
706
543
  label: string;
@@ -40,6 +40,10 @@ export declare const actionGroup: {
40
40
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
41
41
  midPoint?: import("@excalidraw/math").GlobalPoint;
42
42
  } | null;
43
+ hoveredArrowTextAnchor: {
44
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
45
+ anchor: "start" | "end" | "label";
46
+ } | null;
43
47
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
44
48
  frameRendering: {
45
49
  enabled: boolean;
@@ -47,7 +51,7 @@ export declare const actionGroup: {
47
51
  outline: boolean;
48
52
  clip: boolean;
49
53
  };
50
- editingFrame: string | null;
54
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
51
55
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
52
56
  editingTextElement: ExcalidrawTextElement | null;
53
57
  activeTool: {
@@ -216,6 +220,10 @@ export declare const actionUngroup: {
216
220
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
217
221
  midPoint?: import("@excalidraw/math").GlobalPoint;
218
222
  } | null;
223
+ hoveredArrowTextAnchor: {
224
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
225
+ anchor: "start" | "end" | "label";
226
+ } | null;
219
227
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
220
228
  frameRendering: {
221
229
  enabled: boolean;
@@ -223,7 +231,7 @@ export declare const actionUngroup: {
223
231
  outline: boolean;
224
232
  clip: boolean;
225
233
  };
226
- editingFrame: string | null;
234
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
227
235
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
228
236
  editingTextElement: ExcalidrawTextElement | null;
229
237
  activeTool: {
@@ -27,6 +27,7 @@ export declare const actionToggleLinearEditor: {
27
27
  };
28
28
  arrowStartIsInside: boolean;
29
29
  altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
30
+ arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
30
31
  }>;
31
32
  isDragging: boolean;
32
33
  lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
@@ -67,6 +68,10 @@ export declare const actionToggleLinearEditor: {
67
68
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
68
69
  midPoint?: import("@excalidraw/math").GlobalPoint;
69
70
  } | null;
71
+ hoveredArrowTextAnchor: {
72
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
73
+ anchor: "start" | "end" | "label";
74
+ } | null;
70
75
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
71
76
  frameRendering: {
72
77
  enabled: boolean;
@@ -74,7 +79,7 @@ export declare const actionToggleLinearEditor: {
74
79
  outline: boolean;
75
80
  clip: boolean;
76
81
  };
77
- editingFrame: string | null;
82
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
78
83
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
79
84
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
80
85
  activeTool: {
@@ -31,6 +31,10 @@ export declare const actionLink: {
31
31
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
32
32
  midPoint?: import("@excalidraw/math").GlobalPoint;
33
33
  } | null;
34
+ hoveredArrowTextAnchor: {
35
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
36
+ anchor: "start" | "end" | "label";
37
+ } | null;
34
38
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
39
  frameRendering: {
36
40
  enabled: boolean;
@@ -38,7 +42,7 @@ export declare const actionLink: {
38
42
  outline: boolean;
39
43
  clip: boolean;
40
44
  };
41
- editingFrame: string | null;
45
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
42
46
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
43
47
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
44
48
  activeTool: {
@@ -38,6 +38,10 @@ export declare const actionShortcuts: {
38
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
40
40
  } | null;
41
+ hoveredArrowTextAnchor: {
42
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
43
+ anchor: "start" | "end" | "label";
44
+ } | null;
41
45
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
42
46
  frameRendering: {
43
47
  enabled: boolean;
@@ -45,7 +49,7 @@ export declare const actionShortcuts: {
45
49
  outline: boolean;
46
50
  clip: boolean;
47
51
  };
48
- editingFrame: string | null;
52
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
49
53
  elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
50
54
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
51
55
  activeTool: {