@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
@@ -1,18 +1,22 @@
1
1
  import { type StrokeWidthKey } from "@excalidraw/common";
2
2
  import { LinearElementEditor } from "@excalidraw/element";
3
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, NonDeleted, NonDeletedExcalidrawElement, TextAlign } from "@excalidraw/element/types";
3
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, NonDeleted, NonDeletedExcalidrawElement, TextAlign } from "@excalidraw/element/types";
4
4
  import type { AppClassProperties, AppState, Primitive } from "../types";
5
- export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: NonDeletedExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
5
+ export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: NonDeletedExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => (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 | ExcalidrawTextElement | ExcalidrawFreeDrawElement)[];
6
6
  export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
7
7
  /**
8
8
  * input value (usually the element attribute value,
9
9
  * but depends on what the action's PanelComponent input expects)
10
10
  */
11
11
  getValue: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
12
- export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
12
+ export declare const actionChangeStrokeColor: import("./types").Action<Partial<AppState> & {
13
+ color?: string;
14
+ }> & {
13
15
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
14
16
  };
15
- export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
17
+ export declare const actionChangeBackgroundColor: import("./types").Action<Partial<AppState> & {
18
+ color?: string;
19
+ }> & {
16
20
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
17
21
  };
18
22
  export declare const actionChangeBucketFillBackgroundColor: import("./types").Action<Pick<AppState, "currentItemBackgroundColor">> & {
@@ -45,7 +49,7 @@ export declare const actionDecreaseFontSize: {
45
49
  icon: import("react/jsx-runtime").JSX.Element;
46
50
  trackEvent: false;
47
51
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
48
- elements: ExcalidrawElement[];
52
+ elements: (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 | ExcalidrawTextElement | ExcalidrawFreeDrawElement)[];
49
53
  appState: {
50
54
  currentItemFontSize: number;
51
55
  contextMenu: {
@@ -68,11 +72,20 @@ export declare const actionDecreaseFontSize: {
68
72
  boxSelectionMode: import("../types").BoxSelectionMode;
69
73
  bindingPreference: "enabled" | "disabled";
70
74
  isMidpointSnappingEnabled: boolean;
75
+ showHints: boolean;
76
+ inputDevice: import("../types").InputDevice;
71
77
  suggestedBinding: {
72
78
  element: NonDeleted<ExcalidrawBindableElement>;
73
79
  midPoint?: import("@excalidraw/math").GlobalPoint;
74
80
  } | null;
75
- hoveredArrowTextAnchor: {
81
+ textToolHover: {
82
+ type: "text";
83
+ elementId: ExcalidrawElement["id"];
84
+ } | {
85
+ type: "container";
86
+ elementId: ExcalidrawElement["id"];
87
+ } | {
88
+ type: "arrow";
76
89
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
77
90
  anchor: "start" | "end" | "label";
78
91
  } | null;
@@ -102,6 +115,8 @@ export declare const actionDecreaseFontSize: {
102
115
  exportWithDarkMode: boolean;
103
116
  exportScale: number;
104
117
  currentItemStrokeColor: string;
118
+ currentItemStickynoteStrokeColor: string;
119
+ currentItemStickynoteBackgroundColor: string;
105
120
  currentItemBackgroundColor: string;
106
121
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
107
122
  currentItemStrokeWidthKey: StrokeWidthKey;
@@ -206,6 +221,14 @@ export declare const actionDecreaseFontSize: {
206
221
  [groupId: string]: true;
207
222
  };
208
223
  bindMode: import("@excalidraw/element/types").BindMode;
224
+ colorTopPicks: {
225
+ elementStroke: readonly string[] | null;
226
+ elementBackground: readonly string[] | null;
227
+ bucketFill: readonly string[] | null;
228
+ stickyNoteStroke: readonly string[] | null;
229
+ stickyNoteBackground: readonly string[] | null;
230
+ };
231
+ fontTopPicks: readonly FontFamilyValues[] | null;
209
232
  };
210
233
  captureUpdate: "IMMEDIATELY";
211
234
  };
@@ -219,7 +242,7 @@ export declare const actionIncreaseFontSize: {
219
242
  icon: import("react/jsx-runtime").JSX.Element;
220
243
  trackEvent: false;
221
244
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
222
- elements: ExcalidrawElement[];
245
+ elements: (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 | ExcalidrawTextElement | ExcalidrawFreeDrawElement)[];
223
246
  appState: {
224
247
  currentItemFontSize: number;
225
248
  contextMenu: {
@@ -242,11 +265,20 @@ export declare const actionIncreaseFontSize: {
242
265
  boxSelectionMode: import("../types").BoxSelectionMode;
243
266
  bindingPreference: "enabled" | "disabled";
244
267
  isMidpointSnappingEnabled: boolean;
268
+ showHints: boolean;
269
+ inputDevice: import("../types").InputDevice;
245
270
  suggestedBinding: {
246
271
  element: NonDeleted<ExcalidrawBindableElement>;
247
272
  midPoint?: import("@excalidraw/math").GlobalPoint;
248
273
  } | null;
249
- hoveredArrowTextAnchor: {
274
+ textToolHover: {
275
+ type: "text";
276
+ elementId: ExcalidrawElement["id"];
277
+ } | {
278
+ type: "container";
279
+ elementId: ExcalidrawElement["id"];
280
+ } | {
281
+ type: "arrow";
250
282
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
251
283
  anchor: "start" | "end" | "label";
252
284
  } | null;
@@ -276,6 +308,8 @@ export declare const actionIncreaseFontSize: {
276
308
  exportWithDarkMode: boolean;
277
309
  exportScale: number;
278
310
  currentItemStrokeColor: string;
311
+ currentItemStickynoteStrokeColor: string;
312
+ currentItemStickynoteBackgroundColor: string;
279
313
  currentItemBackgroundColor: string;
280
314
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
281
315
  currentItemStrokeWidthKey: StrokeWidthKey;
@@ -380,6 +414,14 @@ export declare const actionIncreaseFontSize: {
380
414
  [groupId: string]: true;
381
415
  };
382
416
  bindMode: import("@excalidraw/element/types").BindMode;
417
+ colorTopPicks: {
418
+ elementStroke: readonly string[] | null;
419
+ elementBackground: readonly string[] | null;
420
+ bucketFill: readonly string[] | null;
421
+ stickyNoteStroke: readonly string[] | null;
422
+ stickyNoteBackground: readonly string[] | null;
423
+ };
424
+ fontTopPicks: readonly FontFamilyValues[] | null;
383
425
  };
384
426
  captureUpdate: "IMMEDIATELY";
385
427
  };
@@ -34,11 +34,20 @@ export declare const actionSelectAll: {
34
34
  boxSelectionMode: import("../types").BoxSelectionMode;
35
35
  bindingPreference: "enabled" | "disabled";
36
36
  isMidpointSnappingEnabled: boolean;
37
+ showHints: boolean;
38
+ inputDevice: import("../types").InputDevice;
37
39
  suggestedBinding: {
38
40
  element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
41
  midPoint?: import("@excalidraw/math").GlobalPoint;
40
42
  } | null;
41
- hoveredArrowTextAnchor: {
43
+ textToolHover: {
44
+ type: "text";
45
+ elementId: ExcalidrawElement["id"];
46
+ } | {
47
+ type: "container";
48
+ elementId: ExcalidrawElement["id"];
49
+ } | {
50
+ type: "arrow";
42
51
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
43
52
  anchor: "start" | "end" | "label";
44
53
  } | null;
@@ -68,6 +77,8 @@ export declare const actionSelectAll: {
68
77
  exportWithDarkMode: boolean;
69
78
  exportScale: number;
70
79
  currentItemStrokeColor: string;
80
+ currentItemStickynoteStrokeColor: string;
81
+ currentItemStickynoteBackgroundColor: string;
71
82
  currentItemBackgroundColor: string;
72
83
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
73
84
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -165,6 +176,14 @@ export declare const actionSelectAll: {
165
176
  [groupId: string]: true;
166
177
  };
167
178
  bindMode: import("@excalidraw/element/types").BindMode;
179
+ colorTopPicks: {
180
+ elementStroke: readonly string[] | null;
181
+ elementBackground: readonly string[] | null;
182
+ bucketFill: readonly string[] | null;
183
+ stickyNoteStroke: readonly string[] | null;
184
+ stickyNoteBackground: readonly string[] | null;
185
+ };
186
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
168
187
  };
169
188
  captureUpdate: "IMMEDIATELY";
170
189
  };
@@ -32,11 +32,20 @@ export declare const actionCopyStyles: {
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: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: import("@excalidraw/element/types").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 actionCopyStyles: {
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: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
71
82
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -166,6 +177,14 @@ export declare const actionCopyStyles: {
166
177
  [groupId: string]: true;
167
178
  };
168
179
  bindMode: import("@excalidraw/element/types").BindMode;
180
+ colorTopPicks: {
181
+ elementStroke: readonly string[] | null;
182
+ elementBackground: readonly string[] | null;
183
+ bucketFill: readonly string[] | null;
184
+ stickyNoteStroke: readonly string[] | null;
185
+ stickyNoteBackground: readonly string[] | null;
186
+ };
187
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
169
188
  };
170
189
  captureUpdate: "EVENTUALLY";
171
190
  };
@@ -184,7 +203,7 @@ export declare const actionPasteStyles: {
184
203
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
185
204
  captureUpdate: "EVENTUALLY";
186
205
  } | {
187
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
206
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
188
207
  captureUpdate: "IMMEDIATELY";
189
208
  };
190
209
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -28,11 +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;
32
+ inputDevice: import("../types").InputDevice;
31
33
  suggestedBinding: {
32
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
34
36
  } | null;
35
- 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";
36
45
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
37
46
  anchor: "start" | "end" | "label";
38
47
  } | null;
@@ -62,6 +71,8 @@ export declare const actionToggleArrowBinding: {
62
71
  exportWithDarkMode: boolean;
63
72
  exportScale: number;
64
73
  currentItemStrokeColor: string;
74
+ currentItemStickynoteStrokeColor: string;
75
+ currentItemStickynoteBackgroundColor: string;
65
76
  currentItemBackgroundColor: string;
66
77
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
67
78
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -167,6 +178,14 @@ export declare const actionToggleArrowBinding: {
167
178
  [groupId: string]: true;
168
179
  };
169
180
  bindMode: import("@excalidraw/element/types").BindMode;
181
+ colorTopPicks: {
182
+ elementStroke: readonly string[] | null;
183
+ elementBackground: readonly string[] | null;
184
+ bucketFill: readonly string[] | null;
185
+ stickyNoteStroke: readonly string[] | null;
186
+ stickyNoteBackground: readonly string[] | null;
187
+ };
188
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
170
189
  };
171
190
  captureUpdate: "NEVER";
172
191
  };
@@ -32,11 +32,20 @@ export declare const actionToggleGridMode: {
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: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: import("@excalidraw/element/types").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 actionToggleGridMode: {
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: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
71
82
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -169,6 +180,14 @@ export declare const actionToggleGridMode: {
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
  captureUpdate: "EVENTUALLY";
174
193
  };
@@ -28,11 +28,20 @@ export declare const actionToggleMidpointSnapping: {
28
28
  isBindingEnabled: boolean;
29
29
  boxSelectionMode: import("../types").BoxSelectionMode;
30
30
  bindingPreference: "enabled" | "disabled";
31
+ showHints: boolean;
32
+ inputDevice: import("../types").InputDevice;
31
33
  suggestedBinding: {
32
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
34
36
  } | null;
35
- 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";
36
45
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
37
46
  anchor: "start" | "end" | "label";
38
47
  } | null;
@@ -62,6 +71,8 @@ export declare const actionToggleMidpointSnapping: {
62
71
  exportWithDarkMode: boolean;
63
72
  exportScale: number;
64
73
  currentItemStrokeColor: string;
74
+ currentItemStickynoteStrokeColor: string;
75
+ currentItemStickynoteBackgroundColor: string;
65
76
  currentItemBackgroundColor: string;
66
77
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
67
78
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -167,6 +178,14 @@ export declare const actionToggleMidpointSnapping: {
167
178
  [groupId: string]: true;
168
179
  };
169
180
  bindMode: import("@excalidraw/element/types").BindMode;
181
+ colorTopPicks: {
182
+ elementStroke: readonly string[] | null;
183
+ elementBackground: readonly string[] | null;
184
+ bucketFill: readonly string[] | null;
185
+ stickyNoteStroke: readonly string[] | null;
186
+ stickyNoteBackground: readonly string[] | null;
187
+ };
188
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
170
189
  };
171
190
  captureUpdate: "NEVER";
172
191
  };
@@ -31,11 +31,20 @@ export declare const actionToggleObjectsSnapMode: {
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 actionToggleObjectsSnapMode: {
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 actionToggleObjectsSnapMode: {
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: "EVENTUALLY";
173
192
  };
@@ -36,11 +36,20 @@ export declare const actionToggleSearchMenu: {
36
36
  boxSelectionMode: import("../types").BoxSelectionMode;
37
37
  bindingPreference: "enabled" | "disabled";
38
38
  isMidpointSnappingEnabled: boolean;
39
+ showHints: boolean;
40
+ inputDevice: import("../types").InputDevice;
39
41
  suggestedBinding: {
40
42
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
41
43
  midPoint?: import("@excalidraw/math").GlobalPoint;
42
44
  } | null;
43
- 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";
44
53
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
45
54
  anchor: "start" | "end" | "label";
46
55
  } | null;
@@ -70,6 +79,8 @@ export declare const actionToggleSearchMenu: {
70
79
  exportWithDarkMode: boolean;
71
80
  exportScale: number;
72
81
  currentItemStrokeColor: string;
82
+ currentItemStickynoteStrokeColor: string;
83
+ currentItemStickynoteBackgroundColor: string;
73
84
  currentItemBackgroundColor: string;
74
85
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
75
86
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -154,6 +165,14 @@ export declare const actionToggleSearchMenu: {
154
165
  [groupId: string]: true;
155
166
  };
156
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;
157
176
  };
158
177
  captureUpdate: "EVENTUALLY";
159
178
  };