@excalidraw/common 0.18.0-2b1c2a9 → 0.18.0-2c3dcc0

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 (164) hide show
  1. package/dist/dev/index.js +108 -20
  2. package/dist/dev/index.js.map +3 -3
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/colors.d.ts +3 -0
  5. package/dist/types/common/src/constants.d.ts +56 -0
  6. package/dist/types/common/src/keys.d.ts +4 -0
  7. package/dist/types/common/src/random.d.ts +7 -0
  8. package/dist/types/common/src/utils.d.ts +12 -1
  9. package/dist/types/element/src/Scene.d.ts +1 -1
  10. package/dist/types/element/src/align.d.ts +4 -1
  11. package/dist/types/element/src/binding.d.ts +75 -7
  12. package/dist/types/element/src/bounds.d.ts +10 -2
  13. package/dist/types/element/src/collision.d.ts +21 -5
  14. package/dist/types/element/src/comparisons.d.ts +5 -3
  15. package/dist/types/element/src/cropElement.d.ts +36 -4
  16. package/dist/types/element/src/delta.d.ts +30 -2
  17. package/dist/types/element/src/distribute.d.ts +4 -1
  18. package/dist/types/element/src/dragElements.d.ts +8 -3
  19. package/dist/types/element/src/duplicate.d.ts +60 -0
  20. package/dist/types/element/src/elbowArrow.d.ts +5 -0
  21. package/dist/types/element/src/embeddable.d.ts +2 -1
  22. package/dist/types/element/src/flowchart.d.ts +6 -8
  23. package/dist/types/element/src/frame.d.ts +21 -3
  24. package/dist/types/element/src/groups.d.ts +1 -6
  25. package/dist/types/element/src/image.d.ts +5 -2
  26. package/dist/types/element/src/index.d.ts +3 -0
  27. package/dist/types/element/src/linearElementEditor.d.ts +4 -1
  28. package/dist/types/element/src/listMarker.d.ts +39 -0
  29. package/dist/types/element/src/mutateElement.d.ts +1 -1
  30. package/dist/types/element/src/newElement.d.ts +40 -3
  31. package/dist/types/element/src/renderElement.d.ts +31 -4
  32. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  33. package/dist/types/element/src/resizeElements.d.ts +15 -5
  34. package/dist/types/element/src/selection.d.ts +4 -10
  35. package/dist/types/element/src/shape.d.ts +17 -1
  36. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  37. package/dist/types/element/src/stickyNote.d.ts +191 -0
  38. package/dist/types/element/src/textElement.d.ts +10 -2
  39. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  40. package/dist/types/element/src/textWrapping.d.ts +3 -2
  41. package/dist/types/element/src/transform.d.ts +30 -7
  42. package/dist/types/element/src/typeChecks.d.ts +3 -2
  43. package/dist/types/element/src/types.d.ts +28 -6
  44. package/dist/types/element/src/utils.d.ts +8 -1
  45. package/dist/types/element/src/zindex.d.ts +1 -1
  46. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +48 -3
  47. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  48. package/dist/types/excalidraw/actions/actionBoundText.d.ts +62 -208
  49. package/dist/types/excalidraw/actions/actionCanvas.d.ts +124 -19
  50. package/dist/types/excalidraw/actions/actionClipboard.d.ts +32 -2
  51. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +16 -1
  52. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -546
  53. package/dist/types/excalidraw/actions/actionDeselect.d.ts +19 -1
  54. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  55. package/dist/types/excalidraw/actions/actionElementLink.d.ts +16 -1
  56. package/dist/types/excalidraw/actions/actionElementLock.d.ts +32 -2
  57. package/dist/types/excalidraw/actions/actionExport.d.ts +35 -5
  58. package/dist/types/excalidraw/actions/actionFrame.d.ts +92 -479
  59. package/dist/types/excalidraw/actions/actionGroup.d.ts +32 -2
  60. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +66 -2
  61. package/dist/types/excalidraw/actions/actionLink.d.ts +16 -1
  62. package/dist/types/excalidraw/actions/actionMenu.d.ts +16 -1
  63. package/dist/types/excalidraw/actions/actionProperties.d.ts +42 -8
  64. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +16 -1
  65. package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -2
  66. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
  67. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +16 -1
  68. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -1
  69. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +16 -1
  70. package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
  71. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -1
  72. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -1
  73. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
  74. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -1
  75. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -1
  76. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  77. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -1
  78. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  79. package/dist/types/excalidraw/actions/index.d.ts +3 -0
  80. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  81. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  82. package/dist/types/excalidraw/appState.d.ts +24 -6
  83. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
  84. package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
  85. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
  86. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
  87. package/dist/types/excalidraw/charts/index.d.ts +2 -1
  88. package/dist/types/excalidraw/components/Actions.d.ts +10 -2
  89. package/dist/types/excalidraw/components/App.arrowText.d.ts +5 -39
  90. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  91. package/dist/types/excalidraw/components/App.d.ts +129 -218
  92. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  93. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  94. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  95. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  96. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  97. package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
  98. package/dist/types/excalidraw/components/App.text.d.ts +194 -0
  99. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  100. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  101. package/dist/types/excalidraw/components/App.viewport.d.ts +64 -4
  102. package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
  103. package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
  104. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  105. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  106. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -1
  107. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  108. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  109. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  110. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  111. package/dist/types/excalidraw/components/IconButton.d.ts +2 -0
  112. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  113. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  114. package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
  115. package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
  116. package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
  117. package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
  118. package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
  119. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  120. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  121. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  122. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  123. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  124. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  125. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  126. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  127. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
  128. package/dist/types/excalidraw/components/Tools.d.ts +7 -2
  129. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  130. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  131. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  132. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  133. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -1
  134. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
  135. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  136. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  137. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +13 -2
  138. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  139. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +3 -0
  140. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +2 -2
  141. package/dist/types/excalidraw/data/blob.d.ts +38 -8
  142. package/dist/types/excalidraw/data/index.d.ts +3 -3
  143. package/dist/types/excalidraw/data/json.d.ts +19 -4
  144. package/dist/types/excalidraw/fonts/Fonts.d.ts +9 -6
  145. package/dist/types/excalidraw/history.d.ts +10 -4
  146. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  147. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  148. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  149. package/dist/types/excalidraw/renderer/animation.d.ts +11 -4
  150. package/dist/types/excalidraw/renderer/helpers.d.ts +18 -0
  151. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  152. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  153. package/dist/types/excalidraw/scene/Renderer.d.ts +64 -3
  154. package/dist/types/excalidraw/scene/export.d.ts +343 -20
  155. package/dist/types/excalidraw/scene/index.d.ts +1 -1
  156. package/dist/types/excalidraw/scene/types.d.ts +26 -2
  157. package/dist/types/excalidraw/types.d.ts +191 -22
  158. package/dist/types/excalidraw/viewport.d.ts +29 -1
  159. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
  160. package/dist/types/utils/src/index.d.ts +3 -1
  161. package/dist/types/utils/src/shape.d.ts +2 -2
  162. package/package.json +1 -1
  163. package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +0 -31
  164. package/dist/types/utils/src/export.d.ts +0 -35
@@ -30,17 +30,23 @@ export declare const actionClearCanvas: {
30
30
  elementStroke: readonly string[] | null;
31
31
  elementBackground: readonly string[] | null;
32
32
  bucketFill: readonly string[] | null;
33
+ stickyNoteStroke: readonly string[] | null;
34
+ stickyNoteBackground: readonly string[] | null;
33
35
  };
36
+ fontTopPicks: readonly number[] | null;
34
37
  activeTool: {
35
38
  lastActiveTool: import("../types").ActiveTool | null;
36
39
  locked: boolean;
37
40
  fromSelection: boolean;
38
41
  } & import("../types").ActiveTool;
42
+ zoom: import("../types").Zoom;
39
43
  viewModeEnabled: boolean;
40
44
  zenModeEnabled: boolean;
41
45
  objectsSnapModeEnabled: boolean;
42
46
  name: string | null;
43
47
  currentItemArrowType: "sharp" | "round" | "elbow";
48
+ scrollX: number;
49
+ scrollY: number;
44
50
  contextMenu: {
45
51
  items: import("../components/ContextMenu").ContextMenuItems;
46
52
  top: number;
@@ -61,11 +67,20 @@ export declare const actionClearCanvas: {
61
67
  boxSelectionMode: import("../types").BoxSelectionMode;
62
68
  bindingPreference: "enabled" | "disabled";
63
69
  isMidpointSnappingEnabled: boolean;
70
+ showHints: boolean;
71
+ inputDevice: import("../types").InputDevice;
64
72
  suggestedBinding: {
65
73
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
66
74
  midPoint?: import("@excalidraw/math").GlobalPoint;
67
75
  } | null;
68
- hoveredArrowTextAnchor: {
76
+ textToolHover: {
77
+ type: "text";
78
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
79
+ } | {
80
+ type: "container";
81
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
82
+ } | {
83
+ type: "arrow";
69
84
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
70
85
  anchor: "start" | "end" | "label";
71
86
  } | null;
@@ -86,6 +101,8 @@ export declare const actionClearCanvas: {
86
101
  exportWithDarkMode: boolean;
87
102
  exportScale: number;
88
103
  currentItemStrokeColor: string;
104
+ currentItemStickynoteStrokeColor: string;
105
+ currentItemStickynoteBackgroundColor: string;
89
106
  currentItemBackgroundColor: string;
90
107
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
91
108
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -101,14 +118,11 @@ export declare const actionClearCanvas: {
101
118
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
102
119
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
103
120
  viewBackgroundColor: string;
104
- scrollX: number;
105
- scrollY: number;
106
121
  scrollConstraints: import("../types").ScrollConstraints | null;
107
122
  cursorButton: "up" | "down";
108
123
  scrolledOutside: boolean;
109
124
  isResizing: boolean;
110
125
  isRotating: boolean;
111
- zoom: import("../types").Zoom;
112
126
  openMenu: "canvas" | null;
113
127
  openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
114
128
  openSidebar: {
@@ -150,6 +164,7 @@ export declare const actionClearCanvas: {
150
164
  closable?: boolean;
151
165
  duration?: number;
152
166
  } | null;
167
+ minimapEnabled: boolean;
153
168
  selectedGroupIds: {
154
169
  [groupId: string]: boolean;
155
170
  };
@@ -190,11 +205,11 @@ export declare const actionZoomIn: {
190
205
  category: "canvas";
191
206
  };
192
207
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
193
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
208
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, anchor: unknown, app: import("../types").AppClassProperties) => {
194
209
  appState: {
210
+ zoom: import("../types").Zoom;
195
211
  scrollX: number;
196
212
  scrollY: number;
197
- zoom: import("../types").Zoom;
198
213
  contextMenu: {
199
214
  items: import("../components/ContextMenu").ContextMenuItems;
200
215
  top: number;
@@ -215,11 +230,20 @@ export declare const actionZoomIn: {
215
230
  boxSelectionMode: import("../types").BoxSelectionMode;
216
231
  bindingPreference: "enabled" | "disabled";
217
232
  isMidpointSnappingEnabled: boolean;
233
+ showHints: boolean;
234
+ inputDevice: import("../types").InputDevice;
218
235
  suggestedBinding: {
219
236
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
220
237
  midPoint?: import("@excalidraw/math").GlobalPoint;
221
238
  } | null;
222
- hoveredArrowTextAnchor: {
239
+ textToolHover: {
240
+ type: "text";
241
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
242
+ } | {
243
+ type: "container";
244
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
245
+ } | {
246
+ type: "arrow";
223
247
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
224
248
  anchor: "start" | "end" | "label";
225
249
  } | null;
@@ -249,6 +273,8 @@ export declare const actionZoomIn: {
249
273
  exportWithDarkMode: boolean;
250
274
  exportScale: number;
251
275
  currentItemStrokeColor: string;
276
+ currentItemStickynoteStrokeColor: string;
277
+ currentItemStickynoteBackgroundColor: string;
252
278
  currentItemBackgroundColor: string;
253
279
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
254
280
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -313,6 +339,7 @@ export declare const actionZoomIn: {
313
339
  duration?: number;
314
340
  } | null;
315
341
  zenModeEnabled: boolean;
342
+ minimapEnabled: boolean;
316
343
  theme: import("@excalidraw/element/types").Theme;
317
344
  gridSize: number;
318
345
  gridStep: number;
@@ -355,7 +382,10 @@ export declare const actionZoomIn: {
355
382
  elementStroke: readonly string[] | null;
356
383
  elementBackground: readonly string[] | null;
357
384
  bucketFill: readonly string[] | null;
385
+ stickyNoteStroke: readonly string[] | null;
386
+ stickyNoteBackground: readonly string[] | null;
358
387
  };
388
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
359
389
  };
360
390
  captureUpdate: "EVENTUALLY";
361
391
  };
@@ -374,11 +404,11 @@ export declare const actionZoomOut: {
374
404
  category: "canvas";
375
405
  };
376
406
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
377
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
407
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, anchor: unknown, app: import("../types").AppClassProperties) => {
378
408
  appState: {
409
+ zoom: import("../types").Zoom;
379
410
  scrollX: number;
380
411
  scrollY: number;
381
- zoom: import("../types").Zoom;
382
412
  contextMenu: {
383
413
  items: import("../components/ContextMenu").ContextMenuItems;
384
414
  top: number;
@@ -399,11 +429,20 @@ export declare const actionZoomOut: {
399
429
  boxSelectionMode: import("../types").BoxSelectionMode;
400
430
  bindingPreference: "enabled" | "disabled";
401
431
  isMidpointSnappingEnabled: boolean;
432
+ showHints: boolean;
433
+ inputDevice: import("../types").InputDevice;
402
434
  suggestedBinding: {
403
435
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
404
436
  midPoint?: import("@excalidraw/math").GlobalPoint;
405
437
  } | null;
406
- hoveredArrowTextAnchor: {
438
+ textToolHover: {
439
+ type: "text";
440
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
441
+ } | {
442
+ type: "container";
443
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
444
+ } | {
445
+ type: "arrow";
407
446
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
408
447
  anchor: "start" | "end" | "label";
409
448
  } | null;
@@ -433,6 +472,8 @@ export declare const actionZoomOut: {
433
472
  exportWithDarkMode: boolean;
434
473
  exportScale: number;
435
474
  currentItemStrokeColor: string;
475
+ currentItemStickynoteStrokeColor: string;
476
+ currentItemStickynoteBackgroundColor: string;
436
477
  currentItemBackgroundColor: string;
437
478
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
438
479
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -497,6 +538,7 @@ export declare const actionZoomOut: {
497
538
  duration?: number;
498
539
  } | null;
499
540
  zenModeEnabled: boolean;
541
+ minimapEnabled: boolean;
500
542
  theme: import("@excalidraw/element/types").Theme;
501
543
  gridSize: number;
502
544
  gridStep: number;
@@ -539,7 +581,10 @@ export declare const actionZoomOut: {
539
581
  elementStroke: readonly string[] | null;
540
582
  elementBackground: readonly string[] | null;
541
583
  bucketFill: readonly string[] | null;
584
+ stickyNoteStroke: readonly string[] | null;
585
+ stickyNoteBackground: readonly string[] | null;
542
586
  };
587
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
543
588
  };
544
589
  captureUpdate: "EVENTUALLY";
545
590
  };
@@ -558,11 +603,11 @@ export declare const actionResetZoom: {
558
603
  category: "canvas";
559
604
  };
560
605
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
561
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
606
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, anchor: unknown, app: import("../types").AppClassProperties) => {
562
607
  appState: {
608
+ zoom: import("../types").Zoom;
563
609
  scrollX: number;
564
610
  scrollY: number;
565
- zoom: import("../types").Zoom;
566
611
  contextMenu: {
567
612
  items: import("../components/ContextMenu").ContextMenuItems;
568
613
  top: number;
@@ -583,11 +628,20 @@ export declare const actionResetZoom: {
583
628
  boxSelectionMode: import("../types").BoxSelectionMode;
584
629
  bindingPreference: "enabled" | "disabled";
585
630
  isMidpointSnappingEnabled: boolean;
631
+ showHints: boolean;
632
+ inputDevice: import("../types").InputDevice;
586
633
  suggestedBinding: {
587
634
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
588
635
  midPoint?: import("@excalidraw/math").GlobalPoint;
589
636
  } | null;
590
- hoveredArrowTextAnchor: {
637
+ textToolHover: {
638
+ type: "text";
639
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
640
+ } | {
641
+ type: "container";
642
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
643
+ } | {
644
+ type: "arrow";
591
645
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
592
646
  anchor: "start" | "end" | "label";
593
647
  } | null;
@@ -617,6 +671,8 @@ export declare const actionResetZoom: {
617
671
  exportWithDarkMode: boolean;
618
672
  exportScale: number;
619
673
  currentItemStrokeColor: string;
674
+ currentItemStickynoteStrokeColor: string;
675
+ currentItemStickynoteBackgroundColor: string;
620
676
  currentItemBackgroundColor: string;
621
677
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
622
678
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -681,6 +737,7 @@ export declare const actionResetZoom: {
681
737
  duration?: number;
682
738
  } | null;
683
739
  zenModeEnabled: boolean;
740
+ minimapEnabled: boolean;
684
741
  theme: import("@excalidraw/element/types").Theme;
685
742
  gridSize: number;
686
743
  gridStep: number;
@@ -723,7 +780,10 @@ export declare const actionResetZoom: {
723
780
  elementStroke: readonly string[] | null;
724
781
  elementBackground: readonly string[] | null;
725
782
  bucketFill: readonly string[] | null;
783
+ stickyNoteStroke: readonly string[] | null;
784
+ stickyNoteBackground: readonly string[] | null;
726
785
  };
786
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
727
787
  };
728
788
  captureUpdate: "EVENTUALLY";
729
789
  };
@@ -744,9 +804,9 @@ export declare const actionZoomToFitSelectionInViewport: {
744
804
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
745
805
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
746
806
  appState: {
807
+ zoom: import("../types").Zoom;
747
808
  scrollX: number;
748
809
  scrollY: number;
749
- zoom: import("../types").Zoom;
750
810
  contextMenu: {
751
811
  items: import("../components/ContextMenu").ContextMenuItems;
752
812
  top: number;
@@ -767,11 +827,20 @@ export declare const actionZoomToFitSelectionInViewport: {
767
827
  boxSelectionMode: import("../types").BoxSelectionMode;
768
828
  bindingPreference: "enabled" | "disabled";
769
829
  isMidpointSnappingEnabled: boolean;
830
+ showHints: boolean;
831
+ inputDevice: import("../types").InputDevice;
770
832
  suggestedBinding: {
771
833
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
772
834
  midPoint?: import("@excalidraw/math").GlobalPoint;
773
835
  } | null;
774
- hoveredArrowTextAnchor: {
836
+ textToolHover: {
837
+ type: "text";
838
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
839
+ } | {
840
+ type: "container";
841
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
842
+ } | {
843
+ type: "arrow";
775
844
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
776
845
  anchor: "start" | "end" | "label";
777
846
  } | null;
@@ -801,6 +870,8 @@ export declare const actionZoomToFitSelectionInViewport: {
801
870
  exportWithDarkMode: boolean;
802
871
  exportScale: number;
803
872
  currentItemStrokeColor: string;
873
+ currentItemStickynoteStrokeColor: string;
874
+ currentItemStickynoteBackgroundColor: string;
804
875
  currentItemBackgroundColor: string;
805
876
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
806
877
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -865,6 +936,7 @@ export declare const actionZoomToFitSelectionInViewport: {
865
936
  duration?: number;
866
937
  } | null;
867
938
  zenModeEnabled: boolean;
939
+ minimapEnabled: boolean;
868
940
  theme: import("@excalidraw/element/types").Theme;
869
941
  gridSize: number;
870
942
  gridStep: number;
@@ -907,7 +979,10 @@ export declare const actionZoomToFitSelectionInViewport: {
907
979
  elementStroke: readonly string[] | null;
908
980
  elementBackground: readonly string[] | null;
909
981
  bucketFill: readonly string[] | null;
982
+ stickyNoteStroke: readonly string[] | null;
983
+ stickyNoteBackground: readonly string[] | null;
910
984
  };
985
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
911
986
  };
912
987
  captureUpdate: "EVENTUALLY";
913
988
  };
@@ -927,9 +1002,9 @@ export declare const actionZoomToFitSelection: {
927
1002
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
928
1003
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
929
1004
  appState: {
1005
+ zoom: import("../types").Zoom;
930
1006
  scrollX: number;
931
1007
  scrollY: number;
932
- zoom: import("../types").Zoom;
933
1008
  contextMenu: {
934
1009
  items: import("../components/ContextMenu").ContextMenuItems;
935
1010
  top: number;
@@ -950,11 +1025,20 @@ export declare const actionZoomToFitSelection: {
950
1025
  boxSelectionMode: import("../types").BoxSelectionMode;
951
1026
  bindingPreference: "enabled" | "disabled";
952
1027
  isMidpointSnappingEnabled: boolean;
1028
+ showHints: boolean;
1029
+ inputDevice: import("../types").InputDevice;
953
1030
  suggestedBinding: {
954
1031
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
955
1032
  midPoint?: import("@excalidraw/math").GlobalPoint;
956
1033
  } | null;
957
- hoveredArrowTextAnchor: {
1034
+ textToolHover: {
1035
+ type: "text";
1036
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1037
+ } | {
1038
+ type: "container";
1039
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1040
+ } | {
1041
+ type: "arrow";
958
1042
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
959
1043
  anchor: "start" | "end" | "label";
960
1044
  } | null;
@@ -984,6 +1068,8 @@ export declare const actionZoomToFitSelection: {
984
1068
  exportWithDarkMode: boolean;
985
1069
  exportScale: number;
986
1070
  currentItemStrokeColor: string;
1071
+ currentItemStickynoteStrokeColor: string;
1072
+ currentItemStickynoteBackgroundColor: string;
987
1073
  currentItemBackgroundColor: string;
988
1074
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
989
1075
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -1048,6 +1134,7 @@ export declare const actionZoomToFitSelection: {
1048
1134
  duration?: number;
1049
1135
  } | null;
1050
1136
  zenModeEnabled: boolean;
1137
+ minimapEnabled: boolean;
1051
1138
  theme: import("@excalidraw/element/types").Theme;
1052
1139
  gridSize: number;
1053
1140
  gridStep: number;
@@ -1090,7 +1177,10 @@ export declare const actionZoomToFitSelection: {
1090
1177
  elementStroke: readonly string[] | null;
1091
1178
  elementBackground: readonly string[] | null;
1092
1179
  bucketFill: readonly string[] | null;
1180
+ stickyNoteStroke: readonly string[] | null;
1181
+ stickyNoteBackground: readonly string[] | null;
1093
1182
  };
1183
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1094
1184
  };
1095
1185
  captureUpdate: "EVENTUALLY";
1096
1186
  };
@@ -1110,9 +1200,9 @@ export declare const actionZoomToFit: {
1110
1200
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1111
1201
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1112
1202
  appState: {
1203
+ zoom: import("../types").Zoom;
1113
1204
  scrollX: number;
1114
1205
  scrollY: number;
1115
- zoom: import("../types").Zoom;
1116
1206
  contextMenu: {
1117
1207
  items: import("../components/ContextMenu").ContextMenuItems;
1118
1208
  top: number;
@@ -1133,11 +1223,20 @@ export declare const actionZoomToFit: {
1133
1223
  boxSelectionMode: import("../types").BoxSelectionMode;
1134
1224
  bindingPreference: "enabled" | "disabled";
1135
1225
  isMidpointSnappingEnabled: boolean;
1226
+ showHints: boolean;
1227
+ inputDevice: import("../types").InputDevice;
1136
1228
  suggestedBinding: {
1137
1229
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1138
1230
  midPoint?: import("@excalidraw/math").GlobalPoint;
1139
1231
  } | null;
1140
- hoveredArrowTextAnchor: {
1232
+ textToolHover: {
1233
+ type: "text";
1234
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1235
+ } | {
1236
+ type: "container";
1237
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1238
+ } | {
1239
+ type: "arrow";
1141
1240
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
1142
1241
  anchor: "start" | "end" | "label";
1143
1242
  } | null;
@@ -1167,6 +1266,8 @@ export declare const actionZoomToFit: {
1167
1266
  exportWithDarkMode: boolean;
1168
1267
  exportScale: number;
1169
1268
  currentItemStrokeColor: string;
1269
+ currentItemStickynoteStrokeColor: string;
1270
+ currentItemStickynoteBackgroundColor: string;
1170
1271
  currentItemBackgroundColor: string;
1171
1272
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1172
1273
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -1231,6 +1332,7 @@ export declare const actionZoomToFit: {
1231
1332
  duration?: number;
1232
1333
  } | null;
1233
1334
  zenModeEnabled: boolean;
1335
+ minimapEnabled: boolean;
1234
1336
  theme: import("@excalidraw/element/types").Theme;
1235
1337
  gridSize: number;
1236
1338
  gridStep: number;
@@ -1273,7 +1375,10 @@ export declare const actionZoomToFit: {
1273
1375
  elementStroke: readonly string[] | null;
1274
1376
  elementBackground: readonly string[] | null;
1275
1377
  bucketFill: readonly string[] | null;
1378
+ stickyNoteStroke: readonly string[] | null;
1379
+ stickyNoteBackground: readonly string[] | null;
1276
1380
  };
1381
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1277
1382
  };
1278
1383
  captureUpdate: "EVENTUALLY";
1279
1384
  };
@@ -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;
@@ -131,6 +142,7 @@ export declare const actionPaste: {
131
142
  duration?: number;
132
143
  } | null;
133
144
  zenModeEnabled: boolean;
145
+ minimapEnabled: boolean;
134
146
  theme: import("@excalidraw/element/types").Theme;
135
147
  gridSize: number;
136
148
  gridStep: number;
@@ -173,7 +185,10 @@ export declare const actionPaste: {
173
185
  elementStroke: readonly string[] | null;
174
186
  elementBackground: readonly string[] | null;
175
187
  bucketFill: readonly string[] | null;
188
+ stickyNoteStroke: readonly string[] | null;
189
+ stickyNoteBackground: readonly string[] | null;
176
190
  };
191
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
177
192
  };
178
193
  } | {
179
194
  captureUpdate: "EVENTUALLY";
@@ -248,11 +263,20 @@ export declare const actionCopyAsPng: {
248
263
  boxSelectionMode: import("../types").BoxSelectionMode;
249
264
  bindingPreference: "enabled" | "disabled";
250
265
  isMidpointSnappingEnabled: boolean;
266
+ showHints: boolean;
267
+ inputDevice: import("../types").InputDevice;
251
268
  suggestedBinding: {
252
269
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
253
270
  midPoint?: import("@excalidraw/math").GlobalPoint;
254
271
  } | null;
255
- hoveredArrowTextAnchor: {
272
+ textToolHover: {
273
+ type: "text";
274
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
275
+ } | {
276
+ type: "container";
277
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
278
+ } | {
279
+ type: "arrow";
256
280
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
257
281
  anchor: "start" | "end" | "label";
258
282
  } | null;
@@ -282,6 +306,8 @@ export declare const actionCopyAsPng: {
282
306
  exportWithDarkMode: boolean;
283
307
  exportScale: number;
284
308
  currentItemStrokeColor: string;
309
+ currentItemStickynoteStrokeColor: string;
310
+ currentItemStickynoteBackgroundColor: string;
285
311
  currentItemBackgroundColor: string;
286
312
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
287
313
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
@@ -349,6 +375,7 @@ export declare const actionCopyAsPng: {
349
375
  duration?: number;
350
376
  } | null;
351
377
  zenModeEnabled: boolean;
378
+ minimapEnabled: boolean;
352
379
  theme: import("@excalidraw/element/types").Theme;
353
380
  gridSize: number;
354
381
  gridStep: number;
@@ -391,7 +418,10 @@ export declare const actionCopyAsPng: {
391
418
  elementStroke: readonly string[] | null;
392
419
  elementBackground: readonly string[] | null;
393
420
  bucketFill: readonly string[] | null;
421
+ stickyNoteStroke: readonly string[] | null;
422
+ stickyNoteBackground: readonly string[] | null;
394
423
  };
424
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
395
425
  };
396
426
  captureUpdate: "EVENTUALLY";
397
427
  }>;
@@ -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;
@@ -132,6 +143,7 @@ export declare const actionToggleCropEditor: {
132
143
  duration?: number;
133
144
  } | null;
134
145
  zenModeEnabled: boolean;
146
+ minimapEnabled: boolean;
135
147
  theme: import("@excalidraw/element/types").Theme;
136
148
  gridSize: number;
137
149
  gridStep: number;
@@ -172,7 +184,10 @@ export declare const actionToggleCropEditor: {
172
184
  elementStroke: readonly string[] | null;
173
185
  elementBackground: readonly string[] | null;
174
186
  bucketFill: readonly string[] | null;
187
+ stickyNoteStroke: readonly string[] | null;
188
+ stickyNoteBackground: readonly string[] | null;
175
189
  };
190
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
176
191
  };
177
192
  captureUpdate: "IMMEDIATELY";
178
193
  };