@excalidraw/element 0.18.0-4a5c9e9 → 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 (218) hide show
  1. package/dist/dev/index.js +11944 -8172
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +21 -20
  4. package/dist/types/common/src/colors.d.ts +23 -1
  5. package/dist/types/common/src/constants.d.ts +66 -7
  6. package/dist/types/common/src/keys.d.ts +4 -0
  7. package/dist/types/common/src/points.d.ts +1 -1
  8. package/dist/types/common/src/random.d.ts +7 -0
  9. package/dist/types/common/src/utils.d.ts +6 -43
  10. package/dist/types/element/src/Scene.d.ts +7 -5
  11. package/dist/types/element/src/align.d.ts +2 -2
  12. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  13. package/dist/types/element/src/arrows/focus.d.ts +5 -2
  14. package/dist/types/element/src/binding.d.ts +28 -13
  15. package/dist/types/element/src/bounds.d.ts +22 -7
  16. package/dist/types/element/src/bucketFill.d.ts +110 -0
  17. package/dist/types/element/src/collision.d.ts +14 -5
  18. package/dist/types/element/src/comparisons.d.ts +8 -5
  19. package/dist/types/element/src/convertToShape.d.ts +23 -0
  20. package/dist/types/element/src/delta.d.ts +23 -1
  21. package/dist/types/element/src/distribute.d.ts +2 -2
  22. package/dist/types/element/src/dragElements.d.ts +27 -0
  23. package/dist/types/element/src/duplicate.d.ts +64 -3
  24. package/dist/types/element/src/embeddable.d.ts +2 -2
  25. package/dist/types/element/src/flowchart.d.ts +11 -7
  26. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  27. package/dist/types/element/src/frame.d.ts +11 -10
  28. package/dist/types/element/src/groups.d.ts +9 -9
  29. package/dist/types/element/src/index.d.ts +6 -1
  30. package/dist/types/element/src/linearElementEditor.d.ts +27 -10
  31. package/dist/types/element/src/listMarker.d.ts +34 -0
  32. package/dist/types/element/src/mutateElement.d.ts +1 -1
  33. package/dist/types/element/src/newElement.d.ts +53 -3
  34. package/dist/types/element/src/renderElement.d.ts +21 -7
  35. package/dist/types/element/src/resizeElements.d.ts +2 -2
  36. package/dist/types/element/src/selection.d.ts +6 -6
  37. package/dist/types/element/src/shape.d.ts +27 -1
  38. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  39. package/dist/types/element/src/sortElements.d.ts +10 -0
  40. package/dist/types/element/src/stickyNote.d.ts +183 -0
  41. package/dist/types/element/src/textElement.d.ts +20 -9
  42. package/dist/types/element/src/transform.d.ts +26 -7
  43. package/dist/types/element/src/typeChecks.d.ts +29 -27
  44. package/dist/types/element/src/types.d.ts +43 -7
  45. package/dist/types/element/src/utils.d.ts +15 -4
  46. package/dist/types/element/src/visualdebug.d.ts +1 -2
  47. package/dist/types/element/src/zindex.d.ts +2 -2
  48. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +87 -18
  49. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  50. package/dist/types/excalidraw/actions/actionBoundText.d.ts +58 -12
  51. package/dist/types/excalidraw/actions/actionCanvas.d.ts +265 -940
  52. package/dist/types/excalidraw/actions/actionClipboard.d.ts +58 -12
  53. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +29 -6
  54. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +89 -19
  55. package/dist/types/excalidraw/actions/actionDeselect.d.ts +30 -7
  56. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  57. package/dist/types/excalidraw/actions/actionElementLink.d.ts +29 -6
  58. package/dist/types/excalidraw/actions/actionElementLock.d.ts +59 -13
  59. package/dist/types/excalidraw/actions/actionExport.d.ts +60 -14
  60. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  61. package/dist/types/excalidraw/actions/actionFrame.d.ts +150 -203
  62. package/dist/types/excalidraw/actions/actionGroup.d.ts +73 -27
  63. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +84 -9
  64. package/dist/types/excalidraw/actions/actionLink.d.ts +30 -7
  65. package/dist/types/excalidraw/actions/actionMenu.d.ts +29 -6
  66. package/dist/types/excalidraw/actions/actionProperties.d.ts +96 -34
  67. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +34 -11
  68. package/dist/types/excalidraw/actions/actionStyles.d.ts +30 -7
  69. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  70. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +30 -7
  71. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -11
  72. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +30 -7
  73. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +30 -7
  74. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +33 -11
  75. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  76. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +45 -19
  77. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +30 -7
  78. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +31 -8
  79. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +30 -7
  80. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  81. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  82. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  83. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  84. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  85. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  86. package/dist/types/excalidraw/appState.d.ts +30 -6
  87. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  88. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  89. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  90. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  91. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  92. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  93. package/dist/types/excalidraw/components/App.d.ts +301 -93
  94. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  95. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  96. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  97. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  98. package/dist/types/excalidraw/components/App.text.d.ts +146 -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 +113 -0
  102. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  103. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  104. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  105. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  106. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  107. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  108. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  109. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  110. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  111. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  112. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  113. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  114. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  115. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  116. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  117. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  118. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  119. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  120. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  121. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  122. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  123. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  124. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  125. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  126. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  127. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  128. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  129. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  130. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  131. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  132. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  133. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  134. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  135. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  136. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  137. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  138. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  139. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  140. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  141. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  142. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  143. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  144. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  145. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  146. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  147. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  148. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  149. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  150. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  151. package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
  152. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  153. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  154. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  155. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  156. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  157. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -1
  158. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  159. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  160. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  161. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  162. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  163. package/dist/types/excalidraw/components/icons.d.ts +7 -1
  164. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +10 -4
  165. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  166. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  167. package/dist/types/excalidraw/data/blob.d.ts +62 -16
  168. package/dist/types/excalidraw/data/index.d.ts +4 -4
  169. package/dist/types/excalidraw/data/json.d.ts +37 -14
  170. package/dist/types/excalidraw/data/library.d.ts +1 -1
  171. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  172. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  173. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
  174. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  175. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  176. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  177. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  178. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  179. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  180. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  181. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  182. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  183. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  184. package/dist/types/excalidraw/scene/Renderer.d.ts +489 -20
  185. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  186. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  187. package/dist/types/excalidraw/scene/types.d.ts +7 -4
  188. package/dist/types/excalidraw/snapping.d.ts +7 -7
  189. package/dist/types/excalidraw/types.d.ts +531 -29
  190. package/dist/types/excalidraw/viewport.d.ts +302 -0
  191. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +13 -3
  192. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  193. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  194. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  195. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  196. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  197. package/dist/types/math/src/constants.d.ts +0 -1
  198. package/dist/types/math/src/curve.d.ts +23 -13
  199. package/dist/types/math/src/index.d.ts +1 -0
  200. package/dist/types/math/src/pca.d.ts +79 -0
  201. package/dist/types/math/src/point.d.ts +1 -0
  202. package/dist/types/math/src/polygon.d.ts +25 -1
  203. package/dist/types/math/src/segment.d.ts +6 -0
  204. package/dist/types/utils/src/export.d.ts +4 -3
  205. package/dist/types/utils/src/index.d.ts +1 -2
  206. package/dist/types/utils/src/shape.d.ts +2 -2
  207. package/package.json +4 -3
  208. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  209. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  210. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  211. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  212. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  213. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  214. package/dist/types/excalidraw/cursor.d.ts +0 -5
  215. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  216. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  217. package/dist/types/utils/src/bbox.d.ts +0 -9
  218. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,21 +1,21 @@
1
1
  import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
2
- import type { AppClassProperties, AppState } from "../types";
2
+ import type { AppClassProperties, UIAppState } from "../types";
3
3
  export declare const actionGroup: {
4
4
  name: "group";
5
5
  label: string;
6
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
6
+ icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
7
7
  trackEvent: {
8
8
  category: "element";
9
9
  };
10
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
11
- appState: Readonly<AppState>;
10
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => false | {
11
+ appState: Readonly<import("../types").AppState>;
12
12
  elements: readonly OrderedExcalidrawElement[];
13
13
  captureUpdate: "EVENTUALLY";
14
14
  } | {
15
15
  appState: {
16
- editingGroupId: AppState["editingGroupId"];
17
- selectedElementIds: AppState["selectedElementIds"];
18
- selectedGroupIds: AppState["selectedGroupIds"];
16
+ editingGroupId: import("../types").AppState["editingGroupId"];
17
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
18
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
19
19
  contextMenu: {
20
20
  items: import("../components/ContextMenu").ContextMenuItems;
21
21
  top: number;
@@ -33,13 +33,26 @@ export declare const actionGroup: {
33
33
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
34
34
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
35
35
  isBindingEnabled: boolean;
36
+ boxSelectionMode: import("../types").BoxSelectionMode;
36
37
  bindingPreference: "enabled" | "disabled";
37
38
  isMidpointSnappingEnabled: boolean;
38
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
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;
45
+ textToolHover: {
46
+ type: "text";
47
+ elementId: ExcalidrawElement["id"];
48
+ } | {
49
+ type: "container";
50
+ elementId: ExcalidrawElement["id"];
51
+ } | {
52
+ type: "arrow";
53
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
54
+ anchor: "start" | "end" | "label";
55
+ } | null;
43
56
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
44
57
  frameRendering: {
45
58
  enabled: boolean;
@@ -47,8 +60,8 @@ export declare const actionGroup: {
47
60
  outline: boolean;
48
61
  clip: boolean;
49
62
  };
50
- editingFrame: string | null;
51
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
63
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
64
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
52
65
  editingTextElement: ExcalidrawTextElement | null;
53
66
  activeTool: {
54
67
  lastActiveTool: import("../types").ActiveTool | null;
@@ -66,11 +79,14 @@ export declare const actionGroup: {
66
79
  exportWithDarkMode: boolean;
67
80
  exportScale: number;
68
81
  currentItemStrokeColor: string;
82
+ currentItemStickynoteStrokeColor: string;
83
+ currentItemStickynoteBackgroundColor: string;
69
84
  currentItemBackgroundColor: string;
70
85
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
71
- currentItemStrokeWidth: number;
86
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
72
87
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
73
88
  currentItemRoughness: number;
89
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
74
90
  currentItemOpacity: number;
75
91
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
76
92
  currentItemFontSize: number;
@@ -83,6 +99,7 @@ export declare const actionGroup: {
83
99
  viewBackgroundColor: string;
84
100
  scrollX: number;
85
101
  scrollY: number;
102
+ scrollConstraints: import("../types").ScrollConstraints | null;
86
103
  cursorButton: "up" | "down";
87
104
  scrolledOutside: boolean;
88
105
  name: string | null;
@@ -151,8 +168,6 @@ export declare const actionGroup: {
151
168
  y: number;
152
169
  } | null;
153
170
  objectsSnapModeEnabled: boolean;
154
- userToFollow: import("../types").UserToFollow | null;
155
- followedBy: Set<import("../types").SocketId>;
156
171
  isCropping: boolean;
157
172
  croppingElementId: ExcalidrawElement["id"] | null;
158
173
  searchMatches: Readonly<{
@@ -164,11 +179,19 @@ export declare const actionGroup: {
164
179
  [groupId: string]: true;
165
180
  };
166
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;
167
190
  };
168
191
  elements: OrderedExcalidrawElement[];
169
192
  captureUpdate: "IMMEDIATELY";
170
193
  };
171
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
194
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
172
195
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
173
196
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
174
197
  } & {
@@ -177,19 +200,19 @@ export declare const actionGroup: {
177
200
  export declare const actionUngroup: {
178
201
  name: "ungroup";
179
202
  label: string;
180
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
203
+ icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
181
204
  trackEvent: {
182
205
  category: "element";
183
206
  };
184
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
185
- appState: Readonly<AppState>;
207
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
208
+ appState: Readonly<import("../types").AppState>;
186
209
  elements: readonly OrderedExcalidrawElement[];
187
210
  captureUpdate: "EVENTUALLY";
188
211
  } | {
189
212
  appState: {
190
- editingGroupId: AppState["editingGroupId"];
191
- selectedElementIds: AppState["selectedElementIds"];
192
- selectedGroupIds: AppState["selectedGroupIds"];
213
+ editingGroupId: import("../types").AppState["editingGroupId"];
214
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
215
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
193
216
  contextMenu: {
194
217
  items: import("../components/ContextMenu").ContextMenuItems;
195
218
  top: number;
@@ -207,13 +230,26 @@ export declare const actionUngroup: {
207
230
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
208
231
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
209
232
  isBindingEnabled: boolean;
233
+ boxSelectionMode: import("../types").BoxSelectionMode;
210
234
  bindingPreference: "enabled" | "disabled";
211
235
  isMidpointSnappingEnabled: boolean;
212
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
236
+ showHints: boolean;
237
+ inputDevice: import("../types").InputDevice;
213
238
  suggestedBinding: {
214
239
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
215
240
  midPoint?: import("@excalidraw/math").GlobalPoint;
216
241
  } | null;
242
+ textToolHover: {
243
+ type: "text";
244
+ elementId: ExcalidrawElement["id"];
245
+ } | {
246
+ type: "container";
247
+ elementId: ExcalidrawElement["id"];
248
+ } | {
249
+ type: "arrow";
250
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
251
+ anchor: "start" | "end" | "label";
252
+ } | null;
217
253
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
218
254
  frameRendering: {
219
255
  enabled: boolean;
@@ -221,8 +257,8 @@ export declare const actionUngroup: {
221
257
  outline: boolean;
222
258
  clip: boolean;
223
259
  };
224
- editingFrame: string | null;
225
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
260
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
261
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
226
262
  editingTextElement: ExcalidrawTextElement | null;
227
263
  activeTool: {
228
264
  lastActiveTool: import("../types").ActiveTool | null;
@@ -240,11 +276,14 @@ export declare const actionUngroup: {
240
276
  exportWithDarkMode: boolean;
241
277
  exportScale: number;
242
278
  currentItemStrokeColor: string;
279
+ currentItemStickynoteStrokeColor: string;
280
+ currentItemStickynoteBackgroundColor: string;
243
281
  currentItemBackgroundColor: string;
244
282
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
245
- currentItemStrokeWidth: number;
283
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
246
284
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
247
285
  currentItemRoughness: number;
286
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
248
287
  currentItemOpacity: number;
249
288
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
250
289
  currentItemFontSize: number;
@@ -257,6 +296,7 @@ export declare const actionUngroup: {
257
296
  viewBackgroundColor: string;
258
297
  scrollX: number;
259
298
  scrollY: number;
299
+ scrollConstraints: import("../types").ScrollConstraints | null;
260
300
  cursorButton: "up" | "down";
261
301
  scrolledOutside: boolean;
262
302
  name: string | null;
@@ -325,8 +365,6 @@ export declare const actionUngroup: {
325
365
  y: number;
326
366
  } | null;
327
367
  objectsSnapModeEnabled: boolean;
328
- userToFollow: import("../types").UserToFollow | null;
329
- followedBy: Set<import("../types").SocketId>;
330
368
  isCropping: boolean;
331
369
  croppingElementId: ExcalidrawElement["id"] | null;
332
370
  searchMatches: Readonly<{
@@ -338,12 +376,20 @@ export declare const actionUngroup: {
338
376
  [groupId: string]: true;
339
377
  };
340
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;
341
387
  };
342
388
  elements: OrderedExcalidrawElement[];
343
389
  captureUpdate: "IMMEDIATELY";
344
390
  };
345
391
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
346
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
392
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
347
393
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
348
394
  } & {
349
395
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -2,7 +2,7 @@ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
2
2
  export declare const actionToggleLinearEditor: {
3
3
  name: "toggleLinearEditor";
4
4
  category: string;
5
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
5
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
6
6
  keywords: string[];
7
7
  trackEvent: {
8
8
  category: "element";
@@ -27,6 +27,7 @@ export declare const actionToggleLinearEditor: {
27
27
  };
28
28
  arrowStartIsInside: boolean;
29
29
  altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
30
+ arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
30
31
  }>;
31
32
  isDragging: boolean;
32
33
  lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
@@ -60,13 +61,26 @@ export declare const actionToggleLinearEditor: {
60
61
  multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
61
62
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
62
63
  isBindingEnabled: boolean;
64
+ boxSelectionMode: import("../types").BoxSelectionMode;
63
65
  bindingPreference: "enabled" | "disabled";
64
66
  isMidpointSnappingEnabled: boolean;
65
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
67
+ showHints: boolean;
68
+ inputDevice: import("../types").InputDevice;
66
69
  suggestedBinding: {
67
70
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
68
71
  midPoint?: import("@excalidraw/math").GlobalPoint;
69
72
  } | null;
73
+ textToolHover: {
74
+ type: "text";
75
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
76
+ } | {
77
+ type: "container";
78
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
79
+ } | {
80
+ type: "arrow";
81
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
82
+ anchor: "start" | "end" | "label";
83
+ } | null;
70
84
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
71
85
  frameRendering: {
72
86
  enabled: boolean;
@@ -74,8 +88,8 @@ export declare const actionToggleLinearEditor: {
74
88
  outline: boolean;
75
89
  clip: boolean;
76
90
  };
77
- editingFrame: string | null;
78
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
91
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
92
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
79
93
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
80
94
  activeTool: {
81
95
  lastActiveTool: import("../types").ActiveTool | null;
@@ -93,11 +107,14 @@ export declare const actionToggleLinearEditor: {
93
107
  exportWithDarkMode: boolean;
94
108
  exportScale: number;
95
109
  currentItemStrokeColor: string;
110
+ currentItemStickynoteStrokeColor: string;
111
+ currentItemStickynoteBackgroundColor: string;
96
112
  currentItemBackgroundColor: string;
97
113
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
98
- currentItemStrokeWidth: number;
114
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
99
115
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
100
116
  currentItemRoughness: number;
117
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
101
118
  currentItemOpacity: number;
102
119
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
103
120
  currentItemFontSize: number;
@@ -110,6 +127,7 @@ export declare const actionToggleLinearEditor: {
110
127
  viewBackgroundColor: string;
111
128
  scrollX: number;
112
129
  scrollY: number;
130
+ scrollConstraints: import("../types").ScrollConstraints | null;
113
131
  cursorButton: "up" | "down";
114
132
  scrolledOutside: boolean;
115
133
  name: string | null;
@@ -184,8 +202,6 @@ export declare const actionToggleLinearEditor: {
184
202
  y: number;
185
203
  } | null;
186
204
  objectsSnapModeEnabled: boolean;
187
- userToFollow: import("../types").UserToFollow | null;
188
- followedBy: Set<import("../types").SocketId>;
189
205
  isCropping: boolean;
190
206
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
191
207
  searchMatches: Readonly<{
@@ -197,6 +213,14 @@ export declare const actionToggleLinearEditor: {
197
213
  [groupId: string]: true;
198
214
  };
199
215
  bindMode: import("@excalidraw/element/types").BindMode;
216
+ colorTopPicks: {
217
+ elementStroke: readonly string[] | null;
218
+ elementBackground: readonly string[] | null;
219
+ bucketFill: readonly string[] | null;
220
+ stickyNoteStroke: readonly string[] | null;
221
+ stickyNoteBackground: readonly string[] | null;
222
+ };
223
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
200
224
  };
201
225
  captureUpdate: "IMMEDIATELY";
202
226
  };
@@ -209,7 +233,7 @@ export declare const actionTogglePolygon: {
209
233
  category: string;
210
234
  icon: import("react/jsx-runtime").JSX.Element;
211
235
  keywords: string[];
212
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
236
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
213
237
  trackEvent: {
214
238
  category: "element";
215
239
  };
@@ -242,6 +266,7 @@ export declare const actionTogglePolygon: {
242
266
  frameId: string | null;
243
267
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
244
268
  updated: number;
269
+ created: number | null;
245
270
  link: string | null;
246
271
  locked: boolean;
247
272
  customData?: Record<string, any>;
@@ -281,6 +306,7 @@ export declare const actionTogglePolygon: {
281
306
  frameId: string | null;
282
307
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
283
308
  updated: number;
309
+ created: number | null;
284
310
  link: string | null;
285
311
  locked: boolean;
286
312
  customData?: Record<string, any>;
@@ -315,6 +341,7 @@ export declare const actionTogglePolygon: {
315
341
  frameId: string | null;
316
342
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
317
343
  updated: number;
344
+ created: number | null;
318
345
  link: string | null;
319
346
  locked: boolean;
320
347
  customData?: Record<string, any>;
@@ -349,6 +376,43 @@ export declare const actionTogglePolygon: {
349
376
  frameId: string | null;
350
377
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
351
378
  updated: number;
379
+ created: number | null;
380
+ link: string | null;
381
+ locked: boolean;
382
+ customData?: Record<string, any>;
383
+ }> & Readonly<{
384
+ type: "stickynote";
385
+ baseHeight: number;
386
+ }> & {
387
+ index: import("@excalidraw/element/types").FractionalIndex;
388
+ }) | (Readonly<{
389
+ id: string;
390
+ x: number;
391
+ y: number;
392
+ strokeColor: string;
393
+ backgroundColor: string;
394
+ fillStyle: import("@excalidraw/element/types").FillStyle;
395
+ strokeWidth: number;
396
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
397
+ roundness: null | {
398
+ type: import("@excalidraw/element/types").RoundnessType;
399
+ value?: number;
400
+ };
401
+ roughness: number;
402
+ opacity: number;
403
+ width: number;
404
+ height: number;
405
+ angle: import("@excalidraw/math").Radians;
406
+ seed: number;
407
+ version: number;
408
+ versionNonce: number;
409
+ index: import("@excalidraw/element/types").FractionalIndex | null;
410
+ isDeleted: boolean;
411
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
412
+ frameId: string | null;
413
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
414
+ updated: number;
415
+ created: number | null;
352
416
  link: string | null;
353
417
  locked: boolean;
354
418
  customData?: Record<string, any>;
@@ -383,6 +447,7 @@ export declare const actionTogglePolygon: {
383
447
  frameId: string | null;
384
448
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
385
449
  updated: number;
450
+ created: number | null;
386
451
  link: string | null;
387
452
  locked: boolean;
388
453
  customData?: Record<string, any>;
@@ -417,6 +482,7 @@ export declare const actionTogglePolygon: {
417
482
  frameId: string | null;
418
483
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
419
484
  updated: number;
485
+ created: number | null;
420
486
  link: string | null;
421
487
  locked: boolean;
422
488
  customData?: Record<string, any>;
@@ -451,6 +517,7 @@ export declare const actionTogglePolygon: {
451
517
  frameId: string | null;
452
518
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
453
519
  updated: number;
520
+ created: number | null;
454
521
  link: string | null;
455
522
  locked: boolean;
456
523
  customData?: Record<string, any>;
@@ -488,6 +555,7 @@ export declare const actionTogglePolygon: {
488
555
  frameId: string | null;
489
556
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
490
557
  updated: number;
558
+ created: number | null;
491
559
  link: string | null;
492
560
  locked: boolean;
493
561
  customData?: Record<string, any>;
@@ -526,6 +594,7 @@ export declare const actionTogglePolygon: {
526
594
  frameId: string | null;
527
595
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
528
596
  updated: number;
597
+ created: number | null;
529
598
  link: string | null;
530
599
  locked: boolean;
531
600
  customData?: Record<string, any>;
@@ -561,6 +630,7 @@ export declare const actionTogglePolygon: {
561
630
  frameId: string | null;
562
631
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
563
632
  updated: number;
633
+ created: number | null;
564
634
  link: string | null;
565
635
  locked: boolean;
566
636
  customData?: Record<string, any>;
@@ -596,6 +666,7 @@ export declare const actionTogglePolygon: {
596
666
  frameId: string | null;
597
667
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
598
668
  updated: number;
669
+ created: number | null;
599
670
  link: string | null;
600
671
  locked: boolean;
601
672
  customData?: Record<string, any>;
@@ -603,15 +674,17 @@ export declare const actionTogglePolygon: {
603
674
  type: "text";
604
675
  fontSize: number;
605
676
  fontFamily: import("@excalidraw/element/types").FontFamilyValues;
677
+ baseFontSize: number | null;
606
678
  text: string;
607
679
  textAlign: import("@excalidraw/element/types").TextAlign;
608
680
  verticalAlign: import("@excalidraw/element/types").VerticalAlign;
609
- containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
681
+ containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
610
682
  originalText: string;
611
683
  autoResize: boolean;
612
684
  lineHeight: number & {
613
685
  _brand: "unitlessLineHeight";
614
686
  };
687
+ labelPosition?: number | null;
615
688
  }> & {
616
689
  index: import("@excalidraw/element/types").FractionalIndex;
617
690
  }) | (Readonly<{
@@ -641,6 +714,7 @@ export declare const actionTogglePolygon: {
641
714
  frameId: string | null;
642
715
  boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
643
716
  updated: number;
717
+ created: number | null;
644
718
  link: string | null;
645
719
  locked: boolean;
646
720
  customData?: Record<string, any>;
@@ -649,6 +723,7 @@ export declare const actionTogglePolygon: {
649
723
  points: readonly import("@excalidraw/math").LocalPoint[];
650
724
  pressures: readonly number[];
651
725
  simulatePressure: boolean;
726
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
652
727
  }> & {
653
728
  index: import("@excalidraw/element/types").FractionalIndex;
654
729
  }))[];
@@ -1,6 +1,6 @@
1
1
  export declare const actionLink: {
2
2
  name: "hyperlink";
3
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
3
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
4
4
  icon: import("react/jsx-runtime").JSX.Element;
5
5
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
6
6
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
@@ -24,13 +24,26 @@ export declare const actionLink: {
24
24
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
25
25
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
26
  isBindingEnabled: boolean;
27
+ boxSelectionMode: import("../types").BoxSelectionMode;
27
28
  bindingPreference: "enabled" | "disabled";
28
29
  isMidpointSnappingEnabled: boolean;
29
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
+ showHints: boolean;
31
+ inputDevice: import("../types").InputDevice;
30
32
  suggestedBinding: {
31
33
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
32
34
  midPoint?: import("@excalidraw/math").GlobalPoint;
33
35
  } | null;
36
+ textToolHover: {
37
+ type: "text";
38
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
39
+ } | {
40
+ type: "container";
41
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
42
+ } | {
43
+ type: "arrow";
44
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
45
+ anchor: "start" | "end" | "label";
46
+ } | null;
34
47
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
48
  frameRendering: {
36
49
  enabled: boolean;
@@ -38,8 +51,8 @@ export declare const actionLink: {
38
51
  outline: boolean;
39
52
  clip: boolean;
40
53
  };
41
- editingFrame: string | null;
42
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
54
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
55
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
43
56
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
44
57
  activeTool: {
45
58
  lastActiveTool: import("../types").ActiveTool | null;
@@ -57,11 +70,14 @@ export declare const actionLink: {
57
70
  exportWithDarkMode: boolean;
58
71
  exportScale: number;
59
72
  currentItemStrokeColor: string;
73
+ currentItemStickynoteStrokeColor: string;
74
+ currentItemStickynoteBackgroundColor: string;
60
75
  currentItemBackgroundColor: string;
61
76
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
62
- currentItemStrokeWidth: number;
77
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
63
78
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
64
79
  currentItemRoughness: number;
80
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
65
81
  currentItemOpacity: number;
66
82
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
67
83
  currentItemFontSize: number;
@@ -74,6 +90,7 @@ export declare const actionLink: {
74
90
  viewBackgroundColor: string;
75
91
  scrollX: number;
76
92
  scrollY: number;
93
+ scrollConstraints: import("../types").ScrollConstraints | null;
77
94
  cursorButton: "up" | "down";
78
95
  scrolledOutside: boolean;
79
96
  name: string | null;
@@ -147,8 +164,6 @@ export declare const actionLink: {
147
164
  y: number;
148
165
  } | null;
149
166
  objectsSnapModeEnabled: boolean;
150
- userToFollow: import("../types").UserToFollow | null;
151
- followedBy: Set<import("../types").SocketId>;
152
167
  isCropping: boolean;
153
168
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
154
169
  searchMatches: Readonly<{
@@ -160,6 +175,14 @@ export declare const actionLink: {
160
175
  [groupId: string]: true;
161
176
  };
162
177
  bindMode: import("@excalidraw/element/types").BindMode;
178
+ colorTopPicks: {
179
+ elementStroke: readonly string[] | null;
180
+ elementBackground: readonly string[] | null;
181
+ bucketFill: readonly string[] | null;
182
+ stickyNoteStroke: readonly string[] | null;
183
+ stickyNoteBackground: readonly string[] | null;
184
+ };
185
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
163
186
  };
164
187
  captureUpdate: "IMMEDIATELY";
165
188
  };