@excalidraw/common 0.18.0-d9e8a33 → 0.18.0-dabd83c

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 (253) hide show
  1. package/dist/dev/index.js +237 -104
  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 +23 -1
  5. package/dist/types/common/src/constants.d.ts +68 -7
  6. package/dist/types/common/src/keys.d.ts +6 -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 +13 -44
  10. package/dist/types/element/src/Scene.d.ts +7 -5
  11. package/dist/types/element/src/align.d.ts +5 -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 +90 -13
  15. package/dist/types/element/src/bounds.d.ts +28 -7
  16. package/dist/types/element/src/bucketFill.d.ts +110 -0
  17. package/dist/types/element/src/collision.d.ts +21 -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/cropElement.d.ts +36 -4
  21. package/dist/types/element/src/delta.d.ts +30 -2
  22. package/dist/types/element/src/distribute.d.ts +5 -2
  23. package/dist/types/element/src/dragElements.d.ts +34 -2
  24. package/dist/types/element/src/duplicate.d.ts +64 -3
  25. package/dist/types/element/src/elbowArrow.d.ts +5 -0
  26. package/dist/types/element/src/embeddable.d.ts +3 -2
  27. package/dist/types/element/src/flowchart.d.ts +9 -11
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +30 -11
  30. package/dist/types/element/src/groups.d.ts +10 -15
  31. package/dist/types/element/src/image.d.ts +5 -2
  32. package/dist/types/element/src/index.d.ts +7 -1
  33. package/dist/types/element/src/linearElementEditor.d.ts +31 -11
  34. package/dist/types/element/src/listMarker.d.ts +39 -0
  35. package/dist/types/element/src/mutateElement.d.ts +1 -1
  36. package/dist/types/element/src/newElement.d.ts +55 -3
  37. package/dist/types/element/src/renderElement.d.ts +31 -7
  38. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  39. package/dist/types/element/src/resizeElements.d.ts +14 -4
  40. package/dist/types/element/src/selection.d.ts +7 -13
  41. package/dist/types/element/src/shape.d.ts +29 -1
  42. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  43. package/dist/types/element/src/sortElements.d.ts +10 -0
  44. package/dist/types/element/src/stickyNote.d.ts +191 -0
  45. package/dist/types/element/src/textElement.d.ts +22 -10
  46. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  47. package/dist/types/element/src/textWrapping.d.ts +3 -2
  48. package/dist/types/element/src/transform.d.ts +31 -8
  49. package/dist/types/element/src/typeChecks.d.ts +29 -27
  50. package/dist/types/element/src/types.d.ts +43 -7
  51. package/dist/types/element/src/utils.d.ts +15 -4
  52. package/dist/types/element/src/zindex.d.ts +2 -2
  53. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +98 -18
  54. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  55. package/dist/types/excalidraw/actions/actionBoundText.d.ts +79 -204
  56. package/dist/types/excalidraw/actions/actionCanvas.d.ts +306 -951
  57. package/dist/types/excalidraw/actions/actionClipboard.d.ts +68 -12
  58. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -6
  59. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -521
  60. package/dist/types/excalidraw/actions/actionDeselect.d.ts +35 -7
  61. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  62. package/dist/types/excalidraw/actions/actionElementLink.d.ts +34 -6
  63. package/dist/types/excalidraw/actions/actionElementLock.d.ts +69 -13
  64. package/dist/types/excalidraw/actions/actionExport.d.ts +76 -20
  65. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +132 -652
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +83 -27
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +89 -9
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +35 -7
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +34 -6
  71. package/dist/types/excalidraw/actions/actionProperties.d.ts +106 -34
  72. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +39 -11
  73. package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -7
  74. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
  75. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +35 -7
  76. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +38 -11
  77. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +35 -7
  78. package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +206 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +35 -7
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +38 -11
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +50 -19
  83. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -7
  84. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +36 -8
  85. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  86. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +35 -7
  87. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  88. package/dist/types/excalidraw/actions/index.d.ts +4 -2
  89. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  90. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  91. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  92. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  93. package/dist/types/excalidraw/appState.d.ts +37 -12
  94. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
  95. package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
  96. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
  97. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
  98. package/dist/types/excalidraw/charts/index.d.ts +2 -1
  99. package/dist/types/excalidraw/components/Actions.d.ts +26 -13
  100. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  101. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  102. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  103. package/dist/types/excalidraw/components/App.clipboard.d.ts +59 -0
  104. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  105. package/dist/types/excalidraw/components/App.d.ts +335 -111
  106. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  107. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  108. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  109. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  110. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  111. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  112. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  113. package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
  114. package/dist/types/excalidraw/components/App.text.d.ts +194 -0
  115. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  116. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  117. package/dist/types/excalidraw/components/App.viewport.d.ts +133 -0
  118. package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
  119. package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
  120. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  121. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  122. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  123. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  124. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  125. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  126. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  128. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  129. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  130. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
  131. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  132. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  133. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  134. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  135. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  136. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  137. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  138. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  139. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  140. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  141. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  142. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  143. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  144. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  145. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  146. package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
  147. package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
  148. package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
  149. package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
  150. package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
  151. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  152. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  153. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  154. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  155. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  156. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  157. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  158. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  159. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  160. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  161. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  162. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  163. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  164. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  165. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  166. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  167. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  168. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  169. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  171. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  172. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  173. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  174. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  175. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  176. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  177. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
  178. package/dist/types/excalidraw/components/Toast.d.ts +12 -1
  179. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  180. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  181. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  182. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  183. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  184. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  185. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  186. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  187. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  188. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
  189. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  190. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  191. package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
  192. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  193. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
  194. package/dist/types/excalidraw/components/icons.d.ts +8 -1
  195. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +10 -4
  196. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  197. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  198. package/dist/types/excalidraw/data/blob.d.ts +84 -28
  199. package/dist/types/excalidraw/data/index.d.ts +7 -7
  200. package/dist/types/excalidraw/data/json.d.ts +48 -20
  201. package/dist/types/excalidraw/data/library.d.ts +1 -1
  202. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  203. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  204. package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
  205. package/dist/types/excalidraw/history.d.ts +10 -4
  206. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  207. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  208. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  209. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  210. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  211. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  212. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  213. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  214. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  215. package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
  216. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  217. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  218. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  219. package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
  220. package/dist/types/excalidraw/scene/export.d.ts +344 -21
  221. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  222. package/dist/types/excalidraw/scene/types.d.ts +30 -5
  223. package/dist/types/excalidraw/snapping.d.ts +7 -7
  224. package/dist/types/excalidraw/types.d.ts +617 -29
  225. package/dist/types/excalidraw/viewport.d.ts +308 -0
  226. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +13 -3
  227. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  228. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  229. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  230. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  231. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  232. package/dist/types/math/src/constants.d.ts +0 -1
  233. package/dist/types/math/src/curve.d.ts +19 -12
  234. package/dist/types/math/src/index.d.ts +1 -0
  235. package/dist/types/math/src/pca.d.ts +79 -0
  236. package/dist/types/math/src/point.d.ts +1 -0
  237. package/dist/types/math/src/polygon.d.ts +25 -1
  238. package/dist/types/math/src/segment.d.ts +6 -0
  239. package/dist/types/utils/src/index.d.ts +4 -3
  240. package/dist/types/utils/src/shape.d.ts +2 -2
  241. package/package.json +1 -1
  242. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  243. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  244. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  245. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  246. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  247. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  248. package/dist/types/excalidraw/cursor.d.ts +0 -5
  249. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  250. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  251. package/dist/types/utils/src/bbox.d.ts +0 -9
  252. package/dist/types/utils/src/export.d.ts +0 -35
  253. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,524 +1,7 @@
1
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
2
2
  import type { AppClassProperties, AppState } from "../types";
3
- export declare const actionDeleteSelected: {
4
- name: "deleteSelectedElements";
5
- label: string;
6
- icon: import("react/jsx-runtime").JSX.Element;
7
- trackEvent: {
8
- category: "element";
9
- action: string;
10
- };
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
12
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
- appState: {
14
- selectedLinearElement: null;
15
- contextMenu: {
16
- items: import("../components/ContextMenu").ContextMenuItems;
17
- top: number;
18
- left: number;
19
- } | null;
20
- showWelcomeScreen: boolean;
21
- isLoading: boolean;
22
- errorMessage: React.ReactNode;
23
- activeEmbeddable: {
24
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
- state: "hover" | "active";
26
- } | null;
27
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
30
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
- isBindingEnabled: boolean;
32
- boxSelectionMode: import("../types").BoxSelectionMode;
33
- bindingPreference: "enabled" | "disabled";
34
- isMidpointSnappingEnabled: boolean;
35
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
36
- suggestedBinding: {
37
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
- midPoint?: import("@excalidraw/math").GlobalPoint;
39
- } | null;
40
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
- frameRendering: {
42
- enabled: boolean;
43
- name: boolean;
44
- outline: boolean;
45
- clip: boolean;
46
- };
47
- editingFrame: string | null;
48
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
49
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
50
- activeTool: {
51
- lastActiveTool: import("../types").ActiveTool | null;
52
- locked: boolean;
53
- fromSelection: boolean;
54
- } & import("../types").ActiveTool;
55
- preferredSelectionTool: {
56
- type: "selection" | "lasso";
57
- initialized: boolean;
58
- };
59
- penMode: boolean;
60
- penDetected: boolean;
61
- exportBackground: boolean;
62
- exportEmbedScene: boolean;
63
- exportWithDarkMode: boolean;
64
- exportScale: number;
65
- currentItemStrokeColor: string;
66
- currentItemBackgroundColor: string;
67
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
68
- currentItemStrokeWidth: number;
69
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
70
- currentItemRoughness: number;
71
- currentItemOpacity: number;
72
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
73
- currentItemFontSize: number;
74
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
75
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
76
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
77
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
78
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
79
- currentItemArrowType: "sharp" | "round" | "elbow";
80
- viewBackgroundColor: string;
81
- scrollX: number;
82
- scrollY: number;
83
- cursorButton: "up" | "down";
84
- scrolledOutside: boolean;
85
- name: string | null;
86
- isResizing: boolean;
87
- isRotating: boolean;
88
- zoom: import("../types").Zoom;
89
- openMenu: "canvas" | null;
90
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
91
- openSidebar: {
92
- name: import("../types").SidebarName;
93
- tab?: import("../types").SidebarTabName;
94
- } | null;
95
- openDialog: null | {
96
- name: "imageExport" | "help" | "jsonExport";
97
- } | {
98
- name: "ttd";
99
- tab: "text-to-diagram" | "mermaid";
100
- } | {
101
- name: "commandPalette";
102
- } | {
103
- name: "settings";
104
- } | {
105
- name: "elementLinkSelector";
106
- sourceElementId: ExcalidrawElement["id"];
107
- } | {
108
- name: "charts";
109
- data: import("../charts").Spreadsheet;
110
- rawText: string;
111
- };
112
- defaultSidebarDockedPreference: boolean;
113
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
114
- selectedElementIds: Readonly<{
115
- [id: string]: true;
116
- }>;
117
- hoveredElementIds: Readonly<{
118
- [id: string]: true;
119
- }>;
120
- previousSelectedElementIds: {
121
- [id: string]: true;
122
- };
123
- selectedElementsAreBeingDragged: boolean;
124
- shouldCacheIgnoreZoom: boolean;
125
- toast: {
126
- message: React.ReactNode;
127
- closable?: boolean;
128
- duration?: number;
129
- } | null;
130
- zenModeEnabled: boolean;
131
- theme: import("@excalidraw/element/types").Theme;
132
- gridSize: number;
133
- gridStep: number;
134
- gridModeEnabled: boolean;
135
- viewModeEnabled: boolean;
136
- selectedGroupIds: {
137
- [groupId: string]: boolean;
138
- };
139
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
140
- width: number;
141
- height: number;
142
- offsetTop: number;
143
- offsetLeft: number;
144
- fileHandle: FileSystemFileHandle | null;
145
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
146
- stats: {
147
- open: boolean;
148
- panels: number;
149
- };
150
- showHyperlinkPopup: false | "info" | "editor";
151
- snapLines: readonly import("../snapping").SnapLine[];
152
- originSnapOffset: {
153
- x: number;
154
- y: number;
155
- } | null;
156
- objectsSnapModeEnabled: boolean;
157
- userToFollow: import("../types").UserToFollow | null;
158
- followedBy: Set<import("../types").SocketId>;
159
- isCropping: boolean;
160
- croppingElementId: ExcalidrawElement["id"] | null;
161
- searchMatches: Readonly<{
162
- focusedId: ExcalidrawElement["id"] | null;
163
- matches: readonly import("../types").SearchMatch[];
164
- }> | null;
165
- activeLockedId: string | null;
166
- lockedMultiSelections: {
167
- [groupId: string]: true;
168
- };
169
- bindMode: import("@excalidraw/element/types").BindMode;
170
- };
171
- captureUpdate: "IMMEDIATELY";
172
- } | {
173
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
174
- appState: {
175
- selectedLinearElement: {
176
- selectedPointsIndices: number[];
177
- elementId: ExcalidrawElement["id"] & {
178
- _brand: "excalidrawLinearElementId";
179
- };
180
- initialState: Readonly<{
181
- prevSelectedPointsIndices: readonly number[] | null;
182
- lastClickedPoint: number;
183
- origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
184
- segmentMidpoint: {
185
- value: import("@excalidraw/math").GlobalPoint | null;
186
- index: number | null;
187
- added: boolean;
188
- };
189
- arrowStartIsInside: boolean;
190
- altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
191
- }>;
192
- isDragging: boolean;
193
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
194
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
195
- pointerOffset: Readonly<{
196
- x: number;
197
- y: number;
198
- }>;
199
- hoverPointIndex: number;
200
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
201
- hoveredFocusPointBinding: "start" | "end" | null;
202
- draggedFocusPointBinding: "start" | "end" | null;
203
- elbowed: boolean;
204
- customLineAngle: number | null;
205
- isEditing: boolean;
206
- pointerDownState: never;
207
- };
208
- contextMenu: {
209
- items: import("../components/ContextMenu").ContextMenuItems;
210
- top: number;
211
- left: number;
212
- } | null;
213
- showWelcomeScreen: boolean;
214
- isLoading: boolean;
215
- errorMessage: React.ReactNode;
216
- activeEmbeddable: {
217
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
218
- state: "hover" | "active";
219
- } | null;
220
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
221
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
223
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
224
- isBindingEnabled: boolean;
225
- boxSelectionMode: import("../types").BoxSelectionMode;
226
- bindingPreference: "enabled" | "disabled";
227
- isMidpointSnappingEnabled: boolean;
228
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
229
- suggestedBinding: {
230
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
231
- midPoint?: import("@excalidraw/math").GlobalPoint;
232
- } | null;
233
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
234
- frameRendering: {
235
- enabled: boolean;
236
- name: boolean;
237
- outline: boolean;
238
- clip: boolean;
239
- };
240
- editingFrame: string | null;
241
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
242
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
243
- activeTool: {
244
- lastActiveTool: import("../types").ActiveTool | null;
245
- locked: boolean;
246
- fromSelection: boolean;
247
- } & import("../types").ActiveTool;
248
- preferredSelectionTool: {
249
- type: "selection" | "lasso";
250
- initialized: boolean;
251
- };
252
- penMode: boolean;
253
- penDetected: boolean;
254
- exportBackground: boolean;
255
- exportEmbedScene: boolean;
256
- exportWithDarkMode: boolean;
257
- exportScale: number;
258
- currentItemStrokeColor: string;
259
- currentItemBackgroundColor: string;
260
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
261
- currentItemStrokeWidth: number;
262
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
263
- currentItemRoughness: number;
264
- currentItemOpacity: number;
265
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
266
- currentItemFontSize: number;
267
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
268
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
269
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
270
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
271
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
272
- currentItemArrowType: "sharp" | "round" | "elbow";
273
- viewBackgroundColor: string;
274
- scrollX: number;
275
- scrollY: number;
276
- cursorButton: "up" | "down";
277
- scrolledOutside: boolean;
278
- name: string | null;
279
- isResizing: boolean;
280
- isRotating: boolean;
281
- zoom: import("../types").Zoom;
282
- openMenu: "canvas" | null;
283
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
284
- openSidebar: {
285
- name: import("../types").SidebarName;
286
- tab?: import("../types").SidebarTabName;
287
- } | null;
288
- openDialog: null | {
289
- name: "imageExport" | "help" | "jsonExport";
290
- } | {
291
- name: "ttd";
292
- tab: "text-to-diagram" | "mermaid";
293
- } | {
294
- name: "commandPalette";
295
- } | {
296
- name: "settings";
297
- } | {
298
- name: "elementLinkSelector";
299
- sourceElementId: ExcalidrawElement["id"];
300
- } | {
301
- name: "charts";
302
- data: import("../charts").Spreadsheet;
303
- rawText: string;
304
- };
305
- defaultSidebarDockedPreference: boolean;
306
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
307
- selectedElementIds: Readonly<{
308
- [id: string]: true;
309
- }>;
310
- hoveredElementIds: Readonly<{
311
- [id: string]: true;
312
- }>;
313
- previousSelectedElementIds: {
314
- [id: string]: true;
315
- };
316
- selectedElementsAreBeingDragged: boolean;
317
- shouldCacheIgnoreZoom: boolean;
318
- toast: {
319
- message: React.ReactNode;
320
- closable?: boolean;
321
- duration?: number;
322
- } | null;
323
- zenModeEnabled: boolean;
324
- theme: import("@excalidraw/element/types").Theme;
325
- gridSize: number;
326
- gridStep: number;
327
- gridModeEnabled: boolean;
328
- viewModeEnabled: boolean;
329
- selectedGroupIds: {
330
- [groupId: string]: boolean;
331
- };
332
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
333
- width: number;
334
- height: number;
335
- offsetTop: number;
336
- offsetLeft: number;
337
- fileHandle: FileSystemFileHandle | null;
338
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
339
- stats: {
340
- open: boolean;
341
- panels: number;
342
- };
343
- showHyperlinkPopup: false | "info" | "editor";
344
- snapLines: readonly import("../snapping").SnapLine[];
345
- originSnapOffset: {
346
- x: number;
347
- y: number;
348
- } | null;
349
- objectsSnapModeEnabled: boolean;
350
- userToFollow: import("../types").UserToFollow | null;
351
- followedBy: Set<import("../types").SocketId>;
352
- isCropping: boolean;
353
- croppingElementId: ExcalidrawElement["id"] | null;
354
- searchMatches: Readonly<{
355
- focusedId: ExcalidrawElement["id"] | null;
356
- matches: readonly import("../types").SearchMatch[];
357
- }> | null;
358
- activeLockedId: string | null;
359
- lockedMultiSelections: {
360
- [groupId: string]: true;
361
- };
362
- bindMode: import("@excalidraw/element/types").BindMode;
363
- };
364
- captureUpdate: "IMMEDIATELY";
365
- } | {
366
- elements: ExcalidrawElement[];
367
- appState: {
368
- activeTool: {
369
- lastActiveTool: import("../types").ActiveTool | null;
370
- locked: boolean;
371
- fromSelection: boolean;
372
- } & import("../types").ActiveTool;
373
- multiElement: null;
374
- newElement: null;
375
- activeEmbeddable: null;
376
- selectedLinearElement: null;
377
- selectedElementIds: AppState["selectedElementIds"];
378
- selectedGroupIds: AppState["selectedGroupIds"];
379
- editingGroupId: AppState["editingGroupId"];
380
- contextMenu: {
381
- items: import("../components/ContextMenu").ContextMenuItems;
382
- top: number;
383
- left: number;
384
- } | null;
385
- showWelcomeScreen: boolean;
386
- isLoading: boolean;
387
- errorMessage: React.ReactNode;
388
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
389
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
390
- isBindingEnabled: boolean;
391
- boxSelectionMode: import("../types").BoxSelectionMode;
392
- bindingPreference: "enabled" | "disabled";
393
- isMidpointSnappingEnabled: boolean;
394
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
395
- suggestedBinding: {
396
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
397
- midPoint?: import("@excalidraw/math").GlobalPoint;
398
- } | null;
399
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
400
- frameRendering: {
401
- enabled: boolean;
402
- name: boolean;
403
- outline: boolean;
404
- clip: boolean;
405
- };
406
- editingFrame: string | null;
407
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
408
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
409
- preferredSelectionTool: {
410
- type: "selection" | "lasso";
411
- initialized: boolean;
412
- };
413
- penMode: boolean;
414
- penDetected: boolean;
415
- exportBackground: boolean;
416
- exportEmbedScene: boolean;
417
- exportWithDarkMode: boolean;
418
- exportScale: number;
419
- currentItemStrokeColor: string;
420
- currentItemBackgroundColor: string;
421
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
422
- currentItemStrokeWidth: number;
423
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
424
- currentItemRoughness: number;
425
- currentItemOpacity: number;
426
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
427
- currentItemFontSize: number;
428
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
429
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
430
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
431
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
432
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
433
- currentItemArrowType: "sharp" | "round" | "elbow";
434
- viewBackgroundColor: string;
435
- scrollX: number;
436
- scrollY: number;
437
- cursorButton: "up" | "down";
438
- scrolledOutside: boolean;
439
- name: string | null;
440
- isResizing: boolean;
441
- isRotating: boolean;
442
- zoom: import("../types").Zoom;
443
- openMenu: "canvas" | null;
444
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
445
- openSidebar: {
446
- name: import("../types").SidebarName;
447
- tab?: import("../types").SidebarTabName;
448
- } | null;
449
- openDialog: null | {
450
- name: "imageExport" | "help" | "jsonExport";
451
- } | {
452
- name: "ttd";
453
- tab: "text-to-diagram" | "mermaid";
454
- } | {
455
- name: "commandPalette";
456
- } | {
457
- name: "settings";
458
- } | {
459
- name: "elementLinkSelector";
460
- sourceElementId: ExcalidrawElement["id"];
461
- } | {
462
- name: "charts";
463
- data: import("../charts").Spreadsheet;
464
- rawText: string;
465
- };
466
- defaultSidebarDockedPreference: boolean;
467
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
468
- hoveredElementIds: Readonly<{
469
- [id: string]: true;
470
- }>;
471
- previousSelectedElementIds: {
472
- [id: string]: true;
473
- };
474
- selectedElementsAreBeingDragged: boolean;
475
- shouldCacheIgnoreZoom: boolean;
476
- toast: {
477
- message: React.ReactNode;
478
- closable?: boolean;
479
- duration?: number;
480
- } | null;
481
- zenModeEnabled: boolean;
482
- theme: import("@excalidraw/element/types").Theme;
483
- gridSize: number;
484
- gridStep: number;
485
- gridModeEnabled: boolean;
486
- viewModeEnabled: boolean;
487
- width: number;
488
- height: number;
489
- offsetTop: number;
490
- offsetLeft: number;
491
- fileHandle: FileSystemFileHandle | null;
492
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
493
- stats: {
494
- open: boolean;
495
- panels: number;
496
- };
497
- showHyperlinkPopup: false | "info" | "editor";
498
- snapLines: readonly import("../snapping").SnapLine[];
499
- originSnapOffset: {
500
- x: number;
501
- y: number;
502
- } | null;
503
- objectsSnapModeEnabled: boolean;
504
- userToFollow: import("../types").UserToFollow | null;
505
- followedBy: Set<import("../types").SocketId>;
506
- isCropping: boolean;
507
- croppingElementId: ExcalidrawElement["id"] | null;
508
- searchMatches: Readonly<{
509
- focusedId: ExcalidrawElement["id"] | null;
510
- matches: readonly import("../types").SearchMatch[];
511
- }> | null;
512
- activeLockedId: string | null;
513
- lockedMultiSelections: {
514
- [groupId: string]: true;
515
- };
516
- bindMode: import("@excalidraw/element/types").BindMode;
517
- };
518
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
519
- };
520
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
521
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
522
- } & {
523
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
3
+ export declare const actionDeleteSelected: import("./types").Action<{
4
+ withFrameChildren?: boolean;
5
+ } | null> & {
6
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
524
7
  };
@@ -15,6 +15,7 @@ export declare const actionDeselect: {
15
15
  selectionElement: null;
16
16
  showHyperlinkPopup: false;
17
17
  suggestedBinding: null;
18
+ frameToHighlight: null;
18
19
  selectedElementIds: AppState["selectedElementIds"];
19
20
  selectedGroupIds: AppState["selectedGroupIds"];
20
21
  editingGroupId: AppState["editingGroupId"];
@@ -33,16 +34,28 @@ export declare const actionDeselect: {
33
34
  boxSelectionMode: import("../types").BoxSelectionMode;
34
35
  bindingPreference: "enabled" | "disabled";
35
36
  isMidpointSnappingEnabled: boolean;
36
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
37
+ showHints: boolean;
38
+ splitOnPaste: boolean;
39
+ inputDevice: import("../types").InputDevice;
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";
48
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
49
+ anchor: "start" | "end" | "label";
50
+ } | null;
38
51
  frameRendering: {
39
52
  enabled: boolean;
40
53
  name: boolean;
41
54
  outline: boolean;
42
55
  clip: boolean;
43
56
  };
44
- editingFrame: string | null;
45
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
57
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
58
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
46
59
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
47
60
  preferredSelectionTool: {
48
61
  type: "selection" | "lasso";
@@ -55,11 +68,14 @@ export declare const actionDeselect: {
55
68
  exportWithDarkMode: boolean;
56
69
  exportScale: number;
57
70
  currentItemStrokeColor: string;
71
+ currentItemStickynoteStrokeColor: string;
72
+ currentItemStickynoteBackgroundColor: string;
58
73
  currentItemBackgroundColor: string;
59
74
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
60
- currentItemStrokeWidth: number;
75
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
61
76
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
62
77
  currentItemRoughness: number;
78
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
63
79
  currentItemOpacity: number;
64
80
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
65
81
  currentItemFontSize: number;
@@ -72,6 +88,7 @@ export declare const actionDeselect: {
72
88
  viewBackgroundColor: string;
73
89
  scrollX: number;
74
90
  scrollY: number;
91
+ scrollConstraints: import("../types").ScrollConstraints | null;
75
92
  cursorButton: "up" | "down";
76
93
  scrolledOutside: boolean;
77
94
  name: string | null;
@@ -115,8 +132,13 @@ export declare const actionDeselect: {
115
132
  message: React.ReactNode;
116
133
  closable?: boolean;
117
134
  duration?: number;
135
+ action?: {
136
+ label: string;
137
+ onClick: () => void;
138
+ };
118
139
  } | null;
119
140
  zenModeEnabled: boolean;
141
+ minimapEnabled: boolean;
120
142
  theme: import("@excalidraw/element/types").Theme;
121
143
  gridSize: number;
122
144
  gridStep: number;
@@ -138,8 +160,6 @@ export declare const actionDeselect: {
138
160
  y: number;
139
161
  } | null;
140
162
  objectsSnapModeEnabled: boolean;
141
- userToFollow: import("../types").UserToFollow | null;
142
- followedBy: Set<import("../types").SocketId>;
143
163
  isCropping: boolean;
144
164
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
145
165
  searchMatches: Readonly<{
@@ -151,6 +171,14 @@ export declare const actionDeselect: {
151
171
  [groupId: string]: true;
152
172
  };
153
173
  bindMode: import("@excalidraw/element/types").BindMode;
174
+ colorTopPicks: {
175
+ elementStroke: readonly string[] | null;
176
+ elementBackground: readonly string[] | null;
177
+ bucketFill: readonly string[] | null;
178
+ stickyNoteStroke: readonly string[] | null;
179
+ stickyNoteBackground: readonly string[] | null;
180
+ };
181
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
154
182
  };
155
183
  captureUpdate: "IMMEDIATELY";
156
184
  };
@@ -1,4 +1,3 @@
1
- import type { ExcalidrawElement } from "@excalidraw/element/types";
2
1
  import type { AppClassProperties, AppState } from "../types";
3
2
  export declare const distributeHorizontally: {
4
3
  name: "distributeHorizontally";
@@ -8,7 +7,7 @@ export declare const distributeHorizontally: {
8
7
  };
9
8
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
10
9
  appState: Readonly<AppState>;
11
- elements: ExcalidrawElement[];
10
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
12
11
  captureUpdate: "IMMEDIATELY";
13
12
  };
14
13
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -24,7 +23,7 @@ export declare const distributeVertically: {
24
23
  };
25
24
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
26
25
  appState: Readonly<AppState>;
27
- elements: ExcalidrawElement[];
26
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
28
27
  captureUpdate: "IMMEDIATELY";
29
28
  };
30
29
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;