@zsviczian/excalidraw 0.18.0-1 → 0.18.0-10

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 (243) hide show
  1. package/README.md +1 -1
  2. package/dist/excalidraw.development.js +2231 -2418
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -32
  5. package/dist/styles.development.css +2995 -3004
  6. package/dist/styles.production.css +28 -28
  7. package/package.json +14 -2
  8. package/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
  9. package/types/{excalidraw → common/src}/colors.d.ts +1 -0
  10. package/types/{excalidraw → common/src}/constants.d.ts +10 -7
  11. package/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
  12. package/types/common/src/index.d.ts +11 -0
  13. package/types/{excalidraw → common/src}/points.d.ts +2 -0
  14. package/types/common/src/promise-pool.d.ts +6 -0
  15. package/types/{excalidraw → common/src}/utils.d.ts +13 -12
  16. package/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
  17. package/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
  18. package/types/{excalidraw → element/src}/align.d.ts +2 -2
  19. package/types/{excalidraw/element → element/src}/binding.d.ts +8 -8
  20. package/types/{excalidraw/element → element/src}/bounds.d.ts +9 -4
  21. package/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
  22. package/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  23. package/types/{excalidraw → element/src}/distribute.d.ts +1 -1
  24. package/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
  25. package/types/element/src/duplicate.d.ts +63 -0
  26. package/types/{excalidraw/element → element/src}/elbowArrow.d.ts +2 -2
  27. package/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  28. package/types/element/src/embeddable.d.ts +10 -0
  29. package/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
  30. package/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
  31. package/types/{excalidraw → element/src}/frame.d.ts +7 -7
  32. package/types/{excalidraw → element/src}/groups.d.ts +5 -5
  33. package/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  34. package/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  35. package/types/{excalidraw/element → element/src}/index.d.ts +0 -10
  36. package/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +7 -7
  37. package/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
  38. package/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
  39. package/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  40. package/types/{excalidraw/element → element/src}/resizeElements.d.ts +4 -4
  41. package/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  42. package/types/{excalidraw/scene → element/src}/selection.d.ts +13 -2
  43. package/types/element/src/shapes.d.ts +23 -0
  44. package/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  45. package/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
  46. package/types/{excalidraw/element → element/src}/textElement.d.ts +5 -5
  47. package/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  48. package/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
  49. package/types/{excalidraw/element → element/src}/types.d.ts +2 -2
  50. package/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
  51. package/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  52. package/types/excalidraw/actions/actionAddToLibrary.d.ts +94 -79
  53. package/types/excalidraw/actions/actionAlign.d.ts +7 -7
  54. package/types/excalidraw/actions/actionBoundText.d.ts +68 -58
  55. package/types/excalidraw/actions/actionCanvas.d.ts +738 -455
  56. package/types/excalidraw/actions/actionClipboard.d.ts +197 -167
  57. package/types/excalidraw/actions/actionCropEditor.d.ts +33 -28
  58. package/types/excalidraw/actions/actionDeleteSelected.d.ts +94 -79
  59. package/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  60. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  61. package/types/excalidraw/actions/actionElementLink.d.ts +37 -32
  62. package/types/excalidraw/actions/actionElementLock.d.ts +67 -58
  63. package/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +33 -38
  64. package/types/excalidraw/actions/actionExport.d.ts +374 -329
  65. package/types/excalidraw/actions/actionFinalize.d.ts +55 -45
  66. package/types/excalidraw/actions/actionFlip.d.ts +3 -3
  67. package/types/excalidraw/actions/actionFrame.d.ts +243 -223
  68. package/types/excalidraw/actions/actionGroup.d.ts +65 -55
  69. package/types/excalidraw/actions/actionHistory.d.ts +1 -1
  70. package/types/excalidraw/actions/actionLinearEditor.d.ts +34 -29
  71. package/types/excalidraw/actions/actionLink.d.ts +33 -28
  72. package/types/excalidraw/actions/actionMenu.d.ts +94 -79
  73. package/types/excalidraw/actions/actionNavigate.d.ts +62 -52
  74. package/types/excalidraw/actions/actionProperties.d.ts +422 -347
  75. package/types/excalidraw/actions/actionSelectAll.d.ts +33 -28
  76. package/types/excalidraw/actions/actionStyles.d.ts +35 -30
  77. package/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  78. package/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -28
  79. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +33 -28
  80. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +64 -54
  81. package/types/excalidraw/actions/actionToggleStats.d.ts +32 -28
  82. package/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -29
  83. package/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -29
  84. package/types/excalidraw/actions/actionZindex.d.ts +8 -8
  85. package/types/excalidraw/actions/index.d.ts +1 -0
  86. package/types/excalidraw/actions/manager.d.ts +2 -2
  87. package/types/excalidraw/actions/shortcuts.d.ts +1 -1
  88. package/types/excalidraw/actions/types.d.ts +4 -4
  89. package/types/excalidraw/animated-trail.d.ts +7 -1
  90. package/types/excalidraw/appState.d.ts +32 -31
  91. package/types/excalidraw/change.d.ts +3 -3
  92. package/types/excalidraw/charts.d.ts +1 -1
  93. package/types/excalidraw/clipboard.d.ts +7 -7
  94. package/types/excalidraw/components/Actions.d.ts +3 -3
  95. package/types/excalidraw/components/App.d.ts +32 -32
  96. package/types/excalidraw/components/Avatar.d.ts +1 -1
  97. package/types/excalidraw/components/ButtonIcon.d.ts +1 -1
  98. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
  99. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  100. package/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  101. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  102. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  103. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
  104. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  105. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  106. package/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  107. package/types/excalidraw/components/ContextMenu.d.ts +2 -2
  108. package/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  109. package/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  110. package/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  111. package/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  112. package/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
  113. package/types/excalidraw/components/EyeDropper.d.ts +1 -1
  114. package/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  115. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  116. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  117. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  118. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  119. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  120. package/types/excalidraw/components/HintViewer.d.ts +1 -1
  121. package/types/excalidraw/components/IconPicker.d.ts +1 -1
  122. package/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  123. package/types/excalidraw/components/InitializeApp.d.ts +1 -1
  124. package/types/excalidraw/components/Island.d.ts +1 -1
  125. package/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  126. package/types/excalidraw/components/LayerUI.d.ts +3 -3
  127. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  128. package/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  129. package/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  130. package/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  131. package/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  132. package/types/excalidraw/components/MagicButton.d.ts +1 -1
  133. package/types/excalidraw/components/MobileMenu.d.ts +3 -3
  134. package/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  135. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  136. package/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  137. package/types/excalidraw/components/SVGLayer.d.ts +1 -1
  138. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  139. package/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  140. package/types/excalidraw/components/Stack.d.ts +1 -1
  141. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  142. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  143. package/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  144. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  145. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  146. package/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  147. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  148. package/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  149. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  150. package/types/excalidraw/components/Stats/index.d.ts +2 -2
  151. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  152. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -1
  153. package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +1 -1
  154. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  155. package/types/excalidraw/components/TTDDialog/common.d.ts +3 -3
  156. package/types/excalidraw/components/TextField.d.ts +1 -1
  157. package/types/excalidraw/components/Toast.d.ts +1 -1
  158. package/types/excalidraw/components/ToolButton.d.ts +2 -2
  159. package/types/excalidraw/components/Tooltip.d.ts +1 -1
  160. package/types/excalidraw/components/UserList.d.ts +1 -1
  161. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  162. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  163. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  164. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  165. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  166. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  167. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
  168. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  169. package/types/excalidraw/components/icons.d.ts +2 -1
  170. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  171. package/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  172. package/types/excalidraw/components/shapes.d.ts +62 -0
  173. package/types/excalidraw/context/tunnels.d.ts +1 -1
  174. package/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  175. package/types/excalidraw/data/blob.d.ts +4 -4
  176. package/types/excalidraw/data/filesystem.d.ts +2 -2
  177. package/types/excalidraw/data/index.d.ts +2 -2
  178. package/types/excalidraw/data/json.d.ts +1 -1
  179. package/types/excalidraw/data/library.d.ts +3 -3
  180. package/types/excalidraw/data/reconcile.d.ts +2 -2
  181. package/types/excalidraw/data/resave.d.ts +1 -1
  182. package/types/excalidraw/data/restore.d.ts +1 -1
  183. package/types/excalidraw/data/transform.d.ts +4 -4
  184. package/types/excalidraw/data/types.d.ts +3 -3
  185. package/types/excalidraw/eraser/index.d.ts +14 -0
  186. package/types/excalidraw/errors.d.ts +0 -3
  187. package/types/excalidraw/fonts/Fonts.d.ts +2 -12
  188. package/types/excalidraw/history.d.ts +2 -2
  189. package/types/excalidraw/i18n.d.ts +1 -1
  190. package/types/excalidraw/index.d.ts +29 -35
  191. package/types/excalidraw/laser-trails.d.ts +1 -1
  192. package/types/excalidraw/lasso/index.d.ts +15 -0
  193. package/types/excalidraw/lasso/utils.d.ts +12 -0
  194. package/types/excalidraw/obsidianUtils.d.ts +3 -2
  195. package/types/excalidraw/renderer/helpers.d.ts +2 -2
  196. package/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  197. package/types/excalidraw/scene/Renderer.d.ts +3 -3
  198. package/types/excalidraw/scene/Scene.d.ts +5 -5
  199. package/types/excalidraw/scene/export.d.ts +1 -1
  200. package/types/excalidraw/scene/index.d.ts +2 -2
  201. package/types/excalidraw/scene/scroll.d.ts +1 -1
  202. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  203. package/types/excalidraw/scene/types.d.ts +4 -4
  204. package/types/excalidraw/snapping.d.ts +5 -6
  205. package/types/excalidraw/store.d.ts +2 -2
  206. package/types/excalidraw/types.d.ts +26 -16
  207. package/types/excalidraw/visualdebug.d.ts +2 -2
  208. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  209. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  210. package/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
  211. package/types/math/{point.d.ts → src/point.d.ts} +2 -2
  212. package/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  213. package/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  214. package/types/math/{types.d.ts → src/types.d.ts} +1 -0
  215. package/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  216. package/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
  217. package/types/utils/{export.d.ts → src/export.d.ts} +2 -12
  218. package/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  219. package/types/utils/{geometry → src}/shape.d.ts +2 -15
  220. package/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  221. package/types/excalidraw/shapes.d.ts +0 -85
  222. /package/types/{excalidraw → common/src}/keys.d.ts +0 -0
  223. /package/types/{excalidraw → common/src}/queue.d.ts +0 -0
  224. /package/types/{excalidraw → common/src}/random.d.ts +0 -0
  225. /package/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  226. /package/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
  227. /package/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  228. /package/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  229. /package/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  230. /package/types/{excalidraw/renderer → element/src}/easingFunctions.d.ts +0 -0
  231. /package/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  232. /package/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  233. /package/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  234. /package/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
  235. /package/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
  236. /package/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  237. /package/types/math/{index.d.ts → src/index.d.ts} +0 -0
  238. /package/types/math/{line.d.ts → src/line.d.ts} +0 -0
  239. /package/types/math/{range.d.ts → src/range.d.ts} +0 -0
  240. /package/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  241. /package/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  242. /package/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
  243. /package/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
@@ -1,13 +1,12 @@
1
- import type { ExcalidrawElement } from "../element/types";
2
- import type { AppState, Offsets, AppClassProperties } from "../types";
3
- import type { SceneBounds } from "../element/bounds";
1
+ import { type SceneBounds } from "@excalidraw/element/bounds";
2
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
3
+ import type { AppClassProperties, AppState, Offsets } from "../types";
4
4
  export declare const actionChangeViewBackgroundColor: {
5
5
  name: "changeViewBackgroundColor";
6
6
  label: string;
7
- paletteName: string;
8
7
  trackEvent: false;
9
8
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
10
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
9
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
11
10
  appState: any;
12
11
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
13
12
  };
@@ -18,17 +17,16 @@ export declare const actionChangeViewBackgroundColor: {
18
17
  export declare const actionClearCanvas: {
19
18
  name: "clearCanvas";
20
19
  label: string;
21
- paletteName: string;
22
20
  icon: import("react/jsx-runtime").JSX.Element;
23
21
  trackEvent: {
24
22
  category: "canvas";
25
23
  };
26
24
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
27
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
28
- elements: import("../element/types").OrderedExcalidrawElement[];
25
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
26
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
29
27
  appState: {
30
28
  files: {};
31
- theme: import("../element/types").Theme;
29
+ theme: import("@excalidraw/element/types").Theme;
32
30
  penMode: boolean;
33
31
  penDetected: boolean;
34
32
  exportBackground: boolean;
@@ -50,11 +48,12 @@ export declare const actionClearCanvas: {
50
48
  activeTool: {
51
49
  lastActiveTool: import("../types").ActiveTool | null;
52
50
  locked: boolean;
51
+ fromSelection: boolean;
53
52
  } & import("../types").ActiveTool;
54
53
  colorPalette: {
55
- canvasBackground: import("../colors").ColorPaletteCustom;
56
- elementBackground: import("../colors").ColorPaletteCustom;
57
- elementStroke: import("../colors").ColorPaletteCustom;
54
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
55
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
56
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
58
57
  topPicks: {
59
58
  canvasBackground: [string, string, string, string, string];
60
59
  elementStroke: [string, string, string, string, string];
@@ -66,73 +65,25 @@ export declare const actionClearCanvas: {
66
65
  allowWheelZoom: boolean | undefined;
67
66
  pinnedScripts: string[] | undefined;
68
67
  customPens: any[] | undefined;
69
- viewModeEnabled: boolean;
70
- zenModeEnabled: boolean;
71
- objectsSnapModeEnabled: boolean;
72
- name: string | null;
73
- currentItemArrowType: "round" | "sharp" | "elbow";
74
- contextMenu: {
75
- items: import("../components/ContextMenu").ContextMenuItems;
76
- top: number;
77
- left: number;
78
- } | null;
79
- showWelcomeScreen: boolean;
80
- isLoading: boolean;
81
- errorMessage: import("react").ReactNode;
82
- activeEmbeddable: {
83
- element: import("../element/types").NonDeletedExcalidrawElement;
84
- state: "active" | "hover";
85
- } | null;
86
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
87
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
88
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
89
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
90
- isBindingEnabled: boolean;
91
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
92
- suggestedBindings: import("../element/binding").SuggestedBinding[];
93
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
68
+ viewBackgroundColor: string;
94
69
  frameRendering: {
95
70
  enabled: boolean;
96
71
  name: boolean;
97
72
  outline: boolean;
98
73
  clip: boolean;
99
74
  };
100
- editingFrame: string | null;
101
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
102
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
103
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
104
- exportWithDarkMode: boolean;
105
- exportScale: number;
106
- currentItemStrokeColor: string;
107
- currentItemBackgroundColor: string;
108
- currentItemFillStyle: import("../element/types").FillStyle;
109
- currentItemStrokeWidth: number;
110
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
111
- currentItemRoughness: number;
112
- currentItemOpacity: number;
113
- currentItemFontFamily: number;
114
- currentItemFontSize: number;
115
- currentItemTextAlign: string;
116
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
117
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
118
- currentHoveredFontFamily: number | null;
119
- currentItemRoundness: import("../element/types").StrokeRoundness;
120
- viewBackgroundColor: string;
121
- scrollX: number;
122
- scrollY: number;
123
- cursorButton: "up" | "down";
124
- scrolledOutside: boolean;
125
- isResizing: boolean;
126
- isRotating: boolean;
75
+ frameColor: {
76
+ stroke: string;
77
+ fill: string;
78
+ nameColor: string;
79
+ };
80
+ name: string | null;
127
81
  zoom: Readonly<{
128
82
  value: import("../types").NormalizedZoomValue;
129
83
  }>;
130
- openMenu: "canvas" | "shape" | null;
131
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
132
- openSidebar: {
133
- name: string;
134
- tab?: string | undefined;
135
- } | null;
84
+ scrollX: number;
85
+ scrollY: number;
86
+ viewModeEnabled: boolean;
136
87
  openDialog: {
137
88
  name: "help" | "imageExport" | "jsonExport";
138
89
  } | {
@@ -144,29 +95,27 @@ export declare const actionClearCanvas: {
144
95
  name: "elementLinkSelector";
145
96
  sourceElementId: string;
146
97
  } | null;
147
- defaultSidebarDockedPreference: boolean;
148
- lastPointerDownWith: import("../element/types").PointerType;
98
+ editingGroupId: string | null;
149
99
  selectedElementIds: Readonly<{
150
100
  [id: string]: true;
151
101
  }>;
152
- hoveredElementIds: Readonly<{
153
- [id: string]: true;
154
- }>;
155
- previousSelectedElementIds: {
156
- [id: string]: true;
157
- };
158
- selectedElementsAreBeingDragged: boolean;
159
- shouldCacheIgnoreZoom: boolean;
160
- toast: {
161
- message: string;
162
- closable?: boolean | undefined;
163
- duration?: number | undefined;
102
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
103
+ pendingImageElementId: string | null;
104
+ activeEmbeddable: {
105
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
106
+ state: "active" | "hover";
164
107
  } | null;
108
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
109
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
165
110
  selectedGroupIds: {
166
111
  [groupId: string]: boolean;
167
112
  };
168
- editingGroupId: string | null;
169
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
113
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
114
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
115
+ isBindingEnabled: boolean;
116
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
117
+ isRotating: boolean;
118
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
170
119
  collaborators: Map<import("../types").SocketId, Readonly<{
171
120
  pointer?: import("../types").CollaboratorPointer | undefined;
172
121
  button?: "up" | "down" | undefined;
@@ -174,7 +123,7 @@ export declare const actionClearCanvas: {
174
123
  [id: string]: true;
175
124
  }> | undefined;
176
125
  username?: string | null | undefined;
177
- userState?: import("../constants").UserIdleState | undefined;
126
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
178
127
  color?: {
179
128
  background: string;
180
129
  stroke: string;
@@ -187,34 +136,18 @@ export declare const actionClearCanvas: {
187
136
  isSpeaking?: boolean | undefined;
188
137
  isMuted?: boolean | undefined;
189
138
  }>>;
190
- currentChartType: import("../element/types").ChartType;
191
- pendingImageElementId: string | null;
192
- showHyperlinkPopup: false | "info" | "editor";
193
- linkOpacity: number;
194
- currentStrokeOptions?: any;
195
- resetCustomPen?: any;
139
+ snapLines: readonly import("../snapping").SnapLine[];
140
+ zenModeEnabled: boolean;
141
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
196
142
  gridColor: {
197
143
  Bold: string;
198
144
  Regular: string;
199
145
  };
200
- highlightSearchResult: boolean;
201
- dynamicStyle: {
202
- [x: string]: string;
146
+ gridDirection: {
147
+ horizontal: boolean;
148
+ vertical: boolean;
203
149
  };
204
- frameColor: {
205
- stroke: string;
206
- fill: string;
207
- nameColor: string;
208
- };
209
- invertBindingBehaviour: boolean;
210
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
211
- snapLines: readonly import("../snapping").SnapLine[];
212
- originSnapOffset: {
213
- x: number;
214
- y: number;
215
- } | null;
216
- userToFollow: import("../types").UserToFollow | null;
217
- followedBy: Set<import("../types").SocketId>;
150
+ highlightSearchResult: boolean;
218
151
  isCropping: boolean;
219
152
  croppingElementId: string | null;
220
153
  searchMatches: readonly {
@@ -227,6 +160,76 @@ export declare const actionClearCanvas: {
227
160
  height: number;
228
161
  }[];
229
162
  }[];
163
+ objectsSnapModeEnabled: boolean;
164
+ shouldCacheIgnoreZoom: boolean;
165
+ exportScale: number;
166
+ selectedElementsAreBeingDragged: boolean;
167
+ linkOpacity: number;
168
+ currentHoveredFontFamily: number | null;
169
+ hoveredElementIds: Readonly<{
170
+ [id: string]: true;
171
+ }>;
172
+ contextMenu: {
173
+ items: import("../components/ContextMenu").ContextMenuItems;
174
+ top: number;
175
+ left: number;
176
+ } | null;
177
+ showWelcomeScreen: boolean;
178
+ isLoading: boolean;
179
+ errorMessage: import("react").ReactNode;
180
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
181
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
182
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
183
+ editingFrame: string | null;
184
+ exportWithDarkMode: boolean;
185
+ currentItemStrokeColor: string;
186
+ currentItemBackgroundColor: string;
187
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
188
+ currentItemStrokeWidth: number;
189
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
190
+ currentItemRoughness: number;
191
+ currentItemOpacity: number;
192
+ currentItemFontFamily: number;
193
+ currentItemFontSize: number;
194
+ currentItemTextAlign: string;
195
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
196
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
197
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
198
+ currentItemArrowType: "round" | "sharp" | "elbow";
199
+ cursorButton: "up" | "down";
200
+ scrolledOutside: boolean;
201
+ isResizing: boolean;
202
+ openMenu: "shape" | "canvas" | null;
203
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
204
+ openSidebar: {
205
+ name: string;
206
+ tab?: string | undefined;
207
+ } | null;
208
+ defaultSidebarDockedPreference: boolean;
209
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
210
+ previousSelectedElementIds: {
211
+ [id: string]: true;
212
+ };
213
+ toast: {
214
+ message: string;
215
+ closable?: boolean | undefined;
216
+ duration?: number | undefined;
217
+ } | null;
218
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
219
+ currentChartType: import("@excalidraw/element/types").ChartType;
220
+ showHyperlinkPopup: false | "editor" | "info";
221
+ currentStrokeOptions?: any;
222
+ resetCustomPen?: any;
223
+ dynamicStyle: {
224
+ [x: string]: string;
225
+ };
226
+ invertBindingBehaviour: boolean;
227
+ originSnapOffset: {
228
+ x: number;
229
+ y: number;
230
+ } | null;
231
+ userToFollow: import("../types").UserToFollow | null;
232
+ followedBy: Set<import("../types").SocketId>;
230
233
  };
231
234
  captureUpdate: "IMMEDIATELY";
232
235
  };
@@ -241,7 +244,7 @@ export declare const actionZoomIn: {
241
244
  trackEvent: {
242
245
  category: "canvas";
243
246
  };
244
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
247
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
245
248
  appState: {
246
249
  userToFollow: null;
247
250
  scrollX: number;
@@ -258,17 +261,17 @@ export declare const actionZoomIn: {
258
261
  isLoading: boolean;
259
262
  errorMessage: import("react").ReactNode;
260
263
  activeEmbeddable: {
261
- element: import("../element/types").NonDeletedExcalidrawElement;
264
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
262
265
  state: "active" | "hover";
263
266
  } | null;
264
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
265
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
266
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
267
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
267
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
268
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
269
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
270
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
268
271
  isBindingEnabled: boolean;
269
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
270
- suggestedBindings: import("../element/binding").SuggestedBinding[];
271
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
272
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
273
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
274
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
272
275
  frameRendering: {
273
276
  enabled: boolean;
274
277
  name: boolean;
@@ -276,12 +279,13 @@ export declare const actionZoomIn: {
276
279
  clip: boolean;
277
280
  };
278
281
  editingFrame: string | null;
279
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
280
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
281
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
282
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
283
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
284
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
282
285
  activeTool: {
283
286
  lastActiveTool: import("../types").ActiveTool | null;
284
287
  locked: boolean;
288
+ fromSelection: boolean;
285
289
  } & import("../types").ActiveTool;
286
290
  penMode: boolean;
287
291
  penDetected: boolean;
@@ -291,18 +295,18 @@ export declare const actionZoomIn: {
291
295
  exportScale: number;
292
296
  currentItemStrokeColor: string;
293
297
  currentItemBackgroundColor: string;
294
- currentItemFillStyle: import("../element/types").FillStyle;
298
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
295
299
  currentItemStrokeWidth: number;
296
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
300
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
297
301
  currentItemRoughness: number;
298
302
  currentItemOpacity: number;
299
303
  currentItemFontFamily: number;
300
304
  currentItemFontSize: number;
301
305
  currentItemTextAlign: string;
302
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
303
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
306
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
307
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
304
308
  currentHoveredFontFamily: number | null;
305
- currentItemRoundness: import("../element/types").StrokeRoundness;
309
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
306
310
  currentItemArrowType: "round" | "sharp" | "elbow";
307
311
  viewBackgroundColor: string;
308
312
  cursorButton: "up" | "down";
@@ -310,7 +314,7 @@ export declare const actionZoomIn: {
310
314
  name: string | null;
311
315
  isResizing: boolean;
312
316
  isRotating: boolean;
313
- openMenu: "canvas" | "shape" | null;
317
+ openMenu: "shape" | "canvas" | null;
314
318
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
315
319
  openSidebar: {
316
320
  name: string;
@@ -328,7 +332,7 @@ export declare const actionZoomIn: {
328
332
  sourceElementId: string;
329
333
  } | null;
330
334
  defaultSidebarDockedPreference: boolean;
331
- lastPointerDownWith: import("../element/types").PointerType;
335
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
332
336
  selectedElementIds: Readonly<{
333
337
  [id: string]: true;
334
338
  }>;
@@ -346,7 +350,7 @@ export declare const actionZoomIn: {
346
350
  duration?: number | undefined;
347
351
  } | null;
348
352
  zenModeEnabled: boolean;
349
- theme: import("../element/types").Theme;
353
+ theme: import("@excalidraw/element/types").Theme;
350
354
  gridSize: number;
351
355
  gridStep: number;
352
356
  gridModeEnabled: boolean;
@@ -367,7 +371,7 @@ export declare const actionZoomIn: {
367
371
  [id: string]: true;
368
372
  }> | undefined;
369
373
  username?: string | null | undefined;
370
- userState?: import("../constants").UserIdleState | undefined;
374
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
371
375
  color?: {
372
376
  background: string;
373
377
  stroke: string;
@@ -384,7 +388,7 @@ export declare const actionZoomIn: {
384
388
  open: boolean;
385
389
  panels: number;
386
390
  };
387
- currentChartType: import("../element/types").ChartType;
391
+ currentChartType: import("@excalidraw/element/types").ChartType;
388
392
  pasteDialog: {
389
393
  shown: false;
390
394
  data: null;
@@ -393,13 +397,13 @@ export declare const actionZoomIn: {
393
397
  data: import("../charts").Spreadsheet;
394
398
  };
395
399
  pendingImageElementId: string | null;
396
- showHyperlinkPopup: false | "info" | "editor";
400
+ showHyperlinkPopup: false | "editor" | "info";
397
401
  linkOpacity: number;
398
402
  trayModeEnabled: boolean;
399
403
  colorPalette?: {
400
- canvasBackground: import("../colors").ColorPaletteCustom;
401
- elementBackground: import("../colors").ColorPaletteCustom;
402
- elementStroke: import("../colors").ColorPaletteCustom;
404
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
405
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
406
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
403
407
  topPicks: {
404
408
  canvasBackground: [string, string, string, string, string];
405
409
  elementStroke: [string, string, string, string, string];
@@ -416,6 +420,10 @@ export declare const actionZoomIn: {
416
420
  Bold: string;
417
421
  Regular: string;
418
422
  };
423
+ gridDirection: {
424
+ horizontal: boolean;
425
+ vertical: boolean;
426
+ };
419
427
  highlightSearchResult: boolean;
420
428
  dynamicStyle: {
421
429
  [x: string]: string;
@@ -426,7 +434,7 @@ export declare const actionZoomIn: {
426
434
  nameColor: string;
427
435
  };
428
436
  invertBindingBehaviour: boolean;
429
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
437
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
430
438
  snapLines: readonly import("../snapping").SnapLine[];
431
439
  originSnapOffset: {
432
440
  x: number;
@@ -462,7 +470,7 @@ export declare const actionZoomOut: {
462
470
  trackEvent: {
463
471
  category: "canvas";
464
472
  };
465
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
473
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
466
474
  appState: {
467
475
  userToFollow: null;
468
476
  scrollX: number;
@@ -479,17 +487,17 @@ export declare const actionZoomOut: {
479
487
  isLoading: boolean;
480
488
  errorMessage: import("react").ReactNode;
481
489
  activeEmbeddable: {
482
- element: import("../element/types").NonDeletedExcalidrawElement;
490
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
483
491
  state: "active" | "hover";
484
492
  } | null;
485
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
486
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
487
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
488
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
493
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
494
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
495
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
496
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
489
497
  isBindingEnabled: boolean;
490
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
491
- suggestedBindings: import("../element/binding").SuggestedBinding[];
492
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
498
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
499
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
500
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
493
501
  frameRendering: {
494
502
  enabled: boolean;
495
503
  name: boolean;
@@ -497,12 +505,13 @@ export declare const actionZoomOut: {
497
505
  clip: boolean;
498
506
  };
499
507
  editingFrame: string | null;
500
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
501
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
502
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
508
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
509
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
510
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
503
511
  activeTool: {
504
512
  lastActiveTool: import("../types").ActiveTool | null;
505
513
  locked: boolean;
514
+ fromSelection: boolean;
506
515
  } & import("../types").ActiveTool;
507
516
  penMode: boolean;
508
517
  penDetected: boolean;
@@ -512,18 +521,18 @@ export declare const actionZoomOut: {
512
521
  exportScale: number;
513
522
  currentItemStrokeColor: string;
514
523
  currentItemBackgroundColor: string;
515
- currentItemFillStyle: import("../element/types").FillStyle;
524
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
516
525
  currentItemStrokeWidth: number;
517
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
526
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
518
527
  currentItemRoughness: number;
519
528
  currentItemOpacity: number;
520
529
  currentItemFontFamily: number;
521
530
  currentItemFontSize: number;
522
531
  currentItemTextAlign: string;
523
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
524
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
532
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
533
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
525
534
  currentHoveredFontFamily: number | null;
526
- currentItemRoundness: import("../element/types").StrokeRoundness;
535
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
527
536
  currentItemArrowType: "round" | "sharp" | "elbow";
528
537
  viewBackgroundColor: string;
529
538
  cursorButton: "up" | "down";
@@ -531,7 +540,7 @@ export declare const actionZoomOut: {
531
540
  name: string | null;
532
541
  isResizing: boolean;
533
542
  isRotating: boolean;
534
- openMenu: "canvas" | "shape" | null;
543
+ openMenu: "shape" | "canvas" | null;
535
544
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
536
545
  openSidebar: {
537
546
  name: string;
@@ -549,7 +558,7 @@ export declare const actionZoomOut: {
549
558
  sourceElementId: string;
550
559
  } | null;
551
560
  defaultSidebarDockedPreference: boolean;
552
- lastPointerDownWith: import("../element/types").PointerType;
561
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
553
562
  selectedElementIds: Readonly<{
554
563
  [id: string]: true;
555
564
  }>;
@@ -567,7 +576,7 @@ export declare const actionZoomOut: {
567
576
  duration?: number | undefined;
568
577
  } | null;
569
578
  zenModeEnabled: boolean;
570
- theme: import("../element/types").Theme;
579
+ theme: import("@excalidraw/element/types").Theme;
571
580
  gridSize: number;
572
581
  gridStep: number;
573
582
  gridModeEnabled: boolean;
@@ -588,7 +597,7 @@ export declare const actionZoomOut: {
588
597
  [id: string]: true;
589
598
  }> | undefined;
590
599
  username?: string | null | undefined;
591
- userState?: import("../constants").UserIdleState | undefined;
600
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
592
601
  color?: {
593
602
  background: string;
594
603
  stroke: string;
@@ -605,7 +614,7 @@ export declare const actionZoomOut: {
605
614
  open: boolean;
606
615
  panels: number;
607
616
  };
608
- currentChartType: import("../element/types").ChartType;
617
+ currentChartType: import("@excalidraw/element/types").ChartType;
609
618
  pasteDialog: {
610
619
  shown: false;
611
620
  data: null;
@@ -614,13 +623,13 @@ export declare const actionZoomOut: {
614
623
  data: import("../charts").Spreadsheet;
615
624
  };
616
625
  pendingImageElementId: string | null;
617
- showHyperlinkPopup: false | "info" | "editor";
626
+ showHyperlinkPopup: false | "editor" | "info";
618
627
  linkOpacity: number;
619
628
  trayModeEnabled: boolean;
620
629
  colorPalette?: {
621
- canvasBackground: import("../colors").ColorPaletteCustom;
622
- elementBackground: import("../colors").ColorPaletteCustom;
623
- elementStroke: import("../colors").ColorPaletteCustom;
630
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
631
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
632
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
624
633
  topPicks: {
625
634
  canvasBackground: [string, string, string, string, string];
626
635
  elementStroke: [string, string, string, string, string];
@@ -637,6 +646,10 @@ export declare const actionZoomOut: {
637
646
  Bold: string;
638
647
  Regular: string;
639
648
  };
649
+ gridDirection: {
650
+ horizontal: boolean;
651
+ vertical: boolean;
652
+ };
640
653
  highlightSearchResult: boolean;
641
654
  dynamicStyle: {
642
655
  [x: string]: string;
@@ -647,7 +660,7 @@ export declare const actionZoomOut: {
647
660
  nameColor: string;
648
661
  };
649
662
  invertBindingBehaviour: boolean;
650
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
663
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
651
664
  snapLines: readonly import("../snapping").SnapLine[];
652
665
  originSnapOffset: {
653
666
  x: number;
@@ -683,7 +696,7 @@ export declare const actionResetZoom: {
683
696
  trackEvent: {
684
697
  category: "canvas";
685
698
  };
686
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
699
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
687
700
  appState: {
688
701
  userToFollow: null;
689
702
  scrollX: number;
@@ -700,17 +713,17 @@ export declare const actionResetZoom: {
700
713
  isLoading: boolean;
701
714
  errorMessage: import("react").ReactNode;
702
715
  activeEmbeddable: {
703
- element: import("../element/types").NonDeletedExcalidrawElement;
716
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
704
717
  state: "active" | "hover";
705
718
  } | null;
706
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
707
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
708
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
709
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
719
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
720
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
721
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
722
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
710
723
  isBindingEnabled: boolean;
711
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
712
- suggestedBindings: import("../element/binding").SuggestedBinding[];
713
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
724
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
725
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
726
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
714
727
  frameRendering: {
715
728
  enabled: boolean;
716
729
  name: boolean;
@@ -718,12 +731,13 @@ export declare const actionResetZoom: {
718
731
  clip: boolean;
719
732
  };
720
733
  editingFrame: string | null;
721
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
722
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
723
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
734
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
735
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
736
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
724
737
  activeTool: {
725
738
  lastActiveTool: import("../types").ActiveTool | null;
726
739
  locked: boolean;
740
+ fromSelection: boolean;
727
741
  } & import("../types").ActiveTool;
728
742
  penMode: boolean;
729
743
  penDetected: boolean;
@@ -733,18 +747,18 @@ export declare const actionResetZoom: {
733
747
  exportScale: number;
734
748
  currentItemStrokeColor: string;
735
749
  currentItemBackgroundColor: string;
736
- currentItemFillStyle: import("../element/types").FillStyle;
750
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
737
751
  currentItemStrokeWidth: number;
738
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
752
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
739
753
  currentItemRoughness: number;
740
754
  currentItemOpacity: number;
741
755
  currentItemFontFamily: number;
742
756
  currentItemFontSize: number;
743
757
  currentItemTextAlign: string;
744
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
745
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
758
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
759
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
746
760
  currentHoveredFontFamily: number | null;
747
- currentItemRoundness: import("../element/types").StrokeRoundness;
761
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
748
762
  currentItemArrowType: "round" | "sharp" | "elbow";
749
763
  viewBackgroundColor: string;
750
764
  cursorButton: "up" | "down";
@@ -752,7 +766,7 @@ export declare const actionResetZoom: {
752
766
  name: string | null;
753
767
  isResizing: boolean;
754
768
  isRotating: boolean;
755
- openMenu: "canvas" | "shape" | null;
769
+ openMenu: "shape" | "canvas" | null;
756
770
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
757
771
  openSidebar: {
758
772
  name: string;
@@ -770,7 +784,7 @@ export declare const actionResetZoom: {
770
784
  sourceElementId: string;
771
785
  } | null;
772
786
  defaultSidebarDockedPreference: boolean;
773
- lastPointerDownWith: import("../element/types").PointerType;
787
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
774
788
  selectedElementIds: Readonly<{
775
789
  [id: string]: true;
776
790
  }>;
@@ -788,7 +802,7 @@ export declare const actionResetZoom: {
788
802
  duration?: number | undefined;
789
803
  } | null;
790
804
  zenModeEnabled: boolean;
791
- theme: import("../element/types").Theme;
805
+ theme: import("@excalidraw/element/types").Theme;
792
806
  gridSize: number;
793
807
  gridStep: number;
794
808
  gridModeEnabled: boolean;
@@ -809,7 +823,7 @@ export declare const actionResetZoom: {
809
823
  [id: string]: true;
810
824
  }> | undefined;
811
825
  username?: string | null | undefined;
812
- userState?: import("../constants").UserIdleState | undefined;
826
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
813
827
  color?: {
814
828
  background: string;
815
829
  stroke: string;
@@ -826,7 +840,7 @@ export declare const actionResetZoom: {
826
840
  open: boolean;
827
841
  panels: number;
828
842
  };
829
- currentChartType: import("../element/types").ChartType;
843
+ currentChartType: import("@excalidraw/element/types").ChartType;
830
844
  pasteDialog: {
831
845
  shown: false;
832
846
  data: null;
@@ -835,13 +849,13 @@ export declare const actionResetZoom: {
835
849
  data: import("../charts").Spreadsheet;
836
850
  };
837
851
  pendingImageElementId: string | null;
838
- showHyperlinkPopup: false | "info" | "editor";
852
+ showHyperlinkPopup: false | "editor" | "info";
839
853
  linkOpacity: number;
840
854
  trayModeEnabled: boolean;
841
855
  colorPalette?: {
842
- canvasBackground: import("../colors").ColorPaletteCustom;
843
- elementBackground: import("../colors").ColorPaletteCustom;
844
- elementStroke: import("../colors").ColorPaletteCustom;
856
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
857
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
858
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
845
859
  topPicks: {
846
860
  canvasBackground: [string, string, string, string, string];
847
861
  elementStroke: [string, string, string, string, string];
@@ -858,6 +872,10 @@ export declare const actionResetZoom: {
858
872
  Bold: string;
859
873
  Regular: string;
860
874
  };
875
+ gridDirection: {
876
+ horizontal: boolean;
877
+ vertical: boolean;
878
+ };
861
879
  highlightSearchResult: boolean;
862
880
  dynamicStyle: {
863
881
  [x: string]: string;
@@ -868,7 +886,7 @@ export declare const actionResetZoom: {
868
886
  nameColor: string;
869
887
  };
870
888
  invertBindingBehaviour: boolean;
871
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
889
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
872
890
  snapLines: readonly import("../snapping").SnapLine[];
873
891
  originSnapOffset: {
874
892
  x: number;
@@ -927,17 +945,17 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
927
945
  isLoading: boolean;
928
946
  errorMessage: import("react").ReactNode;
929
947
  activeEmbeddable: {
930
- element: import("../element/types").NonDeletedExcalidrawElement;
948
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
931
949
  state: "active" | "hover";
932
950
  } | null;
933
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
934
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
935
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
936
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
951
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
952
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
953
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
954
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
937
955
  isBindingEnabled: boolean;
938
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
939
- suggestedBindings: import("../element/binding").SuggestedBinding[];
940
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
956
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
957
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
958
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
941
959
  frameRendering: {
942
960
  enabled: boolean;
943
961
  name: boolean;
@@ -945,12 +963,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
945
963
  clip: boolean;
946
964
  };
947
965
  editingFrame: string | null;
948
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
949
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
950
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
966
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
967
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
968
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
951
969
  activeTool: {
952
970
  lastActiveTool: import("../types").ActiveTool | null;
953
971
  locked: boolean;
972
+ fromSelection: boolean;
954
973
  } & import("../types").ActiveTool;
955
974
  penMode: boolean;
956
975
  penDetected: boolean;
@@ -960,18 +979,18 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
960
979
  exportScale: number;
961
980
  currentItemStrokeColor: string;
962
981
  currentItemBackgroundColor: string;
963
- currentItemFillStyle: import("../element/types").FillStyle;
982
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
964
983
  currentItemStrokeWidth: number;
965
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
984
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
966
985
  currentItemRoughness: number;
967
986
  currentItemOpacity: number;
968
987
  currentItemFontFamily: number;
969
988
  currentItemFontSize: number;
970
989
  currentItemTextAlign: string;
971
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
972
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
990
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
991
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
973
992
  currentHoveredFontFamily: number | null;
974
- currentItemRoundness: import("../element/types").StrokeRoundness;
993
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
975
994
  currentItemArrowType: "round" | "sharp" | "elbow";
976
995
  viewBackgroundColor: string;
977
996
  cursorButton: "up" | "down";
@@ -979,7 +998,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
979
998
  name: string | null;
980
999
  isResizing: boolean;
981
1000
  isRotating: boolean;
982
- openMenu: "canvas" | "shape" | null;
1001
+ openMenu: "shape" | "canvas" | null;
983
1002
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
984
1003
  openSidebar: {
985
1004
  name: string;
@@ -997,7 +1016,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
997
1016
  sourceElementId: string;
998
1017
  } | null;
999
1018
  defaultSidebarDockedPreference: boolean;
1000
- lastPointerDownWith: import("../element/types").PointerType;
1019
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1001
1020
  selectedElementIds: Readonly<{
1002
1021
  [id: string]: true;
1003
1022
  }>;
@@ -1015,7 +1034,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1015
1034
  duration?: number | undefined;
1016
1035
  } | null;
1017
1036
  zenModeEnabled: boolean;
1018
- theme: import("../element/types").Theme;
1037
+ theme: import("@excalidraw/element/types").Theme;
1019
1038
  gridSize: number;
1020
1039
  gridStep: number;
1021
1040
  gridModeEnabled: boolean;
@@ -1036,7 +1055,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1036
1055
  [id: string]: true;
1037
1056
  }> | undefined;
1038
1057
  username?: string | null | undefined;
1039
- userState?: import("../constants").UserIdleState | undefined;
1058
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1040
1059
  color?: {
1041
1060
  background: string;
1042
1061
  stroke: string;
@@ -1053,7 +1072,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1053
1072
  open: boolean;
1054
1073
  panels: number;
1055
1074
  };
1056
- currentChartType: import("../element/types").ChartType;
1075
+ currentChartType: import("@excalidraw/element/types").ChartType;
1057
1076
  pasteDialog: {
1058
1077
  shown: false;
1059
1078
  data: null;
@@ -1062,13 +1081,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1062
1081
  data: import("../charts").Spreadsheet;
1063
1082
  };
1064
1083
  pendingImageElementId: string | null;
1065
- showHyperlinkPopup: false | "info" | "editor";
1084
+ showHyperlinkPopup: false | "editor" | "info";
1066
1085
  linkOpacity: number;
1067
1086
  trayModeEnabled: boolean;
1068
1087
  colorPalette?: {
1069
- canvasBackground: import("../colors").ColorPaletteCustom;
1070
- elementBackground: import("../colors").ColorPaletteCustom;
1071
- elementStroke: import("../colors").ColorPaletteCustom;
1088
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1089
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1090
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1072
1091
  topPicks: {
1073
1092
  canvasBackground: [string, string, string, string, string];
1074
1093
  elementStroke: [string, string, string, string, string];
@@ -1085,6 +1104,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1085
1104
  Bold: string;
1086
1105
  Regular: string;
1087
1106
  };
1107
+ gridDirection: {
1108
+ horizontal: boolean;
1109
+ vertical: boolean;
1110
+ };
1088
1111
  highlightSearchResult: boolean;
1089
1112
  dynamicStyle: {
1090
1113
  [x: string]: string;
@@ -1095,7 +1118,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1095
1118
  nameColor: string;
1096
1119
  };
1097
1120
  invertBindingBehaviour: boolean;
1098
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1121
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1099
1122
  snapLines: readonly import("../snapping").SnapLine[];
1100
1123
  originSnapOffset: {
1101
1124
  x: number;
@@ -1150,17 +1173,17 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1150
1173
  isLoading: boolean;
1151
1174
  errorMessage: import("react").ReactNode;
1152
1175
  activeEmbeddable: {
1153
- element: import("../element/types").NonDeletedExcalidrawElement;
1176
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1154
1177
  state: "active" | "hover";
1155
1178
  } | null;
1156
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1157
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1158
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1159
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1179
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1180
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1181
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1182
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1160
1183
  isBindingEnabled: boolean;
1161
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1162
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1163
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1184
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1185
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1186
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1164
1187
  frameRendering: {
1165
1188
  enabled: boolean;
1166
1189
  name: boolean;
@@ -1168,12 +1191,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1168
1191
  clip: boolean;
1169
1192
  };
1170
1193
  editingFrame: string | null;
1171
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1172
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1173
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1194
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1195
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1196
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1174
1197
  activeTool: {
1175
1198
  lastActiveTool: import("../types").ActiveTool | null;
1176
1199
  locked: boolean;
1200
+ fromSelection: boolean;
1177
1201
  } & import("../types").ActiveTool;
1178
1202
  penMode: boolean;
1179
1203
  penDetected: boolean;
@@ -1183,18 +1207,18 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1183
1207
  exportScale: number;
1184
1208
  currentItemStrokeColor: string;
1185
1209
  currentItemBackgroundColor: string;
1186
- currentItemFillStyle: import("../element/types").FillStyle;
1210
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1187
1211
  currentItemStrokeWidth: number;
1188
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1212
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1189
1213
  currentItemRoughness: number;
1190
1214
  currentItemOpacity: number;
1191
1215
  currentItemFontFamily: number;
1192
1216
  currentItemFontSize: number;
1193
1217
  currentItemTextAlign: string;
1194
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1195
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1218
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1219
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1196
1220
  currentHoveredFontFamily: number | null;
1197
- currentItemRoundness: import("../element/types").StrokeRoundness;
1221
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1198
1222
  currentItemArrowType: "round" | "sharp" | "elbow";
1199
1223
  viewBackgroundColor: string;
1200
1224
  cursorButton: "up" | "down";
@@ -1202,7 +1226,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1202
1226
  name: string | null;
1203
1227
  isResizing: boolean;
1204
1228
  isRotating: boolean;
1205
- openMenu: "canvas" | "shape" | null;
1229
+ openMenu: "shape" | "canvas" | null;
1206
1230
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1207
1231
  openSidebar: {
1208
1232
  name: string;
@@ -1220,7 +1244,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1220
1244
  sourceElementId: string;
1221
1245
  } | null;
1222
1246
  defaultSidebarDockedPreference: boolean;
1223
- lastPointerDownWith: import("../element/types").PointerType;
1247
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1224
1248
  selectedElementIds: Readonly<{
1225
1249
  [id: string]: true;
1226
1250
  }>;
@@ -1238,7 +1262,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1238
1262
  duration?: number | undefined;
1239
1263
  } | null;
1240
1264
  zenModeEnabled: boolean;
1241
- theme: import("../element/types").Theme;
1265
+ theme: import("@excalidraw/element/types").Theme;
1242
1266
  gridSize: number;
1243
1267
  gridStep: number;
1244
1268
  gridModeEnabled: boolean;
@@ -1259,7 +1283,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1259
1283
  [id: string]: true;
1260
1284
  }> | undefined;
1261
1285
  username?: string | null | undefined;
1262
- userState?: import("../constants").UserIdleState | undefined;
1286
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1263
1287
  color?: {
1264
1288
  background: string;
1265
1289
  stroke: string;
@@ -1276,7 +1300,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1276
1300
  open: boolean;
1277
1301
  panels: number;
1278
1302
  };
1279
- currentChartType: import("../element/types").ChartType;
1303
+ currentChartType: import("@excalidraw/element/types").ChartType;
1280
1304
  pasteDialog: {
1281
1305
  shown: false;
1282
1306
  data: null;
@@ -1285,13 +1309,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1285
1309
  data: import("../charts").Spreadsheet;
1286
1310
  };
1287
1311
  pendingImageElementId: string | null;
1288
- showHyperlinkPopup: false | "info" | "editor";
1312
+ showHyperlinkPopup: false | "editor" | "info";
1289
1313
  linkOpacity: number;
1290
1314
  trayModeEnabled: boolean;
1291
1315
  colorPalette?: {
1292
- canvasBackground: import("../colors").ColorPaletteCustom;
1293
- elementBackground: import("../colors").ColorPaletteCustom;
1294
- elementStroke: import("../colors").ColorPaletteCustom;
1316
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1317
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1318
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1295
1319
  topPicks: {
1296
1320
  canvasBackground: [string, string, string, string, string];
1297
1321
  elementStroke: [string, string, string, string, string];
@@ -1308,6 +1332,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1308
1332
  Bold: string;
1309
1333
  Regular: string;
1310
1334
  };
1335
+ gridDirection: {
1336
+ horizontal: boolean;
1337
+ vertical: boolean;
1338
+ };
1311
1339
  highlightSearchResult: boolean;
1312
1340
  dynamicStyle: {
1313
1341
  [x: string]: string;
@@ -1318,7 +1346,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1318
1346
  nameColor: string;
1319
1347
  };
1320
1348
  invertBindingBehaviour: boolean;
1321
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1349
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1322
1350
  snapLines: readonly import("../snapping").SnapLine[];
1323
1351
  originSnapOffset: {
1324
1352
  x: number;
@@ -1349,7 +1377,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1349
1377
  trackEvent: {
1350
1378
  category: "canvas";
1351
1379
  };
1352
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1380
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1353
1381
  appState: {
1354
1382
  scrollX: number;
1355
1383
  scrollY: number;
@@ -1365,17 +1393,17 @@ export declare const actionZoomToFitSelectionInViewport: {
1365
1393
  isLoading: boolean;
1366
1394
  errorMessage: import("react").ReactNode;
1367
1395
  activeEmbeddable: {
1368
- element: import("../element/types").NonDeletedExcalidrawElement;
1396
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1369
1397
  state: "active" | "hover";
1370
1398
  } | null;
1371
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1372
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1373
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1374
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1399
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1400
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1401
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1402
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1375
1403
  isBindingEnabled: boolean;
1376
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1377
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1378
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1404
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1405
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1406
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1379
1407
  frameRendering: {
1380
1408
  enabled: boolean;
1381
1409
  name: boolean;
@@ -1383,12 +1411,13 @@ export declare const actionZoomToFitSelectionInViewport: {
1383
1411
  clip: boolean;
1384
1412
  };
1385
1413
  editingFrame: string | null;
1386
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1387
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1388
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1414
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1415
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1416
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1389
1417
  activeTool: {
1390
1418
  lastActiveTool: import("../types").ActiveTool | null;
1391
1419
  locked: boolean;
1420
+ fromSelection: boolean;
1392
1421
  } & import("../types").ActiveTool;
1393
1422
  penMode: boolean;
1394
1423
  penDetected: boolean;
@@ -1398,18 +1427,18 @@ export declare const actionZoomToFitSelectionInViewport: {
1398
1427
  exportScale: number;
1399
1428
  currentItemStrokeColor: string;
1400
1429
  currentItemBackgroundColor: string;
1401
- currentItemFillStyle: import("../element/types").FillStyle;
1430
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1402
1431
  currentItemStrokeWidth: number;
1403
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1432
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1404
1433
  currentItemRoughness: number;
1405
1434
  currentItemOpacity: number;
1406
1435
  currentItemFontFamily: number;
1407
1436
  currentItemFontSize: number;
1408
1437
  currentItemTextAlign: string;
1409
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1410
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1438
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1439
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1411
1440
  currentHoveredFontFamily: number | null;
1412
- currentItemRoundness: import("../element/types").StrokeRoundness;
1441
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1413
1442
  currentItemArrowType: "round" | "sharp" | "elbow";
1414
1443
  viewBackgroundColor: string;
1415
1444
  cursorButton: "up" | "down";
@@ -1417,7 +1446,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1417
1446
  name: string | null;
1418
1447
  isResizing: boolean;
1419
1448
  isRotating: boolean;
1420
- openMenu: "canvas" | "shape" | null;
1449
+ openMenu: "shape" | "canvas" | null;
1421
1450
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1422
1451
  openSidebar: {
1423
1452
  name: string;
@@ -1435,7 +1464,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1435
1464
  sourceElementId: string;
1436
1465
  } | null;
1437
1466
  defaultSidebarDockedPreference: boolean;
1438
- lastPointerDownWith: import("../element/types").PointerType;
1467
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1439
1468
  selectedElementIds: Readonly<{
1440
1469
  [id: string]: true;
1441
1470
  }>;
@@ -1453,7 +1482,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1453
1482
  duration?: number | undefined;
1454
1483
  } | null;
1455
1484
  zenModeEnabled: boolean;
1456
- theme: import("../element/types").Theme;
1485
+ theme: import("@excalidraw/element/types").Theme;
1457
1486
  gridSize: number;
1458
1487
  gridStep: number;
1459
1488
  gridModeEnabled: boolean;
@@ -1474,7 +1503,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1474
1503
  [id: string]: true;
1475
1504
  }> | undefined;
1476
1505
  username?: string | null | undefined;
1477
- userState?: import("../constants").UserIdleState | undefined;
1506
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1478
1507
  color?: {
1479
1508
  background: string;
1480
1509
  stroke: string;
@@ -1491,7 +1520,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1491
1520
  open: boolean;
1492
1521
  panels: number;
1493
1522
  };
1494
- currentChartType: import("../element/types").ChartType;
1523
+ currentChartType: import("@excalidraw/element/types").ChartType;
1495
1524
  pasteDialog: {
1496
1525
  shown: false;
1497
1526
  data: null;
@@ -1500,13 +1529,13 @@ export declare const actionZoomToFitSelectionInViewport: {
1500
1529
  data: import("../charts").Spreadsheet;
1501
1530
  };
1502
1531
  pendingImageElementId: string | null;
1503
- showHyperlinkPopup: false | "info" | "editor";
1532
+ showHyperlinkPopup: false | "editor" | "info";
1504
1533
  linkOpacity: number;
1505
1534
  trayModeEnabled: boolean;
1506
1535
  colorPalette?: {
1507
- canvasBackground: import("../colors").ColorPaletteCustom;
1508
- elementBackground: import("../colors").ColorPaletteCustom;
1509
- elementStroke: import("../colors").ColorPaletteCustom;
1536
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1537
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1538
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1510
1539
  topPicks: {
1511
1540
  canvasBackground: [string, string, string, string, string];
1512
1541
  elementStroke: [string, string, string, string, string];
@@ -1523,6 +1552,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1523
1552
  Bold: string;
1524
1553
  Regular: string;
1525
1554
  };
1555
+ gridDirection: {
1556
+ horizontal: boolean;
1557
+ vertical: boolean;
1558
+ };
1526
1559
  highlightSearchResult: boolean;
1527
1560
  dynamicStyle: {
1528
1561
  [x: string]: string;
@@ -1533,7 +1566,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1533
1566
  nameColor: string;
1534
1567
  };
1535
1568
  invertBindingBehaviour: boolean;
1536
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1569
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1537
1570
  snapLines: readonly import("../snapping").SnapLine[];
1538
1571
  originSnapOffset: {
1539
1572
  x: number;
@@ -1568,7 +1601,7 @@ export declare const actionZoomToFitSelection: {
1568
1601
  trackEvent: {
1569
1602
  category: "canvas";
1570
1603
  };
1571
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1604
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1572
1605
  appState: {
1573
1606
  scrollX: number;
1574
1607
  scrollY: number;
@@ -1584,17 +1617,17 @@ export declare const actionZoomToFitSelection: {
1584
1617
  isLoading: boolean;
1585
1618
  errorMessage: import("react").ReactNode;
1586
1619
  activeEmbeddable: {
1587
- element: import("../element/types").NonDeletedExcalidrawElement;
1620
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1588
1621
  state: "active" | "hover";
1589
1622
  } | null;
1590
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1591
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1592
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1593
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1623
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1624
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1625
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1626
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1594
1627
  isBindingEnabled: boolean;
1595
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1596
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1597
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1628
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1629
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1630
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1598
1631
  frameRendering: {
1599
1632
  enabled: boolean;
1600
1633
  name: boolean;
@@ -1602,12 +1635,13 @@ export declare const actionZoomToFitSelection: {
1602
1635
  clip: boolean;
1603
1636
  };
1604
1637
  editingFrame: string | null;
1605
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1606
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1607
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1638
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1639
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1640
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1608
1641
  activeTool: {
1609
1642
  lastActiveTool: import("../types").ActiveTool | null;
1610
1643
  locked: boolean;
1644
+ fromSelection: boolean;
1611
1645
  } & import("../types").ActiveTool;
1612
1646
  penMode: boolean;
1613
1647
  penDetected: boolean;
@@ -1617,18 +1651,18 @@ export declare const actionZoomToFitSelection: {
1617
1651
  exportScale: number;
1618
1652
  currentItemStrokeColor: string;
1619
1653
  currentItemBackgroundColor: string;
1620
- currentItemFillStyle: import("../element/types").FillStyle;
1654
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1621
1655
  currentItemStrokeWidth: number;
1622
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1656
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1623
1657
  currentItemRoughness: number;
1624
1658
  currentItemOpacity: number;
1625
1659
  currentItemFontFamily: number;
1626
1660
  currentItemFontSize: number;
1627
1661
  currentItemTextAlign: string;
1628
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1629
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1662
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1663
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1630
1664
  currentHoveredFontFamily: number | null;
1631
- currentItemRoundness: import("../element/types").StrokeRoundness;
1665
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1632
1666
  currentItemArrowType: "round" | "sharp" | "elbow";
1633
1667
  viewBackgroundColor: string;
1634
1668
  cursorButton: "up" | "down";
@@ -1636,7 +1670,7 @@ export declare const actionZoomToFitSelection: {
1636
1670
  name: string | null;
1637
1671
  isResizing: boolean;
1638
1672
  isRotating: boolean;
1639
- openMenu: "canvas" | "shape" | null;
1673
+ openMenu: "shape" | "canvas" | null;
1640
1674
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1641
1675
  openSidebar: {
1642
1676
  name: string;
@@ -1654,7 +1688,7 @@ export declare const actionZoomToFitSelection: {
1654
1688
  sourceElementId: string;
1655
1689
  } | null;
1656
1690
  defaultSidebarDockedPreference: boolean;
1657
- lastPointerDownWith: import("../element/types").PointerType;
1691
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1658
1692
  selectedElementIds: Readonly<{
1659
1693
  [id: string]: true;
1660
1694
  }>;
@@ -1672,7 +1706,7 @@ export declare const actionZoomToFitSelection: {
1672
1706
  duration?: number | undefined;
1673
1707
  } | null;
1674
1708
  zenModeEnabled: boolean;
1675
- theme: import("../element/types").Theme;
1709
+ theme: import("@excalidraw/element/types").Theme;
1676
1710
  gridSize: number;
1677
1711
  gridStep: number;
1678
1712
  gridModeEnabled: boolean;
@@ -1693,7 +1727,7 @@ export declare const actionZoomToFitSelection: {
1693
1727
  [id: string]: true;
1694
1728
  }> | undefined;
1695
1729
  username?: string | null | undefined;
1696
- userState?: import("../constants").UserIdleState | undefined;
1730
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1697
1731
  color?: {
1698
1732
  background: string;
1699
1733
  stroke: string;
@@ -1710,7 +1744,7 @@ export declare const actionZoomToFitSelection: {
1710
1744
  open: boolean;
1711
1745
  panels: number;
1712
1746
  };
1713
- currentChartType: import("../element/types").ChartType;
1747
+ currentChartType: import("@excalidraw/element/types").ChartType;
1714
1748
  pasteDialog: {
1715
1749
  shown: false;
1716
1750
  data: null;
@@ -1719,13 +1753,13 @@ export declare const actionZoomToFitSelection: {
1719
1753
  data: import("../charts").Spreadsheet;
1720
1754
  };
1721
1755
  pendingImageElementId: string | null;
1722
- showHyperlinkPopup: false | "info" | "editor";
1756
+ showHyperlinkPopup: false | "editor" | "info";
1723
1757
  linkOpacity: number;
1724
1758
  trayModeEnabled: boolean;
1725
1759
  colorPalette?: {
1726
- canvasBackground: import("../colors").ColorPaletteCustom;
1727
- elementBackground: import("../colors").ColorPaletteCustom;
1728
- elementStroke: import("../colors").ColorPaletteCustom;
1760
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1761
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1762
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1729
1763
  topPicks: {
1730
1764
  canvasBackground: [string, string, string, string, string];
1731
1765
  elementStroke: [string, string, string, string, string];
@@ -1742,6 +1776,10 @@ export declare const actionZoomToFitSelection: {
1742
1776
  Bold: string;
1743
1777
  Regular: string;
1744
1778
  };
1779
+ gridDirection: {
1780
+ horizontal: boolean;
1781
+ vertical: boolean;
1782
+ };
1745
1783
  highlightSearchResult: boolean;
1746
1784
  dynamicStyle: {
1747
1785
  [x: string]: string;
@@ -1752,7 +1790,7 @@ export declare const actionZoomToFitSelection: {
1752
1790
  nameColor: string;
1753
1791
  };
1754
1792
  invertBindingBehaviour: boolean;
1755
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1793
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1756
1794
  snapLines: readonly import("../snapping").SnapLine[];
1757
1795
  originSnapOffset: {
1758
1796
  x: number;
@@ -1788,7 +1826,7 @@ export declare const actionZoomToFit: {
1788
1826
  trackEvent: {
1789
1827
  category: "canvas";
1790
1828
  };
1791
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1829
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
1792
1830
  appState: {
1793
1831
  scrollX: number;
1794
1832
  scrollY: number;
@@ -1804,17 +1842,17 @@ export declare const actionZoomToFit: {
1804
1842
  isLoading: boolean;
1805
1843
  errorMessage: import("react").ReactNode;
1806
1844
  activeEmbeddable: {
1807
- element: import("../element/types").NonDeletedExcalidrawElement;
1845
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1808
1846
  state: "active" | "hover";
1809
1847
  } | null;
1810
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1811
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1812
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1813
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1848
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1849
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1850
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1851
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1814
1852
  isBindingEnabled: boolean;
1815
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1816
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1817
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1853
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1854
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1855
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1818
1856
  frameRendering: {
1819
1857
  enabled: boolean;
1820
1858
  name: boolean;
@@ -1822,12 +1860,13 @@ export declare const actionZoomToFit: {
1822
1860
  clip: boolean;
1823
1861
  };
1824
1862
  editingFrame: string | null;
1825
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1826
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1827
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1863
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1864
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1865
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1828
1866
  activeTool: {
1829
1867
  lastActiveTool: import("../types").ActiveTool | null;
1830
1868
  locked: boolean;
1869
+ fromSelection: boolean;
1831
1870
  } & import("../types").ActiveTool;
1832
1871
  penMode: boolean;
1833
1872
  penDetected: boolean;
@@ -1837,18 +1876,18 @@ export declare const actionZoomToFit: {
1837
1876
  exportScale: number;
1838
1877
  currentItemStrokeColor: string;
1839
1878
  currentItemBackgroundColor: string;
1840
- currentItemFillStyle: import("../element/types").FillStyle;
1879
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1841
1880
  currentItemStrokeWidth: number;
1842
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1881
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1843
1882
  currentItemRoughness: number;
1844
1883
  currentItemOpacity: number;
1845
1884
  currentItemFontFamily: number;
1846
1885
  currentItemFontSize: number;
1847
1886
  currentItemTextAlign: string;
1848
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1849
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1887
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1888
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1850
1889
  currentHoveredFontFamily: number | null;
1851
- currentItemRoundness: import("../element/types").StrokeRoundness;
1890
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1852
1891
  currentItemArrowType: "round" | "sharp" | "elbow";
1853
1892
  viewBackgroundColor: string;
1854
1893
  cursorButton: "up" | "down";
@@ -1856,7 +1895,7 @@ export declare const actionZoomToFit: {
1856
1895
  name: string | null;
1857
1896
  isResizing: boolean;
1858
1897
  isRotating: boolean;
1859
- openMenu: "canvas" | "shape" | null;
1898
+ openMenu: "shape" | "canvas" | null;
1860
1899
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1861
1900
  openSidebar: {
1862
1901
  name: string;
@@ -1874,7 +1913,7 @@ export declare const actionZoomToFit: {
1874
1913
  sourceElementId: string;
1875
1914
  } | null;
1876
1915
  defaultSidebarDockedPreference: boolean;
1877
- lastPointerDownWith: import("../element/types").PointerType;
1916
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1878
1917
  selectedElementIds: Readonly<{
1879
1918
  [id: string]: true;
1880
1919
  }>;
@@ -1892,7 +1931,7 @@ export declare const actionZoomToFit: {
1892
1931
  duration?: number | undefined;
1893
1932
  } | null;
1894
1933
  zenModeEnabled: boolean;
1895
- theme: import("../element/types").Theme;
1934
+ theme: import("@excalidraw/element/types").Theme;
1896
1935
  gridSize: number;
1897
1936
  gridStep: number;
1898
1937
  gridModeEnabled: boolean;
@@ -1913,7 +1952,7 @@ export declare const actionZoomToFit: {
1913
1952
  [id: string]: true;
1914
1953
  }> | undefined;
1915
1954
  username?: string | null | undefined;
1916
- userState?: import("../constants").UserIdleState | undefined;
1955
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1917
1956
  color?: {
1918
1957
  background: string;
1919
1958
  stroke: string;
@@ -1930,7 +1969,7 @@ export declare const actionZoomToFit: {
1930
1969
  open: boolean;
1931
1970
  panels: number;
1932
1971
  };
1933
- currentChartType: import("../element/types").ChartType;
1972
+ currentChartType: import("@excalidraw/element/types").ChartType;
1934
1973
  pasteDialog: {
1935
1974
  shown: false;
1936
1975
  data: null;
@@ -1939,13 +1978,13 @@ export declare const actionZoomToFit: {
1939
1978
  data: import("../charts").Spreadsheet;
1940
1979
  };
1941
1980
  pendingImageElementId: string | null;
1942
- showHyperlinkPopup: false | "info" | "editor";
1981
+ showHyperlinkPopup: false | "editor" | "info";
1943
1982
  linkOpacity: number;
1944
1983
  trayModeEnabled: boolean;
1945
1984
  colorPalette?: {
1946
- canvasBackground: import("../colors").ColorPaletteCustom;
1947
- elementBackground: import("../colors").ColorPaletteCustom;
1948
- elementStroke: import("../colors").ColorPaletteCustom;
1985
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1986
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1987
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1949
1988
  topPicks: {
1950
1989
  canvasBackground: [string, string, string, string, string];
1951
1990
  elementStroke: [string, string, string, string, string];
@@ -1962,6 +2001,10 @@ export declare const actionZoomToFit: {
1962
2001
  Bold: string;
1963
2002
  Regular: string;
1964
2003
  };
2004
+ gridDirection: {
2005
+ horizontal: boolean;
2006
+ vertical: boolean;
2007
+ };
1965
2008
  highlightSearchResult: boolean;
1966
2009
  dynamicStyle: {
1967
2010
  [x: string]: string;
@@ -1972,7 +2015,7 @@ export declare const actionZoomToFit: {
1972
2015
  nameColor: string;
1973
2016
  };
1974
2017
  invertBindingBehaviour: boolean;
1975
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2018
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1976
2019
  snapLines: readonly import("../snapping").SnapLine[];
1977
2020
  originSnapOffset: {
1978
2021
  x: number;
@@ -2009,7 +2052,7 @@ export declare const actionToggleTheme: {
2009
2052
  trackEvent: {
2010
2053
  category: "canvas";
2011
2054
  };
2012
- perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2055
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2013
2056
  appState: {
2014
2057
  theme: any;
2015
2058
  contextMenu: {
@@ -2021,17 +2064,17 @@ export declare const actionToggleTheme: {
2021
2064
  isLoading: boolean;
2022
2065
  errorMessage: import("react").ReactNode;
2023
2066
  activeEmbeddable: {
2024
- element: import("../element/types").NonDeletedExcalidrawElement;
2067
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2025
2068
  state: "active" | "hover";
2026
2069
  } | null;
2027
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2028
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2029
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2030
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2070
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2071
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2072
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2073
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2031
2074
  isBindingEnabled: boolean;
2032
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2033
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2034
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2075
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2076
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2077
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2035
2078
  frameRendering: {
2036
2079
  enabled: boolean;
2037
2080
  name: boolean;
@@ -2039,12 +2082,13 @@ export declare const actionToggleTheme: {
2039
2082
  clip: boolean;
2040
2083
  };
2041
2084
  editingFrame: string | null;
2042
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2043
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2044
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2085
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2086
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2087
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2045
2088
  activeTool: {
2046
2089
  lastActiveTool: import("../types").ActiveTool | null;
2047
2090
  locked: boolean;
2091
+ fromSelection: boolean;
2048
2092
  } & import("../types").ActiveTool;
2049
2093
  penMode: boolean;
2050
2094
  penDetected: boolean;
@@ -2054,18 +2098,18 @@ export declare const actionToggleTheme: {
2054
2098
  exportScale: number;
2055
2099
  currentItemStrokeColor: string;
2056
2100
  currentItemBackgroundColor: string;
2057
- currentItemFillStyle: import("../element/types").FillStyle;
2101
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2058
2102
  currentItemStrokeWidth: number;
2059
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2103
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2060
2104
  currentItemRoughness: number;
2061
2105
  currentItemOpacity: number;
2062
2106
  currentItemFontFamily: number;
2063
2107
  currentItemFontSize: number;
2064
2108
  currentItemTextAlign: string;
2065
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2066
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2109
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2110
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2067
2111
  currentHoveredFontFamily: number | null;
2068
- currentItemRoundness: import("../element/types").StrokeRoundness;
2112
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2069
2113
  currentItemArrowType: "round" | "sharp" | "elbow";
2070
2114
  viewBackgroundColor: string;
2071
2115
  scrollX: number;
@@ -2078,7 +2122,7 @@ export declare const actionToggleTheme: {
2078
2122
  zoom: Readonly<{
2079
2123
  value: import("../types").NormalizedZoomValue;
2080
2124
  }>;
2081
- openMenu: "canvas" | "shape" | null;
2125
+ openMenu: "shape" | "canvas" | null;
2082
2126
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2083
2127
  openSidebar: {
2084
2128
  name: string;
@@ -2096,7 +2140,7 @@ export declare const actionToggleTheme: {
2096
2140
  sourceElementId: string;
2097
2141
  } | null;
2098
2142
  defaultSidebarDockedPreference: boolean;
2099
- lastPointerDownWith: import("../element/types").PointerType;
2143
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2100
2144
  selectedElementIds: Readonly<{
2101
2145
  [id: string]: true;
2102
2146
  }>;
@@ -2134,7 +2178,7 @@ export declare const actionToggleTheme: {
2134
2178
  [id: string]: true;
2135
2179
  }> | undefined;
2136
2180
  username?: string | null | undefined;
2137
- userState?: import("../constants").UserIdleState | undefined;
2181
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2138
2182
  color?: {
2139
2183
  background: string;
2140
2184
  stroke: string;
@@ -2151,7 +2195,7 @@ export declare const actionToggleTheme: {
2151
2195
  open: boolean;
2152
2196
  panels: number;
2153
2197
  };
2154
- currentChartType: import("../element/types").ChartType;
2198
+ currentChartType: import("@excalidraw/element/types").ChartType;
2155
2199
  pasteDialog: {
2156
2200
  shown: false;
2157
2201
  data: null;
@@ -2160,13 +2204,13 @@ export declare const actionToggleTheme: {
2160
2204
  data: import("../charts").Spreadsheet;
2161
2205
  };
2162
2206
  pendingImageElementId: string | null;
2163
- showHyperlinkPopup: false | "info" | "editor";
2207
+ showHyperlinkPopup: false | "editor" | "info";
2164
2208
  linkOpacity: number;
2165
2209
  trayModeEnabled: boolean;
2166
2210
  colorPalette?: {
2167
- canvasBackground: import("../colors").ColorPaletteCustom;
2168
- elementBackground: import("../colors").ColorPaletteCustom;
2169
- elementStroke: import("../colors").ColorPaletteCustom;
2211
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2212
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
2213
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
2170
2214
  topPicks: {
2171
2215
  canvasBackground: [string, string, string, string, string];
2172
2216
  elementStroke: [string, string, string, string, string];
@@ -2183,6 +2227,10 @@ export declare const actionToggleTheme: {
2183
2227
  Bold: string;
2184
2228
  Regular: string;
2185
2229
  };
2230
+ gridDirection: {
2231
+ horizontal: boolean;
2232
+ vertical: boolean;
2233
+ };
2186
2234
  highlightSearchResult: boolean;
2187
2235
  dynamicStyle: {
2188
2236
  [x: string]: string;
@@ -2193,7 +2241,7 @@ export declare const actionToggleTheme: {
2193
2241
  nameColor: string;
2194
2242
  };
2195
2243
  invertBindingBehaviour: boolean;
2196
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2244
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2197
2245
  snapLines: readonly import("../snapping").SnapLine[];
2198
2246
  originSnapOffset: {
2199
2247
  x: number;
@@ -2228,7 +2276,7 @@ export declare const actionToggleEraserTool: {
2228
2276
  trackEvent: {
2229
2277
  category: "toolbar";
2230
2278
  };
2231
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
2279
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
2232
2280
  appState: {
2233
2281
  selectedElementIds: {};
2234
2282
  selectedGroupIds: {};
@@ -2236,6 +2284,7 @@ export declare const actionToggleEraserTool: {
2236
2284
  activeTool: {
2237
2285
  lastActiveTool: import("../types").ActiveTool | null;
2238
2286
  locked: boolean;
2287
+ fromSelection: boolean;
2239
2288
  } & import("../types").ActiveTool;
2240
2289
  contextMenu: {
2241
2290
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -2245,14 +2294,14 @@ export declare const actionToggleEraserTool: {
2245
2294
  showWelcomeScreen: boolean;
2246
2295
  isLoading: boolean;
2247
2296
  errorMessage: import("react").ReactNode;
2248
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2249
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2250
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2251
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2297
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2298
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2299
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2300
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2252
2301
  isBindingEnabled: boolean;
2253
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2254
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2255
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2302
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2303
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2304
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2256
2305
  frameRendering: {
2257
2306
  enabled: boolean;
2258
2307
  name: boolean;
@@ -2260,9 +2309,9 @@ export declare const actionToggleEraserTool: {
2260
2309
  clip: boolean;
2261
2310
  };
2262
2311
  editingFrame: string | null;
2263
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2264
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2265
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2312
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2313
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2314
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2266
2315
  penMode: boolean;
2267
2316
  penDetected: boolean;
2268
2317
  exportBackground: boolean;
@@ -2271,18 +2320,18 @@ export declare const actionToggleEraserTool: {
2271
2320
  exportScale: number;
2272
2321
  currentItemStrokeColor: string;
2273
2322
  currentItemBackgroundColor: string;
2274
- currentItemFillStyle: import("../element/types").FillStyle;
2323
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2275
2324
  currentItemStrokeWidth: number;
2276
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2325
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2277
2326
  currentItemRoughness: number;
2278
2327
  currentItemOpacity: number;
2279
2328
  currentItemFontFamily: number;
2280
2329
  currentItemFontSize: number;
2281
2330
  currentItemTextAlign: string;
2282
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2283
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2331
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2332
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2284
2333
  currentHoveredFontFamily: number | null;
2285
- currentItemRoundness: import("../element/types").StrokeRoundness;
2334
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2286
2335
  currentItemArrowType: "round" | "sharp" | "elbow";
2287
2336
  viewBackgroundColor: string;
2288
2337
  scrollX: number;
@@ -2295,7 +2344,7 @@ export declare const actionToggleEraserTool: {
2295
2344
  zoom: Readonly<{
2296
2345
  value: import("../types").NormalizedZoomValue;
2297
2346
  }>;
2298
- openMenu: "canvas" | "shape" | null;
2347
+ openMenu: "shape" | "canvas" | null;
2299
2348
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2300
2349
  openSidebar: {
2301
2350
  name: string;
@@ -2313,7 +2362,7 @@ export declare const actionToggleEraserTool: {
2313
2362
  sourceElementId: string;
2314
2363
  } | null;
2315
2364
  defaultSidebarDockedPreference: boolean;
2316
- lastPointerDownWith: import("../element/types").PointerType;
2365
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2317
2366
  hoveredElementIds: Readonly<{
2318
2367
  [id: string]: true;
2319
2368
  }>;
@@ -2328,7 +2377,7 @@ export declare const actionToggleEraserTool: {
2328
2377
  duration?: number | undefined;
2329
2378
  } | null;
2330
2379
  zenModeEnabled: boolean;
2331
- theme: import("../element/types").Theme;
2380
+ theme: import("@excalidraw/element/types").Theme;
2332
2381
  gridSize: number;
2333
2382
  gridStep: number;
2334
2383
  gridModeEnabled: boolean;
@@ -2346,7 +2395,7 @@ export declare const actionToggleEraserTool: {
2346
2395
  [id: string]: true;
2347
2396
  }> | undefined;
2348
2397
  username?: string | null | undefined;
2349
- userState?: import("../constants").UserIdleState | undefined;
2398
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2350
2399
  color?: {
2351
2400
  background: string;
2352
2401
  stroke: string;
@@ -2363,7 +2412,7 @@ export declare const actionToggleEraserTool: {
2363
2412
  open: boolean;
2364
2413
  panels: number;
2365
2414
  };
2366
- currentChartType: import("../element/types").ChartType;
2415
+ currentChartType: import("@excalidraw/element/types").ChartType;
2367
2416
  pasteDialog: {
2368
2417
  shown: false;
2369
2418
  data: null;
@@ -2372,13 +2421,13 @@ export declare const actionToggleEraserTool: {
2372
2421
  data: import("../charts").Spreadsheet;
2373
2422
  };
2374
2423
  pendingImageElementId: string | null;
2375
- showHyperlinkPopup: false | "info" | "editor";
2424
+ showHyperlinkPopup: false | "editor" | "info";
2376
2425
  linkOpacity: number;
2377
2426
  trayModeEnabled: boolean;
2378
2427
  colorPalette?: {
2379
- canvasBackground: import("../colors").ColorPaletteCustom;
2380
- elementBackground: import("../colors").ColorPaletteCustom;
2381
- elementStroke: import("../colors").ColorPaletteCustom;
2428
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2429
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
2430
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
2382
2431
  topPicks: {
2383
2432
  canvasBackground: [string, string, string, string, string];
2384
2433
  elementStroke: [string, string, string, string, string];
@@ -2395,6 +2444,10 @@ export declare const actionToggleEraserTool: {
2395
2444
  Bold: string;
2396
2445
  Regular: string;
2397
2446
  };
2447
+ gridDirection: {
2448
+ horizontal: boolean;
2449
+ vertical: boolean;
2450
+ };
2398
2451
  highlightSearchResult: boolean;
2399
2452
  dynamicStyle: {
2400
2453
  [x: string]: string;
@@ -2405,7 +2458,7 @@ export declare const actionToggleEraserTool: {
2405
2458
  nameColor: string;
2406
2459
  };
2407
2460
  invertBindingBehaviour: boolean;
2408
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2461
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2409
2462
  snapLines: readonly import("../snapping").SnapLine[];
2410
2463
  originSnapOffset: {
2411
2464
  x: number;
@@ -2433,16 +2486,231 @@ export declare const actionToggleEraserTool: {
2433
2486
  } & {
2434
2487
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2435
2488
  };
2489
+ export declare const actionToggleLassoTool: {
2490
+ name: "toggleLassoTool";
2491
+ label: string;
2492
+ icon: import("react/jsx-runtime").JSX.Element;
2493
+ trackEvent: {
2494
+ category: "toolbar";
2495
+ };
2496
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
2497
+ appState: {
2498
+ selectedElementIds: {};
2499
+ selectedGroupIds: {};
2500
+ activeEmbeddable: null;
2501
+ activeTool: {
2502
+ lastActiveTool: import("../types").ActiveTool | null;
2503
+ locked: boolean;
2504
+ fromSelection: boolean;
2505
+ } & import("../types").ActiveTool;
2506
+ contextMenu: {
2507
+ items: import("../components/ContextMenu").ContextMenuItems;
2508
+ top: number;
2509
+ left: number;
2510
+ } | null;
2511
+ showWelcomeScreen: boolean;
2512
+ isLoading: boolean;
2513
+ errorMessage: import("react").ReactNode;
2514
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2515
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2516
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2517
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2518
+ isBindingEnabled: boolean;
2519
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2520
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2521
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2522
+ frameRendering: {
2523
+ enabled: boolean;
2524
+ name: boolean;
2525
+ outline: boolean;
2526
+ clip: boolean;
2527
+ };
2528
+ editingFrame: string | null;
2529
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2530
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2531
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2532
+ penMode: boolean;
2533
+ penDetected: boolean;
2534
+ exportBackground: boolean;
2535
+ exportEmbedScene: boolean;
2536
+ exportWithDarkMode: boolean;
2537
+ exportScale: number;
2538
+ currentItemStrokeColor: string;
2539
+ currentItemBackgroundColor: string;
2540
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2541
+ currentItemStrokeWidth: number;
2542
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2543
+ currentItemRoughness: number;
2544
+ currentItemOpacity: number;
2545
+ currentItemFontFamily: number;
2546
+ currentItemFontSize: number;
2547
+ currentItemTextAlign: string;
2548
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2549
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2550
+ currentHoveredFontFamily: number | null;
2551
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2552
+ currentItemArrowType: "round" | "sharp" | "elbow";
2553
+ viewBackgroundColor: string;
2554
+ scrollX: number;
2555
+ scrollY: number;
2556
+ cursorButton: "up" | "down";
2557
+ scrolledOutside: boolean;
2558
+ name: string | null;
2559
+ isResizing: boolean;
2560
+ isRotating: boolean;
2561
+ zoom: Readonly<{
2562
+ value: import("../types").NormalizedZoomValue;
2563
+ }>;
2564
+ openMenu: "shape" | "canvas" | null;
2565
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2566
+ openSidebar: {
2567
+ name: string;
2568
+ tab?: string | undefined;
2569
+ } | null;
2570
+ openDialog: {
2571
+ name: "help" | "imageExport" | "jsonExport";
2572
+ } | {
2573
+ name: "ttd";
2574
+ tab: "mermaid" | "text-to-diagram";
2575
+ } | {
2576
+ name: "commandPalette";
2577
+ } | {
2578
+ name: "elementLinkSelector";
2579
+ sourceElementId: string;
2580
+ } | null;
2581
+ defaultSidebarDockedPreference: boolean;
2582
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2583
+ hoveredElementIds: Readonly<{
2584
+ [id: string]: true;
2585
+ }>;
2586
+ previousSelectedElementIds: {
2587
+ [id: string]: true;
2588
+ };
2589
+ selectedElementsAreBeingDragged: boolean;
2590
+ shouldCacheIgnoreZoom: boolean;
2591
+ toast: {
2592
+ message: string;
2593
+ closable?: boolean | undefined;
2594
+ duration?: number | undefined;
2595
+ } | null;
2596
+ zenModeEnabled: boolean;
2597
+ theme: import("@excalidraw/element/types").Theme;
2598
+ gridSize: number;
2599
+ gridStep: number;
2600
+ gridModeEnabled: boolean;
2601
+ viewModeEnabled: boolean;
2602
+ editingGroupId: string | null;
2603
+ width: number;
2604
+ height: number;
2605
+ offsetTop: number;
2606
+ offsetLeft: number;
2607
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
2608
+ collaborators: Map<import("../types").SocketId, Readonly<{
2609
+ pointer?: import("../types").CollaboratorPointer | undefined;
2610
+ button?: "up" | "down" | undefined;
2611
+ selectedElementIds?: Readonly<{
2612
+ [id: string]: true;
2613
+ }> | undefined;
2614
+ username?: string | null | undefined;
2615
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2616
+ color?: {
2617
+ background: string;
2618
+ stroke: string;
2619
+ } | undefined;
2620
+ avatarUrl?: string | undefined;
2621
+ id?: string | undefined;
2622
+ socketId?: import("../types").SocketId | undefined;
2623
+ isCurrentUser?: boolean | undefined;
2624
+ isInCall?: boolean | undefined;
2625
+ isSpeaking?: boolean | undefined;
2626
+ isMuted?: boolean | undefined;
2627
+ }>>;
2628
+ stats: {
2629
+ open: boolean;
2630
+ panels: number;
2631
+ };
2632
+ currentChartType: import("@excalidraw/element/types").ChartType;
2633
+ pasteDialog: {
2634
+ shown: false;
2635
+ data: null;
2636
+ } | {
2637
+ shown: true;
2638
+ data: import("../charts").Spreadsheet;
2639
+ };
2640
+ pendingImageElementId: string | null;
2641
+ showHyperlinkPopup: false | "editor" | "info";
2642
+ linkOpacity: number;
2643
+ trayModeEnabled: boolean;
2644
+ colorPalette?: {
2645
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2646
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
2647
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
2648
+ topPicks: {
2649
+ canvasBackground: [string, string, string, string, string];
2650
+ elementStroke: [string, string, string, string, string];
2651
+ elementBackground: [string, string, string, string, string];
2652
+ };
2653
+ } | undefined;
2654
+ allowWheelZoom?: boolean | undefined;
2655
+ allowPinchZoom?: boolean | undefined;
2656
+ pinnedScripts?: string[] | undefined;
2657
+ customPens?: any[] | undefined;
2658
+ currentStrokeOptions?: any;
2659
+ resetCustomPen?: any;
2660
+ gridColor: {
2661
+ Bold: string;
2662
+ Regular: string;
2663
+ };
2664
+ gridDirection: {
2665
+ horizontal: boolean;
2666
+ vertical: boolean;
2667
+ };
2668
+ highlightSearchResult: boolean;
2669
+ dynamicStyle: {
2670
+ [x: string]: string;
2671
+ };
2672
+ frameColor: {
2673
+ stroke: string;
2674
+ fill: string;
2675
+ nameColor: string;
2676
+ };
2677
+ invertBindingBehaviour: boolean;
2678
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2679
+ snapLines: readonly import("../snapping").SnapLine[];
2680
+ originSnapOffset: {
2681
+ x: number;
2682
+ y: number;
2683
+ } | null;
2684
+ objectsSnapModeEnabled: boolean;
2685
+ userToFollow: import("../types").UserToFollow | null;
2686
+ followedBy: Set<import("../types").SocketId>;
2687
+ isCropping: boolean;
2688
+ croppingElementId: string | null;
2689
+ searchMatches: readonly {
2690
+ id: string;
2691
+ focus: boolean;
2692
+ matchedLines: {
2693
+ offsetX: number;
2694
+ offsetY: number;
2695
+ width: number;
2696
+ height: number;
2697
+ }[];
2698
+ }[];
2699
+ };
2700
+ captureUpdate: "NEVER";
2701
+ };
2702
+ } & {
2703
+ keyTest?: undefined;
2704
+ };
2436
2705
  export declare const actionToggleHandTool: {
2437
2706
  name: "toggleHandTool";
2438
2707
  label: string;
2439
- paletteName: string;
2440
2708
  trackEvent: {
2441
2709
  category: "toolbar";
2442
2710
  };
2443
2711
  icon: import("react/jsx-runtime").JSX.Element;
2444
2712
  viewMode: false;
2445
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
2713
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
2446
2714
  appState: {
2447
2715
  selectedElementIds: {};
2448
2716
  selectedGroupIds: {};
@@ -2450,6 +2718,7 @@ export declare const actionToggleHandTool: {
2450
2718
  activeTool: {
2451
2719
  lastActiveTool: import("../types").ActiveTool | null;
2452
2720
  locked: boolean;
2721
+ fromSelection: boolean;
2453
2722
  } & import("../types").ActiveTool;
2454
2723
  contextMenu: {
2455
2724
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -2459,14 +2728,14 @@ export declare const actionToggleHandTool: {
2459
2728
  showWelcomeScreen: boolean;
2460
2729
  isLoading: boolean;
2461
2730
  errorMessage: import("react").ReactNode;
2462
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2463
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2464
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2465
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2731
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2732
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2733
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2734
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2466
2735
  isBindingEnabled: boolean;
2467
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2468
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2469
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2736
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2737
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2738
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2470
2739
  frameRendering: {
2471
2740
  enabled: boolean;
2472
2741
  name: boolean;
@@ -2474,9 +2743,9 @@ export declare const actionToggleHandTool: {
2474
2743
  clip: boolean;
2475
2744
  };
2476
2745
  editingFrame: string | null;
2477
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2478
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2479
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2746
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2747
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2748
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2480
2749
  penMode: boolean;
2481
2750
  penDetected: boolean;
2482
2751
  exportBackground: boolean;
@@ -2485,18 +2754,18 @@ export declare const actionToggleHandTool: {
2485
2754
  exportScale: number;
2486
2755
  currentItemStrokeColor: string;
2487
2756
  currentItemBackgroundColor: string;
2488
- currentItemFillStyle: import("../element/types").FillStyle;
2757
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2489
2758
  currentItemStrokeWidth: number;
2490
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2759
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2491
2760
  currentItemRoughness: number;
2492
2761
  currentItemOpacity: number;
2493
2762
  currentItemFontFamily: number;
2494
2763
  currentItemFontSize: number;
2495
2764
  currentItemTextAlign: string;
2496
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2497
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2765
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2766
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2498
2767
  currentHoveredFontFamily: number | null;
2499
- currentItemRoundness: import("../element/types").StrokeRoundness;
2768
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2500
2769
  currentItemArrowType: "round" | "sharp" | "elbow";
2501
2770
  viewBackgroundColor: string;
2502
2771
  scrollX: number;
@@ -2509,7 +2778,7 @@ export declare const actionToggleHandTool: {
2509
2778
  zoom: Readonly<{
2510
2779
  value: import("../types").NormalizedZoomValue;
2511
2780
  }>;
2512
- openMenu: "canvas" | "shape" | null;
2781
+ openMenu: "shape" | "canvas" | null;
2513
2782
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2514
2783
  openSidebar: {
2515
2784
  name: string;
@@ -2527,7 +2796,7 @@ export declare const actionToggleHandTool: {
2527
2796
  sourceElementId: string;
2528
2797
  } | null;
2529
2798
  defaultSidebarDockedPreference: boolean;
2530
- lastPointerDownWith: import("../element/types").PointerType;
2799
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2531
2800
  hoveredElementIds: Readonly<{
2532
2801
  [id: string]: true;
2533
2802
  }>;
@@ -2542,7 +2811,7 @@ export declare const actionToggleHandTool: {
2542
2811
  duration?: number | undefined;
2543
2812
  } | null;
2544
2813
  zenModeEnabled: boolean;
2545
- theme: import("../element/types").Theme;
2814
+ theme: import("@excalidraw/element/types").Theme;
2546
2815
  gridSize: number;
2547
2816
  gridStep: number;
2548
2817
  gridModeEnabled: boolean;
@@ -2560,7 +2829,7 @@ export declare const actionToggleHandTool: {
2560
2829
  [id: string]: true;
2561
2830
  }> | undefined;
2562
2831
  username?: string | null | undefined;
2563
- userState?: import("../constants").UserIdleState | undefined;
2832
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2564
2833
  color?: {
2565
2834
  background: string;
2566
2835
  stroke: string;
@@ -2577,7 +2846,7 @@ export declare const actionToggleHandTool: {
2577
2846
  open: boolean;
2578
2847
  panels: number;
2579
2848
  };
2580
- currentChartType: import("../element/types").ChartType;
2849
+ currentChartType: import("@excalidraw/element/types").ChartType;
2581
2850
  pasteDialog: {
2582
2851
  shown: false;
2583
2852
  data: null;
@@ -2586,13 +2855,13 @@ export declare const actionToggleHandTool: {
2586
2855
  data: import("../charts").Spreadsheet;
2587
2856
  };
2588
2857
  pendingImageElementId: string | null;
2589
- showHyperlinkPopup: false | "info" | "editor";
2858
+ showHyperlinkPopup: false | "editor" | "info";
2590
2859
  linkOpacity: number;
2591
2860
  trayModeEnabled: boolean;
2592
2861
  colorPalette?: {
2593
- canvasBackground: import("../colors").ColorPaletteCustom;
2594
- elementBackground: import("../colors").ColorPaletteCustom;
2595
- elementStroke: import("../colors").ColorPaletteCustom;
2862
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
2863
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
2864
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
2596
2865
  topPicks: {
2597
2866
  canvasBackground: [string, string, string, string, string];
2598
2867
  elementStroke: [string, string, string, string, string];
@@ -2609,6 +2878,10 @@ export declare const actionToggleHandTool: {
2609
2878
  Bold: string;
2610
2879
  Regular: string;
2611
2880
  };
2881
+ gridDirection: {
2882
+ horizontal: boolean;
2883
+ vertical: boolean;
2884
+ };
2612
2885
  highlightSearchResult: boolean;
2613
2886
  dynamicStyle: {
2614
2887
  [x: string]: string;
@@ -2619,7 +2892,7 @@ export declare const actionToggleHandTool: {
2619
2892
  nameColor: string;
2620
2893
  };
2621
2894
  invertBindingBehaviour: boolean;
2622
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2895
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2623
2896
  snapLines: readonly import("../snapping").SnapLine[];
2624
2897
  originSnapOffset: {
2625
2898
  x: number;
@@ -2653,7 +2926,7 @@ export declare const actionToggleLaserPointer: {
2653
2926
  trackEvent: {
2654
2927
  category: "menu";
2655
2928
  };
2656
- perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties): {
2929
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties): {
2657
2930
  appState: {
2658
2931
  selectedElementIds: {};
2659
2932
  selectedGroupIds: {};
@@ -2661,6 +2934,7 @@ export declare const actionToggleLaserPointer: {
2661
2934
  activeTool: {
2662
2935
  lastActiveTool: import("../types").ActiveTool | null;
2663
2936
  locked: boolean;
2937
+ fromSelection: boolean;
2664
2938
  } & import("../types").ActiveTool;
2665
2939
  contextMenu: {
2666
2940
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -2670,14 +2944,14 @@ export declare const actionToggleLaserPointer: {
2670
2944
  showWelcomeScreen: boolean;
2671
2945
  isLoading: boolean;
2672
2946
  errorMessage: import("react").ReactNode;
2673
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2674
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2675
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2676
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2947
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2948
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2949
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2950
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2677
2951
  isBindingEnabled: boolean;
2678
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2679
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2680
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2952
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2953
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2954
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2681
2955
  frameRendering: {
2682
2956
  enabled: boolean;
2683
2957
  name: boolean;
@@ -2685,9 +2959,9 @@ export declare const actionToggleLaserPointer: {
2685
2959
  clip: boolean;
2686
2960
  };
2687
2961
  editingFrame: string | null;
2688
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2689
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2690
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
2962
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2963
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2964
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2691
2965
  penMode: boolean;
2692
2966
  penDetected: boolean;
2693
2967
  exportBackground: boolean;
@@ -2696,18 +2970,18 @@ export declare const actionToggleLaserPointer: {
2696
2970
  exportScale: number;
2697
2971
  currentItemStrokeColor: string;
2698
2972
  currentItemBackgroundColor: string;
2699
- currentItemFillStyle: import("../element/types").FillStyle;
2973
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2700
2974
  currentItemStrokeWidth: number;
2701
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2975
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2702
2976
  currentItemRoughness: number;
2703
2977
  currentItemOpacity: number;
2704
2978
  currentItemFontFamily: number;
2705
2979
  currentItemFontSize: number;
2706
2980
  currentItemTextAlign: string;
2707
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2708
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
2981
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2982
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2709
2983
  currentHoveredFontFamily: number | null;
2710
- currentItemRoundness: import("../element/types").StrokeRoundness;
2984
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2711
2985
  currentItemArrowType: "round" | "sharp" | "elbow";
2712
2986
  viewBackgroundColor: string;
2713
2987
  scrollX: number;
@@ -2720,7 +2994,7 @@ export declare const actionToggleLaserPointer: {
2720
2994
  zoom: Readonly<{
2721
2995
  value: import("../types").NormalizedZoomValue;
2722
2996
  }>;
2723
- openMenu: "canvas" | "shape" | null;
2997
+ openMenu: "shape" | "canvas" | null;
2724
2998
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2725
2999
  openSidebar: {
2726
3000
  name: string;
@@ -2738,7 +3012,7 @@ export declare const actionToggleLaserPointer: {
2738
3012
  sourceElementId: string;
2739
3013
  } | null;
2740
3014
  defaultSidebarDockedPreference: boolean;
2741
- lastPointerDownWith: import("../element/types").PointerType;
3015
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2742
3016
  hoveredElementIds: Readonly<{
2743
3017
  [id: string]: true;
2744
3018
  }>;
@@ -2753,7 +3027,7 @@ export declare const actionToggleLaserPointer: {
2753
3027
  duration?: number | undefined;
2754
3028
  } | null;
2755
3029
  zenModeEnabled: boolean;
2756
- theme: import("../element/types").Theme;
3030
+ theme: import("@excalidraw/element/types").Theme;
2757
3031
  gridSize: number;
2758
3032
  gridStep: number;
2759
3033
  gridModeEnabled: boolean;
@@ -2771,7 +3045,7 @@ export declare const actionToggleLaserPointer: {
2771
3045
  [id: string]: true;
2772
3046
  }> | undefined;
2773
3047
  username?: string | null | undefined;
2774
- userState?: import("../constants").UserIdleState | undefined;
3048
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2775
3049
  color?: {
2776
3050
  background: string;
2777
3051
  stroke: string;
@@ -2788,7 +3062,7 @@ export declare const actionToggleLaserPointer: {
2788
3062
  open: boolean;
2789
3063
  panels: number;
2790
3064
  };
2791
- currentChartType: import("../element/types").ChartType;
3065
+ currentChartType: import("@excalidraw/element/types").ChartType;
2792
3066
  pasteDialog: {
2793
3067
  shown: false;
2794
3068
  data: null;
@@ -2797,13 +3071,13 @@ export declare const actionToggleLaserPointer: {
2797
3071
  data: import("../charts").Spreadsheet;
2798
3072
  };
2799
3073
  pendingImageElementId: string | null;
2800
- showHyperlinkPopup: false | "info" | "editor";
3074
+ showHyperlinkPopup: false | "editor" | "info";
2801
3075
  linkOpacity: number;
2802
3076
  trayModeEnabled: boolean;
2803
3077
  colorPalette?: {
2804
- canvasBackground: import("../colors").ColorPaletteCustom;
2805
- elementBackground: import("../colors").ColorPaletteCustom;
2806
- elementStroke: import("../colors").ColorPaletteCustom;
3078
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
3079
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
3080
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
2807
3081
  topPicks: {
2808
3082
  canvasBackground: [string, string, string, string, string];
2809
3083
  elementStroke: [string, string, string, string, string];
@@ -2820,6 +3094,10 @@ export declare const actionToggleLaserPointer: {
2820
3094
  Bold: string;
2821
3095
  Regular: string;
2822
3096
  };
3097
+ gridDirection: {
3098
+ horizontal: boolean;
3099
+ vertical: boolean;
3100
+ };
2823
3101
  highlightSearchResult: boolean;
2824
3102
  dynamicStyle: {
2825
3103
  [x: string]: string;
@@ -2830,7 +3108,7 @@ export declare const actionToggleLaserPointer: {
2830
3108
  nameColor: string;
2831
3109
  };
2832
3110
  invertBindingBehaviour: boolean;
2833
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
3111
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2834
3112
  snapLines: readonly import("../snapping").SnapLine[];
2835
3113
  originSnapOffset: {
2836
3114
  x: number;
@@ -2876,17 +3154,17 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2876
3154
  isLoading: boolean;
2877
3155
  errorMessage: import("react").ReactNode;
2878
3156
  activeEmbeddable: {
2879
- element: import("../element/types").NonDeletedExcalidrawElement;
3157
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2880
3158
  state: "active" | "hover";
2881
3159
  } | null;
2882
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2883
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2884
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
2885
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
3160
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
3161
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3162
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
3163
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2886
3164
  isBindingEnabled: boolean;
2887
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2888
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2889
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
3165
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
3166
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
3167
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2890
3168
  frameRendering: {
2891
3169
  enabled: boolean;
2892
3170
  name: boolean;
@@ -2894,12 +3172,13 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2894
3172
  clip: boolean;
2895
3173
  };
2896
3174
  editingFrame: string | null;
2897
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2898
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2899
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
3175
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
3176
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3177
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
2900
3178
  activeTool: {
2901
3179
  lastActiveTool: import("../types").ActiveTool | null;
2902
3180
  locked: boolean;
3181
+ fromSelection: boolean;
2903
3182
  } & import("../types").ActiveTool;
2904
3183
  penMode: boolean;
2905
3184
  penDetected: boolean;
@@ -2909,18 +3188,18 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2909
3188
  exportScale: number;
2910
3189
  currentItemStrokeColor: string;
2911
3190
  currentItemBackgroundColor: string;
2912
- currentItemFillStyle: import("../element/types").FillStyle;
3191
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2913
3192
  currentItemStrokeWidth: number;
2914
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
3193
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2915
3194
  currentItemRoughness: number;
2916
3195
  currentItemOpacity: number;
2917
3196
  currentItemFontFamily: number;
2918
3197
  currentItemFontSize: number;
2919
3198
  currentItemTextAlign: string;
2920
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
2921
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
3199
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
3200
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2922
3201
  currentHoveredFontFamily: number | null;
2923
- currentItemRoundness: import("../element/types").StrokeRoundness;
3202
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2924
3203
  currentItemArrowType: "round" | "sharp" | "elbow";
2925
3204
  viewBackgroundColor: string;
2926
3205
  cursorButton: "up" | "down";
@@ -2928,7 +3207,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2928
3207
  name: string | null;
2929
3208
  isResizing: boolean;
2930
3209
  isRotating: boolean;
2931
- openMenu: "canvas" | "shape" | null;
3210
+ openMenu: "shape" | "canvas" | null;
2932
3211
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2933
3212
  openSidebar: {
2934
3213
  name: string;
@@ -2946,7 +3225,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2946
3225
  sourceElementId: string;
2947
3226
  } | null;
2948
3227
  defaultSidebarDockedPreference: boolean;
2949
- lastPointerDownWith: import("../element/types").PointerType;
3228
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2950
3229
  selectedElementIds: Readonly<{
2951
3230
  [id: string]: true;
2952
3231
  }>;
@@ -2964,7 +3243,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2964
3243
  duration?: number | undefined;
2965
3244
  } | null;
2966
3245
  zenModeEnabled: boolean;
2967
- theme: import("../element/types").Theme;
3246
+ theme: import("@excalidraw/element/types").Theme;
2968
3247
  gridSize: number;
2969
3248
  gridStep: number;
2970
3249
  gridModeEnabled: boolean;
@@ -2985,7 +3264,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2985
3264
  [id: string]: true;
2986
3265
  }> | undefined;
2987
3266
  username?: string | null | undefined;
2988
- userState?: import("../constants").UserIdleState | undefined;
3267
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2989
3268
  color?: {
2990
3269
  background: string;
2991
3270
  stroke: string;
@@ -3002,7 +3281,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3002
3281
  open: boolean;
3003
3282
  panels: number;
3004
3283
  };
3005
- currentChartType: import("../element/types").ChartType;
3284
+ currentChartType: import("@excalidraw/element/types").ChartType;
3006
3285
  pasteDialog: {
3007
3286
  shown: false;
3008
3287
  data: null;
@@ -3011,13 +3290,13 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3011
3290
  data: import("../charts").Spreadsheet;
3012
3291
  };
3013
3292
  pendingImageElementId: string | null;
3014
- showHyperlinkPopup: false | "info" | "editor";
3293
+ showHyperlinkPopup: false | "editor" | "info";
3015
3294
  linkOpacity: number;
3016
3295
  trayModeEnabled: boolean;
3017
3296
  colorPalette?: {
3018
- canvasBackground: import("../colors").ColorPaletteCustom;
3019
- elementBackground: import("../colors").ColorPaletteCustom;
3020
- elementStroke: import("../colors").ColorPaletteCustom;
3297
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
3298
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
3299
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
3021
3300
  topPicks: {
3022
3301
  canvasBackground: [string, string, string, string, string];
3023
3302
  elementStroke: [string, string, string, string, string];
@@ -3034,6 +3313,10 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3034
3313
  Bold: string;
3035
3314
  Regular: string;
3036
3315
  };
3316
+ gridDirection: {
3317
+ horizontal: boolean;
3318
+ vertical: boolean;
3319
+ };
3037
3320
  highlightSearchResult: boolean;
3038
3321
  dynamicStyle: {
3039
3322
  [x: string]: string;
@@ -3044,7 +3327,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3044
3327
  nameColor: string;
3045
3328
  };
3046
3329
  invertBindingBehaviour: boolean;
3047
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
3330
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
3048
3331
  snapLines: readonly import("../snapping").SnapLine[];
3049
3332
  originSnapOffset: {
3050
3333
  x: number;