@zsviczian/excalidraw 0.18.0-1 → 0.18.0-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/README.md +1 -1
  2. package/dist/excalidraw.development.js +2231 -2418
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -32
  5. package/dist/styles.development.css +2995 -3004
  6. package/dist/styles.production.css +28 -28
  7. package/package.json +14 -2
  8. package/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
  9. package/types/{excalidraw → common/src}/colors.d.ts +1 -0
  10. package/types/{excalidraw → common/src}/constants.d.ts +10 -7
  11. package/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
  12. package/types/common/src/index.d.ts +11 -0
  13. package/types/{excalidraw → common/src}/points.d.ts +2 -0
  14. package/types/common/src/promise-pool.d.ts +6 -0
  15. package/types/{excalidraw → common/src}/utils.d.ts +13 -12
  16. package/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
  17. package/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
  18. package/types/{excalidraw → element/src}/align.d.ts +2 -2
  19. package/types/{excalidraw/element → element/src}/binding.d.ts +8 -8
  20. package/types/{excalidraw/element → element/src}/bounds.d.ts +9 -4
  21. package/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
  22. package/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  23. package/types/{excalidraw → element/src}/distribute.d.ts +1 -1
  24. package/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
  25. package/types/element/src/duplicate.d.ts +63 -0
  26. package/types/{excalidraw/element → element/src}/elbowArrow.d.ts +2 -2
  27. package/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  28. package/types/element/src/embeddable.d.ts +10 -0
  29. package/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
  30. package/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
  31. package/types/{excalidraw → element/src}/frame.d.ts +7 -7
  32. package/types/{excalidraw → element/src}/groups.d.ts +5 -5
  33. package/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  34. package/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  35. package/types/{excalidraw/element → element/src}/index.d.ts +0 -10
  36. package/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +7 -7
  37. package/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
  38. package/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
  39. package/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  40. package/types/{excalidraw/element → element/src}/resizeElements.d.ts +4 -4
  41. package/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  42. package/types/{excalidraw/scene → element/src}/selection.d.ts +13 -2
  43. package/types/element/src/shapes.d.ts +23 -0
  44. package/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  45. package/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
  46. package/types/{excalidraw/element → element/src}/textElement.d.ts +5 -5
  47. package/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  48. package/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
  49. package/types/{excalidraw/element → element/src}/types.d.ts +2 -2
  50. package/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
  51. package/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  52. package/types/excalidraw/actions/actionAddToLibrary.d.ts +94 -79
  53. package/types/excalidraw/actions/actionAlign.d.ts +7 -7
  54. package/types/excalidraw/actions/actionBoundText.d.ts +68 -58
  55. package/types/excalidraw/actions/actionCanvas.d.ts +738 -455
  56. package/types/excalidraw/actions/actionClipboard.d.ts +197 -167
  57. package/types/excalidraw/actions/actionCropEditor.d.ts +33 -28
  58. package/types/excalidraw/actions/actionDeleteSelected.d.ts +94 -79
  59. package/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  60. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  61. package/types/excalidraw/actions/actionElementLink.d.ts +37 -32
  62. package/types/excalidraw/actions/actionElementLock.d.ts +67 -58
  63. package/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +33 -38
  64. package/types/excalidraw/actions/actionExport.d.ts +374 -329
  65. package/types/excalidraw/actions/actionFinalize.d.ts +55 -45
  66. package/types/excalidraw/actions/actionFlip.d.ts +3 -3
  67. package/types/excalidraw/actions/actionFrame.d.ts +243 -223
  68. package/types/excalidraw/actions/actionGroup.d.ts +65 -55
  69. package/types/excalidraw/actions/actionHistory.d.ts +1 -1
  70. package/types/excalidraw/actions/actionLinearEditor.d.ts +34 -29
  71. package/types/excalidraw/actions/actionLink.d.ts +33 -28
  72. package/types/excalidraw/actions/actionMenu.d.ts +94 -79
  73. package/types/excalidraw/actions/actionNavigate.d.ts +62 -52
  74. package/types/excalidraw/actions/actionProperties.d.ts +422 -347
  75. package/types/excalidraw/actions/actionSelectAll.d.ts +33 -28
  76. package/types/excalidraw/actions/actionStyles.d.ts +35 -30
  77. package/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  78. package/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -28
  79. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +33 -28
  80. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +64 -54
  81. package/types/excalidraw/actions/actionToggleStats.d.ts +32 -28
  82. package/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -29
  83. package/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -29
  84. package/types/excalidraw/actions/actionZindex.d.ts +8 -8
  85. package/types/excalidraw/actions/index.d.ts +1 -0
  86. package/types/excalidraw/actions/manager.d.ts +2 -2
  87. package/types/excalidraw/actions/shortcuts.d.ts +1 -1
  88. package/types/excalidraw/actions/types.d.ts +4 -4
  89. package/types/excalidraw/animated-trail.d.ts +7 -1
  90. package/types/excalidraw/appState.d.ts +32 -31
  91. package/types/excalidraw/change.d.ts +3 -3
  92. package/types/excalidraw/charts.d.ts +1 -1
  93. package/types/excalidraw/clipboard.d.ts +7 -7
  94. package/types/excalidraw/components/Actions.d.ts +3 -3
  95. package/types/excalidraw/components/App.d.ts +32 -32
  96. package/types/excalidraw/components/Avatar.d.ts +1 -1
  97. package/types/excalidraw/components/ButtonIcon.d.ts +1 -1
  98. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
  99. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  100. package/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  101. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  102. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  103. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
  104. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  105. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  106. package/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  107. package/types/excalidraw/components/ContextMenu.d.ts +2 -2
  108. package/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  109. package/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  110. package/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  111. package/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  112. package/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
  113. package/types/excalidraw/components/EyeDropper.d.ts +1 -1
  114. package/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  115. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  116. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  117. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  118. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  119. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  120. package/types/excalidraw/components/HintViewer.d.ts +1 -1
  121. package/types/excalidraw/components/IconPicker.d.ts +1 -1
  122. package/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  123. package/types/excalidraw/components/InitializeApp.d.ts +1 -1
  124. package/types/excalidraw/components/Island.d.ts +1 -1
  125. package/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  126. package/types/excalidraw/components/LayerUI.d.ts +3 -3
  127. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  128. package/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  129. package/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  130. package/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  131. package/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  132. package/types/excalidraw/components/MagicButton.d.ts +1 -1
  133. package/types/excalidraw/components/MobileMenu.d.ts +3 -3
  134. package/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  135. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  136. package/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  137. package/types/excalidraw/components/SVGLayer.d.ts +1 -1
  138. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  139. package/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  140. package/types/excalidraw/components/Stack.d.ts +1 -1
  141. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  142. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  143. package/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  144. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  145. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  146. package/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  147. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  148. package/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  149. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  150. package/types/excalidraw/components/Stats/index.d.ts +2 -2
  151. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  152. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -1
  153. package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +1 -1
  154. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  155. package/types/excalidraw/components/TTDDialog/common.d.ts +3 -3
  156. package/types/excalidraw/components/TextField.d.ts +1 -1
  157. package/types/excalidraw/components/Toast.d.ts +1 -1
  158. package/types/excalidraw/components/ToolButton.d.ts +2 -2
  159. package/types/excalidraw/components/Tooltip.d.ts +1 -1
  160. package/types/excalidraw/components/UserList.d.ts +1 -1
  161. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  162. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  163. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  164. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  165. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  166. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  167. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
  168. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  169. package/types/excalidraw/components/icons.d.ts +2 -1
  170. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  171. package/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  172. package/types/excalidraw/components/shapes.d.ts +62 -0
  173. package/types/excalidraw/context/tunnels.d.ts +1 -1
  174. package/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  175. package/types/excalidraw/data/blob.d.ts +4 -4
  176. package/types/excalidraw/data/filesystem.d.ts +2 -2
  177. package/types/excalidraw/data/index.d.ts +2 -2
  178. package/types/excalidraw/data/json.d.ts +1 -1
  179. package/types/excalidraw/data/library.d.ts +3 -3
  180. package/types/excalidraw/data/reconcile.d.ts +2 -2
  181. package/types/excalidraw/data/resave.d.ts +1 -1
  182. package/types/excalidraw/data/restore.d.ts +1 -1
  183. package/types/excalidraw/data/transform.d.ts +4 -4
  184. package/types/excalidraw/data/types.d.ts +3 -3
  185. package/types/excalidraw/eraser/index.d.ts +14 -0
  186. package/types/excalidraw/errors.d.ts +0 -3
  187. package/types/excalidraw/fonts/Fonts.d.ts +2 -12
  188. package/types/excalidraw/history.d.ts +2 -2
  189. package/types/excalidraw/i18n.d.ts +1 -1
  190. package/types/excalidraw/index.d.ts +29 -35
  191. package/types/excalidraw/laser-trails.d.ts +1 -1
  192. package/types/excalidraw/lasso/index.d.ts +15 -0
  193. package/types/excalidraw/lasso/utils.d.ts +12 -0
  194. package/types/excalidraw/obsidianUtils.d.ts +3 -2
  195. package/types/excalidraw/renderer/helpers.d.ts +2 -2
  196. package/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  197. package/types/excalidraw/scene/Renderer.d.ts +3 -3
  198. package/types/excalidraw/scene/Scene.d.ts +5 -5
  199. package/types/excalidraw/scene/export.d.ts +1 -1
  200. package/types/excalidraw/scene/index.d.ts +2 -2
  201. package/types/excalidraw/scene/scroll.d.ts +1 -1
  202. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  203. package/types/excalidraw/scene/types.d.ts +4 -4
  204. package/types/excalidraw/snapping.d.ts +5 -6
  205. package/types/excalidraw/store.d.ts +2 -2
  206. package/types/excalidraw/types.d.ts +26 -16
  207. package/types/excalidraw/visualdebug.d.ts +2 -2
  208. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  209. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  210. package/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
  211. package/types/math/{point.d.ts → src/point.d.ts} +2 -2
  212. package/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  213. package/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  214. package/types/math/{types.d.ts → src/types.d.ts} +1 -0
  215. package/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  216. package/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
  217. package/types/utils/{export.d.ts → src/export.d.ts} +2 -12
  218. package/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  219. package/types/utils/{geometry → src}/shape.d.ts +2 -15
  220. package/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  221. package/types/excalidraw/shapes.d.ts +0 -85
  222. /package/types/{excalidraw → common/src}/keys.d.ts +0 -0
  223. /package/types/{excalidraw → common/src}/queue.d.ts +0 -0
  224. /package/types/{excalidraw → common/src}/random.d.ts +0 -0
  225. /package/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  226. /package/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
  227. /package/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  228. /package/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  229. /package/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  230. /package/types/{excalidraw/renderer → element/src}/easingFunctions.d.ts +0 -0
  231. /package/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  232. /package/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  233. /package/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  234. /package/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
  235. /package/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
  236. /package/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  237. /package/types/math/{index.d.ts → src/index.d.ts} +0 -0
  238. /package/types/math/{line.d.ts → src/line.d.ts} +0 -0
  239. /package/types/math/{range.d.ts → src/range.d.ts} +0 -0
  240. /package/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  241. /package/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  242. /package/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
  243. /package/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawElement, OrderedExcalidrawElement } from "../element/types";
1
+ import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
2
2
  import type { AppClassProperties, AppState } from "../types";
3
3
  export declare const actionGroup: {
4
4
  name: "group";
@@ -13,13 +13,13 @@ export declare const actionGroup: {
13
13
  captureUpdate: "EVENTUALLY";
14
14
  } | {
15
15
  appState: {
16
+ editingGroupId: string | null;
16
17
  selectedElementIds: Readonly<{
17
18
  [id: string]: true;
18
19
  }>;
19
20
  selectedGroupIds: {
20
21
  [groupId: string]: boolean;
21
22
  };
22
- editingGroupId: string | null;
23
23
  contextMenu: {
24
24
  items: import("../components/ContextMenu").ContextMenuItems;
25
25
  top: number;
@@ -29,17 +29,17 @@ export declare const actionGroup: {
29
29
  isLoading: boolean;
30
30
  errorMessage: import("react").ReactNode;
31
31
  activeEmbeddable: {
32
- element: import("../element/types").NonDeletedExcalidrawElement;
32
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
33
33
  state: "active" | "hover";
34
34
  } | null;
35
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
36
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
37
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
38
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
35
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
36
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
37
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
38
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
39
  isBindingEnabled: boolean;
40
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
41
- suggestedBindings: import("../element/binding").SuggestedBinding[];
42
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
40
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
41
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
42
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
43
43
  frameRendering: {
44
44
  enabled: boolean;
45
45
  name: boolean;
@@ -47,12 +47,13 @@ export declare const actionGroup: {
47
47
  clip: boolean;
48
48
  };
49
49
  editingFrame: string | null;
50
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
51
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
52
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
50
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
51
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
52
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
53
53
  activeTool: {
54
54
  lastActiveTool: import("../types").ActiveTool | null;
55
55
  locked: boolean;
56
+ fromSelection: boolean;
56
57
  } & import("../types").ActiveTool;
57
58
  penMode: boolean;
58
59
  penDetected: boolean;
@@ -62,18 +63,18 @@ export declare const actionGroup: {
62
63
  exportScale: number;
63
64
  currentItemStrokeColor: string;
64
65
  currentItemBackgroundColor: string;
65
- currentItemFillStyle: import("../element/types").FillStyle;
66
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
66
67
  currentItemStrokeWidth: number;
67
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
68
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
68
69
  currentItemRoughness: number;
69
70
  currentItemOpacity: number;
70
71
  currentItemFontFamily: number;
71
72
  currentItemFontSize: number;
72
73
  currentItemTextAlign: string;
73
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
74
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
74
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
75
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
75
76
  currentHoveredFontFamily: number | null;
76
- currentItemRoundness: import("../element/types").StrokeRoundness;
77
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
77
78
  currentItemArrowType: "round" | "sharp" | "elbow";
78
79
  viewBackgroundColor: string;
79
80
  scrollX: number;
@@ -86,7 +87,7 @@ export declare const actionGroup: {
86
87
  zoom: Readonly<{
87
88
  value: import("../types").NormalizedZoomValue;
88
89
  }>;
89
- openMenu: "canvas" | "shape" | null;
90
+ openMenu: "shape" | "canvas" | null;
90
91
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
91
92
  openSidebar: {
92
93
  name: string;
@@ -104,7 +105,7 @@ export declare const actionGroup: {
104
105
  sourceElementId: string;
105
106
  } | null;
106
107
  defaultSidebarDockedPreference: boolean;
107
- lastPointerDownWith: import("../element/types").PointerType;
108
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
108
109
  hoveredElementIds: Readonly<{
109
110
  [id: string]: true;
110
111
  }>;
@@ -119,7 +120,7 @@ export declare const actionGroup: {
119
120
  duration?: number | undefined;
120
121
  } | null;
121
122
  zenModeEnabled: boolean;
122
- theme: import("../element/types").Theme;
123
+ theme: import("@excalidraw/element/types").Theme;
123
124
  gridSize: number;
124
125
  gridStep: number;
125
126
  gridModeEnabled: boolean;
@@ -136,7 +137,7 @@ export declare const actionGroup: {
136
137
  [id: string]: true;
137
138
  }> | undefined;
138
139
  username?: string | null | undefined;
139
- userState?: import("..").UserIdleState | undefined;
140
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
140
141
  color?: {
141
142
  background: string;
142
143
  stroke: string;
@@ -153,7 +154,7 @@ export declare const actionGroup: {
153
154
  open: boolean;
154
155
  panels: number;
155
156
  };
156
- currentChartType: import("../element/types").ChartType;
157
+ currentChartType: import("@excalidraw/element/types").ChartType;
157
158
  pasteDialog: {
158
159
  shown: false;
159
160
  data: null;
@@ -162,13 +163,13 @@ export declare const actionGroup: {
162
163
  data: import("../charts").Spreadsheet;
163
164
  };
164
165
  pendingImageElementId: string | null;
165
- showHyperlinkPopup: false | "info" | "editor";
166
+ showHyperlinkPopup: false | "editor" | "info";
166
167
  linkOpacity: number;
167
168
  trayModeEnabled: boolean;
168
169
  colorPalette?: {
169
- canvasBackground: import("../colors").ColorPaletteCustom;
170
- elementBackground: import("../colors").ColorPaletteCustom;
171
- elementStroke: import("../colors").ColorPaletteCustom;
170
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
171
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
172
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
172
173
  topPicks: {
173
174
  canvasBackground: [string, string, string, string, string];
174
175
  elementStroke: [string, string, string, string, string];
@@ -185,6 +186,10 @@ export declare const actionGroup: {
185
186
  Bold: string;
186
187
  Regular: string;
187
188
  };
189
+ gridDirection: {
190
+ horizontal: boolean;
191
+ vertical: boolean;
192
+ };
188
193
  highlightSearchResult: boolean;
189
194
  dynamicStyle: {
190
195
  [x: string]: string;
@@ -195,7 +200,7 @@ export declare const actionGroup: {
195
200
  nameColor: string;
196
201
  };
197
202
  invertBindingBehaviour: boolean;
198
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
203
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
199
204
  snapLines: readonly import("../snapping").SnapLine[];
200
205
  originSnapOffset: {
201
206
  x: number;
@@ -239,13 +244,13 @@ export declare const actionUngroup: {
239
244
  captureUpdate: "EVENTUALLY";
240
245
  } | {
241
246
  appState: {
247
+ editingGroupId: string | null;
242
248
  selectedElementIds: Readonly<{
243
249
  [id: string]: true;
244
250
  }>;
245
251
  selectedGroupIds: {
246
252
  [groupId: string]: boolean;
247
253
  };
248
- editingGroupId: string | null;
249
254
  contextMenu: {
250
255
  items: import("../components/ContextMenu").ContextMenuItems;
251
256
  top: number;
@@ -255,17 +260,17 @@ export declare const actionUngroup: {
255
260
  isLoading: boolean;
256
261
  errorMessage: import("react").ReactNode;
257
262
  activeEmbeddable: {
258
- element: import("../element/types").NonDeletedExcalidrawElement;
263
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
259
264
  state: "active" | "hover";
260
265
  } | null;
261
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
262
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
263
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
264
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
266
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
267
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
268
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
269
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
265
270
  isBindingEnabled: boolean;
266
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
267
- suggestedBindings: import("../element/binding").SuggestedBinding[];
268
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
271
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
272
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
273
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
269
274
  frameRendering: {
270
275
  enabled: boolean;
271
276
  name: boolean;
@@ -273,12 +278,13 @@ export declare const actionUngroup: {
273
278
  clip: boolean;
274
279
  };
275
280
  editingFrame: string | null;
276
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
277
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
278
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
281
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
282
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
283
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
279
284
  activeTool: {
280
285
  lastActiveTool: import("../types").ActiveTool | null;
281
286
  locked: boolean;
287
+ fromSelection: boolean;
282
288
  } & import("../types").ActiveTool;
283
289
  penMode: boolean;
284
290
  penDetected: boolean;
@@ -288,18 +294,18 @@ export declare const actionUngroup: {
288
294
  exportScale: number;
289
295
  currentItemStrokeColor: string;
290
296
  currentItemBackgroundColor: string;
291
- currentItemFillStyle: import("../element/types").FillStyle;
297
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
292
298
  currentItemStrokeWidth: number;
293
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
299
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
294
300
  currentItemRoughness: number;
295
301
  currentItemOpacity: number;
296
302
  currentItemFontFamily: number;
297
303
  currentItemFontSize: number;
298
304
  currentItemTextAlign: string;
299
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
300
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
305
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
306
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
301
307
  currentHoveredFontFamily: number | null;
302
- currentItemRoundness: import("../element/types").StrokeRoundness;
308
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
303
309
  currentItemArrowType: "round" | "sharp" | "elbow";
304
310
  viewBackgroundColor: string;
305
311
  scrollX: number;
@@ -312,7 +318,7 @@ export declare const actionUngroup: {
312
318
  zoom: Readonly<{
313
319
  value: import("../types").NormalizedZoomValue;
314
320
  }>;
315
- openMenu: "canvas" | "shape" | null;
321
+ openMenu: "shape" | "canvas" | null;
316
322
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
317
323
  openSidebar: {
318
324
  name: string;
@@ -330,7 +336,7 @@ export declare const actionUngroup: {
330
336
  sourceElementId: string;
331
337
  } | null;
332
338
  defaultSidebarDockedPreference: boolean;
333
- lastPointerDownWith: import("../element/types").PointerType;
339
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
334
340
  hoveredElementIds: Readonly<{
335
341
  [id: string]: true;
336
342
  }>;
@@ -345,7 +351,7 @@ export declare const actionUngroup: {
345
351
  duration?: number | undefined;
346
352
  } | null;
347
353
  zenModeEnabled: boolean;
348
- theme: import("../element/types").Theme;
354
+ theme: import("@excalidraw/element/types").Theme;
349
355
  gridSize: number;
350
356
  gridStep: number;
351
357
  gridModeEnabled: boolean;
@@ -362,7 +368,7 @@ export declare const actionUngroup: {
362
368
  [id: string]: true;
363
369
  }> | undefined;
364
370
  username?: string | null | undefined;
365
- userState?: import("..").UserIdleState | undefined;
371
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
366
372
  color?: {
367
373
  background: string;
368
374
  stroke: string;
@@ -379,7 +385,7 @@ export declare const actionUngroup: {
379
385
  open: boolean;
380
386
  panels: number;
381
387
  };
382
- currentChartType: import("../element/types").ChartType;
388
+ currentChartType: import("@excalidraw/element/types").ChartType;
383
389
  pasteDialog: {
384
390
  shown: false;
385
391
  data: null;
@@ -388,13 +394,13 @@ export declare const actionUngroup: {
388
394
  data: import("../charts").Spreadsheet;
389
395
  };
390
396
  pendingImageElementId: string | null;
391
- showHyperlinkPopup: false | "info" | "editor";
397
+ showHyperlinkPopup: false | "editor" | "info";
392
398
  linkOpacity: number;
393
399
  trayModeEnabled: boolean;
394
400
  colorPalette?: {
395
- canvasBackground: import("../colors").ColorPaletteCustom;
396
- elementBackground: import("../colors").ColorPaletteCustom;
397
- elementStroke: import("../colors").ColorPaletteCustom;
401
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
402
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
403
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
398
404
  topPicks: {
399
405
  canvasBackground: [string, string, string, string, string];
400
406
  elementStroke: [string, string, string, string, string];
@@ -411,6 +417,10 @@ export declare const actionUngroup: {
411
417
  Bold: string;
412
418
  Regular: string;
413
419
  };
420
+ gridDirection: {
421
+ horizontal: boolean;
422
+ vertical: boolean;
423
+ };
414
424
  highlightSearchResult: boolean;
415
425
  dynamicStyle: {
416
426
  [x: string]: string;
@@ -421,7 +431,7 @@ export declare const actionUngroup: {
421
431
  nameColor: string;
422
432
  };
423
433
  invertBindingBehaviour: boolean;
424
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
434
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
425
435
  snapLines: readonly import("../snapping").SnapLine[];
426
436
  originSnapOffset: {
427
437
  x: number;
@@ -1,6 +1,6 @@
1
- import type { Action } from "./types";
2
1
  import type { History } from "../history";
3
2
  import type { Store } from "../store";
3
+ import type { Action } from "./types";
4
4
  type ActionCreator = (history: History, store: Store) => Action;
5
5
  export declare const createUndoAction: ActionCreator;
6
6
  export declare const createRedoAction: ActionCreator;
@@ -1,15 +1,15 @@
1
- import { LinearElementEditor } from "../element/linearElementEditor";
2
- import type { ExcalidrawLinearElement } from "../element/types";
1
+ import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
2
+ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
3
3
  export declare const actionToggleLinearEditor: {
4
4
  name: "toggleLinearEditor";
5
5
  category: string;
6
- label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
6
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
7
7
  keywords: string[];
8
8
  trackEvent: {
9
9
  category: "element";
10
10
  };
11
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
- perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
11
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
13
13
  appState: {
14
14
  editingLinearElement: LinearElementEditor | null;
15
15
  contextMenu: {
@@ -21,17 +21,17 @@ export declare const actionToggleLinearEditor: {
21
21
  isLoading: boolean;
22
22
  errorMessage: import("react").ReactNode;
23
23
  activeEmbeddable: {
24
- element: import("../element/types").NonDeletedExcalidrawElement;
24
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
25
  state: "active" | "hover";
26
26
  } | null;
27
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
28
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
29
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
30
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
30
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
31
  isBindingEnabled: boolean;
32
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
33
- suggestedBindings: import("../element/binding").SuggestedBinding[];
34
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
32
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
34
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
35
  frameRendering: {
36
36
  enabled: boolean;
37
37
  name: boolean;
@@ -39,11 +39,12 @@ export declare const actionToggleLinearEditor: {
39
39
  clip: boolean;
40
40
  };
41
41
  editingFrame: string | null;
42
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
43
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
43
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
44
44
  activeTool: {
45
45
  lastActiveTool: import("../types").ActiveTool | null;
46
46
  locked: boolean;
47
+ fromSelection: boolean;
47
48
  } & import("../types").ActiveTool;
48
49
  penMode: boolean;
49
50
  penDetected: boolean;
@@ -53,18 +54,18 @@ export declare const actionToggleLinearEditor: {
53
54
  exportScale: number;
54
55
  currentItemStrokeColor: string;
55
56
  currentItemBackgroundColor: string;
56
- currentItemFillStyle: import("../element/types").FillStyle;
57
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
57
58
  currentItemStrokeWidth: number;
58
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
59
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
59
60
  currentItemRoughness: number;
60
61
  currentItemOpacity: number;
61
62
  currentItemFontFamily: number;
62
63
  currentItemFontSize: number;
63
64
  currentItemTextAlign: string;
64
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
65
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
67
  currentHoveredFontFamily: number | null;
67
- currentItemRoundness: import("../element/types").StrokeRoundness;
68
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
68
69
  currentItemArrowType: "round" | "sharp" | "elbow";
69
70
  viewBackgroundColor: string;
70
71
  scrollX: number;
@@ -77,7 +78,7 @@ export declare const actionToggleLinearEditor: {
77
78
  zoom: Readonly<{
78
79
  value: import("../types").NormalizedZoomValue;
79
80
  }>;
80
- openMenu: "canvas" | "shape" | null;
81
+ openMenu: "shape" | "canvas" | null;
81
82
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
83
  openSidebar: {
83
84
  name: string;
@@ -95,7 +96,7 @@ export declare const actionToggleLinearEditor: {
95
96
  sourceElementId: string;
96
97
  } | null;
97
98
  defaultSidebarDockedPreference: boolean;
98
- lastPointerDownWith: import("../element/types").PointerType;
99
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
99
100
  selectedElementIds: Readonly<{
100
101
  [id: string]: true;
101
102
  }>;
@@ -113,7 +114,7 @@ export declare const actionToggleLinearEditor: {
113
114
  duration?: number | undefined;
114
115
  } | null;
115
116
  zenModeEnabled: boolean;
116
- theme: import("../element/types").Theme;
117
+ theme: import("@excalidraw/element/types").Theme;
117
118
  gridSize: number;
118
119
  gridStep: number;
119
120
  gridModeEnabled: boolean;
@@ -134,7 +135,7 @@ export declare const actionToggleLinearEditor: {
134
135
  [id: string]: true;
135
136
  }> | undefined;
136
137
  username?: string | null | undefined;
137
- userState?: import("..").UserIdleState | undefined;
138
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
138
139
  color?: {
139
140
  background: string;
140
141
  stroke: string;
@@ -151,7 +152,7 @@ export declare const actionToggleLinearEditor: {
151
152
  open: boolean;
152
153
  panels: number;
153
154
  };
154
- currentChartType: import("../element/types").ChartType;
155
+ currentChartType: import("@excalidraw/element/types").ChartType;
155
156
  pasteDialog: {
156
157
  shown: false;
157
158
  data: null;
@@ -160,13 +161,13 @@ export declare const actionToggleLinearEditor: {
160
161
  data: import("../charts").Spreadsheet;
161
162
  };
162
163
  pendingImageElementId: string | null;
163
- showHyperlinkPopup: false | "info" | "editor";
164
+ showHyperlinkPopup: false | "editor" | "info";
164
165
  linkOpacity: number;
165
166
  trayModeEnabled: boolean;
166
167
  colorPalette?: {
167
- canvasBackground: import("../colors").ColorPaletteCustom;
168
- elementBackground: import("../colors").ColorPaletteCustom;
169
- elementStroke: import("../colors").ColorPaletteCustom;
168
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
169
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
170
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
170
171
  topPicks: {
171
172
  canvasBackground: [string, string, string, string, string];
172
173
  elementStroke: [string, string, string, string, string];
@@ -183,6 +184,10 @@ export declare const actionToggleLinearEditor: {
183
184
  Bold: string;
184
185
  Regular: string;
185
186
  };
187
+ gridDirection: {
188
+ horizontal: boolean;
189
+ vertical: boolean;
190
+ };
186
191
  highlightSearchResult: boolean;
187
192
  dynamicStyle: {
188
193
  [x: string]: string;