@excalidraw/element 0.18.0-4872083 → 0.18.0-4ce38fb

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 (119) hide show
  1. package/dist/dev/index.js +5645 -3994
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +16 -15
  4. package/dist/types/common/src/colors.d.ts +13 -7
  5. package/dist/types/common/src/constants.d.ts +54 -0
  6. package/dist/types/common/src/keys.d.ts +2 -0
  7. package/dist/types/common/src/random.d.ts +7 -0
  8. package/dist/types/common/src/utils.d.ts +5 -0
  9. package/dist/types/element/src/Scene.d.ts +1 -1
  10. package/dist/types/element/src/binding.d.ts +13 -7
  11. package/dist/types/element/src/collision.d.ts +14 -5
  12. package/dist/types/element/src/comparisons.d.ts +5 -3
  13. package/dist/types/element/src/delta.d.ts +23 -1
  14. package/dist/types/element/src/duplicate.d.ts +60 -0
  15. package/dist/types/element/src/flowchart.d.ts +5 -1
  16. package/dist/types/element/src/frame.d.ts +2 -2
  17. package/dist/types/element/src/index.d.ts +2 -0
  18. package/dist/types/element/src/linearElementEditor.d.ts +10 -0
  19. package/dist/types/element/src/listMarker.d.ts +34 -0
  20. package/dist/types/element/src/mutateElement.d.ts +1 -1
  21. package/dist/types/element/src/newElement.d.ts +39 -3
  22. package/dist/types/element/src/renderElement.d.ts +21 -4
  23. package/dist/types/element/src/shape.d.ts +15 -1
  24. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  25. package/dist/types/element/src/stickyNote.d.ts +183 -0
  26. package/dist/types/element/src/textElement.d.ts +9 -1
  27. package/dist/types/element/src/transform.d.ts +25 -6
  28. package/dist/types/element/src/typeChecks.d.ts +3 -2
  29. package/dist/types/element/src/types.d.ts +35 -6
  30. package/dist/types/element/src/utils.d.ts +15 -4
  31. package/dist/types/element/src/zindex.d.ts +1 -1
  32. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +60 -3
  33. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  34. package/dist/types/excalidraw/actions/actionBoundText.d.ts +40 -2
  35. package/dist/types/excalidraw/actions/actionCanvas.d.ts +140 -7
  36. package/dist/types/excalidraw/actions/actionClipboard.d.ts +40 -2
  37. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +20 -1
  38. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +61 -4
  39. package/dist/types/excalidraw/actions/actionDeselect.d.ts +23 -1
  40. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  41. package/dist/types/excalidraw/actions/actionElementLink.d.ts +20 -1
  42. package/dist/types/excalidraw/actions/actionElementLock.d.ts +40 -2
  43. package/dist/types/excalidraw/actions/actionExport.d.ts +40 -2
  44. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  45. package/dist/types/excalidraw/actions/actionFrame.d.ts +111 -4
  46. package/dist/types/excalidraw/actions/actionGroup.d.ts +40 -2
  47. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +71 -2
  48. package/dist/types/excalidraw/actions/actionLink.d.ts +20 -1
  49. package/dist/types/excalidraw/actions/actionMenu.d.ts +20 -1
  50. package/dist/types/excalidraw/actions/actionProperties.d.ts +50 -8
  51. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +20 -1
  52. package/dist/types/excalidraw/actions/actionStyles.d.ts +21 -2
  53. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +20 -1
  54. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +20 -1
  55. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +20 -1
  56. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +20 -1
  57. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +20 -1
  58. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +197 -0
  59. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +20 -1
  60. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +20 -1
  61. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +20 -1
  62. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  63. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  64. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  65. package/dist/types/excalidraw/appState.d.ts +23 -1
  66. package/dist/types/excalidraw/components/App.arrowText.d.ts +28 -30
  67. package/dist/types/excalidraw/components/App.bucketFill.d.ts +10 -0
  68. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  69. package/dist/types/excalidraw/components/App.cursor.d.ts +8 -0
  70. package/dist/types/excalidraw/components/App.d.ts +110 -199
  71. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  72. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  73. package/dist/types/excalidraw/components/App.text.d.ts +146 -0
  74. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  75. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  76. package/dist/types/excalidraw/components/App.viewport.d.ts +41 -1
  77. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  78. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +6 -2
  79. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  80. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -1
  81. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +4 -2
  82. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  83. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  84. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  85. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  86. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  87. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  88. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  89. package/dist/types/excalidraw/components/IconButton.d.ts +2 -0
  90. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  91. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  92. package/dist/types/excalidraw/components/Tools.d.ts +7 -2
  93. package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
  94. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  95. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  96. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  97. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
  98. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  99. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -0
  100. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +2 -2
  101. package/dist/types/excalidraw/data/blob.d.ts +40 -2
  102. package/dist/types/excalidraw/data/json.d.ts +20 -1
  103. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
  104. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  105. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  106. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  107. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  108. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  109. package/dist/types/excalidraw/scene/Renderer.d.ts +64 -2
  110. package/dist/types/excalidraw/scene/index.d.ts +1 -1
  111. package/dist/types/excalidraw/scene/types.d.ts +3 -1
  112. package/dist/types/excalidraw/types.d.ts +140 -18
  113. package/dist/types/excalidraw/viewport.d.ts +33 -1
  114. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
  115. package/dist/types/math/src/curve.d.ts +19 -12
  116. package/dist/types/math/src/segment.d.ts +6 -0
  117. package/dist/types/utils/src/export.d.ts +1 -0
  118. package/dist/types/utils/src/shape.d.ts +2 -2
  119. package/package.json +4 -4
@@ -30,11 +30,20 @@ export declare const actionPaste: {
30
30
  boxSelectionMode: import("../types").BoxSelectionMode;
31
31
  bindingPreference: "enabled" | "disabled";
32
32
  isMidpointSnappingEnabled: boolean;
33
+ showHints: boolean;
34
+ inputDevice: import("../types").InputDevice;
33
35
  suggestedBinding: {
34
36
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
37
  midPoint?: import("@excalidraw/math").GlobalPoint;
36
38
  } | null;
37
- hoveredArrowTextAnchor: {
39
+ textToolHover: {
40
+ type: "text";
41
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
42
+ } | {
43
+ type: "container";
44
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
45
+ } | {
46
+ type: "arrow";
38
47
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
39
48
  anchor: "start" | "end" | "label";
40
49
  } | null;
@@ -64,6 +73,8 @@ export declare const actionPaste: {
64
73
  exportWithDarkMode: boolean;
65
74
  exportScale: number;
66
75
  currentItemStrokeColor: string;
76
+ currentItemStickynoteStrokeColor: string;
77
+ currentItemStickynoteBackgroundColor: string;
67
78
  currentItemBackgroundColor: string;
68
79
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
69
80
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -169,6 +180,14 @@ export declare const actionPaste: {
169
180
  [groupId: string]: true;
170
181
  };
171
182
  bindMode: import("@excalidraw/element/types").BindMode;
183
+ colorTopPicks: {
184
+ elementStroke: readonly string[] | null;
185
+ elementBackground: readonly string[] | null;
186
+ bucketFill: readonly string[] | null;
187
+ stickyNoteStroke: readonly string[] | null;
188
+ stickyNoteBackground: readonly string[] | null;
189
+ };
190
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
172
191
  };
173
192
  } | {
174
193
  captureUpdate: "EVENTUALLY";
@@ -243,11 +262,20 @@ export declare const actionCopyAsPng: {
243
262
  boxSelectionMode: import("../types").BoxSelectionMode;
244
263
  bindingPreference: "enabled" | "disabled";
245
264
  isMidpointSnappingEnabled: boolean;
265
+ showHints: boolean;
266
+ inputDevice: import("../types").InputDevice;
246
267
  suggestedBinding: {
247
268
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
248
269
  midPoint?: import("@excalidraw/math").GlobalPoint;
249
270
  } | null;
250
- hoveredArrowTextAnchor: {
271
+ textToolHover: {
272
+ type: "text";
273
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
274
+ } | {
275
+ type: "container";
276
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
277
+ } | {
278
+ type: "arrow";
251
279
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
252
280
  anchor: "start" | "end" | "label";
253
281
  } | null;
@@ -277,6 +305,8 @@ export declare const actionCopyAsPng: {
277
305
  exportWithDarkMode: boolean;
278
306
  exportScale: number;
279
307
  currentItemStrokeColor: string;
308
+ currentItemStickynoteStrokeColor: string;
309
+ currentItemStickynoteBackgroundColor: string;
280
310
  currentItemBackgroundColor: string;
281
311
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
282
312
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -382,6 +412,14 @@ export declare const actionCopyAsPng: {
382
412
  [groupId: string]: true;
383
413
  };
384
414
  bindMode: import("@excalidraw/element/types").BindMode;
415
+ colorTopPicks: {
416
+ elementStroke: readonly string[] | null;
417
+ elementBackground: readonly string[] | null;
418
+ bucketFill: readonly string[] | null;
419
+ stickyNoteStroke: readonly string[] | null;
420
+ stickyNoteBackground: readonly string[] | null;
421
+ };
422
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
385
423
  };
386
424
  captureUpdate: "EVENTUALLY";
387
425
  }>;
@@ -31,11 +31,20 @@ export declare const actionToggleCropEditor: {
31
31
  boxSelectionMode: import("../types").BoxSelectionMode;
32
32
  bindingPreference: "enabled" | "disabled";
33
33
  isMidpointSnappingEnabled: boolean;
34
+ showHints: boolean;
35
+ inputDevice: import("../types").InputDevice;
34
36
  suggestedBinding: {
35
37
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
38
  midPoint?: import("@excalidraw/math").GlobalPoint;
37
39
  } | null;
38
- 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";
39
48
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
40
49
  anchor: "start" | "end" | "label";
41
50
  } | null;
@@ -65,6 +74,8 @@ export declare const actionToggleCropEditor: {
65
74
  exportWithDarkMode: boolean;
66
75
  exportScale: number;
67
76
  currentItemStrokeColor: string;
77
+ currentItemStickynoteStrokeColor: string;
78
+ currentItemStickynoteBackgroundColor: string;
68
79
  currentItemBackgroundColor: string;
69
80
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
70
81
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -168,6 +179,14 @@ export declare const actionToggleCropEditor: {
168
179
  [groupId: string]: true;
169
180
  };
170
181
  bindMode: import("@excalidraw/element/types").BindMode;
182
+ colorTopPicks: {
183
+ elementStroke: readonly string[] | null;
184
+ elementBackground: readonly string[] | null;
185
+ bucketFill: readonly string[] | null;
186
+ stickyNoteStroke: readonly string[] | null;
187
+ stickyNoteBackground: readonly string[] | null;
188
+ };
189
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
171
190
  };
172
191
  captureUpdate: "IMMEDIATELY";
173
192
  };
@@ -32,11 +32,20 @@ export declare const actionDeleteSelected: {
32
32
  boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
36
+ inputDevice: import("../types").InputDevice;
35
37
  suggestedBinding: {
36
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
38
40
  } | null;
39
- hoveredArrowTextAnchor: {
41
+ textToolHover: {
42
+ type: "text";
43
+ elementId: ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: ExcalidrawElement["id"];
47
+ } | {
48
+ type: "arrow";
40
49
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
41
50
  anchor: "start" | "end" | "label";
42
51
  } | null;
@@ -66,6 +75,8 @@ export declare const actionDeleteSelected: {
66
75
  exportWithDarkMode: boolean;
67
76
  exportScale: number;
68
77
  currentItemStrokeColor: string;
78
+ currentItemStickynoteStrokeColor: string;
79
+ currentItemStickynoteBackgroundColor: string;
69
80
  currentItemBackgroundColor: string;
70
81
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
71
82
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -170,6 +181,14 @@ export declare const actionDeleteSelected: {
170
181
  [groupId: string]: true;
171
182
  };
172
183
  bindMode: import("@excalidraw/element/types").BindMode;
184
+ colorTopPicks: {
185
+ elementStroke: readonly string[] | null;
186
+ elementBackground: readonly string[] | null;
187
+ bucketFill: readonly string[] | null;
188
+ stickyNoteStroke: readonly string[] | null;
189
+ stickyNoteBackground: readonly string[] | null;
190
+ };
191
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
173
192
  };
174
193
  captureUpdate: "IMMEDIATELY";
175
194
  } | {
@@ -229,11 +248,20 @@ export declare const actionDeleteSelected: {
229
248
  boxSelectionMode: import("../types").BoxSelectionMode;
230
249
  bindingPreference: "enabled" | "disabled";
231
250
  isMidpointSnappingEnabled: boolean;
251
+ showHints: boolean;
252
+ inputDevice: import("../types").InputDevice;
232
253
  suggestedBinding: {
233
254
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
234
255
  midPoint?: import("@excalidraw/math").GlobalPoint;
235
256
  } | null;
236
- hoveredArrowTextAnchor: {
257
+ textToolHover: {
258
+ type: "text";
259
+ elementId: ExcalidrawElement["id"];
260
+ } | {
261
+ type: "container";
262
+ elementId: ExcalidrawElement["id"];
263
+ } | {
264
+ type: "arrow";
237
265
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
238
266
  anchor: "start" | "end" | "label";
239
267
  } | null;
@@ -263,6 +291,8 @@ export declare const actionDeleteSelected: {
263
291
  exportWithDarkMode: boolean;
264
292
  exportScale: number;
265
293
  currentItemStrokeColor: string;
294
+ currentItemStickynoteStrokeColor: string;
295
+ currentItemStickynoteBackgroundColor: string;
266
296
  currentItemBackgroundColor: string;
267
297
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
268
298
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -367,10 +397,18 @@ export declare const actionDeleteSelected: {
367
397
  [groupId: string]: true;
368
398
  };
369
399
  bindMode: import("@excalidraw/element/types").BindMode;
400
+ colorTopPicks: {
401
+ elementStroke: readonly string[] | null;
402
+ elementBackground: readonly string[] | null;
403
+ bucketFill: readonly string[] | null;
404
+ stickyNoteStroke: readonly string[] | null;
405
+ stickyNoteBackground: readonly string[] | null;
406
+ };
407
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
370
408
  };
371
409
  captureUpdate: "IMMEDIATELY";
372
410
  } | {
373
- elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
411
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
374
412
  appState: {
375
413
  activeTool: {
376
414
  lastActiveTool: import("../types").ActiveTool | null;
@@ -398,11 +436,20 @@ export declare const actionDeleteSelected: {
398
436
  boxSelectionMode: import("../types").BoxSelectionMode;
399
437
  bindingPreference: "enabled" | "disabled";
400
438
  isMidpointSnappingEnabled: boolean;
439
+ showHints: boolean;
440
+ inputDevice: import("../types").InputDevice;
401
441
  suggestedBinding: {
402
442
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
403
443
  midPoint?: import("@excalidraw/math").GlobalPoint;
404
444
  } | null;
405
- hoveredArrowTextAnchor: {
445
+ textToolHover: {
446
+ type: "text";
447
+ elementId: ExcalidrawElement["id"];
448
+ } | {
449
+ type: "container";
450
+ elementId: ExcalidrawElement["id"];
451
+ } | {
452
+ type: "arrow";
406
453
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
407
454
  anchor: "start" | "end" | "label";
408
455
  } | null;
@@ -427,6 +474,8 @@ export declare const actionDeleteSelected: {
427
474
  exportWithDarkMode: boolean;
428
475
  exportScale: number;
429
476
  currentItemStrokeColor: string;
477
+ currentItemStickynoteStrokeColor: string;
478
+ currentItemStickynoteBackgroundColor: string;
430
479
  currentItemBackgroundColor: string;
431
480
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
432
481
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -524,6 +573,14 @@ export declare const actionDeleteSelected: {
524
573
  [groupId: string]: true;
525
574
  };
526
575
  bindMode: import("@excalidraw/element/types").BindMode;
576
+ colorTopPicks: {
577
+ elementStroke: readonly string[] | null;
578
+ elementBackground: readonly string[] | null;
579
+ bucketFill: readonly string[] | null;
580
+ stickyNoteStroke: readonly string[] | null;
581
+ stickyNoteBackground: readonly string[] | null;
582
+ };
583
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
527
584
  };
528
585
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
529
586
  };
@@ -15,7 +15,6 @@ export declare const actionDeselect: {
15
15
  selectionElement: null;
16
16
  showHyperlinkPopup: false;
17
17
  suggestedBinding: null;
18
- hoveredArrowTextAnchor: null;
19
18
  frameToHighlight: null;
20
19
  editingGroupId: AppState["editingGroupId"];
21
20
  selectedElementIds: AppState["selectedElementIds"];
@@ -35,6 +34,19 @@ export declare const actionDeselect: {
35
34
  boxSelectionMode: import("../types").BoxSelectionMode;
36
35
  bindingPreference: "enabled" | "disabled";
37
36
  isMidpointSnappingEnabled: boolean;
37
+ showHints: boolean;
38
+ inputDevice: import("../types").InputDevice;
39
+ textToolHover: {
40
+ type: "text";
41
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
42
+ } | {
43
+ type: "container";
44
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
45
+ } | {
46
+ type: "arrow";
47
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
48
+ anchor: "start" | "end" | "label";
49
+ } | null;
38
50
  frameRendering: {
39
51
  enabled: boolean;
40
52
  name: boolean;
@@ -55,6 +67,8 @@ export declare const actionDeselect: {
55
67
  exportWithDarkMode: boolean;
56
68
  exportScale: number;
57
69
  currentItemStrokeColor: string;
70
+ currentItemStickynoteStrokeColor: string;
71
+ currentItemStickynoteBackgroundColor: string;
58
72
  currentItemBackgroundColor: string;
59
73
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
60
74
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -151,6 +165,14 @@ export declare const actionDeselect: {
151
165
  [groupId: string]: true;
152
166
  };
153
167
  bindMode: import("@excalidraw/element/types").BindMode;
168
+ colorTopPicks: {
169
+ elementStroke: readonly string[] | null;
170
+ elementBackground: readonly string[] | null;
171
+ bucketFill: readonly string[] | null;
172
+ stickyNoteStroke: readonly string[] | null;
173
+ stickyNoteBackground: readonly string[] | null;
174
+ };
175
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
154
176
  };
155
177
  captureUpdate: "IMMEDIATELY";
156
178
  };
@@ -7,7 +7,7 @@ export declare const distributeHorizontally: {
7
7
  };
8
8
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
9
9
  appState: Readonly<AppState>;
10
- elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
10
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
11
11
  captureUpdate: "IMMEDIATELY";
12
12
  };
13
13
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -23,7 +23,7 @@ export declare const distributeVertically: {
23
23
  };
24
24
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
25
25
  appState: Readonly<AppState>;
26
- elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
26
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
27
27
  captureUpdate: "IMMEDIATELY";
28
28
  };
29
29
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -60,11 +60,20 @@ export declare const actionLinkToElement: {
60
60
  boxSelectionMode: import("../types").BoxSelectionMode;
61
61
  bindingPreference: "enabled" | "disabled";
62
62
  isMidpointSnappingEnabled: boolean;
63
+ showHints: boolean;
64
+ inputDevice: import("../types").InputDevice;
63
65
  suggestedBinding: {
64
66
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
65
67
  midPoint?: import("@excalidraw/math").GlobalPoint;
66
68
  } | null;
67
- hoveredArrowTextAnchor: {
69
+ textToolHover: {
70
+ type: "text";
71
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
72
+ } | {
73
+ type: "container";
74
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
75
+ } | {
76
+ type: "arrow";
68
77
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
69
78
  anchor: "start" | "end" | "label";
70
79
  } | null;
@@ -94,6 +103,8 @@ export declare const actionLinkToElement: {
94
103
  exportWithDarkMode: boolean;
95
104
  exportScale: number;
96
105
  currentItemStrokeColor: string;
106
+ currentItemStickynoteStrokeColor: string;
107
+ currentItemStickynoteBackgroundColor: string;
97
108
  currentItemBackgroundColor: string;
98
109
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
99
110
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -182,6 +193,14 @@ export declare const actionLinkToElement: {
182
193
  [groupId: string]: true;
183
194
  };
184
195
  bindMode: import("@excalidraw/element/types").BindMode;
196
+ colorTopPicks: {
197
+ elementStroke: readonly string[] | null;
198
+ elementBackground: readonly string[] | null;
199
+ bucketFill: readonly string[] | null;
200
+ stickyNoteStroke: readonly string[] | null;
201
+ stickyNoteBackground: readonly string[] | null;
202
+ };
203
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
185
204
  };
186
205
  captureUpdate: "IMMEDIATELY";
187
206
  elements?: undefined;
@@ -42,11 +42,20 @@ export declare const actionToggleElementLock: {
42
42
  boxSelectionMode: import("../types").BoxSelectionMode;
43
43
  bindingPreference: "enabled" | "disabled";
44
44
  isMidpointSnappingEnabled: boolean;
45
+ showHints: boolean;
46
+ inputDevice: import("../types").InputDevice;
45
47
  suggestedBinding: {
46
48
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
47
49
  midPoint?: import("@excalidraw/math").GlobalPoint;
48
50
  } | null;
49
- hoveredArrowTextAnchor: {
51
+ textToolHover: {
52
+ type: "text";
53
+ elementId: ExcalidrawElement["id"];
54
+ } | {
55
+ type: "container";
56
+ elementId: ExcalidrawElement["id"];
57
+ } | {
58
+ type: "arrow";
50
59
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
51
60
  anchor: "start" | "end" | "label";
52
61
  } | null;
@@ -76,6 +85,8 @@ export declare const actionToggleElementLock: {
76
85
  exportWithDarkMode: boolean;
77
86
  exportScale: number;
78
87
  currentItemStrokeColor: string;
88
+ currentItemStickynoteStrokeColor: string;
89
+ currentItemStickynoteBackgroundColor: string;
79
90
  currentItemBackgroundColor: string;
80
91
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
81
92
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -170,6 +181,14 @@ export declare const actionToggleElementLock: {
170
181
  matches: readonly import("../types").SearchMatch[];
171
182
  }> | null;
172
183
  bindMode: import("@excalidraw/element/types").BindMode;
184
+ colorTopPicks: {
185
+ elementStroke: readonly string[] | null;
186
+ elementBackground: readonly string[] | null;
187
+ bucketFill: readonly string[] | null;
188
+ stickyNoteStroke: readonly string[] | null;
189
+ stickyNoteBackground: readonly string[] | null;
190
+ };
191
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
173
192
  };
174
193
  captureUpdate: "IMMEDIATELY";
175
194
  };
@@ -216,11 +235,20 @@ export declare const actionUnlockAllElements: {
216
235
  boxSelectionMode: import("../types").BoxSelectionMode;
217
236
  bindingPreference: "enabled" | "disabled";
218
237
  isMidpointSnappingEnabled: boolean;
238
+ showHints: boolean;
239
+ inputDevice: import("../types").InputDevice;
219
240
  suggestedBinding: {
220
241
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
221
242
  midPoint?: import("@excalidraw/math").GlobalPoint;
222
243
  } | null;
223
- hoveredArrowTextAnchor: {
244
+ textToolHover: {
245
+ type: "text";
246
+ elementId: ExcalidrawElement["id"];
247
+ } | {
248
+ type: "container";
249
+ elementId: ExcalidrawElement["id"];
250
+ } | {
251
+ type: "arrow";
224
252
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
225
253
  anchor: "start" | "end" | "label";
226
254
  } | null;
@@ -250,6 +278,8 @@ export declare const actionUnlockAllElements: {
250
278
  exportWithDarkMode: boolean;
251
279
  exportScale: number;
252
280
  currentItemStrokeColor: string;
281
+ currentItemStickynoteStrokeColor: string;
282
+ currentItemStickynoteBackgroundColor: string;
253
283
  currentItemBackgroundColor: string;
254
284
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
255
285
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -345,6 +375,14 @@ export declare const actionUnlockAllElements: {
345
375
  matches: readonly import("../types").SearchMatch[];
346
376
  }> | null;
347
377
  bindMode: import("@excalidraw/element/types").BindMode;
378
+ colorTopPicks: {
379
+ elementStroke: readonly string[] | null;
380
+ elementBackground: readonly string[] | null;
381
+ bucketFill: readonly string[] | null;
382
+ stickyNoteStroke: readonly string[] | null;
383
+ stickyNoteBackground: readonly string[] | null;
384
+ };
385
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
348
386
  };
349
387
  captureUpdate: "IMMEDIATELY";
350
388
  };
@@ -140,7 +140,14 @@ export declare const actionLoadScene: {
140
140
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
141
141
  midPoint?: import("@excalidraw/math").GlobalPoint;
142
142
  } | null;
143
- hoveredArrowTextAnchor: {
143
+ textToolHover: {
144
+ type: "text";
145
+ elementId: ExcalidrawElement["id"];
146
+ } | {
147
+ type: "container";
148
+ elementId: ExcalidrawElement["id"];
149
+ } | {
150
+ type: "arrow";
144
151
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
145
152
  anchor: "start" | "end" | "label";
146
153
  } | null;
@@ -176,6 +183,8 @@ export declare const actionLoadScene: {
176
183
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
177
184
  boxSelectionMode: import("../types").BoxSelectionMode;
178
185
  bindingPreference: "enabled" | "disabled";
186
+ showHints: boolean;
187
+ inputDevice: import("../types").InputDevice;
179
188
  editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
180
189
  preferredSelectionTool: {
181
190
  type: "selection" | "lasso";
@@ -187,6 +196,8 @@ export declare const actionLoadScene: {
187
196
  exportEmbedScene: boolean;
188
197
  exportWithDarkMode: boolean;
189
198
  currentItemStrokeColor: string;
199
+ currentItemStickynoteStrokeColor: string;
200
+ currentItemStickynoteBackgroundColor: string;
190
201
  currentItemBackgroundColor: string;
191
202
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
192
203
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -237,6 +248,14 @@ export declare const actionLoadScene: {
237
248
  lockedMultiSelections: {
238
249
  [groupId: string]: true;
239
250
  };
251
+ colorTopPicks: {
252
+ elementStroke: readonly string[] | null;
253
+ elementBackground: readonly string[] | null;
254
+ bucketFill: readonly string[] | null;
255
+ stickyNoteStroke: readonly string[] | null;
256
+ stickyNoteBackground: readonly string[] | null;
257
+ };
258
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
240
259
  };
241
260
  files: BinaryFiles;
242
261
  captureUpdate: "IMMEDIATELY";
@@ -263,11 +282,20 @@ export declare const actionLoadScene: {
263
282
  boxSelectionMode: import("../types").BoxSelectionMode;
264
283
  bindingPreference: "enabled" | "disabled";
265
284
  isMidpointSnappingEnabled: boolean;
285
+ showHints: boolean;
286
+ inputDevice: import("../types").InputDevice;
266
287
  suggestedBinding: {
267
288
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
268
289
  midPoint?: import("@excalidraw/math").GlobalPoint;
269
290
  } | null;
270
- hoveredArrowTextAnchor: {
291
+ textToolHover: {
292
+ type: "text";
293
+ elementId: ExcalidrawElement["id"];
294
+ } | {
295
+ type: "container";
296
+ elementId: ExcalidrawElement["id"];
297
+ } | {
298
+ type: "arrow";
271
299
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
272
300
  anchor: "start" | "end" | "label";
273
301
  } | null;
@@ -297,6 +325,8 @@ export declare const actionLoadScene: {
297
325
  exportWithDarkMode: boolean;
298
326
  exportScale: number;
299
327
  currentItemStrokeColor: string;
328
+ currentItemStickynoteStrokeColor: string;
329
+ currentItemStickynoteBackgroundColor: string;
300
330
  currentItemBackgroundColor: string;
301
331
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
302
332
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -402,6 +432,14 @@ export declare const actionLoadScene: {
402
432
  [groupId: string]: true;
403
433
  };
404
434
  bindMode: import("@excalidraw/element/types").BindMode;
435
+ colorTopPicks: {
436
+ elementStroke: readonly string[] | null;
437
+ elementBackground: readonly string[] | null;
438
+ bucketFill: readonly string[] | null;
439
+ stickyNoteStroke: readonly string[] | null;
440
+ stickyNoteBackground: readonly string[] | null;
441
+ };
442
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
405
443
  };
406
444
  files: BinaryFiles;
407
445
  captureUpdate: "EVENTUALLY";
@@ -6,6 +6,7 @@ type FormData = {
6
6
  x: number;
7
7
  y: number;
8
8
  };
9
+ hitBoundText?: boolean;
9
10
  };
10
11
  export declare const actionFinalize: import("./types").Action<FormData> & {
11
12
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;