@excalidraw/math 0.18.0-4e758db → 0.18.0-4f68076

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 (80) hide show
  1. package/dist/dev/index.js +8 -2
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/src/constants.d.ts +10 -0
  5. package/dist/types/common/src/utils.d.ts +5 -0
  6. package/dist/types/element/src/binding.d.ts +13 -7
  7. package/dist/types/element/src/collision.d.ts +14 -5
  8. package/dist/types/element/src/duplicate.d.ts +60 -0
  9. package/dist/types/element/src/index.d.ts +1 -0
  10. package/dist/types/element/src/listMarker.d.ts +34 -0
  11. package/dist/types/element/src/newElement.d.ts +15 -1
  12. package/dist/types/element/src/renderElement.d.ts +21 -4
  13. package/dist/types/element/src/shape.d.ts +15 -1
  14. package/dist/types/element/src/textElement.d.ts +7 -0
  15. package/dist/types/element/src/utils.d.ts +8 -1
  16. package/dist/types/element/src/zindex.d.ts +1 -1
  17. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -3
  18. package/dist/types/excalidraw/actions/actionBoundText.d.ts +20 -2
  19. package/dist/types/excalidraw/actions/actionCanvas.d.ts +70 -7
  20. package/dist/types/excalidraw/actions/actionClipboard.d.ts +20 -2
  21. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -1
  22. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +30 -3
  23. package/dist/types/excalidraw/actions/actionDeselect.d.ts +13 -1
  24. package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -1
  25. package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -2
  26. package/dist/types/excalidraw/actions/actionExport.d.ts +20 -2
  27. package/dist/types/excalidraw/actions/actionFrame.d.ts +30 -3
  28. package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -2
  29. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +10 -1
  30. package/dist/types/excalidraw/actions/actionLink.d.ts +10 -1
  31. package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -1
  32. package/dist/types/excalidraw/actions/actionProperties.d.ts +20 -2
  33. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -1
  34. package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -1
  35. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +10 -1
  36. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -1
  37. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +10 -1
  38. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -1
  39. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -1
  40. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +197 -0
  41. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -1
  42. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -1
  43. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -1
  44. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  45. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  46. package/dist/types/excalidraw/appState.d.ts +2 -0
  47. package/dist/types/excalidraw/components/App.arrowText.d.ts +5 -39
  48. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  49. package/dist/types/excalidraw/components/App.d.ts +82 -262
  50. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  51. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  52. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  53. package/dist/types/excalidraw/components/App.selectionTool.d.ts +57 -0
  54. package/dist/types/excalidraw/components/App.text.d.ts +146 -0
  55. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  56. package/dist/types/excalidraw/components/App.viewport.d.ts +41 -1
  57. package/dist/types/excalidraw/components/App.wheel.d.ts +3 -10
  58. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  59. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  60. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  61. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  62. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  63. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  64. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  65. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  66. package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
  67. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  68. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  69. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  70. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -0
  71. package/dist/types/excalidraw/data/blob.d.ts +20 -2
  72. package/dist/types/excalidraw/data/json.d.ts +10 -1
  73. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  74. package/dist/types/excalidraw/scene/Renderer.d.ts +14 -1
  75. package/dist/types/excalidraw/scene/types.d.ts +2 -1
  76. package/dist/types/excalidraw/types.d.ts +92 -19
  77. package/dist/types/excalidraw/viewport.d.ts +23 -1
  78. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
  79. package/package.json +2 -2
  80. package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +0 -31
@@ -30,12 +30,20 @@ export declare const actionSelectAllElementsInFrame: {
30
30
  boxSelectionMode: import("../types").BoxSelectionMode;
31
31
  bindingPreference: "enabled" | "disabled";
32
32
  isMidpointSnappingEnabled: boolean;
33
+ showHints: boolean;
33
34
  inputDevice: import("../types").InputDevice;
34
35
  suggestedBinding: {
35
36
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
37
  midPoint?: import("@excalidraw/math").GlobalPoint;
37
38
  } | null;
38
- hoveredArrowTextAnchor: {
39
+ textToolHover: {
40
+ type: "text";
41
+ elementId: ExcalidrawElement["id"];
42
+ } | {
43
+ type: "container";
44
+ elementId: ExcalidrawElement["id"];
45
+ } | {
46
+ type: "arrow";
39
47
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
40
48
  anchor: "start" | "end" | "label";
41
49
  } | null;
@@ -176,6 +184,7 @@ export declare const actionSelectAllElementsInFrame: {
176
184
  stickyNoteStroke: readonly string[] | null;
177
185
  stickyNoteBackground: readonly string[] | null;
178
186
  };
187
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
179
188
  };
180
189
  captureUpdate: "IMMEDIATELY";
181
190
  } | {
@@ -219,12 +228,20 @@ export declare const actionRemoveAllElementsFromFrame: {
219
228
  boxSelectionMode: import("../types").BoxSelectionMode;
220
229
  bindingPreference: "enabled" | "disabled";
221
230
  isMidpointSnappingEnabled: boolean;
231
+ showHints: boolean;
222
232
  inputDevice: import("../types").InputDevice;
223
233
  suggestedBinding: {
224
234
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
225
235
  midPoint?: import("@excalidraw/math").GlobalPoint;
226
236
  } | null;
227
- hoveredArrowTextAnchor: {
237
+ textToolHover: {
238
+ type: "text";
239
+ elementId: ExcalidrawElement["id"];
240
+ } | {
241
+ type: "container";
242
+ elementId: ExcalidrawElement["id"];
243
+ } | {
244
+ type: "arrow";
228
245
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
229
246
  anchor: "start" | "end" | "label";
230
247
  } | null;
@@ -365,6 +382,7 @@ export declare const actionRemoveAllElementsFromFrame: {
365
382
  stickyNoteStroke: readonly string[] | null;
366
383
  stickyNoteBackground: readonly string[] | null;
367
384
  };
385
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
368
386
  };
369
387
  captureUpdate: "IMMEDIATELY";
370
388
  } | {
@@ -412,12 +430,20 @@ export declare const actionupdateFrameRendering: {
412
430
  boxSelectionMode: import("../types").BoxSelectionMode;
413
431
  bindingPreference: "enabled" | "disabled";
414
432
  isMidpointSnappingEnabled: boolean;
433
+ showHints: boolean;
415
434
  inputDevice: import("../types").InputDevice;
416
435
  suggestedBinding: {
417
436
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
418
437
  midPoint?: import("@excalidraw/math").GlobalPoint;
419
438
  } | null;
420
- hoveredArrowTextAnchor: {
439
+ textToolHover: {
440
+ type: "text";
441
+ elementId: ExcalidrawElement["id"];
442
+ } | {
443
+ type: "container";
444
+ elementId: ExcalidrawElement["id"];
445
+ } | {
446
+ type: "arrow";
421
447
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
422
448
  anchor: "start" | "end" | "label";
423
449
  } | null;
@@ -555,6 +581,7 @@ export declare const actionupdateFrameRendering: {
555
581
  stickyNoteStroke: readonly string[] | null;
556
582
  stickyNoteBackground: readonly string[] | null;
557
583
  };
584
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
558
585
  };
559
586
  captureUpdate: "EVENTUALLY";
560
587
  };
@@ -36,12 +36,20 @@ export declare const actionGroup: {
36
36
  boxSelectionMode: import("../types").BoxSelectionMode;
37
37
  bindingPreference: "enabled" | "disabled";
38
38
  isMidpointSnappingEnabled: boolean;
39
+ showHints: boolean;
39
40
  inputDevice: import("../types").InputDevice;
40
41
  suggestedBinding: {
41
42
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
42
43
  midPoint?: import("@excalidraw/math").GlobalPoint;
43
44
  } | null;
44
- hoveredArrowTextAnchor: {
45
+ textToolHover: {
46
+ type: "text";
47
+ elementId: ExcalidrawElement["id"];
48
+ } | {
49
+ type: "container";
50
+ elementId: ExcalidrawElement["id"];
51
+ } | {
52
+ type: "arrow";
45
53
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
46
54
  anchor: "start" | "end" | "label";
47
55
  } | null;
@@ -178,6 +186,7 @@ export declare const actionGroup: {
178
186
  stickyNoteStroke: readonly string[] | null;
179
187
  stickyNoteBackground: readonly string[] | null;
180
188
  };
189
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
181
190
  };
182
191
  elements: OrderedExcalidrawElement[];
183
192
  captureUpdate: "IMMEDIATELY";
@@ -224,12 +233,20 @@ export declare const actionUngroup: {
224
233
  boxSelectionMode: import("../types").BoxSelectionMode;
225
234
  bindingPreference: "enabled" | "disabled";
226
235
  isMidpointSnappingEnabled: boolean;
236
+ showHints: boolean;
227
237
  inputDevice: import("../types").InputDevice;
228
238
  suggestedBinding: {
229
239
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
230
240
  midPoint?: import("@excalidraw/math").GlobalPoint;
231
241
  } | null;
232
- hoveredArrowTextAnchor: {
242
+ textToolHover: {
243
+ type: "text";
244
+ elementId: ExcalidrawElement["id"];
245
+ } | {
246
+ type: "container";
247
+ elementId: ExcalidrawElement["id"];
248
+ } | {
249
+ type: "arrow";
233
250
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
234
251
  anchor: "start" | "end" | "label";
235
252
  } | null;
@@ -366,6 +383,7 @@ export declare const actionUngroup: {
366
383
  stickyNoteStroke: readonly string[] | null;
367
384
  stickyNoteBackground: readonly string[] | null;
368
385
  };
386
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
369
387
  };
370
388
  elements: OrderedExcalidrawElement[];
371
389
  captureUpdate: "IMMEDIATELY";
@@ -64,12 +64,20 @@ export declare const actionToggleLinearEditor: {
64
64
  boxSelectionMode: import("../types").BoxSelectionMode;
65
65
  bindingPreference: "enabled" | "disabled";
66
66
  isMidpointSnappingEnabled: boolean;
67
+ showHints: boolean;
67
68
  inputDevice: import("../types").InputDevice;
68
69
  suggestedBinding: {
69
70
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
70
71
  midPoint?: import("@excalidraw/math").GlobalPoint;
71
72
  } | null;
72
- hoveredArrowTextAnchor: {
73
+ textToolHover: {
74
+ type: "text";
75
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
76
+ } | {
77
+ type: "container";
78
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
79
+ } | {
80
+ type: "arrow";
73
81
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
74
82
  anchor: "start" | "end" | "label";
75
83
  } | null;
@@ -212,6 +220,7 @@ export declare const actionToggleLinearEditor: {
212
220
  stickyNoteStroke: readonly string[] | null;
213
221
  stickyNoteBackground: readonly string[] | null;
214
222
  };
223
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
215
224
  };
216
225
  captureUpdate: "IMMEDIATELY";
217
226
  };
@@ -27,12 +27,20 @@ export declare const actionLink: {
27
27
  boxSelectionMode: import("../types").BoxSelectionMode;
28
28
  bindingPreference: "enabled" | "disabled";
29
29
  isMidpointSnappingEnabled: boolean;
30
+ showHints: boolean;
30
31
  inputDevice: import("../types").InputDevice;
31
32
  suggestedBinding: {
32
33
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
34
  midPoint?: import("@excalidraw/math").GlobalPoint;
34
35
  } | null;
35
- hoveredArrowTextAnchor: {
36
+ textToolHover: {
37
+ type: "text";
38
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
39
+ } | {
40
+ type: "container";
41
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
42
+ } | {
43
+ type: "arrow";
36
44
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
37
45
  anchor: "start" | "end" | "label";
38
46
  } | null;
@@ -174,6 +182,7 @@ export declare const actionLink: {
174
182
  stickyNoteStroke: readonly string[] | null;
175
183
  stickyNoteBackground: readonly string[] | null;
176
184
  };
185
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
177
186
  };
178
187
  captureUpdate: "IMMEDIATELY";
179
188
  };
@@ -34,12 +34,20 @@ export declare const actionShortcuts: {
34
34
  boxSelectionMode: import("../types").BoxSelectionMode;
35
35
  bindingPreference: "enabled" | "disabled";
36
36
  isMidpointSnappingEnabled: boolean;
37
+ showHints: boolean;
37
38
  inputDevice: import("../types").InputDevice;
38
39
  suggestedBinding: {
39
40
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
40
41
  midPoint?: import("@excalidraw/math").GlobalPoint;
41
42
  } | null;
42
- hoveredArrowTextAnchor: {
43
+ textToolHover: {
44
+ type: "text";
45
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
46
+ } | {
47
+ type: "container";
48
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
49
+ } | {
50
+ type: "arrow";
43
51
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
44
52
  anchor: "start" | "end" | "label";
45
53
  } | null;
@@ -164,6 +172,7 @@ export declare const actionShortcuts: {
164
172
  stickyNoteStroke: readonly string[] | null;
165
173
  stickyNoteBackground: readonly string[] | null;
166
174
  };
175
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
167
176
  };
168
177
  captureUpdate: "EVENTUALLY";
169
178
  };
@@ -72,12 +72,20 @@ export declare const actionDecreaseFontSize: {
72
72
  boxSelectionMode: import("../types").BoxSelectionMode;
73
73
  bindingPreference: "enabled" | "disabled";
74
74
  isMidpointSnappingEnabled: boolean;
75
+ showHints: boolean;
75
76
  inputDevice: import("../types").InputDevice;
76
77
  suggestedBinding: {
77
78
  element: NonDeleted<ExcalidrawBindableElement>;
78
79
  midPoint?: import("@excalidraw/math").GlobalPoint;
79
80
  } | null;
80
- hoveredArrowTextAnchor: {
81
+ textToolHover: {
82
+ type: "text";
83
+ elementId: ExcalidrawElement["id"];
84
+ } | {
85
+ type: "container";
86
+ elementId: ExcalidrawElement["id"];
87
+ } | {
88
+ type: "arrow";
81
89
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
82
90
  anchor: "start" | "end" | "label";
83
91
  } | null;
@@ -220,6 +228,7 @@ export declare const actionDecreaseFontSize: {
220
228
  stickyNoteStroke: readonly string[] | null;
221
229
  stickyNoteBackground: readonly string[] | null;
222
230
  };
231
+ fontTopPicks: readonly FontFamilyValues[] | null;
223
232
  };
224
233
  captureUpdate: "IMMEDIATELY";
225
234
  };
@@ -256,12 +265,20 @@ export declare const actionIncreaseFontSize: {
256
265
  boxSelectionMode: import("../types").BoxSelectionMode;
257
266
  bindingPreference: "enabled" | "disabled";
258
267
  isMidpointSnappingEnabled: boolean;
268
+ showHints: boolean;
259
269
  inputDevice: import("../types").InputDevice;
260
270
  suggestedBinding: {
261
271
  element: NonDeleted<ExcalidrawBindableElement>;
262
272
  midPoint?: import("@excalidraw/math").GlobalPoint;
263
273
  } | null;
264
- hoveredArrowTextAnchor: {
274
+ textToolHover: {
275
+ type: "text";
276
+ elementId: ExcalidrawElement["id"];
277
+ } | {
278
+ type: "container";
279
+ elementId: ExcalidrawElement["id"];
280
+ } | {
281
+ type: "arrow";
265
282
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
266
283
  anchor: "start" | "end" | "label";
267
284
  } | null;
@@ -404,6 +421,7 @@ export declare const actionIncreaseFontSize: {
404
421
  stickyNoteStroke: readonly string[] | null;
405
422
  stickyNoteBackground: readonly string[] | null;
406
423
  };
424
+ fontTopPicks: readonly FontFamilyValues[] | null;
407
425
  };
408
426
  captureUpdate: "IMMEDIATELY";
409
427
  };
@@ -34,12 +34,20 @@ export declare const actionSelectAll: {
34
34
  boxSelectionMode: import("../types").BoxSelectionMode;
35
35
  bindingPreference: "enabled" | "disabled";
36
36
  isMidpointSnappingEnabled: boolean;
37
+ showHints: boolean;
37
38
  inputDevice: import("../types").InputDevice;
38
39
  suggestedBinding: {
39
40
  element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
40
41
  midPoint?: import("@excalidraw/math").GlobalPoint;
41
42
  } | null;
42
- hoveredArrowTextAnchor: {
43
+ textToolHover: {
44
+ type: "text";
45
+ elementId: ExcalidrawElement["id"];
46
+ } | {
47
+ type: "container";
48
+ elementId: ExcalidrawElement["id"];
49
+ } | {
50
+ type: "arrow";
43
51
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
44
52
  anchor: "start" | "end" | "label";
45
53
  } | null;
@@ -175,6 +183,7 @@ export declare const actionSelectAll: {
175
183
  stickyNoteStroke: readonly string[] | null;
176
184
  stickyNoteBackground: readonly string[] | null;
177
185
  };
186
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
178
187
  };
179
188
  captureUpdate: "IMMEDIATELY";
180
189
  };
@@ -32,12 +32,20 @@ export declare const actionCopyStyles: {
32
32
  boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
35
36
  inputDevice: import("../types").InputDevice;
36
37
  suggestedBinding: {
37
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
39
40
  } | null;
40
- hoveredArrowTextAnchor: {
41
+ textToolHover: {
42
+ type: "text";
43
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
47
+ } | {
48
+ type: "arrow";
41
49
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
42
50
  anchor: "start" | "end" | "label";
43
51
  } | null;
@@ -176,6 +184,7 @@ export declare const actionCopyStyles: {
176
184
  stickyNoteStroke: readonly string[] | null;
177
185
  stickyNoteBackground: readonly string[] | null;
178
186
  };
187
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
179
188
  };
180
189
  captureUpdate: "EVENTUALLY";
181
190
  };
@@ -28,12 +28,20 @@ export declare const actionToggleArrowBinding: {
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  boxSelectionMode: import("../types").BoxSelectionMode;
30
30
  isMidpointSnappingEnabled: boolean;
31
+ showHints: boolean;
31
32
  inputDevice: import("../types").InputDevice;
32
33
  suggestedBinding: {
33
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
34
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
35
36
  } | null;
36
- hoveredArrowTextAnchor: {
37
+ textToolHover: {
38
+ type: "text";
39
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
40
+ } | {
41
+ type: "container";
42
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
43
+ } | {
44
+ type: "arrow";
37
45
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
38
46
  anchor: "start" | "end" | "label";
39
47
  } | null;
@@ -177,6 +185,7 @@ export declare const actionToggleArrowBinding: {
177
185
  stickyNoteStroke: readonly string[] | null;
178
186
  stickyNoteBackground: readonly string[] | null;
179
187
  };
188
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
180
189
  };
181
190
  captureUpdate: "NEVER";
182
191
  };
@@ -32,12 +32,20 @@ export declare const actionToggleGridMode: {
32
32
  boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
35
36
  inputDevice: import("../types").InputDevice;
36
37
  suggestedBinding: {
37
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
39
40
  } | null;
40
- hoveredArrowTextAnchor: {
41
+ textToolHover: {
42
+ type: "text";
43
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
47
+ } | {
48
+ type: "arrow";
41
49
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
42
50
  anchor: "start" | "end" | "label";
43
51
  } | null;
@@ -179,6 +187,7 @@ export declare const actionToggleGridMode: {
179
187
  stickyNoteStroke: readonly string[] | null;
180
188
  stickyNoteBackground: readonly string[] | null;
181
189
  };
190
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
182
191
  };
183
192
  captureUpdate: "EVENTUALLY";
184
193
  };
@@ -28,12 +28,20 @@ export declare const actionToggleMidpointSnapping: {
28
28
  isBindingEnabled: boolean;
29
29
  boxSelectionMode: import("../types").BoxSelectionMode;
30
30
  bindingPreference: "enabled" | "disabled";
31
+ showHints: boolean;
31
32
  inputDevice: import("../types").InputDevice;
32
33
  suggestedBinding: {
33
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
34
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
35
36
  } | null;
36
- hoveredArrowTextAnchor: {
37
+ textToolHover: {
38
+ type: "text";
39
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
40
+ } | {
41
+ type: "container";
42
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
43
+ } | {
44
+ type: "arrow";
37
45
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
38
46
  anchor: "start" | "end" | "label";
39
47
  } | null;
@@ -177,6 +185,7 @@ export declare const actionToggleMidpointSnapping: {
177
185
  stickyNoteStroke: readonly string[] | null;
178
186
  stickyNoteBackground: readonly string[] | null;
179
187
  };
188
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
180
189
  };
181
190
  captureUpdate: "NEVER";
182
191
  };
@@ -31,12 +31,20 @@ export declare const actionToggleObjectsSnapMode: {
31
31
  boxSelectionMode: import("../types").BoxSelectionMode;
32
32
  bindingPreference: "enabled" | "disabled";
33
33
  isMidpointSnappingEnabled: boolean;
34
+ showHints: boolean;
34
35
  inputDevice: import("../types").InputDevice;
35
36
  suggestedBinding: {
36
37
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
38
  midPoint?: import("@excalidraw/math").GlobalPoint;
38
39
  } | null;
39
- hoveredArrowTextAnchor: {
40
+ textToolHover: {
41
+ type: "text";
42
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
43
+ } | {
44
+ type: "container";
45
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
46
+ } | {
47
+ type: "arrow";
40
48
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
41
49
  anchor: "start" | "end" | "label";
42
50
  } | null;
@@ -178,6 +186,7 @@ export declare const actionToggleObjectsSnapMode: {
178
186
  stickyNoteStroke: readonly string[] | null;
179
187
  stickyNoteBackground: readonly string[] | null;
180
188
  };
189
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
181
190
  };
182
191
  captureUpdate: "EVENTUALLY";
183
192
  };
@@ -36,12 +36,20 @@ export declare const actionToggleSearchMenu: {
36
36
  boxSelectionMode: import("../types").BoxSelectionMode;
37
37
  bindingPreference: "enabled" | "disabled";
38
38
  isMidpointSnappingEnabled: boolean;
39
+ showHints: boolean;
39
40
  inputDevice: import("../types").InputDevice;
40
41
  suggestedBinding: {
41
42
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
42
43
  midPoint?: import("@excalidraw/math").GlobalPoint;
43
44
  } | null;
44
- hoveredArrowTextAnchor: {
45
+ textToolHover: {
46
+ type: "text";
47
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
48
+ } | {
49
+ type: "container";
50
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
51
+ } | {
52
+ type: "arrow";
45
53
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
46
54
  anchor: "start" | "end" | "label";
47
55
  } | null;
@@ -164,6 +172,7 @@ export declare const actionToggleSearchMenu: {
164
172
  stickyNoteStroke: readonly string[] | null;
165
173
  stickyNoteBackground: readonly string[] | null;
166
174
  };
175
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
167
176
  };
168
177
  captureUpdate: "EVENTUALLY";
169
178
  };