@excalidraw/common 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 +145 -14
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +3 -3
  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 +147 -14
  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 +41 -3
  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 +26 -4
  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 +42 -4
  102. package/dist/types/excalidraw/data/json.d.ts +21 -2
  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 +1 -1
@@ -26,11 +26,20 @@ export declare const actionClearCanvas: {
26
26
  open: boolean;
27
27
  panels: number;
28
28
  };
29
+ colorTopPicks: {
30
+ elementStroke: readonly string[] | null;
31
+ elementBackground: readonly string[] | null;
32
+ bucketFill: readonly string[] | null;
33
+ stickyNoteStroke: readonly string[] | null;
34
+ stickyNoteBackground: readonly string[] | null;
35
+ };
36
+ fontTopPicks: readonly number[] | null;
29
37
  activeTool: {
30
38
  lastActiveTool: import("../types").ActiveTool | null;
31
39
  locked: boolean;
32
40
  fromSelection: boolean;
33
41
  } & import("../types").ActiveTool;
42
+ zoom: import("../types").Zoom;
34
43
  viewModeEnabled: boolean;
35
44
  zenModeEnabled: boolean;
36
45
  objectsSnapModeEnabled: boolean;
@@ -56,11 +65,20 @@ export declare const actionClearCanvas: {
56
65
  boxSelectionMode: import("../types").BoxSelectionMode;
57
66
  bindingPreference: "enabled" | "disabled";
58
67
  isMidpointSnappingEnabled: boolean;
68
+ showHints: boolean;
69
+ inputDevice: import("../types").InputDevice;
59
70
  suggestedBinding: {
60
71
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
61
72
  midPoint?: import("@excalidraw/math").GlobalPoint;
62
73
  } | null;
63
- hoveredArrowTextAnchor: {
74
+ textToolHover: {
75
+ type: "text";
76
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
77
+ } | {
78
+ type: "container";
79
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
80
+ } | {
81
+ type: "arrow";
64
82
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
65
83
  anchor: "start" | "end" | "label";
66
84
  } | null;
@@ -81,6 +99,8 @@ export declare const actionClearCanvas: {
81
99
  exportWithDarkMode: boolean;
82
100
  exportScale: number;
83
101
  currentItemStrokeColor: string;
102
+ currentItemStickynoteStrokeColor: string;
103
+ currentItemStickynoteBackgroundColor: string;
84
104
  currentItemBackgroundColor: string;
85
105
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
86
106
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -103,7 +123,6 @@ export declare const actionClearCanvas: {
103
123
  scrolledOutside: boolean;
104
124
  isResizing: boolean;
105
125
  isRotating: boolean;
106
- zoom: import("../types").Zoom;
107
126
  openMenu: "canvas" | null;
108
127
  openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
109
128
  openSidebar: {
@@ -187,9 +206,9 @@ export declare const actionZoomIn: {
187
206
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
188
207
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
189
208
  appState: {
209
+ zoom: import("../types").Zoom;
190
210
  scrollX: number;
191
211
  scrollY: number;
192
- zoom: import("../types").Zoom;
193
212
  contextMenu: {
194
213
  items: import("../components/ContextMenu").ContextMenuItems;
195
214
  top: number;
@@ -210,11 +229,20 @@ export declare const actionZoomIn: {
210
229
  boxSelectionMode: import("../types").BoxSelectionMode;
211
230
  bindingPreference: "enabled" | "disabled";
212
231
  isMidpointSnappingEnabled: boolean;
232
+ showHints: boolean;
233
+ inputDevice: import("../types").InputDevice;
213
234
  suggestedBinding: {
214
235
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
215
236
  midPoint?: import("@excalidraw/math").GlobalPoint;
216
237
  } | null;
217
- hoveredArrowTextAnchor: {
238
+ textToolHover: {
239
+ type: "text";
240
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
241
+ } | {
242
+ type: "container";
243
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
244
+ } | {
245
+ type: "arrow";
218
246
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
219
247
  anchor: "start" | "end" | "label";
220
248
  } | null;
@@ -244,6 +272,8 @@ export declare const actionZoomIn: {
244
272
  exportWithDarkMode: boolean;
245
273
  exportScale: number;
246
274
  currentItemStrokeColor: string;
275
+ currentItemStickynoteStrokeColor: string;
276
+ currentItemStickynoteBackgroundColor: string;
247
277
  currentItemBackgroundColor: string;
248
278
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
249
279
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -346,6 +376,14 @@ export declare const actionZoomIn: {
346
376
  [groupId: string]: true;
347
377
  };
348
378
  bindMode: import("@excalidraw/element/types").BindMode;
379
+ colorTopPicks: {
380
+ elementStroke: readonly string[] | null;
381
+ elementBackground: readonly string[] | null;
382
+ bucketFill: readonly string[] | null;
383
+ stickyNoteStroke: readonly string[] | null;
384
+ stickyNoteBackground: readonly string[] | null;
385
+ };
386
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
349
387
  };
350
388
  captureUpdate: "EVENTUALLY";
351
389
  };
@@ -366,9 +404,9 @@ export declare const actionZoomOut: {
366
404
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
367
405
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
368
406
  appState: {
407
+ zoom: import("../types").Zoom;
369
408
  scrollX: number;
370
409
  scrollY: number;
371
- zoom: import("../types").Zoom;
372
410
  contextMenu: {
373
411
  items: import("../components/ContextMenu").ContextMenuItems;
374
412
  top: number;
@@ -389,11 +427,20 @@ export declare const actionZoomOut: {
389
427
  boxSelectionMode: import("../types").BoxSelectionMode;
390
428
  bindingPreference: "enabled" | "disabled";
391
429
  isMidpointSnappingEnabled: boolean;
430
+ showHints: boolean;
431
+ inputDevice: import("../types").InputDevice;
392
432
  suggestedBinding: {
393
433
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
394
434
  midPoint?: import("@excalidraw/math").GlobalPoint;
395
435
  } | null;
396
- hoveredArrowTextAnchor: {
436
+ textToolHover: {
437
+ type: "text";
438
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
439
+ } | {
440
+ type: "container";
441
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
442
+ } | {
443
+ type: "arrow";
397
444
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
398
445
  anchor: "start" | "end" | "label";
399
446
  } | null;
@@ -423,6 +470,8 @@ export declare const actionZoomOut: {
423
470
  exportWithDarkMode: boolean;
424
471
  exportScale: number;
425
472
  currentItemStrokeColor: string;
473
+ currentItemStickynoteStrokeColor: string;
474
+ currentItemStickynoteBackgroundColor: string;
426
475
  currentItemBackgroundColor: string;
427
476
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
428
477
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -525,6 +574,14 @@ export declare const actionZoomOut: {
525
574
  [groupId: string]: true;
526
575
  };
527
576
  bindMode: import("@excalidraw/element/types").BindMode;
577
+ colorTopPicks: {
578
+ elementStroke: readonly string[] | null;
579
+ elementBackground: readonly string[] | null;
580
+ bucketFill: readonly string[] | null;
581
+ stickyNoteStroke: readonly string[] | null;
582
+ stickyNoteBackground: readonly string[] | null;
583
+ };
584
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
528
585
  };
529
586
  captureUpdate: "EVENTUALLY";
530
587
  };
@@ -545,9 +602,9 @@ export declare const actionResetZoom: {
545
602
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
546
603
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
547
604
  appState: {
605
+ zoom: import("../types").Zoom;
548
606
  scrollX: number;
549
607
  scrollY: number;
550
- zoom: import("../types").Zoom;
551
608
  contextMenu: {
552
609
  items: import("../components/ContextMenu").ContextMenuItems;
553
610
  top: number;
@@ -568,11 +625,20 @@ export declare const actionResetZoom: {
568
625
  boxSelectionMode: import("../types").BoxSelectionMode;
569
626
  bindingPreference: "enabled" | "disabled";
570
627
  isMidpointSnappingEnabled: boolean;
628
+ showHints: boolean;
629
+ inputDevice: import("../types").InputDevice;
571
630
  suggestedBinding: {
572
631
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
573
632
  midPoint?: import("@excalidraw/math").GlobalPoint;
574
633
  } | null;
575
- hoveredArrowTextAnchor: {
634
+ textToolHover: {
635
+ type: "text";
636
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
637
+ } | {
638
+ type: "container";
639
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
640
+ } | {
641
+ type: "arrow";
576
642
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
577
643
  anchor: "start" | "end" | "label";
578
644
  } | null;
@@ -602,6 +668,8 @@ export declare const actionResetZoom: {
602
668
  exportWithDarkMode: boolean;
603
669
  exportScale: number;
604
670
  currentItemStrokeColor: string;
671
+ currentItemStickynoteStrokeColor: string;
672
+ currentItemStickynoteBackgroundColor: string;
605
673
  currentItemBackgroundColor: string;
606
674
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
607
675
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -704,6 +772,14 @@ export declare const actionResetZoom: {
704
772
  [groupId: string]: true;
705
773
  };
706
774
  bindMode: import("@excalidraw/element/types").BindMode;
775
+ colorTopPicks: {
776
+ elementStroke: readonly string[] | null;
777
+ elementBackground: readonly string[] | null;
778
+ bucketFill: readonly string[] | null;
779
+ stickyNoteStroke: readonly string[] | null;
780
+ stickyNoteBackground: readonly string[] | null;
781
+ };
782
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
707
783
  };
708
784
  captureUpdate: "EVENTUALLY";
709
785
  };
@@ -724,9 +800,9 @@ export declare const actionZoomToFitSelectionInViewport: {
724
800
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
725
801
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
726
802
  appState: {
803
+ zoom: import("../types").Zoom;
727
804
  scrollX: number;
728
805
  scrollY: number;
729
- zoom: import("../types").Zoom;
730
806
  contextMenu: {
731
807
  items: import("../components/ContextMenu").ContextMenuItems;
732
808
  top: number;
@@ -747,11 +823,20 @@ export declare const actionZoomToFitSelectionInViewport: {
747
823
  boxSelectionMode: import("../types").BoxSelectionMode;
748
824
  bindingPreference: "enabled" | "disabled";
749
825
  isMidpointSnappingEnabled: boolean;
826
+ showHints: boolean;
827
+ inputDevice: import("../types").InputDevice;
750
828
  suggestedBinding: {
751
829
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
752
830
  midPoint?: import("@excalidraw/math").GlobalPoint;
753
831
  } | null;
754
- hoveredArrowTextAnchor: {
832
+ textToolHover: {
833
+ type: "text";
834
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
835
+ } | {
836
+ type: "container";
837
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
838
+ } | {
839
+ type: "arrow";
755
840
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
756
841
  anchor: "start" | "end" | "label";
757
842
  } | null;
@@ -781,6 +866,8 @@ export declare const actionZoomToFitSelectionInViewport: {
781
866
  exportWithDarkMode: boolean;
782
867
  exportScale: number;
783
868
  currentItemStrokeColor: string;
869
+ currentItemStickynoteStrokeColor: string;
870
+ currentItemStickynoteBackgroundColor: string;
784
871
  currentItemBackgroundColor: string;
785
872
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
786
873
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -883,6 +970,14 @@ export declare const actionZoomToFitSelectionInViewport: {
883
970
  [groupId: string]: true;
884
971
  };
885
972
  bindMode: import("@excalidraw/element/types").BindMode;
973
+ colorTopPicks: {
974
+ elementStroke: readonly string[] | null;
975
+ elementBackground: readonly string[] | null;
976
+ bucketFill: readonly string[] | null;
977
+ stickyNoteStroke: readonly string[] | null;
978
+ stickyNoteBackground: readonly string[] | null;
979
+ };
980
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
886
981
  };
887
982
  captureUpdate: "EVENTUALLY";
888
983
  };
@@ -902,9 +997,9 @@ export declare const actionZoomToFitSelection: {
902
997
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
903
998
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
904
999
  appState: {
1000
+ zoom: import("../types").Zoom;
905
1001
  scrollX: number;
906
1002
  scrollY: number;
907
- zoom: import("../types").Zoom;
908
1003
  contextMenu: {
909
1004
  items: import("../components/ContextMenu").ContextMenuItems;
910
1005
  top: number;
@@ -925,11 +1020,20 @@ export declare const actionZoomToFitSelection: {
925
1020
  boxSelectionMode: import("../types").BoxSelectionMode;
926
1021
  bindingPreference: "enabled" | "disabled";
927
1022
  isMidpointSnappingEnabled: boolean;
1023
+ showHints: boolean;
1024
+ inputDevice: import("../types").InputDevice;
928
1025
  suggestedBinding: {
929
1026
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
930
1027
  midPoint?: import("@excalidraw/math").GlobalPoint;
931
1028
  } | null;
932
- hoveredArrowTextAnchor: {
1029
+ textToolHover: {
1030
+ type: "text";
1031
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1032
+ } | {
1033
+ type: "container";
1034
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1035
+ } | {
1036
+ type: "arrow";
933
1037
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
934
1038
  anchor: "start" | "end" | "label";
935
1039
  } | null;
@@ -959,6 +1063,8 @@ export declare const actionZoomToFitSelection: {
959
1063
  exportWithDarkMode: boolean;
960
1064
  exportScale: number;
961
1065
  currentItemStrokeColor: string;
1066
+ currentItemStickynoteStrokeColor: string;
1067
+ currentItemStickynoteBackgroundColor: string;
962
1068
  currentItemBackgroundColor: string;
963
1069
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
964
1070
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -1061,6 +1167,14 @@ export declare const actionZoomToFitSelection: {
1061
1167
  [groupId: string]: true;
1062
1168
  };
1063
1169
  bindMode: import("@excalidraw/element/types").BindMode;
1170
+ colorTopPicks: {
1171
+ elementStroke: readonly string[] | null;
1172
+ elementBackground: readonly string[] | null;
1173
+ bucketFill: readonly string[] | null;
1174
+ stickyNoteStroke: readonly string[] | null;
1175
+ stickyNoteBackground: readonly string[] | null;
1176
+ };
1177
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1064
1178
  };
1065
1179
  captureUpdate: "EVENTUALLY";
1066
1180
  };
@@ -1080,9 +1194,9 @@ export declare const actionZoomToFit: {
1080
1194
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1081
1195
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1082
1196
  appState: {
1197
+ zoom: import("../types").Zoom;
1083
1198
  scrollX: number;
1084
1199
  scrollY: number;
1085
- zoom: import("../types").Zoom;
1086
1200
  contextMenu: {
1087
1201
  items: import("../components/ContextMenu").ContextMenuItems;
1088
1202
  top: number;
@@ -1103,11 +1217,20 @@ export declare const actionZoomToFit: {
1103
1217
  boxSelectionMode: import("../types").BoxSelectionMode;
1104
1218
  bindingPreference: "enabled" | "disabled";
1105
1219
  isMidpointSnappingEnabled: boolean;
1220
+ showHints: boolean;
1221
+ inputDevice: import("../types").InputDevice;
1106
1222
  suggestedBinding: {
1107
1223
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1108
1224
  midPoint?: import("@excalidraw/math").GlobalPoint;
1109
1225
  } | null;
1110
- hoveredArrowTextAnchor: {
1226
+ textToolHover: {
1227
+ type: "text";
1228
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1229
+ } | {
1230
+ type: "container";
1231
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1232
+ } | {
1233
+ type: "arrow";
1111
1234
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
1112
1235
  anchor: "start" | "end" | "label";
1113
1236
  } | null;
@@ -1137,6 +1260,8 @@ export declare const actionZoomToFit: {
1137
1260
  exportWithDarkMode: boolean;
1138
1261
  exportScale: number;
1139
1262
  currentItemStrokeColor: string;
1263
+ currentItemStickynoteStrokeColor: string;
1264
+ currentItemStickynoteBackgroundColor: string;
1140
1265
  currentItemBackgroundColor: string;
1141
1266
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1142
1267
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -1239,6 +1364,14 @@ export declare const actionZoomToFit: {
1239
1364
  [groupId: string]: true;
1240
1365
  };
1241
1366
  bindMode: import("@excalidraw/element/types").BindMode;
1367
+ colorTopPicks: {
1368
+ elementStroke: readonly string[] | null;
1369
+ elementBackground: readonly string[] | null;
1370
+ bucketFill: readonly string[] | null;
1371
+ stickyNoteStroke: readonly string[] | null;
1372
+ stickyNoteBackground: readonly string[] | null;
1373
+ };
1374
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1242
1375
  };
1243
1376
  captureUpdate: "EVENTUALLY";
1244
1377
  };
@@ -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
  };