@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,4 +1,4 @@
1
- import type { ExcalidrawElement } from "../element/types";
1
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
2
  import type { AppClassProperties, AppState } from "../types";
3
3
  export declare const distributeHorizontally: {
4
4
  name: "distributeHorizontally";
@@ -6,7 +6,7 @@ export declare const distributeHorizontally: {
6
6
  trackEvent: {
7
7
  category: "element";
8
8
  };
9
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
10
  appState: Readonly<AppState>;
11
11
  elements: ExcalidrawElement[];
12
12
  captureUpdate: "IMMEDIATELY";
@@ -22,7 +22,7 @@ export declare const distributeVertically: {
22
22
  trackEvent: {
23
23
  category: "element";
24
24
  };
25
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
25
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
26
26
  appState: Readonly<AppState>;
27
27
  elements: ExcalidrawElement[];
28
28
  captureUpdate: "IMMEDIATELY";
@@ -1,5 +1,3 @@
1
- import type { ExcalidrawElement } from "../element/types";
2
- import type { AppState } from "../types";
3
1
  export declare const actionDuplicateSelection: {
4
2
  name: "duplicateSelection";
5
3
  label: string;
@@ -7,12 +5,10 @@ export declare const actionDuplicateSelection: {
7
5
  trackEvent: {
8
6
  category: "element";
9
7
  };
10
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
8
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
9
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
10
+ appState: import("../types").AppState;
11
11
  captureUpdate: "IMMEDIATELY";
12
- elements?: readonly ExcalidrawElement[] | null | undefined;
13
- appState?: Partial<AppState> | null | undefined;
14
- files?: import("../types").BinaryFiles | null | undefined;
15
- replaceFiles?: boolean | undefined;
16
12
  };
17
13
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
18
14
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,7 +5,7 @@ export declare const actionCopyElementLink: {
5
5
  trackEvent: {
6
6
  category: "element";
7
7
  };
8
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
8
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
9
9
  appState: {
10
10
  toast: {
11
11
  message: string;
@@ -17,11 +17,11 @@ export declare const actionCopyElementLink: {
17
17
  app?: undefined;
18
18
  } | {
19
19
  appState: Readonly<import("../types").AppState>;
20
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
20
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
21
21
  app: import("../types").AppClassProperties;
22
22
  captureUpdate: "EVENTUALLY";
23
23
  }>;
24
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => false;
24
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => false;
25
25
  } & {
26
26
  keyTest?: undefined;
27
27
  };
@@ -29,8 +29,8 @@ export declare const actionLinkToElement: {
29
29
  name: "linkToElement";
30
30
  label: string;
31
31
  icon: import("react/jsx-runtime").JSX.Element;
32
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
33
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
32
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
33
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
34
34
  appState: Readonly<import("../types").AppState>;
35
35
  app: import("../types").AppClassProperties;
36
36
  captureUpdate: "EVENTUALLY";
@@ -49,17 +49,17 @@ export declare const actionLinkToElement: {
49
49
  isLoading: boolean;
50
50
  errorMessage: import("react").ReactNode;
51
51
  activeEmbeddable: {
52
- element: import("../element/types").NonDeletedExcalidrawElement;
52
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
53
53
  state: "active" | "hover";
54
54
  } | null;
55
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
56
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
57
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
58
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
55
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
56
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
57
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
58
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
59
59
  isBindingEnabled: boolean;
60
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
61
- suggestedBindings: import("../element/binding").SuggestedBinding[];
62
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
60
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
61
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
62
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
63
63
  frameRendering: {
64
64
  enabled: boolean;
65
65
  name: boolean;
@@ -67,12 +67,13 @@ export declare const actionLinkToElement: {
67
67
  clip: boolean;
68
68
  };
69
69
  editingFrame: string | null;
70
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
71
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
72
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
70
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
71
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
72
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
73
73
  activeTool: {
74
74
  lastActiveTool: import("../types").ActiveTool | null;
75
75
  locked: boolean;
76
+ fromSelection: boolean;
76
77
  } & import("../types").ActiveTool;
77
78
  penMode: boolean;
78
79
  penDetected: boolean;
@@ -82,18 +83,18 @@ export declare const actionLinkToElement: {
82
83
  exportScale: number;
83
84
  currentItemStrokeColor: string;
84
85
  currentItemBackgroundColor: string;
85
- currentItemFillStyle: import("../element/types").FillStyle;
86
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
86
87
  currentItemStrokeWidth: number;
87
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
88
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
88
89
  currentItemRoughness: number;
89
90
  currentItemOpacity: number;
90
91
  currentItemFontFamily: number;
91
92
  currentItemFontSize: number;
92
93
  currentItemTextAlign: string;
93
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
94
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
94
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
95
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
95
96
  currentHoveredFontFamily: number | null;
96
- currentItemRoundness: import("../element/types").StrokeRoundness;
97
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
97
98
  currentItemArrowType: "round" | "sharp" | "elbow";
98
99
  viewBackgroundColor: string;
99
100
  scrollX: number;
@@ -106,14 +107,14 @@ export declare const actionLinkToElement: {
106
107
  zoom: Readonly<{
107
108
  value: import("../types").NormalizedZoomValue;
108
109
  }>;
109
- openMenu: "canvas" | "shape" | null;
110
+ openMenu: "shape" | "canvas" | null;
110
111
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
111
112
  openSidebar: {
112
113
  name: string;
113
114
  tab?: string | undefined;
114
115
  } | null;
115
116
  defaultSidebarDockedPreference: boolean;
116
- lastPointerDownWith: import("../element/types").PointerType;
117
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
117
118
  selectedElementIds: Readonly<{
118
119
  [id: string]: true;
119
120
  }>;
@@ -131,7 +132,7 @@ export declare const actionLinkToElement: {
131
132
  duration?: number | undefined;
132
133
  } | null;
133
134
  zenModeEnabled: boolean;
134
- theme: import("../element/types").Theme;
135
+ theme: import("@excalidraw/element/types").Theme;
135
136
  gridSize: number;
136
137
  gridStep: number;
137
138
  gridModeEnabled: boolean;
@@ -152,7 +153,7 @@ export declare const actionLinkToElement: {
152
153
  [id: string]: true;
153
154
  }> | undefined;
154
155
  username?: string | null | undefined;
155
- userState?: import("..").UserIdleState | undefined;
156
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
156
157
  color?: {
157
158
  background: string;
158
159
  stroke: string;
@@ -169,7 +170,7 @@ export declare const actionLinkToElement: {
169
170
  open: boolean;
170
171
  panels: number;
171
172
  };
172
- currentChartType: import("../element/types").ChartType;
173
+ currentChartType: import("@excalidraw/element/types").ChartType;
173
174
  pasteDialog: {
174
175
  shown: false;
175
176
  data: null;
@@ -178,13 +179,13 @@ export declare const actionLinkToElement: {
178
179
  data: import("../charts").Spreadsheet;
179
180
  };
180
181
  pendingImageElementId: string | null;
181
- showHyperlinkPopup: false | "info" | "editor";
182
+ showHyperlinkPopup: false | "editor" | "info";
182
183
  linkOpacity: number;
183
184
  trayModeEnabled: boolean;
184
185
  colorPalette?: {
185
- canvasBackground: import("../colors").ColorPaletteCustom;
186
- elementBackground: import("../colors").ColorPaletteCustom;
187
- elementStroke: import("../colors").ColorPaletteCustom;
186
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
187
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
188
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
188
189
  topPicks: {
189
190
  canvasBackground: [string, string, string, string, string];
190
191
  elementStroke: [string, string, string, string, string];
@@ -201,6 +202,10 @@ export declare const actionLinkToElement: {
201
202
  Bold: string;
202
203
  Regular: string;
203
204
  };
205
+ gridDirection: {
206
+ horizontal: boolean;
207
+ vertical: boolean;
208
+ };
204
209
  highlightSearchResult: boolean;
205
210
  dynamicStyle: {
206
211
  [x: string]: string;
@@ -211,7 +216,7 @@ export declare const actionLinkToElement: {
211
216
  nameColor: string;
212
217
  };
213
218
  invertBindingBehaviour: boolean;
214
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
219
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
215
220
  snapLines: readonly import("../snapping").SnapLine[];
216
221
  originSnapOffset: {
217
222
  x: number;
@@ -237,7 +242,7 @@ export declare const actionLinkToElement: {
237
242
  elements?: undefined;
238
243
  app?: undefined;
239
244
  };
240
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => false;
245
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => false;
241
246
  trackEvent: false;
242
247
  } & {
243
248
  keyTest?: undefined;
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawElement } from "../element/types";
1
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
2
  export declare const actionToggleElementLock: {
3
3
  name: "toggleElementLock";
4
4
  label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
@@ -7,10 +7,10 @@ export declare const actionToggleElementLock: {
7
7
  category: "element";
8
8
  };
9
9
  predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
10
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
11
- elements: import("../element/types").OrderedExcalidrawElement[];
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
11
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
12
12
  appState: {
13
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
13
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
14
14
  contextMenu: {
15
15
  items: import("../components/ContextMenu").ContextMenuItems;
16
16
  top: number;
@@ -20,17 +20,17 @@ export declare const actionToggleElementLock: {
20
20
  isLoading: boolean;
21
21
  errorMessage: import("react").ReactNode;
22
22
  activeEmbeddable: {
23
- element: import("../element/types").NonDeletedExcalidrawElement;
23
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
24
  state: "active" | "hover";
25
25
  } | null;
26
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
27
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
29
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("../element/binding").SuggestedBinding[];
33
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
31
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
33
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
34
  frameRendering: {
35
35
  enabled: boolean;
36
36
  name: boolean;
@@ -38,12 +38,13 @@ export declare const actionToggleElementLock: {
38
38
  clip: boolean;
39
39
  };
40
40
  editingFrame: string | null;
41
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
42
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
41
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
44
44
  activeTool: {
45
45
  lastActiveTool: import("../types").ActiveTool | null;
46
46
  locked: boolean;
47
+ fromSelection: boolean;
47
48
  } & import("../types").ActiveTool;
48
49
  penMode: boolean;
49
50
  penDetected: boolean;
@@ -53,18 +54,18 @@ export declare const actionToggleElementLock: {
53
54
  exportScale: number;
54
55
  currentItemStrokeColor: string;
55
56
  currentItemBackgroundColor: string;
56
- currentItemFillStyle: import("../element/types").FillStyle;
57
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
57
58
  currentItemStrokeWidth: number;
58
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
59
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
59
60
  currentItemRoughness: number;
60
61
  currentItemOpacity: number;
61
62
  currentItemFontFamily: number;
62
63
  currentItemFontSize: number;
63
64
  currentItemTextAlign: string;
64
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
65
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
67
  currentHoveredFontFamily: number | null;
67
- currentItemRoundness: import("../element/types").StrokeRoundness;
68
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
68
69
  currentItemArrowType: "round" | "sharp" | "elbow";
69
70
  viewBackgroundColor: string;
70
71
  scrollX: number;
@@ -77,7 +78,7 @@ export declare const actionToggleElementLock: {
77
78
  zoom: Readonly<{
78
79
  value: import("../types").NormalizedZoomValue;
79
80
  }>;
80
- openMenu: "canvas" | "shape" | null;
81
+ openMenu: "shape" | "canvas" | null;
81
82
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
83
  openSidebar: {
83
84
  name: string;
@@ -95,7 +96,7 @@ export declare const actionToggleElementLock: {
95
96
  sourceElementId: string;
96
97
  } | null;
97
98
  defaultSidebarDockedPreference: boolean;
98
- lastPointerDownWith: import("../element/types").PointerType;
99
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
99
100
  selectedElementIds: Readonly<{
100
101
  [id: string]: true;
101
102
  }>;
@@ -113,7 +114,7 @@ export declare const actionToggleElementLock: {
113
114
  duration?: number | undefined;
114
115
  } | null;
115
116
  zenModeEnabled: boolean;
116
- theme: import("../element/types").Theme;
117
+ theme: import("@excalidraw/element/types").Theme;
117
118
  gridSize: number;
118
119
  gridStep: number;
119
120
  gridModeEnabled: boolean;
@@ -134,7 +135,7 @@ export declare const actionToggleElementLock: {
134
135
  [id: string]: true;
135
136
  }> | undefined;
136
137
  username?: string | null | undefined;
137
- userState?: import("..").UserIdleState | undefined;
138
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
138
139
  color?: {
139
140
  background: string;
140
141
  stroke: string;
@@ -151,7 +152,7 @@ export declare const actionToggleElementLock: {
151
152
  open: boolean;
152
153
  panels: number;
153
154
  };
154
- currentChartType: import("../element/types").ChartType;
155
+ currentChartType: import("@excalidraw/element/types").ChartType;
155
156
  pasteDialog: {
156
157
  shown: false;
157
158
  data: null;
@@ -160,13 +161,13 @@ export declare const actionToggleElementLock: {
160
161
  data: import("../charts").Spreadsheet;
161
162
  };
162
163
  pendingImageElementId: string | null;
163
- showHyperlinkPopup: false | "info" | "editor";
164
+ showHyperlinkPopup: false | "editor" | "info";
164
165
  linkOpacity: number;
165
166
  trayModeEnabled: boolean;
166
167
  colorPalette?: {
167
- canvasBackground: import("../colors").ColorPaletteCustom;
168
- elementBackground: import("../colors").ColorPaletteCustom;
169
- elementStroke: import("../colors").ColorPaletteCustom;
168
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
169
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
170
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
170
171
  topPicks: {
171
172
  canvasBackground: [string, string, string, string, string];
172
173
  elementStroke: [string, string, string, string, string];
@@ -183,6 +184,10 @@ export declare const actionToggleElementLock: {
183
184
  Bold: string;
184
185
  Regular: string;
185
186
  };
187
+ gridDirection: {
188
+ horizontal: boolean;
189
+ vertical: boolean;
190
+ };
186
191
  highlightSearchResult: boolean;
187
192
  dynamicStyle: {
188
193
  [x: string]: string;
@@ -222,15 +227,14 @@ export declare const actionToggleElementLock: {
222
227
  };
223
228
  export declare const actionUnlockAllElements: {
224
229
  name: "unlockAllElements";
225
- paletteName: string;
226
230
  trackEvent: {
227
231
  category: "canvas";
228
232
  };
229
233
  viewMode: false;
230
234
  icon: import("react/jsx-runtime").JSX.Element;
231
235
  predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
232
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
233
- elements: import("../element/types").OrderedExcalidrawElement[];
236
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
237
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
234
238
  appState: {
235
239
  selectedElementIds: {
236
240
  [k: string]: true;
@@ -244,17 +248,17 @@ export declare const actionUnlockAllElements: {
244
248
  isLoading: boolean;
245
249
  errorMessage: import("react").ReactNode;
246
250
  activeEmbeddable: {
247
- element: import("../element/types").NonDeletedExcalidrawElement;
251
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
248
252
  state: "active" | "hover";
249
253
  } | null;
250
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
251
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
252
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
253
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
254
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
255
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
256
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
257
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
254
258
  isBindingEnabled: boolean;
255
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
256
- suggestedBindings: import("../element/binding").SuggestedBinding[];
257
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
259
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
260
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
261
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
258
262
  frameRendering: {
259
263
  enabled: boolean;
260
264
  name: boolean;
@@ -262,12 +266,13 @@ export declare const actionUnlockAllElements: {
262
266
  clip: boolean;
263
267
  };
264
268
  editingFrame: string | null;
265
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
266
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
267
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
269
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
270
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
271
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
268
272
  activeTool: {
269
273
  lastActiveTool: import("../types").ActiveTool | null;
270
274
  locked: boolean;
275
+ fromSelection: boolean;
271
276
  } & import("../types").ActiveTool;
272
277
  penMode: boolean;
273
278
  penDetected: boolean;
@@ -277,18 +282,18 @@ export declare const actionUnlockAllElements: {
277
282
  exportScale: number;
278
283
  currentItemStrokeColor: string;
279
284
  currentItemBackgroundColor: string;
280
- currentItemFillStyle: import("../element/types").FillStyle;
285
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
281
286
  currentItemStrokeWidth: number;
282
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
287
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
283
288
  currentItemRoughness: number;
284
289
  currentItemOpacity: number;
285
290
  currentItemFontFamily: number;
286
291
  currentItemFontSize: number;
287
292
  currentItemTextAlign: string;
288
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
289
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
293
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
294
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
290
295
  currentHoveredFontFamily: number | null;
291
- currentItemRoundness: import("../element/types").StrokeRoundness;
296
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
292
297
  currentItemArrowType: "round" | "sharp" | "elbow";
293
298
  viewBackgroundColor: string;
294
299
  scrollX: number;
@@ -301,7 +306,7 @@ export declare const actionUnlockAllElements: {
301
306
  zoom: Readonly<{
302
307
  value: import("../types").NormalizedZoomValue;
303
308
  }>;
304
- openMenu: "canvas" | "shape" | null;
309
+ openMenu: "shape" | "canvas" | null;
305
310
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
306
311
  openSidebar: {
307
312
  name: string;
@@ -319,7 +324,7 @@ export declare const actionUnlockAllElements: {
319
324
  sourceElementId: string;
320
325
  } | null;
321
326
  defaultSidebarDockedPreference: boolean;
322
- lastPointerDownWith: import("../element/types").PointerType;
327
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
323
328
  hoveredElementIds: Readonly<{
324
329
  [id: string]: true;
325
330
  }>;
@@ -334,7 +339,7 @@ export declare const actionUnlockAllElements: {
334
339
  duration?: number | undefined;
335
340
  } | null;
336
341
  zenModeEnabled: boolean;
337
- theme: import("../element/types").Theme;
342
+ theme: import("@excalidraw/element/types").Theme;
338
343
  gridSize: number;
339
344
  gridStep: number;
340
345
  gridModeEnabled: boolean;
@@ -355,7 +360,7 @@ export declare const actionUnlockAllElements: {
355
360
  [id: string]: true;
356
361
  }> | undefined;
357
362
  username?: string | null | undefined;
358
- userState?: import("..").UserIdleState | undefined;
363
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
359
364
  color?: {
360
365
  background: string;
361
366
  stroke: string;
@@ -372,7 +377,7 @@ export declare const actionUnlockAllElements: {
372
377
  open: boolean;
373
378
  panels: number;
374
379
  };
375
- currentChartType: import("../element/types").ChartType;
380
+ currentChartType: import("@excalidraw/element/types").ChartType;
376
381
  pasteDialog: {
377
382
  shown: false;
378
383
  data: null;
@@ -381,13 +386,13 @@ export declare const actionUnlockAllElements: {
381
386
  data: import("../charts").Spreadsheet;
382
387
  };
383
388
  pendingImageElementId: string | null;
384
- showHyperlinkPopup: false | "info" | "editor";
389
+ showHyperlinkPopup: false | "editor" | "info";
385
390
  linkOpacity: number;
386
391
  trayModeEnabled: boolean;
387
392
  colorPalette?: {
388
- canvasBackground: import("../colors").ColorPaletteCustom;
389
- elementBackground: import("../colors").ColorPaletteCustom;
390
- elementStroke: import("../colors").ColorPaletteCustom;
393
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
394
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
395
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
391
396
  topPicks: {
392
397
  canvasBackground: [string, string, string, string, string];
393
398
  elementStroke: [string, string, string, string, string];
@@ -404,6 +409,10 @@ export declare const actionUnlockAllElements: {
404
409
  Bold: string;
405
410
  Regular: string;
406
411
  };
412
+ gridDirection: {
413
+ horizontal: boolean;
414
+ vertical: boolean;
415
+ };
407
416
  highlightSearchResult: boolean;
408
417
  dynamicStyle: {
409
418
  [x: string]: string;
@@ -414,7 +423,7 @@ export declare const actionUnlockAllElements: {
414
423
  nameColor: string;
415
424
  };
416
425
  invertBindingBehaviour: boolean;
417
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
426
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
418
427
  snapLines: readonly import("../snapping").SnapLine[];
419
428
  originSnapOffset: {
420
429
  x: number;