@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,10 +1,10 @@
1
- import type { Theme } from "../element/types";
1
+ import type { Theme } from "@excalidraw/element/types";
2
2
  import "../components/ToolIcon.scss";
3
3
  export declare const actionChangeProjectName: {
4
4
  name: "changeProjectName";
5
5
  label: string;
6
6
  trackEvent: false;
7
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
7
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
8
8
  appState: {
9
9
  name: any;
10
10
  contextMenu: {
@@ -16,17 +16,17 @@ export declare const actionChangeProjectName: {
16
16
  isLoading: boolean;
17
17
  errorMessage: import("react").ReactNode;
18
18
  activeEmbeddable: {
19
- element: import("../element/types").NonDeletedExcalidrawElement;
19
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
20
20
  state: "active" | "hover";
21
21
  } | null;
22
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
23
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
25
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
23
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
24
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
25
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
26
  isBindingEnabled: boolean;
27
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("../element/binding").SuggestedBinding[];
29
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
27
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
29
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
30
  frameRendering: {
31
31
  enabled: boolean;
32
32
  name: boolean;
@@ -34,12 +34,13 @@ export declare const actionChangeProjectName: {
34
34
  clip: boolean;
35
35
  };
36
36
  editingFrame: string | null;
37
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
38
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
37
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
40
40
  activeTool: {
41
41
  lastActiveTool: import("../types").ActiveTool | null;
42
42
  locked: boolean;
43
+ fromSelection: boolean;
43
44
  } & import("../types").ActiveTool;
44
45
  penMode: boolean;
45
46
  penDetected: boolean;
@@ -49,18 +50,18 @@ export declare const actionChangeProjectName: {
49
50
  exportScale: number;
50
51
  currentItemStrokeColor: string;
51
52
  currentItemBackgroundColor: string;
52
- currentItemFillStyle: import("../element/types").FillStyle;
53
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
53
54
  currentItemStrokeWidth: number;
54
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
55
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
55
56
  currentItemRoughness: number;
56
57
  currentItemOpacity: number;
57
58
  currentItemFontFamily: number;
58
59
  currentItemFontSize: number;
59
60
  currentItemTextAlign: string;
60
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
61
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
61
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
62
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
62
63
  currentHoveredFontFamily: number | null;
63
- currentItemRoundness: import("../element/types").StrokeRoundness;
64
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
64
65
  currentItemArrowType: "round" | "sharp" | "elbow";
65
66
  viewBackgroundColor: string;
66
67
  scrollX: number;
@@ -72,7 +73,7 @@ export declare const actionChangeProjectName: {
72
73
  zoom: Readonly<{
73
74
  value: import("../types").NormalizedZoomValue;
74
75
  }>;
75
- openMenu: "canvas" | "shape" | null;
76
+ openMenu: "shape" | "canvas" | null;
76
77
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
77
78
  openSidebar: {
78
79
  name: string;
@@ -90,7 +91,7 @@ export declare const actionChangeProjectName: {
90
91
  sourceElementId: string;
91
92
  } | null;
92
93
  defaultSidebarDockedPreference: boolean;
93
- lastPointerDownWith: import("../element/types").PointerType;
94
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
94
95
  selectedElementIds: Readonly<{
95
96
  [id: string]: true;
96
97
  }>;
@@ -129,7 +130,7 @@ export declare const actionChangeProjectName: {
129
130
  [id: string]: true;
130
131
  }> | undefined;
131
132
  username?: string | null | undefined;
132
- userState?: import("../constants").UserIdleState | undefined;
133
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
133
134
  color?: {
134
135
  background: string;
135
136
  stroke: string;
@@ -146,7 +147,7 @@ export declare const actionChangeProjectName: {
146
147
  open: boolean;
147
148
  panels: number;
148
149
  };
149
- currentChartType: import("../element/types").ChartType;
150
+ currentChartType: import("@excalidraw/element/types").ChartType;
150
151
  pasteDialog: {
151
152
  shown: false;
152
153
  data: null;
@@ -155,13 +156,13 @@ export declare const actionChangeProjectName: {
155
156
  data: import("../charts").Spreadsheet;
156
157
  };
157
158
  pendingImageElementId: string | null;
158
- showHyperlinkPopup: false | "info" | "editor";
159
+ showHyperlinkPopup: false | "editor" | "info";
159
160
  linkOpacity: number;
160
161
  trayModeEnabled: boolean;
161
162
  colorPalette?: {
162
- canvasBackground: import("../colors").ColorPaletteCustom;
163
- elementBackground: import("../colors").ColorPaletteCustom;
164
- elementStroke: import("../colors").ColorPaletteCustom;
163
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
164
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
165
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
165
166
  topPicks: {
166
167
  canvasBackground: [string, string, string, string, string];
167
168
  elementStroke: [string, string, string, string, string];
@@ -178,6 +179,10 @@ export declare const actionChangeProjectName: {
178
179
  Bold: string;
179
180
  Regular: string;
180
181
  };
182
+ gridDirection: {
183
+ horizontal: boolean;
184
+ vertical: boolean;
185
+ };
181
186
  highlightSearchResult: boolean;
182
187
  dynamicStyle: {
183
188
  [x: string]: string;
@@ -188,7 +193,7 @@ export declare const actionChangeProjectName: {
188
193
  nameColor: string;
189
194
  };
190
195
  invertBindingBehaviour: boolean;
191
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
196
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
192
197
  snapLines: readonly import("../snapping").SnapLine[];
193
198
  originSnapOffset: {
194
199
  x: number;
@@ -223,7 +228,7 @@ export declare const actionChangeExportScale: {
223
228
  category: "export";
224
229
  action: string;
225
230
  };
226
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
231
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
227
232
  appState: {
228
233
  exportScale: any;
229
234
  contextMenu: {
@@ -235,17 +240,17 @@ export declare const actionChangeExportScale: {
235
240
  isLoading: boolean;
236
241
  errorMessage: import("react").ReactNode;
237
242
  activeEmbeddable: {
238
- element: import("../element/types").NonDeletedExcalidrawElement;
243
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
239
244
  state: "active" | "hover";
240
245
  } | null;
241
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
242
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
243
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
244
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
246
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
247
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
248
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
249
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
245
250
  isBindingEnabled: boolean;
246
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
247
- suggestedBindings: import("../element/binding").SuggestedBinding[];
248
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
251
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
252
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
253
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
249
254
  frameRendering: {
250
255
  enabled: boolean;
251
256
  name: boolean;
@@ -253,12 +258,13 @@ export declare const actionChangeExportScale: {
253
258
  clip: boolean;
254
259
  };
255
260
  editingFrame: string | null;
256
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
257
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
258
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
261
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
262
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
263
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
259
264
  activeTool: {
260
265
  lastActiveTool: import("../types").ActiveTool | null;
261
266
  locked: boolean;
267
+ fromSelection: boolean;
262
268
  } & import("../types").ActiveTool;
263
269
  penMode: boolean;
264
270
  penDetected: boolean;
@@ -267,18 +273,18 @@ export declare const actionChangeExportScale: {
267
273
  exportWithDarkMode: boolean;
268
274
  currentItemStrokeColor: string;
269
275
  currentItemBackgroundColor: string;
270
- currentItemFillStyle: import("../element/types").FillStyle;
276
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
271
277
  currentItemStrokeWidth: number;
272
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
278
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
273
279
  currentItemRoughness: number;
274
280
  currentItemOpacity: number;
275
281
  currentItemFontFamily: number;
276
282
  currentItemFontSize: number;
277
283
  currentItemTextAlign: string;
278
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
279
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
284
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
285
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
280
286
  currentHoveredFontFamily: number | null;
281
- currentItemRoundness: import("../element/types").StrokeRoundness;
287
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
282
288
  currentItemArrowType: "round" | "sharp" | "elbow";
283
289
  viewBackgroundColor: string;
284
290
  scrollX: number;
@@ -291,7 +297,7 @@ export declare const actionChangeExportScale: {
291
297
  zoom: Readonly<{
292
298
  value: import("../types").NormalizedZoomValue;
293
299
  }>;
294
- openMenu: "canvas" | "shape" | null;
300
+ openMenu: "shape" | "canvas" | null;
295
301
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
296
302
  openSidebar: {
297
303
  name: string;
@@ -309,7 +315,7 @@ export declare const actionChangeExportScale: {
309
315
  sourceElementId: string;
310
316
  } | null;
311
317
  defaultSidebarDockedPreference: boolean;
312
- lastPointerDownWith: import("../element/types").PointerType;
318
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
313
319
  selectedElementIds: Readonly<{
314
320
  [id: string]: true;
315
321
  }>;
@@ -348,7 +354,7 @@ export declare const actionChangeExportScale: {
348
354
  [id: string]: true;
349
355
  }> | undefined;
350
356
  username?: string | null | undefined;
351
- userState?: import("../constants").UserIdleState | undefined;
357
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
352
358
  color?: {
353
359
  background: string;
354
360
  stroke: string;
@@ -365,7 +371,7 @@ export declare const actionChangeExportScale: {
365
371
  open: boolean;
366
372
  panels: number;
367
373
  };
368
- currentChartType: import("../element/types").ChartType;
374
+ currentChartType: import("@excalidraw/element/types").ChartType;
369
375
  pasteDialog: {
370
376
  shown: false;
371
377
  data: null;
@@ -374,13 +380,13 @@ export declare const actionChangeExportScale: {
374
380
  data: import("../charts").Spreadsheet;
375
381
  };
376
382
  pendingImageElementId: string | null;
377
- showHyperlinkPopup: false | "info" | "editor";
383
+ showHyperlinkPopup: false | "editor" | "info";
378
384
  linkOpacity: number;
379
385
  trayModeEnabled: boolean;
380
386
  colorPalette?: {
381
- canvasBackground: import("../colors").ColorPaletteCustom;
382
- elementBackground: import("../colors").ColorPaletteCustom;
383
- elementStroke: import("../colors").ColorPaletteCustom;
387
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
388
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
389
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
384
390
  topPicks: {
385
391
  canvasBackground: [string, string, string, string, string];
386
392
  elementStroke: [string, string, string, string, string];
@@ -397,6 +403,10 @@ export declare const actionChangeExportScale: {
397
403
  Bold: string;
398
404
  Regular: string;
399
405
  };
406
+ gridDirection: {
407
+ horizontal: boolean;
408
+ vertical: boolean;
409
+ };
400
410
  highlightSearchResult: boolean;
401
411
  dynamicStyle: {
402
412
  [x: string]: string;
@@ -407,7 +417,7 @@ export declare const actionChangeExportScale: {
407
417
  nameColor: string;
408
418
  };
409
419
  invertBindingBehaviour: boolean;
410
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
420
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
411
421
  snapLines: readonly import("../snapping").SnapLine[];
412
422
  originSnapOffset: {
413
423
  x: number;
@@ -442,7 +452,7 @@ export declare const actionChangeExportBackground: {
442
452
  category: "export";
443
453
  action: string;
444
454
  };
445
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
455
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
446
456
  appState: {
447
457
  exportBackground: any;
448
458
  contextMenu: {
@@ -454,17 +464,17 @@ export declare const actionChangeExportBackground: {
454
464
  isLoading: boolean;
455
465
  errorMessage: import("react").ReactNode;
456
466
  activeEmbeddable: {
457
- element: import("../element/types").NonDeletedExcalidrawElement;
467
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
458
468
  state: "active" | "hover";
459
469
  } | null;
460
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
461
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
462
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
463
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
470
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
471
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
472
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
473
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
464
474
  isBindingEnabled: boolean;
465
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
466
- suggestedBindings: import("../element/binding").SuggestedBinding[];
467
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
475
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
476
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
477
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
468
478
  frameRendering: {
469
479
  enabled: boolean;
470
480
  name: boolean;
@@ -472,12 +482,13 @@ export declare const actionChangeExportBackground: {
472
482
  clip: boolean;
473
483
  };
474
484
  editingFrame: string | null;
475
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
476
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
477
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
485
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
486
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
487
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
478
488
  activeTool: {
479
489
  lastActiveTool: import("../types").ActiveTool | null;
480
490
  locked: boolean;
491
+ fromSelection: boolean;
481
492
  } & import("../types").ActiveTool;
482
493
  penMode: boolean;
483
494
  penDetected: boolean;
@@ -486,18 +497,18 @@ export declare const actionChangeExportBackground: {
486
497
  exportScale: number;
487
498
  currentItemStrokeColor: string;
488
499
  currentItemBackgroundColor: string;
489
- currentItemFillStyle: import("../element/types").FillStyle;
500
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
490
501
  currentItemStrokeWidth: number;
491
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
502
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
492
503
  currentItemRoughness: number;
493
504
  currentItemOpacity: number;
494
505
  currentItemFontFamily: number;
495
506
  currentItemFontSize: number;
496
507
  currentItemTextAlign: string;
497
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
498
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
508
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
509
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
499
510
  currentHoveredFontFamily: number | null;
500
- currentItemRoundness: import("../element/types").StrokeRoundness;
511
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
501
512
  currentItemArrowType: "round" | "sharp" | "elbow";
502
513
  viewBackgroundColor: string;
503
514
  scrollX: number;
@@ -510,7 +521,7 @@ export declare const actionChangeExportBackground: {
510
521
  zoom: Readonly<{
511
522
  value: import("../types").NormalizedZoomValue;
512
523
  }>;
513
- openMenu: "canvas" | "shape" | null;
524
+ openMenu: "shape" | "canvas" | null;
514
525
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
515
526
  openSidebar: {
516
527
  name: string;
@@ -528,7 +539,7 @@ export declare const actionChangeExportBackground: {
528
539
  sourceElementId: string;
529
540
  } | null;
530
541
  defaultSidebarDockedPreference: boolean;
531
- lastPointerDownWith: import("../element/types").PointerType;
542
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
532
543
  selectedElementIds: Readonly<{
533
544
  [id: string]: true;
534
545
  }>;
@@ -567,7 +578,7 @@ export declare const actionChangeExportBackground: {
567
578
  [id: string]: true;
568
579
  }> | undefined;
569
580
  username?: string | null | undefined;
570
- userState?: import("../constants").UserIdleState | undefined;
581
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
571
582
  color?: {
572
583
  background: string;
573
584
  stroke: string;
@@ -584,7 +595,7 @@ export declare const actionChangeExportBackground: {
584
595
  open: boolean;
585
596
  panels: number;
586
597
  };
587
- currentChartType: import("../element/types").ChartType;
598
+ currentChartType: import("@excalidraw/element/types").ChartType;
588
599
  pasteDialog: {
589
600
  shown: false;
590
601
  data: null;
@@ -593,13 +604,13 @@ export declare const actionChangeExportBackground: {
593
604
  data: import("../charts").Spreadsheet;
594
605
  };
595
606
  pendingImageElementId: string | null;
596
- showHyperlinkPopup: false | "info" | "editor";
607
+ showHyperlinkPopup: false | "editor" | "info";
597
608
  linkOpacity: number;
598
609
  trayModeEnabled: boolean;
599
610
  colorPalette?: {
600
- canvasBackground: import("../colors").ColorPaletteCustom;
601
- elementBackground: import("../colors").ColorPaletteCustom;
602
- elementStroke: import("../colors").ColorPaletteCustom;
611
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
612
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
613
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
603
614
  topPicks: {
604
615
  canvasBackground: [string, string, string, string, string];
605
616
  elementStroke: [string, string, string, string, string];
@@ -616,6 +627,10 @@ export declare const actionChangeExportBackground: {
616
627
  Bold: string;
617
628
  Regular: string;
618
629
  };
630
+ gridDirection: {
631
+ horizontal: boolean;
632
+ vertical: boolean;
633
+ };
619
634
  highlightSearchResult: boolean;
620
635
  dynamicStyle: {
621
636
  [x: string]: string;
@@ -626,7 +641,7 @@ export declare const actionChangeExportBackground: {
626
641
  nameColor: string;
627
642
  };
628
643
  invertBindingBehaviour: boolean;
629
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
644
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
630
645
  snapLines: readonly import("../snapping").SnapLine[];
631
646
  originSnapOffset: {
632
647
  x: number;
@@ -661,7 +676,7 @@ export declare const actionChangeExportEmbedScene: {
661
676
  category: "export";
662
677
  action: string;
663
678
  };
664
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
679
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
665
680
  appState: {
666
681
  exportEmbedScene: any;
667
682
  contextMenu: {
@@ -673,17 +688,17 @@ export declare const actionChangeExportEmbedScene: {
673
688
  isLoading: boolean;
674
689
  errorMessage: import("react").ReactNode;
675
690
  activeEmbeddable: {
676
- element: import("../element/types").NonDeletedExcalidrawElement;
691
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
677
692
  state: "active" | "hover";
678
693
  } | null;
679
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
680
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
681
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
682
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
694
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
695
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
696
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
697
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
683
698
  isBindingEnabled: boolean;
684
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
685
- suggestedBindings: import("../element/binding").SuggestedBinding[];
686
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
699
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
700
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
701
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
687
702
  frameRendering: {
688
703
  enabled: boolean;
689
704
  name: boolean;
@@ -691,12 +706,13 @@ export declare const actionChangeExportEmbedScene: {
691
706
  clip: boolean;
692
707
  };
693
708
  editingFrame: string | null;
694
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
695
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
696
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
709
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
710
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
711
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
697
712
  activeTool: {
698
713
  lastActiveTool: import("../types").ActiveTool | null;
699
714
  locked: boolean;
715
+ fromSelection: boolean;
700
716
  } & import("../types").ActiveTool;
701
717
  penMode: boolean;
702
718
  penDetected: boolean;
@@ -705,18 +721,18 @@ export declare const actionChangeExportEmbedScene: {
705
721
  exportScale: number;
706
722
  currentItemStrokeColor: string;
707
723
  currentItemBackgroundColor: string;
708
- currentItemFillStyle: import("../element/types").FillStyle;
724
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
709
725
  currentItemStrokeWidth: number;
710
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
726
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
711
727
  currentItemRoughness: number;
712
728
  currentItemOpacity: number;
713
729
  currentItemFontFamily: number;
714
730
  currentItemFontSize: number;
715
731
  currentItemTextAlign: string;
716
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
717
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
732
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
733
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
718
734
  currentHoveredFontFamily: number | null;
719
- currentItemRoundness: import("../element/types").StrokeRoundness;
735
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
720
736
  currentItemArrowType: "round" | "sharp" | "elbow";
721
737
  viewBackgroundColor: string;
722
738
  scrollX: number;
@@ -729,7 +745,7 @@ export declare const actionChangeExportEmbedScene: {
729
745
  zoom: Readonly<{
730
746
  value: import("../types").NormalizedZoomValue;
731
747
  }>;
732
- openMenu: "canvas" | "shape" | null;
748
+ openMenu: "shape" | "canvas" | null;
733
749
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
734
750
  openSidebar: {
735
751
  name: string;
@@ -747,7 +763,7 @@ export declare const actionChangeExportEmbedScene: {
747
763
  sourceElementId: string;
748
764
  } | null;
749
765
  defaultSidebarDockedPreference: boolean;
750
- lastPointerDownWith: import("../element/types").PointerType;
766
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
751
767
  selectedElementIds: Readonly<{
752
768
  [id: string]: true;
753
769
  }>;
@@ -786,7 +802,7 @@ export declare const actionChangeExportEmbedScene: {
786
802
  [id: string]: true;
787
803
  }> | undefined;
788
804
  username?: string | null | undefined;
789
- userState?: import("../constants").UserIdleState | undefined;
805
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
790
806
  color?: {
791
807
  background: string;
792
808
  stroke: string;
@@ -803,7 +819,7 @@ export declare const actionChangeExportEmbedScene: {
803
819
  open: boolean;
804
820
  panels: number;
805
821
  };
806
- currentChartType: import("../element/types").ChartType;
822
+ currentChartType: import("@excalidraw/element/types").ChartType;
807
823
  pasteDialog: {
808
824
  shown: false;
809
825
  data: null;
@@ -812,13 +828,13 @@ export declare const actionChangeExportEmbedScene: {
812
828
  data: import("../charts").Spreadsheet;
813
829
  };
814
830
  pendingImageElementId: string | null;
815
- showHyperlinkPopup: false | "info" | "editor";
831
+ showHyperlinkPopup: false | "editor" | "info";
816
832
  linkOpacity: number;
817
833
  trayModeEnabled: boolean;
818
834
  colorPalette?: {
819
- canvasBackground: import("../colors").ColorPaletteCustom;
820
- elementBackground: import("../colors").ColorPaletteCustom;
821
- elementStroke: import("../colors").ColorPaletteCustom;
835
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
836
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
837
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
822
838
  topPicks: {
823
839
  canvasBackground: [string, string, string, string, string];
824
840
  elementStroke: [string, string, string, string, string];
@@ -835,6 +851,10 @@ export declare const actionChangeExportEmbedScene: {
835
851
  Bold: string;
836
852
  Regular: string;
837
853
  };
854
+ gridDirection: {
855
+ horizontal: boolean;
856
+ vertical: boolean;
857
+ };
838
858
  highlightSearchResult: boolean;
839
859
  dynamicStyle: {
840
860
  [x: string]: string;
@@ -845,7 +865,7 @@ export declare const actionChangeExportEmbedScene: {
845
865
  nameColor: string;
846
866
  };
847
867
  invertBindingBehaviour: boolean;
848
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
868
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
849
869
  snapLines: readonly import("../snapping").SnapLine[];
850
870
  originSnapOffset: {
851
871
  x: number;
@@ -880,8 +900,8 @@ export declare const actionSaveToActiveFile: {
880
900
  trackEvent: {
881
901
  category: "export";
882
902
  };
883
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
884
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
903
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
904
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
885
905
  captureUpdate: "EVENTUALLY";
886
906
  appState: {
887
907
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
@@ -897,17 +917,17 @@ export declare const actionSaveToActiveFile: {
897
917
  isLoading: boolean;
898
918
  errorMessage: import("react").ReactNode;
899
919
  activeEmbeddable: {
900
- element: import("../element/types").NonDeletedExcalidrawElement;
920
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
901
921
  state: "active" | "hover";
902
922
  } | null;
903
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
904
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
905
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
906
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
923
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
924
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
925
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
926
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
907
927
  isBindingEnabled: boolean;
908
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
909
- suggestedBindings: import("../element/binding").SuggestedBinding[];
910
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
928
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
929
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
930
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
911
931
  frameRendering: {
912
932
  enabled: boolean;
913
933
  name: boolean;
@@ -915,12 +935,13 @@ export declare const actionSaveToActiveFile: {
915
935
  clip: boolean;
916
936
  };
917
937
  editingFrame: string | null;
918
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
919
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
920
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
938
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
939
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
940
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
921
941
  activeTool: {
922
942
  lastActiveTool: import("../types").ActiveTool | null;
923
943
  locked: boolean;
944
+ fromSelection: boolean;
924
945
  } & import("../types").ActiveTool;
925
946
  penMode: boolean;
926
947
  penDetected: boolean;
@@ -930,18 +951,18 @@ export declare const actionSaveToActiveFile: {
930
951
  exportScale: number;
931
952
  currentItemStrokeColor: string;
932
953
  currentItemBackgroundColor: string;
933
- currentItemFillStyle: import("../element/types").FillStyle;
954
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
934
955
  currentItemStrokeWidth: number;
935
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
956
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
936
957
  currentItemRoughness: number;
937
958
  currentItemOpacity: number;
938
959
  currentItemFontFamily: number;
939
960
  currentItemFontSize: number;
940
961
  currentItemTextAlign: string;
941
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
942
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
962
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
963
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
943
964
  currentHoveredFontFamily: number | null;
944
- currentItemRoundness: import("../element/types").StrokeRoundness;
965
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
945
966
  currentItemArrowType: "round" | "sharp" | "elbow";
946
967
  viewBackgroundColor: string;
947
968
  scrollX: number;
@@ -954,7 +975,7 @@ export declare const actionSaveToActiveFile: {
954
975
  zoom: Readonly<{
955
976
  value: import("../types").NormalizedZoomValue;
956
977
  }>;
957
- openMenu: "canvas" | "shape" | null;
978
+ openMenu: "shape" | "canvas" | null;
958
979
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
959
980
  openSidebar: {
960
981
  name: string;
@@ -972,7 +993,7 @@ export declare const actionSaveToActiveFile: {
972
993
  sourceElementId: string;
973
994
  } | null;
974
995
  defaultSidebarDockedPreference: boolean;
975
- lastPointerDownWith: import("../element/types").PointerType;
996
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
976
997
  selectedElementIds: Readonly<{
977
998
  [id: string]: true;
978
999
  }>;
@@ -1005,7 +1026,7 @@ export declare const actionSaveToActiveFile: {
1005
1026
  [id: string]: true;
1006
1027
  }> | undefined;
1007
1028
  username?: string | null | undefined;
1008
- userState?: import("../constants").UserIdleState | undefined;
1029
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1009
1030
  color?: {
1010
1031
  background: string;
1011
1032
  stroke: string;
@@ -1022,7 +1043,7 @@ export declare const actionSaveToActiveFile: {
1022
1043
  open: boolean;
1023
1044
  panels: number;
1024
1045
  };
1025
- currentChartType: import("../element/types").ChartType;
1046
+ currentChartType: import("@excalidraw/element/types").ChartType;
1026
1047
  pasteDialog: {
1027
1048
  shown: false;
1028
1049
  data: null;
@@ -1031,13 +1052,13 @@ export declare const actionSaveToActiveFile: {
1031
1052
  data: import("../charts").Spreadsheet;
1032
1053
  };
1033
1054
  pendingImageElementId: string | null;
1034
- showHyperlinkPopup: false | "info" | "editor";
1055
+ showHyperlinkPopup: false | "editor" | "info";
1035
1056
  linkOpacity: number;
1036
1057
  trayModeEnabled: boolean;
1037
1058
  colorPalette?: {
1038
- canvasBackground: import("../colors").ColorPaletteCustom;
1039
- elementBackground: import("../colors").ColorPaletteCustom;
1040
- elementStroke: import("../colors").ColorPaletteCustom;
1059
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1060
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1061
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1041
1062
  topPicks: {
1042
1063
  canvasBackground: [string, string, string, string, string];
1043
1064
  elementStroke: [string, string, string, string, string];
@@ -1054,6 +1075,10 @@ export declare const actionSaveToActiveFile: {
1054
1075
  Bold: string;
1055
1076
  Regular: string;
1056
1077
  };
1078
+ gridDirection: {
1079
+ horizontal: boolean;
1080
+ vertical: boolean;
1081
+ };
1057
1082
  highlightSearchResult: boolean;
1058
1083
  dynamicStyle: {
1059
1084
  [x: string]: string;
@@ -1064,7 +1089,7 @@ export declare const actionSaveToActiveFile: {
1064
1089
  nameColor: string;
1065
1090
  };
1066
1091
  invertBindingBehaviour: boolean;
1067
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1092
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1068
1093
  snapLines: readonly import("../snapping").SnapLine[];
1069
1094
  originSnapOffset: {
1070
1095
  x: number;
@@ -1102,7 +1127,7 @@ export declare const actionSaveFileToDisk: {
1102
1127
  trackEvent: {
1103
1128
  category: "export";
1104
1129
  };
1105
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
1130
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
1106
1131
  captureUpdate: "EVENTUALLY";
1107
1132
  appState: {
1108
1133
  openDialog: null;
@@ -1119,17 +1144,17 @@ export declare const actionSaveFileToDisk: {
1119
1144
  isLoading: boolean;
1120
1145
  errorMessage: import("react").ReactNode;
1121
1146
  activeEmbeddable: {
1122
- element: import("../element/types").NonDeletedExcalidrawElement;
1147
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1123
1148
  state: "active" | "hover";
1124
1149
  } | null;
1125
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1126
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1127
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1128
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1150
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1151
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1152
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1153
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1129
1154
  isBindingEnabled: boolean;
1130
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1131
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1132
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1155
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1156
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1157
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1133
1158
  frameRendering: {
1134
1159
  enabled: boolean;
1135
1160
  name: boolean;
@@ -1137,12 +1162,13 @@ export declare const actionSaveFileToDisk: {
1137
1162
  clip: boolean;
1138
1163
  };
1139
1164
  editingFrame: string | null;
1140
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1141
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1142
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1165
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1166
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1167
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1143
1168
  activeTool: {
1144
1169
  lastActiveTool: import("../types").ActiveTool | null;
1145
1170
  locked: boolean;
1171
+ fromSelection: boolean;
1146
1172
  } & import("../types").ActiveTool;
1147
1173
  penMode: boolean;
1148
1174
  penDetected: boolean;
@@ -1152,18 +1178,18 @@ export declare const actionSaveFileToDisk: {
1152
1178
  exportScale: number;
1153
1179
  currentItemStrokeColor: string;
1154
1180
  currentItemBackgroundColor: string;
1155
- currentItemFillStyle: import("../element/types").FillStyle;
1181
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1156
1182
  currentItemStrokeWidth: number;
1157
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1183
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1158
1184
  currentItemRoughness: number;
1159
1185
  currentItemOpacity: number;
1160
1186
  currentItemFontFamily: number;
1161
1187
  currentItemFontSize: number;
1162
1188
  currentItemTextAlign: string;
1163
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1164
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1189
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1190
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1165
1191
  currentHoveredFontFamily: number | null;
1166
- currentItemRoundness: import("../element/types").StrokeRoundness;
1192
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1167
1193
  currentItemArrowType: "round" | "sharp" | "elbow";
1168
1194
  viewBackgroundColor: string;
1169
1195
  scrollX: number;
@@ -1176,14 +1202,14 @@ export declare const actionSaveFileToDisk: {
1176
1202
  zoom: Readonly<{
1177
1203
  value: import("../types").NormalizedZoomValue;
1178
1204
  }>;
1179
- openMenu: "canvas" | "shape" | null;
1205
+ openMenu: "shape" | "canvas" | null;
1180
1206
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1181
1207
  openSidebar: {
1182
1208
  name: string;
1183
1209
  tab?: string | undefined;
1184
1210
  } | null;
1185
1211
  defaultSidebarDockedPreference: boolean;
1186
- lastPointerDownWith: import("../element/types").PointerType;
1212
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1187
1213
  selectedElementIds: Readonly<{
1188
1214
  [id: string]: true;
1189
1215
  }>;
@@ -1216,7 +1242,7 @@ export declare const actionSaveFileToDisk: {
1216
1242
  [id: string]: true;
1217
1243
  }> | undefined;
1218
1244
  username?: string | null | undefined;
1219
- userState?: import("../constants").UserIdleState | undefined;
1245
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1220
1246
  color?: {
1221
1247
  background: string;
1222
1248
  stroke: string;
@@ -1233,7 +1259,7 @@ export declare const actionSaveFileToDisk: {
1233
1259
  open: boolean;
1234
1260
  panels: number;
1235
1261
  };
1236
- currentChartType: import("../element/types").ChartType;
1262
+ currentChartType: import("@excalidraw/element/types").ChartType;
1237
1263
  pasteDialog: {
1238
1264
  shown: false;
1239
1265
  data: null;
@@ -1242,13 +1268,13 @@ export declare const actionSaveFileToDisk: {
1242
1268
  data: import("../charts").Spreadsheet;
1243
1269
  };
1244
1270
  pendingImageElementId: string | null;
1245
- showHyperlinkPopup: false | "info" | "editor";
1271
+ showHyperlinkPopup: false | "editor" | "info";
1246
1272
  linkOpacity: number;
1247
1273
  trayModeEnabled: boolean;
1248
1274
  colorPalette?: {
1249
- canvasBackground: import("../colors").ColorPaletteCustom;
1250
- elementBackground: import("../colors").ColorPaletteCustom;
1251
- elementStroke: import("../colors").ColorPaletteCustom;
1275
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1276
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1277
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1252
1278
  topPicks: {
1253
1279
  canvasBackground: [string, string, string, string, string];
1254
1280
  elementStroke: [string, string, string, string, string];
@@ -1265,6 +1291,10 @@ export declare const actionSaveFileToDisk: {
1265
1291
  Bold: string;
1266
1292
  Regular: string;
1267
1293
  };
1294
+ gridDirection: {
1295
+ horizontal: boolean;
1296
+ vertical: boolean;
1297
+ };
1268
1298
  highlightSearchResult: boolean;
1269
1299
  dynamicStyle: {
1270
1300
  [x: string]: string;
@@ -1275,7 +1305,7 @@ export declare const actionSaveFileToDisk: {
1275
1305
  nameColor: string;
1276
1306
  };
1277
1307
  invertBindingBehaviour: boolean;
1278
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1308
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1279
1309
  snapLines: readonly import("../snapping").SnapLine[];
1280
1310
  originSnapOffset: {
1281
1311
  x: number;
@@ -1312,17 +1342,118 @@ export declare const actionLoadScene: {
1312
1342
  trackEvent: {
1313
1343
  category: "export";
1314
1344
  };
1315
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1316
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1317
- elements: import("../element/types").OrderedExcalidrawElement[];
1345
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1346
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1347
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1318
1348
  appState: {
1349
+ viewBackgroundColor: string;
1350
+ frameRendering: {
1351
+ enabled: boolean;
1352
+ name: boolean;
1353
+ outline: boolean;
1354
+ clip: boolean;
1355
+ };
1356
+ frameColor: {
1357
+ stroke: string;
1358
+ fill: string;
1359
+ nameColor: string;
1360
+ };
1361
+ name: string | null;
1362
+ zoom: Readonly<{
1363
+ value: import("../types").NormalizedZoomValue;
1364
+ }>;
1365
+ scrollX: number;
1366
+ scrollY: number;
1319
1367
  viewModeEnabled: boolean;
1368
+ openDialog: {
1369
+ name: "help" | "imageExport" | "jsonExport";
1370
+ } | {
1371
+ name: "ttd";
1372
+ tab: "mermaid" | "text-to-diagram";
1373
+ } | {
1374
+ name: "commandPalette";
1375
+ } | {
1376
+ name: "elementLinkSelector";
1377
+ sourceElementId: string;
1378
+ } | null;
1379
+ editingGroupId: string | null;
1380
+ selectedElementIds: Readonly<{
1381
+ [id: string]: true;
1382
+ }>;
1383
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1384
+ theme: Theme;
1385
+ pendingImageElementId: string | null;
1386
+ activeEmbeddable: {
1387
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1388
+ state: "active" | "hover";
1389
+ } | null;
1390
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1391
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1392
+ selectedGroupIds: {
1393
+ [groupId: string]: boolean;
1394
+ };
1395
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1396
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1397
+ isBindingEnabled: boolean;
1398
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1399
+ isRotating: boolean;
1400
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1401
+ collaborators: Map<import("../types").SocketId, Readonly<{
1402
+ pointer?: import("../types").CollaboratorPointer | undefined;
1403
+ button?: "up" | "down" | undefined;
1404
+ selectedElementIds?: Readonly<{
1405
+ [id: string]: true;
1406
+ }> | undefined;
1407
+ username?: string | null | undefined;
1408
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1409
+ color?: {
1410
+ background: string;
1411
+ stroke: string;
1412
+ } | undefined;
1413
+ avatarUrl?: string | undefined;
1414
+ id?: string | undefined;
1415
+ socketId?: import("../types").SocketId | undefined;
1416
+ isCurrentUser?: boolean | undefined;
1417
+ isInCall?: boolean | undefined;
1418
+ isSpeaking?: boolean | undefined;
1419
+ isMuted?: boolean | undefined;
1420
+ }>>;
1421
+ snapLines: readonly import("../snapping").SnapLine[];
1320
1422
  zenModeEnabled: boolean;
1423
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1424
+ gridColor: {
1425
+ Bold: string;
1426
+ Regular: string;
1427
+ };
1428
+ gridDirection: {
1429
+ horizontal: boolean;
1430
+ vertical: boolean;
1431
+ };
1432
+ highlightSearchResult: boolean;
1433
+ isCropping: boolean;
1434
+ croppingElementId: string | null;
1435
+ searchMatches: readonly {
1436
+ id: string;
1437
+ focus: boolean;
1438
+ matchedLines: {
1439
+ offsetX: number;
1440
+ offsetY: number;
1441
+ width: number;
1442
+ height: number;
1443
+ }[];
1444
+ }[];
1321
1445
  gridModeEnabled: boolean;
1322
1446
  objectsSnapModeEnabled: boolean;
1323
- theme: Theme;
1324
- name: string | null;
1325
- currentItemArrowType: "round" | "sharp" | "elbow";
1447
+ shouldCacheIgnoreZoom: boolean;
1448
+ exportScale: number;
1449
+ selectedElementsAreBeingDragged: boolean;
1450
+ gridSize: number;
1451
+ gridStep: number;
1452
+ linkOpacity: number;
1453
+ currentHoveredFontFamily: number | null;
1454
+ hoveredElementIds: Readonly<{
1455
+ [id: string]: true;
1456
+ }>;
1326
1457
  contextMenu: {
1327
1458
  items: import("../components/ContextMenu").ContextMenuItems;
1328
1459
  top: number;
@@ -1331,129 +1462,59 @@ export declare const actionLoadScene: {
1331
1462
  showWelcomeScreen: boolean;
1332
1463
  isLoading: boolean;
1333
1464
  errorMessage: import("react").ReactNode;
1334
- activeEmbeddable: {
1335
- element: import("../element/types").NonDeletedExcalidrawElement;
1336
- state: "active" | "hover";
1337
- } | null;
1338
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1339
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1340
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1341
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1342
- isBindingEnabled: boolean;
1343
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1344
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1345
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1346
- frameRendering: {
1347
- enabled: boolean;
1348
- name: boolean;
1349
- outline: boolean;
1350
- clip: boolean;
1351
- };
1465
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1466
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1467
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1352
1468
  editingFrame: string | null;
1353
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1354
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1355
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1356
1469
  activeTool: {
1357
1470
  lastActiveTool: import("../types").ActiveTool | null;
1358
1471
  locked: boolean;
1472
+ fromSelection: boolean;
1359
1473
  } & import("../types").ActiveTool;
1360
1474
  penMode: boolean;
1361
1475
  penDetected: boolean;
1362
1476
  exportBackground: boolean;
1363
1477
  exportEmbedScene: boolean;
1364
1478
  exportWithDarkMode: boolean;
1365
- exportScale: number;
1366
1479
  currentItemStrokeColor: string;
1367
1480
  currentItemBackgroundColor: string;
1368
- currentItemFillStyle: import("../element/types").FillStyle;
1481
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1369
1482
  currentItemStrokeWidth: number;
1370
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1483
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1371
1484
  currentItemRoughness: number;
1372
1485
  currentItemOpacity: number;
1373
1486
  currentItemFontFamily: number;
1374
1487
  currentItemFontSize: number;
1375
1488
  currentItemTextAlign: string;
1376
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1377
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1378
- currentHoveredFontFamily: number | null;
1379
- currentItemRoundness: import("../element/types").StrokeRoundness;
1380
- viewBackgroundColor: string;
1381
- scrollX: number;
1382
- scrollY: number;
1489
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1490
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1491
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1492
+ currentItemArrowType: "round" | "sharp" | "elbow";
1383
1493
  cursorButton: "up" | "down";
1384
1494
  scrolledOutside: boolean;
1385
1495
  isResizing: boolean;
1386
- isRotating: boolean;
1387
- zoom: Readonly<{
1388
- value: import("../types").NormalizedZoomValue;
1389
- }>;
1390
- openMenu: "canvas" | "shape" | null;
1496
+ openMenu: "shape" | "canvas" | null;
1391
1497
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1392
1498
  openSidebar: {
1393
1499
  name: string;
1394
1500
  tab?: string | undefined;
1395
1501
  } | null;
1396
- openDialog: {
1397
- name: "help" | "imageExport" | "jsonExport";
1398
- } | {
1399
- name: "ttd";
1400
- tab: "mermaid" | "text-to-diagram";
1401
- } | {
1402
- name: "commandPalette";
1403
- } | {
1404
- name: "elementLinkSelector";
1405
- sourceElementId: string;
1406
- } | null;
1407
1502
  defaultSidebarDockedPreference: boolean;
1408
- lastPointerDownWith: import("../element/types").PointerType;
1409
- selectedElementIds: Readonly<{
1410
- [id: string]: true;
1411
- }>;
1412
- hoveredElementIds: Readonly<{
1413
- [id: string]: true;
1414
- }>;
1503
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1415
1504
  previousSelectedElementIds: {
1416
1505
  [id: string]: true;
1417
1506
  };
1418
- selectedElementsAreBeingDragged: boolean;
1419
- shouldCacheIgnoreZoom: boolean;
1420
1507
  toast: {
1421
1508
  message: string;
1422
1509
  closable?: boolean | undefined;
1423
1510
  duration?: number | undefined;
1424
1511
  } | null;
1425
- gridSize: number;
1426
- gridStep: number;
1427
- selectedGroupIds: {
1428
- [groupId: string]: boolean;
1429
- };
1430
- editingGroupId: string | null;
1431
1512
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1432
- collaborators: Map<import("../types").SocketId, Readonly<{
1433
- pointer?: import("../types").CollaboratorPointer | undefined;
1434
- button?: "up" | "down" | undefined;
1435
- selectedElementIds?: Readonly<{
1436
- [id: string]: true;
1437
- }> | undefined;
1438
- username?: string | null | undefined;
1439
- userState?: import("../constants").UserIdleState | undefined;
1440
- color?: {
1441
- background: string;
1442
- stroke: string;
1443
- } | undefined;
1444
- avatarUrl?: string | undefined;
1445
- id?: string | undefined;
1446
- socketId?: import("../types").SocketId | undefined;
1447
- isCurrentUser?: boolean | undefined;
1448
- isInCall?: boolean | undefined;
1449
- isSpeaking?: boolean | undefined;
1450
- isMuted?: boolean | undefined;
1451
- }>>;
1452
1513
  stats: {
1453
1514
  open: boolean;
1454
1515
  panels: number;
1455
1516
  };
1456
- currentChartType: import("../element/types").ChartType;
1517
+ currentChartType: import("@excalidraw/element/types").ChartType;
1457
1518
  pasteDialog: {
1458
1519
  shown: false;
1459
1520
  data: null;
@@ -1461,14 +1522,12 @@ export declare const actionLoadScene: {
1461
1522
  shown: true;
1462
1523
  data: import("../charts").Spreadsheet;
1463
1524
  };
1464
- pendingImageElementId: string | null;
1465
- showHyperlinkPopup: false | "info" | "editor";
1466
- linkOpacity: number;
1525
+ showHyperlinkPopup: false | "editor" | "info";
1467
1526
  trayModeEnabled: boolean;
1468
1527
  colorPalette?: {
1469
- canvasBackground: import("../colors").ColorPaletteCustom;
1470
- elementBackground: import("../colors").ColorPaletteCustom;
1471
- elementStroke: import("../colors").ColorPaletteCustom;
1528
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1529
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1530
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1472
1531
  topPicks: {
1473
1532
  canvasBackground: [string, string, string, string, string];
1474
1533
  elementStroke: [string, string, string, string, string];
@@ -1481,45 +1540,21 @@ export declare const actionLoadScene: {
1481
1540
  customPens?: any[] | undefined;
1482
1541
  currentStrokeOptions?: any;
1483
1542
  resetCustomPen?: any;
1484
- gridColor: {
1485
- Bold: string;
1486
- Regular: string;
1487
- };
1488
- highlightSearchResult: boolean;
1489
1543
  dynamicStyle: {
1490
1544
  [x: string]: string;
1491
1545
  };
1492
- frameColor: {
1493
- stroke: string;
1494
- fill: string;
1495
- nameColor: string;
1496
- };
1497
1546
  invertBindingBehaviour: boolean;
1498
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1499
- snapLines: readonly import("../snapping").SnapLine[];
1500
1547
  originSnapOffset: {
1501
1548
  x: number;
1502
1549
  y: number;
1503
1550
  } | null;
1504
1551
  userToFollow: import("../types").UserToFollow | null;
1505
1552
  followedBy: Set<import("../types").SocketId>;
1506
- isCropping: boolean;
1507
- croppingElementId: string | null;
1508
- searchMatches: readonly {
1509
- id: string;
1510
- focus: boolean;
1511
- matchedLines: {
1512
- offsetX: number;
1513
- offsetY: number;
1514
- width: number;
1515
- height: number;
1516
- }[];
1517
- }[];
1518
1553
  };
1519
1554
  files: import("../types").BinaryFiles;
1520
1555
  captureUpdate: "IMMEDIATELY";
1521
1556
  } | {
1522
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
1557
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
1523
1558
  appState: {
1524
1559
  errorMessage: any;
1525
1560
  contextMenu: {
@@ -1530,17 +1565,17 @@ export declare const actionLoadScene: {
1530
1565
  showWelcomeScreen: boolean;
1531
1566
  isLoading: boolean;
1532
1567
  activeEmbeddable: {
1533
- element: import("../element/types").NonDeletedExcalidrawElement;
1568
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1534
1569
  state: "active" | "hover";
1535
1570
  } | null;
1536
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1537
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1538
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1539
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1571
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1572
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1573
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1574
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1540
1575
  isBindingEnabled: boolean;
1541
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1542
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1543
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1576
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1577
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1578
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1544
1579
  frameRendering: {
1545
1580
  enabled: boolean;
1546
1581
  name: boolean;
@@ -1548,12 +1583,13 @@ export declare const actionLoadScene: {
1548
1583
  clip: boolean;
1549
1584
  };
1550
1585
  editingFrame: string | null;
1551
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1552
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1553
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1586
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1587
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1588
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1554
1589
  activeTool: {
1555
1590
  lastActiveTool: import("../types").ActiveTool | null;
1556
1591
  locked: boolean;
1592
+ fromSelection: boolean;
1557
1593
  } & import("../types").ActiveTool;
1558
1594
  penMode: boolean;
1559
1595
  penDetected: boolean;
@@ -1563,18 +1599,18 @@ export declare const actionLoadScene: {
1563
1599
  exportScale: number;
1564
1600
  currentItemStrokeColor: string;
1565
1601
  currentItemBackgroundColor: string;
1566
- currentItemFillStyle: import("../element/types").FillStyle;
1602
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1567
1603
  currentItemStrokeWidth: number;
1568
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1604
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1569
1605
  currentItemRoughness: number;
1570
1606
  currentItemOpacity: number;
1571
1607
  currentItemFontFamily: number;
1572
1608
  currentItemFontSize: number;
1573
1609
  currentItemTextAlign: string;
1574
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1575
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1610
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1611
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1576
1612
  currentHoveredFontFamily: number | null;
1577
- currentItemRoundness: import("../element/types").StrokeRoundness;
1613
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1578
1614
  currentItemArrowType: "round" | "sharp" | "elbow";
1579
1615
  viewBackgroundColor: string;
1580
1616
  scrollX: number;
@@ -1587,7 +1623,7 @@ export declare const actionLoadScene: {
1587
1623
  zoom: Readonly<{
1588
1624
  value: import("../types").NormalizedZoomValue;
1589
1625
  }>;
1590
- openMenu: "canvas" | "shape" | null;
1626
+ openMenu: "shape" | "canvas" | null;
1591
1627
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1592
1628
  openSidebar: {
1593
1629
  name: string;
@@ -1605,7 +1641,7 @@ export declare const actionLoadScene: {
1605
1641
  sourceElementId: string;
1606
1642
  } | null;
1607
1643
  defaultSidebarDockedPreference: boolean;
1608
- lastPointerDownWith: import("../element/types").PointerType;
1644
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1609
1645
  selectedElementIds: Readonly<{
1610
1646
  [id: string]: true;
1611
1647
  }>;
@@ -1644,7 +1680,7 @@ export declare const actionLoadScene: {
1644
1680
  [id: string]: true;
1645
1681
  }> | undefined;
1646
1682
  username?: string | null | undefined;
1647
- userState?: import("../constants").UserIdleState | undefined;
1683
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1648
1684
  color?: {
1649
1685
  background: string;
1650
1686
  stroke: string;
@@ -1661,7 +1697,7 @@ export declare const actionLoadScene: {
1661
1697
  open: boolean;
1662
1698
  panels: number;
1663
1699
  };
1664
- currentChartType: import("../element/types").ChartType;
1700
+ currentChartType: import("@excalidraw/element/types").ChartType;
1665
1701
  pasteDialog: {
1666
1702
  shown: false;
1667
1703
  data: null;
@@ -1670,13 +1706,13 @@ export declare const actionLoadScene: {
1670
1706
  data: import("../charts").Spreadsheet;
1671
1707
  };
1672
1708
  pendingImageElementId: string | null;
1673
- showHyperlinkPopup: false | "info" | "editor";
1709
+ showHyperlinkPopup: false | "editor" | "info";
1674
1710
  linkOpacity: number;
1675
1711
  trayModeEnabled: boolean;
1676
1712
  colorPalette?: {
1677
- canvasBackground: import("../colors").ColorPaletteCustom;
1678
- elementBackground: import("../colors").ColorPaletteCustom;
1679
- elementStroke: import("../colors").ColorPaletteCustom;
1713
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1714
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1715
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1680
1716
  topPicks: {
1681
1717
  canvasBackground: [string, string, string, string, string];
1682
1718
  elementStroke: [string, string, string, string, string];
@@ -1693,6 +1729,10 @@ export declare const actionLoadScene: {
1693
1729
  Bold: string;
1694
1730
  Regular: string;
1695
1731
  };
1732
+ gridDirection: {
1733
+ horizontal: boolean;
1734
+ vertical: boolean;
1735
+ };
1696
1736
  highlightSearchResult: boolean;
1697
1737
  dynamicStyle: {
1698
1738
  [x: string]: string;
@@ -1703,7 +1743,7 @@ export declare const actionLoadScene: {
1703
1743
  nameColor: string;
1704
1744
  };
1705
1745
  invertBindingBehaviour: boolean;
1706
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1746
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1707
1747
  snapLines: readonly import("../snapping").SnapLine[];
1708
1748
  originSnapOffset: {
1709
1749
  x: number;
@@ -1739,7 +1779,7 @@ export declare const actionExportWithDarkMode: {
1739
1779
  category: "export";
1740
1780
  action: string;
1741
1781
  };
1742
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1782
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1743
1783
  appState: {
1744
1784
  exportWithDarkMode: any;
1745
1785
  contextMenu: {
@@ -1751,17 +1791,17 @@ export declare const actionExportWithDarkMode: {
1751
1791
  isLoading: boolean;
1752
1792
  errorMessage: import("react").ReactNode;
1753
1793
  activeEmbeddable: {
1754
- element: import("../element/types").NonDeletedExcalidrawElement;
1794
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1755
1795
  state: "active" | "hover";
1756
1796
  } | null;
1757
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1758
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1759
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1760
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1797
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1798
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1799
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1800
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1761
1801
  isBindingEnabled: boolean;
1762
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1763
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1764
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1802
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1803
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1804
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1765
1805
  frameRendering: {
1766
1806
  enabled: boolean;
1767
1807
  name: boolean;
@@ -1769,12 +1809,13 @@ export declare const actionExportWithDarkMode: {
1769
1809
  clip: boolean;
1770
1810
  };
1771
1811
  editingFrame: string | null;
1772
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1773
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1774
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1812
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1813
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1814
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1775
1815
  activeTool: {
1776
1816
  lastActiveTool: import("../types").ActiveTool | null;
1777
1817
  locked: boolean;
1818
+ fromSelection: boolean;
1778
1819
  } & import("../types").ActiveTool;
1779
1820
  penMode: boolean;
1780
1821
  penDetected: boolean;
@@ -1783,18 +1824,18 @@ export declare const actionExportWithDarkMode: {
1783
1824
  exportScale: number;
1784
1825
  currentItemStrokeColor: string;
1785
1826
  currentItemBackgroundColor: string;
1786
- currentItemFillStyle: import("../element/types").FillStyle;
1827
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1787
1828
  currentItemStrokeWidth: number;
1788
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1829
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1789
1830
  currentItemRoughness: number;
1790
1831
  currentItemOpacity: number;
1791
1832
  currentItemFontFamily: number;
1792
1833
  currentItemFontSize: number;
1793
1834
  currentItemTextAlign: string;
1794
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1795
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1835
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1836
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1796
1837
  currentHoveredFontFamily: number | null;
1797
- currentItemRoundness: import("../element/types").StrokeRoundness;
1838
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1798
1839
  currentItemArrowType: "round" | "sharp" | "elbow";
1799
1840
  viewBackgroundColor: string;
1800
1841
  scrollX: number;
@@ -1807,7 +1848,7 @@ export declare const actionExportWithDarkMode: {
1807
1848
  zoom: Readonly<{
1808
1849
  value: import("../types").NormalizedZoomValue;
1809
1850
  }>;
1810
- openMenu: "canvas" | "shape" | null;
1851
+ openMenu: "shape" | "canvas" | null;
1811
1852
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1812
1853
  openSidebar: {
1813
1854
  name: string;
@@ -1825,7 +1866,7 @@ export declare const actionExportWithDarkMode: {
1825
1866
  sourceElementId: string;
1826
1867
  } | null;
1827
1868
  defaultSidebarDockedPreference: boolean;
1828
- lastPointerDownWith: import("../element/types").PointerType;
1869
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1829
1870
  selectedElementIds: Readonly<{
1830
1871
  [id: string]: true;
1831
1872
  }>;
@@ -1864,7 +1905,7 @@ export declare const actionExportWithDarkMode: {
1864
1905
  [id: string]: true;
1865
1906
  }> | undefined;
1866
1907
  username?: string | null | undefined;
1867
- userState?: import("../constants").UserIdleState | undefined;
1908
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1868
1909
  color?: {
1869
1910
  background: string;
1870
1911
  stroke: string;
@@ -1881,7 +1922,7 @@ export declare const actionExportWithDarkMode: {
1881
1922
  open: boolean;
1882
1923
  panels: number;
1883
1924
  };
1884
- currentChartType: import("../element/types").ChartType;
1925
+ currentChartType: import("@excalidraw/element/types").ChartType;
1885
1926
  pasteDialog: {
1886
1927
  shown: false;
1887
1928
  data: null;
@@ -1890,13 +1931,13 @@ export declare const actionExportWithDarkMode: {
1890
1931
  data: import("../charts").Spreadsheet;
1891
1932
  };
1892
1933
  pendingImageElementId: string | null;
1893
- showHyperlinkPopup: false | "info" | "editor";
1934
+ showHyperlinkPopup: false | "editor" | "info";
1894
1935
  linkOpacity: number;
1895
1936
  trayModeEnabled: boolean;
1896
1937
  colorPalette?: {
1897
- canvasBackground: import("../colors").ColorPaletteCustom;
1898
- elementBackground: import("../colors").ColorPaletteCustom;
1899
- elementStroke: import("../colors").ColorPaletteCustom;
1938
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
1939
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
1940
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
1900
1941
  topPicks: {
1901
1942
  canvasBackground: [string, string, string, string, string];
1902
1943
  elementStroke: [string, string, string, string, string];
@@ -1913,6 +1954,10 @@ export declare const actionExportWithDarkMode: {
1913
1954
  Bold: string;
1914
1955
  Regular: string;
1915
1956
  };
1957
+ gridDirection: {
1958
+ horizontal: boolean;
1959
+ vertical: boolean;
1960
+ };
1916
1961
  highlightSearchResult: boolean;
1917
1962
  dynamicStyle: {
1918
1963
  [x: string]: string;
@@ -1923,7 +1968,7 @@ export declare const actionExportWithDarkMode: {
1923
1968
  nameColor: string;
1924
1969
  };
1925
1970
  invertBindingBehaviour: boolean;
1926
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1971
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
1927
1972
  snapLines: readonly import("../snapping").SnapLine[];
1928
1973
  originSnapOffset: {
1929
1974
  x: number;