@zsviczian/excalidraw 0.18.0-1 → 0.18.0-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/README.md +1 -1
  2. package/dist/excalidraw.development.js +2231 -2418
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -32
  5. package/dist/styles.development.css +2995 -3004
  6. package/dist/styles.production.css +28 -28
  7. package/package.json +14 -2
  8. package/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
  9. package/types/{excalidraw → common/src}/colors.d.ts +1 -0
  10. package/types/{excalidraw → common/src}/constants.d.ts +10 -7
  11. package/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
  12. package/types/common/src/index.d.ts +11 -0
  13. package/types/{excalidraw → common/src}/points.d.ts +2 -0
  14. package/types/common/src/promise-pool.d.ts +6 -0
  15. package/types/{excalidraw → common/src}/utils.d.ts +13 -12
  16. package/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
  17. package/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
  18. package/types/{excalidraw → element/src}/align.d.ts +2 -2
  19. package/types/{excalidraw/element → element/src}/binding.d.ts +8 -8
  20. package/types/{excalidraw/element → element/src}/bounds.d.ts +9 -4
  21. package/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
  22. package/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  23. package/types/{excalidraw → element/src}/distribute.d.ts +1 -1
  24. package/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
  25. package/types/element/src/duplicate.d.ts +63 -0
  26. package/types/{excalidraw/element → element/src}/elbowArrow.d.ts +2 -2
  27. package/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  28. package/types/element/src/embeddable.d.ts +10 -0
  29. package/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
  30. package/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
  31. package/types/{excalidraw → element/src}/frame.d.ts +7 -7
  32. package/types/{excalidraw → element/src}/groups.d.ts +5 -5
  33. package/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  34. package/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  35. package/types/{excalidraw/element → element/src}/index.d.ts +0 -10
  36. package/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +7 -7
  37. package/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
  38. package/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
  39. package/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
  40. package/types/{excalidraw/element → element/src}/resizeElements.d.ts +4 -4
  41. package/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  42. package/types/{excalidraw/scene → element/src}/selection.d.ts +13 -2
  43. package/types/element/src/shapes.d.ts +23 -0
  44. package/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  45. package/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
  46. package/types/{excalidraw/element → element/src}/textElement.d.ts +5 -5
  47. package/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  48. package/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
  49. package/types/{excalidraw/element → element/src}/types.d.ts +2 -2
  50. package/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
  51. package/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  52. package/types/excalidraw/actions/actionAddToLibrary.d.ts +94 -79
  53. package/types/excalidraw/actions/actionAlign.d.ts +7 -7
  54. package/types/excalidraw/actions/actionBoundText.d.ts +68 -58
  55. package/types/excalidraw/actions/actionCanvas.d.ts +738 -455
  56. package/types/excalidraw/actions/actionClipboard.d.ts +197 -167
  57. package/types/excalidraw/actions/actionCropEditor.d.ts +33 -28
  58. package/types/excalidraw/actions/actionDeleteSelected.d.ts +94 -79
  59. package/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  60. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  61. package/types/excalidraw/actions/actionElementLink.d.ts +37 -32
  62. package/types/excalidraw/actions/actionElementLock.d.ts +67 -58
  63. package/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +33 -38
  64. package/types/excalidraw/actions/actionExport.d.ts +374 -329
  65. package/types/excalidraw/actions/actionFinalize.d.ts +55 -45
  66. package/types/excalidraw/actions/actionFlip.d.ts +3 -3
  67. package/types/excalidraw/actions/actionFrame.d.ts +243 -223
  68. package/types/excalidraw/actions/actionGroup.d.ts +65 -55
  69. package/types/excalidraw/actions/actionHistory.d.ts +1 -1
  70. package/types/excalidraw/actions/actionLinearEditor.d.ts +34 -29
  71. package/types/excalidraw/actions/actionLink.d.ts +33 -28
  72. package/types/excalidraw/actions/actionMenu.d.ts +94 -79
  73. package/types/excalidraw/actions/actionNavigate.d.ts +62 -52
  74. package/types/excalidraw/actions/actionProperties.d.ts +422 -347
  75. package/types/excalidraw/actions/actionSelectAll.d.ts +33 -28
  76. package/types/excalidraw/actions/actionStyles.d.ts +35 -30
  77. package/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  78. package/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -28
  79. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +33 -28
  80. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +64 -54
  81. package/types/excalidraw/actions/actionToggleStats.d.ts +32 -28
  82. package/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -29
  83. package/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -29
  84. package/types/excalidraw/actions/actionZindex.d.ts +8 -8
  85. package/types/excalidraw/actions/index.d.ts +1 -0
  86. package/types/excalidraw/actions/manager.d.ts +2 -2
  87. package/types/excalidraw/actions/shortcuts.d.ts +1 -1
  88. package/types/excalidraw/actions/types.d.ts +4 -4
  89. package/types/excalidraw/animated-trail.d.ts +7 -1
  90. package/types/excalidraw/appState.d.ts +32 -31
  91. package/types/excalidraw/change.d.ts +3 -3
  92. package/types/excalidraw/charts.d.ts +1 -1
  93. package/types/excalidraw/clipboard.d.ts +7 -7
  94. package/types/excalidraw/components/Actions.d.ts +3 -3
  95. package/types/excalidraw/components/App.d.ts +32 -32
  96. package/types/excalidraw/components/Avatar.d.ts +1 -1
  97. package/types/excalidraw/components/ButtonIcon.d.ts +1 -1
  98. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
  99. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  100. package/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  101. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  102. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  103. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
  104. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  105. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
  106. package/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  107. package/types/excalidraw/components/ContextMenu.d.ts +2 -2
  108. package/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  109. package/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  110. package/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  111. package/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  112. package/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
  113. package/types/excalidraw/components/EyeDropper.d.ts +1 -1
  114. package/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  115. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  116. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  117. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  118. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  119. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  120. package/types/excalidraw/components/HintViewer.d.ts +1 -1
  121. package/types/excalidraw/components/IconPicker.d.ts +1 -1
  122. package/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  123. package/types/excalidraw/components/InitializeApp.d.ts +1 -1
  124. package/types/excalidraw/components/Island.d.ts +1 -1
  125. package/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  126. package/types/excalidraw/components/LayerUI.d.ts +3 -3
  127. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  128. package/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  129. package/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
  130. package/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  131. package/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  132. package/types/excalidraw/components/MagicButton.d.ts +1 -1
  133. package/types/excalidraw/components/MobileMenu.d.ts +3 -3
  134. package/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  135. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  136. package/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  137. package/types/excalidraw/components/SVGLayer.d.ts +1 -1
  138. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  139. package/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  140. package/types/excalidraw/components/Stack.d.ts +1 -1
  141. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  142. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  143. package/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  144. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  145. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  146. package/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  147. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  148. package/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  149. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  150. package/types/excalidraw/components/Stats/index.d.ts +2 -2
  151. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  152. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -1
  153. package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +1 -1
  154. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  155. package/types/excalidraw/components/TTDDialog/common.d.ts +3 -3
  156. package/types/excalidraw/components/TextField.d.ts +1 -1
  157. package/types/excalidraw/components/Toast.d.ts +1 -1
  158. package/types/excalidraw/components/ToolButton.d.ts +2 -2
  159. package/types/excalidraw/components/Tooltip.d.ts +1 -1
  160. package/types/excalidraw/components/UserList.d.ts +1 -1
  161. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  162. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  163. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  164. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  165. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  166. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  167. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
  168. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  169. package/types/excalidraw/components/icons.d.ts +2 -1
  170. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  171. package/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  172. package/types/excalidraw/components/shapes.d.ts +62 -0
  173. package/types/excalidraw/context/tunnels.d.ts +1 -1
  174. package/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  175. package/types/excalidraw/data/blob.d.ts +4 -4
  176. package/types/excalidraw/data/filesystem.d.ts +2 -2
  177. package/types/excalidraw/data/index.d.ts +2 -2
  178. package/types/excalidraw/data/json.d.ts +1 -1
  179. package/types/excalidraw/data/library.d.ts +3 -3
  180. package/types/excalidraw/data/reconcile.d.ts +2 -2
  181. package/types/excalidraw/data/resave.d.ts +1 -1
  182. package/types/excalidraw/data/restore.d.ts +1 -1
  183. package/types/excalidraw/data/transform.d.ts +4 -4
  184. package/types/excalidraw/data/types.d.ts +3 -3
  185. package/types/excalidraw/eraser/index.d.ts +14 -0
  186. package/types/excalidraw/errors.d.ts +0 -3
  187. package/types/excalidraw/fonts/Fonts.d.ts +2 -12
  188. package/types/excalidraw/history.d.ts +2 -2
  189. package/types/excalidraw/i18n.d.ts +1 -1
  190. package/types/excalidraw/index.d.ts +29 -35
  191. package/types/excalidraw/laser-trails.d.ts +1 -1
  192. package/types/excalidraw/lasso/index.d.ts +15 -0
  193. package/types/excalidraw/lasso/utils.d.ts +12 -0
  194. package/types/excalidraw/obsidianUtils.d.ts +3 -2
  195. package/types/excalidraw/renderer/helpers.d.ts +2 -2
  196. package/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  197. package/types/excalidraw/scene/Renderer.d.ts +3 -3
  198. package/types/excalidraw/scene/Scene.d.ts +5 -5
  199. package/types/excalidraw/scene/export.d.ts +1 -1
  200. package/types/excalidraw/scene/index.d.ts +2 -2
  201. package/types/excalidraw/scene/scroll.d.ts +1 -1
  202. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  203. package/types/excalidraw/scene/types.d.ts +4 -4
  204. package/types/excalidraw/snapping.d.ts +5 -6
  205. package/types/excalidraw/store.d.ts +2 -2
  206. package/types/excalidraw/types.d.ts +26 -16
  207. package/types/excalidraw/visualdebug.d.ts +2 -2
  208. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  209. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  210. package/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
  211. package/types/math/{point.d.ts → src/point.d.ts} +2 -2
  212. package/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  213. package/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
  214. package/types/math/{types.d.ts → src/types.d.ts} +1 -0
  215. package/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  216. package/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
  217. package/types/utils/{export.d.ts → src/export.d.ts} +2 -12
  218. package/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  219. package/types/utils/{geometry → src}/shape.d.ts +2 -15
  220. package/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  221. package/types/excalidraw/shapes.d.ts +0 -85
  222. /package/types/{excalidraw → common/src}/keys.d.ts +0 -0
  223. /package/types/{excalidraw → common/src}/queue.d.ts +0 -0
  224. /package/types/{excalidraw → common/src}/random.d.ts +0 -0
  225. /package/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  226. /package/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
  227. /package/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  228. /package/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
  229. /package/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
  230. /package/types/{excalidraw/renderer → element/src}/easingFunctions.d.ts +0 -0
  231. /package/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  232. /package/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  233. /package/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  234. /package/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
  235. /package/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
  236. /package/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  237. /package/types/math/{index.d.ts → src/index.d.ts} +0 -0
  238. /package/types/math/{line.d.ts → src/line.d.ts} +0 -0
  239. /package/types/math/{range.d.ts → src/range.d.ts} +0 -0
  240. /package/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
  241. /package/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  242. /package/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
  243. /package/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawElement } from "../element/types";
1
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
2
  import type { AppClassProperties, AppState } from "../types";
3
3
  export declare const actionSelectAllElementsInFrame: {
4
4
  name: "selectAllElementsInFrame";
@@ -6,8 +6,8 @@ export declare const actionSelectAllElementsInFrame: {
6
6
  trackEvent: {
7
7
  category: "canvas";
8
8
  };
9
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
11
  appState: {
12
12
  selectedElementIds: Record<string, true>;
13
13
  contextMenu: {
@@ -19,17 +19,17 @@ export declare const actionSelectAllElementsInFrame: {
19
19
  isLoading: boolean;
20
20
  errorMessage: import("react").ReactNode;
21
21
  activeEmbeddable: {
22
- element: import("../element/types").NonDeletedExcalidrawElement;
22
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
23
  state: "active" | "hover";
24
24
  } | null;
25
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
26
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
28
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  isBindingEnabled: boolean;
30
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("../element/binding").SuggestedBinding[];
32
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
30
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
32
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
33
  frameRendering: {
34
34
  enabled: boolean;
35
35
  name: boolean;
@@ -37,12 +37,13 @@ export declare const actionSelectAllElementsInFrame: {
37
37
  clip: boolean;
38
38
  };
39
39
  editingFrame: string | null;
40
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
41
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
40
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
41
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
43
43
  activeTool: {
44
44
  lastActiveTool: import("../types").ActiveTool | null;
45
45
  locked: boolean;
46
+ fromSelection: boolean;
46
47
  } & import("../types").ActiveTool;
47
48
  penMode: boolean;
48
49
  penDetected: boolean;
@@ -52,18 +53,18 @@ export declare const actionSelectAllElementsInFrame: {
52
53
  exportScale: number;
53
54
  currentItemStrokeColor: string;
54
55
  currentItemBackgroundColor: string;
55
- currentItemFillStyle: import("../element/types").FillStyle;
56
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
56
57
  currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
58
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
58
59
  currentItemRoughness: number;
59
60
  currentItemOpacity: number;
60
61
  currentItemFontFamily: number;
61
62
  currentItemFontSize: number;
62
63
  currentItemTextAlign: string;
63
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
64
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
64
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
66
  currentHoveredFontFamily: number | null;
66
- currentItemRoundness: import("../element/types").StrokeRoundness;
67
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
68
  currentItemArrowType: "round" | "sharp" | "elbow";
68
69
  viewBackgroundColor: string;
69
70
  scrollX: number;
@@ -76,7 +77,7 @@ export declare const actionSelectAllElementsInFrame: {
76
77
  zoom: Readonly<{
77
78
  value: import("../types").NormalizedZoomValue;
78
79
  }>;
79
- openMenu: "canvas" | "shape" | null;
80
+ openMenu: "shape" | "canvas" | null;
80
81
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
82
  openSidebar: {
82
83
  name: string;
@@ -94,7 +95,7 @@ export declare const actionSelectAllElementsInFrame: {
94
95
  sourceElementId: string;
95
96
  } | null;
96
97
  defaultSidebarDockedPreference: boolean;
97
- lastPointerDownWith: import("../element/types").PointerType;
98
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
99
  hoveredElementIds: Readonly<{
99
100
  [id: string]: true;
100
101
  }>;
@@ -109,7 +110,7 @@ export declare const actionSelectAllElementsInFrame: {
109
110
  duration?: number | undefined;
110
111
  } | null;
111
112
  zenModeEnabled: boolean;
112
- theme: import("../element/types").Theme;
113
+ theme: import("@excalidraw/element/types").Theme;
113
114
  gridSize: number;
114
115
  gridStep: number;
115
116
  gridModeEnabled: boolean;
@@ -130,7 +131,7 @@ export declare const actionSelectAllElementsInFrame: {
130
131
  [id: string]: true;
131
132
  }> | undefined;
132
133
  username?: string | null | undefined;
133
- userState?: import("..").UserIdleState | undefined;
134
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
134
135
  color?: {
135
136
  background: string;
136
137
  stroke: string;
@@ -147,7 +148,7 @@ export declare const actionSelectAllElementsInFrame: {
147
148
  open: boolean;
148
149
  panels: number;
149
150
  };
150
- currentChartType: import("../element/types").ChartType;
151
+ currentChartType: import("@excalidraw/element/types").ChartType;
151
152
  pasteDialog: {
152
153
  shown: false;
153
154
  data: null;
@@ -156,13 +157,13 @@ export declare const actionSelectAllElementsInFrame: {
156
157
  data: import("../charts").Spreadsheet;
157
158
  };
158
159
  pendingImageElementId: string | null;
159
- showHyperlinkPopup: false | "info" | "editor";
160
+ showHyperlinkPopup: false | "editor" | "info";
160
161
  linkOpacity: number;
161
162
  trayModeEnabled: boolean;
162
163
  colorPalette?: {
163
- canvasBackground: import("../colors").ColorPaletteCustom;
164
- elementBackground: import("../colors").ColorPaletteCustom;
165
- elementStroke: import("../colors").ColorPaletteCustom;
164
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
165
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
166
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
166
167
  topPicks: {
167
168
  canvasBackground: [string, string, string, string, string];
168
169
  elementStroke: [string, string, string, string, string];
@@ -179,6 +180,10 @@ export declare const actionSelectAllElementsInFrame: {
179
180
  Bold: string;
180
181
  Regular: string;
181
182
  };
183
+ gridDirection: {
184
+ horizontal: boolean;
185
+ vertical: boolean;
186
+ };
182
187
  highlightSearchResult: boolean;
183
188
  dynamicStyle: {
184
189
  [x: string]: string;
@@ -189,7 +194,7 @@ export declare const actionSelectAllElementsInFrame: {
189
194
  nameColor: string;
190
195
  };
191
196
  invertBindingBehaviour: boolean;
192
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
197
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
193
198
  snapLines: readonly import("../snapping").SnapLine[];
194
199
  originSnapOffset: {
195
200
  x: number;
@@ -213,7 +218,7 @@ export declare const actionSelectAllElementsInFrame: {
213
218
  };
214
219
  captureUpdate: "IMMEDIATELY";
215
220
  } | {
216
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
221
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
217
222
  appState: Readonly<AppState>;
218
223
  captureUpdate: "EVENTUALLY";
219
224
  };
@@ -227,8 +232,8 @@ export declare const actionRemoveAllElementsFromFrame: {
227
232
  trackEvent: {
228
233
  category: "history";
229
234
  };
230
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
231
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
235
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
236
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
232
237
  appState: {
233
238
  selectedElementIds: {
234
239
  [x: string]: true;
@@ -242,17 +247,17 @@ export declare const actionRemoveAllElementsFromFrame: {
242
247
  isLoading: boolean;
243
248
  errorMessage: import("react").ReactNode;
244
249
  activeEmbeddable: {
245
- element: import("../element/types").NonDeletedExcalidrawElement;
250
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
246
251
  state: "active" | "hover";
247
252
  } | null;
248
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
249
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
250
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
251
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
253
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
254
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
255
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
256
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
252
257
  isBindingEnabled: boolean;
253
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
254
- suggestedBindings: import("../element/binding").SuggestedBinding[];
255
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
258
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
259
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
260
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
256
261
  frameRendering: {
257
262
  enabled: boolean;
258
263
  name: boolean;
@@ -260,12 +265,13 @@ export declare const actionRemoveAllElementsFromFrame: {
260
265
  clip: boolean;
261
266
  };
262
267
  editingFrame: string | null;
263
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
264
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
265
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
268
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
269
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
270
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
266
271
  activeTool: {
267
272
  lastActiveTool: import("../types").ActiveTool | null;
268
273
  locked: boolean;
274
+ fromSelection: boolean;
269
275
  } & import("../types").ActiveTool;
270
276
  penMode: boolean;
271
277
  penDetected: boolean;
@@ -275,18 +281,18 @@ export declare const actionRemoveAllElementsFromFrame: {
275
281
  exportScale: number;
276
282
  currentItemStrokeColor: string;
277
283
  currentItemBackgroundColor: string;
278
- currentItemFillStyle: import("../element/types").FillStyle;
284
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
279
285
  currentItemStrokeWidth: number;
280
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
286
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
281
287
  currentItemRoughness: number;
282
288
  currentItemOpacity: number;
283
289
  currentItemFontFamily: number;
284
290
  currentItemFontSize: number;
285
291
  currentItemTextAlign: string;
286
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
287
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
292
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
293
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
288
294
  currentHoveredFontFamily: number | null;
289
- currentItemRoundness: import("../element/types").StrokeRoundness;
295
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
290
296
  currentItemArrowType: "round" | "sharp" | "elbow";
291
297
  viewBackgroundColor: string;
292
298
  scrollX: number;
@@ -299,7 +305,7 @@ export declare const actionRemoveAllElementsFromFrame: {
299
305
  zoom: Readonly<{
300
306
  value: import("../types").NormalizedZoomValue;
301
307
  }>;
302
- openMenu: "canvas" | "shape" | null;
308
+ openMenu: "shape" | "canvas" | null;
303
309
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
304
310
  openSidebar: {
305
311
  name: string;
@@ -317,7 +323,7 @@ export declare const actionRemoveAllElementsFromFrame: {
317
323
  sourceElementId: string;
318
324
  } | null;
319
325
  defaultSidebarDockedPreference: boolean;
320
- lastPointerDownWith: import("../element/types").PointerType;
326
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
321
327
  hoveredElementIds: Readonly<{
322
328
  [id: string]: true;
323
329
  }>;
@@ -332,7 +338,7 @@ export declare const actionRemoveAllElementsFromFrame: {
332
338
  duration?: number | undefined;
333
339
  } | null;
334
340
  zenModeEnabled: boolean;
335
- theme: import("../element/types").Theme;
341
+ theme: import("@excalidraw/element/types").Theme;
336
342
  gridSize: number;
337
343
  gridStep: number;
338
344
  gridModeEnabled: boolean;
@@ -353,7 +359,7 @@ export declare const actionRemoveAllElementsFromFrame: {
353
359
  [id: string]: true;
354
360
  }> | undefined;
355
361
  username?: string | null | undefined;
356
- userState?: import("..").UserIdleState | undefined;
362
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
357
363
  color?: {
358
364
  background: string;
359
365
  stroke: string;
@@ -370,7 +376,7 @@ export declare const actionRemoveAllElementsFromFrame: {
370
376
  open: boolean;
371
377
  panels: number;
372
378
  };
373
- currentChartType: import("../element/types").ChartType;
379
+ currentChartType: import("@excalidraw/element/types").ChartType;
374
380
  pasteDialog: {
375
381
  shown: false;
376
382
  data: null;
@@ -379,13 +385,13 @@ export declare const actionRemoveAllElementsFromFrame: {
379
385
  data: import("../charts").Spreadsheet;
380
386
  };
381
387
  pendingImageElementId: string | null;
382
- showHyperlinkPopup: false | "info" | "editor";
388
+ showHyperlinkPopup: false | "editor" | "info";
383
389
  linkOpacity: number;
384
390
  trayModeEnabled: boolean;
385
391
  colorPalette?: {
386
- canvasBackground: import("../colors").ColorPaletteCustom;
387
- elementBackground: import("../colors").ColorPaletteCustom;
388
- elementStroke: import("../colors").ColorPaletteCustom;
392
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
393
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
394
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
389
395
  topPicks: {
390
396
  canvasBackground: [string, string, string, string, string];
391
397
  elementStroke: [string, string, string, string, string];
@@ -402,6 +408,10 @@ export declare const actionRemoveAllElementsFromFrame: {
402
408
  Bold: string;
403
409
  Regular: string;
404
410
  };
411
+ gridDirection: {
412
+ horizontal: boolean;
413
+ vertical: boolean;
414
+ };
405
415
  highlightSearchResult: boolean;
406
416
  dynamicStyle: {
407
417
  [x: string]: string;
@@ -412,7 +422,7 @@ export declare const actionRemoveAllElementsFromFrame: {
412
422
  nameColor: string;
413
423
  };
414
424
  invertBindingBehaviour: boolean;
415
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
425
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
416
426
  snapLines: readonly import("../snapping").SnapLine[];
417
427
  originSnapOffset: {
418
428
  x: number;
@@ -436,7 +446,7 @@ export declare const actionRemoveAllElementsFromFrame: {
436
446
  };
437
447
  captureUpdate: "IMMEDIATELY";
438
448
  } | {
439
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
449
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
440
450
  appState: Readonly<AppState>;
441
451
  captureUpdate: "EVENTUALLY";
442
452
  };
@@ -451,8 +461,8 @@ export declare const actionupdateFrameRendering: {
451
461
  trackEvent: {
452
462
  category: "canvas";
453
463
  };
454
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
455
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
464
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
465
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
456
466
  appState: {
457
467
  frameRendering: {
458
468
  enabled: boolean;
@@ -469,24 +479,25 @@ export declare const actionupdateFrameRendering: {
469
479
  isLoading: boolean;
470
480
  errorMessage: import("react").ReactNode;
471
481
  activeEmbeddable: {
472
- element: import("../element/types").NonDeletedExcalidrawElement;
482
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
473
483
  state: "active" | "hover";
474
484
  } | null;
475
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
476
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
477
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
478
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
485
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
486
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
487
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
488
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
479
489
  isBindingEnabled: boolean;
480
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
481
- suggestedBindings: import("../element/binding").SuggestedBinding[];
482
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
490
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
491
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
492
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
483
493
  editingFrame: string | null;
484
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
485
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
486
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
494
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
495
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
496
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
487
497
  activeTool: {
488
498
  lastActiveTool: import("../types").ActiveTool | null;
489
499
  locked: boolean;
500
+ fromSelection: boolean;
490
501
  } & import("../types").ActiveTool;
491
502
  penMode: boolean;
492
503
  penDetected: boolean;
@@ -496,18 +507,18 @@ export declare const actionupdateFrameRendering: {
496
507
  exportScale: number;
497
508
  currentItemStrokeColor: string;
498
509
  currentItemBackgroundColor: string;
499
- currentItemFillStyle: import("../element/types").FillStyle;
510
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
500
511
  currentItemStrokeWidth: number;
501
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
512
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
502
513
  currentItemRoughness: number;
503
514
  currentItemOpacity: number;
504
515
  currentItemFontFamily: number;
505
516
  currentItemFontSize: number;
506
517
  currentItemTextAlign: string;
507
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
508
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
518
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
519
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
509
520
  currentHoveredFontFamily: number | null;
510
- currentItemRoundness: import("../element/types").StrokeRoundness;
521
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
511
522
  currentItemArrowType: "round" | "sharp" | "elbow";
512
523
  viewBackgroundColor: string;
513
524
  scrollX: number;
@@ -520,7 +531,7 @@ export declare const actionupdateFrameRendering: {
520
531
  zoom: Readonly<{
521
532
  value: import("../types").NormalizedZoomValue;
522
533
  }>;
523
- openMenu: "canvas" | "shape" | null;
534
+ openMenu: "shape" | "canvas" | null;
524
535
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
525
536
  openSidebar: {
526
537
  name: string;
@@ -538,7 +549,7 @@ export declare const actionupdateFrameRendering: {
538
549
  sourceElementId: string;
539
550
  } | null;
540
551
  defaultSidebarDockedPreference: boolean;
541
- lastPointerDownWith: import("../element/types").PointerType;
552
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
542
553
  selectedElementIds: Readonly<{
543
554
  [id: string]: true;
544
555
  }>;
@@ -556,7 +567,7 @@ export declare const actionupdateFrameRendering: {
556
567
  duration?: number | undefined;
557
568
  } | null;
558
569
  zenModeEnabled: boolean;
559
- theme: import("../element/types").Theme;
570
+ theme: import("@excalidraw/element/types").Theme;
560
571
  gridSize: number;
561
572
  gridStep: number;
562
573
  gridModeEnabled: boolean;
@@ -577,7 +588,7 @@ export declare const actionupdateFrameRendering: {
577
588
  [id: string]: true;
578
589
  }> | undefined;
579
590
  username?: string | null | undefined;
580
- userState?: import("..").UserIdleState | undefined;
591
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
581
592
  color?: {
582
593
  background: string;
583
594
  stroke: string;
@@ -594,7 +605,7 @@ export declare const actionupdateFrameRendering: {
594
605
  open: boolean;
595
606
  panels: number;
596
607
  };
597
- currentChartType: import("../element/types").ChartType;
608
+ currentChartType: import("@excalidraw/element/types").ChartType;
598
609
  pasteDialog: {
599
610
  shown: false;
600
611
  data: null;
@@ -603,13 +614,13 @@ export declare const actionupdateFrameRendering: {
603
614
  data: import("../charts").Spreadsheet;
604
615
  };
605
616
  pendingImageElementId: string | null;
606
- showHyperlinkPopup: false | "info" | "editor";
617
+ showHyperlinkPopup: false | "editor" | "info";
607
618
  linkOpacity: number;
608
619
  trayModeEnabled: boolean;
609
620
  colorPalette?: {
610
- canvasBackground: import("../colors").ColorPaletteCustom;
611
- elementBackground: import("../colors").ColorPaletteCustom;
612
- elementStroke: import("../colors").ColorPaletteCustom;
621
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
622
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
623
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
613
624
  topPicks: {
614
625
  canvasBackground: [string, string, string, string, string];
615
626
  elementStroke: [string, string, string, string, string];
@@ -626,6 +637,10 @@ export declare const actionupdateFrameRendering: {
626
637
  Bold: string;
627
638
  Regular: string;
628
639
  };
640
+ gridDirection: {
641
+ horizontal: boolean;
642
+ vertical: boolean;
643
+ };
629
644
  highlightSearchResult: boolean;
630
645
  dynamicStyle: {
631
646
  [x: string]: string;
@@ -636,7 +651,7 @@ export declare const actionupdateFrameRendering: {
636
651
  nameColor: string;
637
652
  };
638
653
  invertBindingBehaviour: boolean;
639
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
654
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
640
655
  snapLines: readonly import("../snapping").SnapLine[];
641
656
  originSnapOffset: {
642
657
  x: number;
@@ -672,12 +687,13 @@ export declare const actionSetFrameAsActiveTool: {
672
687
  };
673
688
  icon: import("react/jsx-runtime").JSX.Element;
674
689
  viewMode: false;
675
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
676
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
690
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
691
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
677
692
  appState: {
678
693
  activeTool: {
679
694
  lastActiveTool: import("../types").ActiveTool | null;
680
695
  locked: boolean;
696
+ fromSelection: boolean;
681
697
  } & import("../types").ActiveTool;
682
698
  contextMenu: {
683
699
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -688,17 +704,17 @@ export declare const actionSetFrameAsActiveTool: {
688
704
  isLoading: boolean;
689
705
  errorMessage: import("react").ReactNode;
690
706
  activeEmbeddable: {
691
- element: import("../element/types").NonDeletedExcalidrawElement;
707
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
692
708
  state: "active" | "hover";
693
709
  } | null;
694
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
695
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
696
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
697
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
710
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
711
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
712
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
713
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
698
714
  isBindingEnabled: boolean;
699
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
700
- suggestedBindings: import("../element/binding").SuggestedBinding[];
701
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
715
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
716
+ suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
717
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
702
718
  frameRendering: {
703
719
  enabled: boolean;
704
720
  name: boolean;
@@ -706,9 +722,9 @@ export declare const actionSetFrameAsActiveTool: {
706
722
  clip: boolean;
707
723
  };
708
724
  editingFrame: string | null;
709
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
710
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
711
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
725
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
726
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
727
+ editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
712
728
  penMode: boolean;
713
729
  penDetected: boolean;
714
730
  exportBackground: boolean;
@@ -717,18 +733,18 @@ export declare const actionSetFrameAsActiveTool: {
717
733
  exportScale: number;
718
734
  currentItemStrokeColor: string;
719
735
  currentItemBackgroundColor: string;
720
- currentItemFillStyle: import("../element/types").FillStyle;
736
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
721
737
  currentItemStrokeWidth: number;
722
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
738
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
723
739
  currentItemRoughness: number;
724
740
  currentItemOpacity: number;
725
741
  currentItemFontFamily: number;
726
742
  currentItemFontSize: number;
727
743
  currentItemTextAlign: string;
728
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
729
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
744
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
745
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
730
746
  currentHoveredFontFamily: number | null;
731
- currentItemRoundness: import("../element/types").StrokeRoundness;
747
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
732
748
  currentItemArrowType: "round" | "sharp" | "elbow";
733
749
  viewBackgroundColor: string;
734
750
  scrollX: number;
@@ -741,7 +757,7 @@ export declare const actionSetFrameAsActiveTool: {
741
757
  zoom: Readonly<{
742
758
  value: import("../types").NormalizedZoomValue;
743
759
  }>;
744
- openMenu: "canvas" | "shape" | null;
760
+ openMenu: "shape" | "canvas" | null;
745
761
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
746
762
  openSidebar: {
747
763
  name: string;
@@ -759,7 +775,7 @@ export declare const actionSetFrameAsActiveTool: {
759
775
  sourceElementId: string;
760
776
  } | null;
761
777
  defaultSidebarDockedPreference: boolean;
762
- lastPointerDownWith: import("../element/types").PointerType;
778
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
763
779
  selectedElementIds: Readonly<{
764
780
  [id: string]: true;
765
781
  }>;
@@ -777,7 +793,7 @@ export declare const actionSetFrameAsActiveTool: {
777
793
  duration?: number | undefined;
778
794
  } | null;
779
795
  zenModeEnabled: boolean;
780
- theme: import("../element/types").Theme;
796
+ theme: import("@excalidraw/element/types").Theme;
781
797
  gridSize: number;
782
798
  gridStep: number;
783
799
  gridModeEnabled: boolean;
@@ -798,7 +814,7 @@ export declare const actionSetFrameAsActiveTool: {
798
814
  [id: string]: true;
799
815
  }> | undefined;
800
816
  username?: string | null | undefined;
801
- userState?: import("..").UserIdleState | undefined;
817
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
802
818
  color?: {
803
819
  background: string;
804
820
  stroke: string;
@@ -815,7 +831,7 @@ export declare const actionSetFrameAsActiveTool: {
815
831
  open: boolean;
816
832
  panels: number;
817
833
  };
818
- currentChartType: import("../element/types").ChartType;
834
+ currentChartType: import("@excalidraw/element/types").ChartType;
819
835
  pasteDialog: {
820
836
  shown: false;
821
837
  data: null;
@@ -824,13 +840,13 @@ export declare const actionSetFrameAsActiveTool: {
824
840
  data: import("../charts").Spreadsheet;
825
841
  };
826
842
  pendingImageElementId: string | null;
827
- showHyperlinkPopup: false | "info" | "editor";
843
+ showHyperlinkPopup: false | "editor" | "info";
828
844
  linkOpacity: number;
829
845
  trayModeEnabled: boolean;
830
846
  colorPalette?: {
831
- canvasBackground: import("../colors").ColorPaletteCustom;
832
- elementBackground: import("../colors").ColorPaletteCustom;
833
- elementStroke: import("../colors").ColorPaletteCustom;
847
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
848
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
849
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
834
850
  topPicks: {
835
851
  canvasBackground: [string, string, string, string, string];
836
852
  elementStroke: [string, string, string, string, string];
@@ -847,6 +863,10 @@ export declare const actionSetFrameAsActiveTool: {
847
863
  Bold: string;
848
864
  Regular: string;
849
865
  };
866
+ gridDirection: {
867
+ horizontal: boolean;
868
+ vertical: boolean;
869
+ };
850
870
  highlightSearchResult: boolean;
851
871
  dynamicStyle: {
852
872
  [x: string]: string;
@@ -857,7 +877,7 @@ export declare const actionSetFrameAsActiveTool: {
857
877
  nameColor: string;
858
878
  };
859
879
  invertBindingBehaviour: boolean;
860
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
880
+ selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
861
881
  snapLines: readonly import("../snapping").SnapLine[];
862
882
  originSnapOffset: {
863
883
  x: number;
@@ -892,18 +912,18 @@ export declare const actionWrapSelectionInFrame: {
892
912
  category: "element";
893
913
  };
894
914
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
895
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
915
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
896
916
  elements: ((Readonly<{
897
917
  id: string;
898
918
  x: number;
899
919
  y: number;
900
920
  strokeColor: string;
901
921
  backgroundColor: string;
902
- fillStyle: import("../element/types").FillStyle;
922
+ fillStyle: import("@excalidraw/element/types").FillStyle;
903
923
  strokeWidth: number;
904
- strokeStyle: import("../element/types").StrokeStyle;
924
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
905
925
  roundness: {
906
- type: import("../element/types").RoundnessType;
926
+ type: import("@excalidraw/element/types").RoundnessType;
907
927
  value?: number | undefined;
908
928
  } | null;
909
929
  roughness: number;
@@ -914,7 +934,7 @@ export declare const actionWrapSelectionInFrame: {
914
934
  seed: number;
915
935
  version: number;
916
936
  versionNonce: number;
917
- index: import("../element/types").FractionalIndex | null;
937
+ index: import("@excalidraw/element/types").FractionalIndex | null;
918
938
  isDeleted: boolean;
919
939
  groupIds: readonly string[];
920
940
  frameId: string | null;
@@ -927,20 +947,20 @@ export declare const actionWrapSelectionInFrame: {
927
947
  locked: boolean;
928
948
  customData?: Record<string, any> | undefined;
929
949
  }> & {
930
- type: "selection";
950
+ type: "rectangle";
931
951
  } & {
932
- index: import("../element/types").FractionalIndex;
952
+ index: import("@excalidraw/element/types").FractionalIndex;
933
953
  }) | (Readonly<{
934
954
  id: string;
935
955
  x: number;
936
956
  y: number;
937
957
  strokeColor: string;
938
958
  backgroundColor: string;
939
- fillStyle: import("../element/types").FillStyle;
959
+ fillStyle: import("@excalidraw/element/types").FillStyle;
940
960
  strokeWidth: number;
941
- strokeStyle: import("../element/types").StrokeStyle;
961
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
942
962
  roundness: {
943
- type: import("../element/types").RoundnessType;
963
+ type: import("@excalidraw/element/types").RoundnessType;
944
964
  value?: number | undefined;
945
965
  } | null;
946
966
  roughness: number;
@@ -951,7 +971,7 @@ export declare const actionWrapSelectionInFrame: {
951
971
  seed: number;
952
972
  version: number;
953
973
  versionNonce: number;
954
- index: import("../element/types").FractionalIndex | null;
974
+ index: import("@excalidraw/element/types").FractionalIndex | null;
955
975
  isDeleted: boolean;
956
976
  groupIds: readonly string[];
957
977
  frameId: string | null;
@@ -964,20 +984,20 @@ export declare const actionWrapSelectionInFrame: {
964
984
  locked: boolean;
965
985
  customData?: Record<string, any> | undefined;
966
986
  }> & {
967
- type: "rectangle";
987
+ type: "diamond";
968
988
  } & {
969
- index: import("../element/types").FractionalIndex;
989
+ index: import("@excalidraw/element/types").FractionalIndex;
970
990
  }) | (Readonly<{
971
991
  id: string;
972
992
  x: number;
973
993
  y: number;
974
994
  strokeColor: string;
975
995
  backgroundColor: string;
976
- fillStyle: import("../element/types").FillStyle;
996
+ fillStyle: import("@excalidraw/element/types").FillStyle;
977
997
  strokeWidth: number;
978
- strokeStyle: import("../element/types").StrokeStyle;
998
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
979
999
  roundness: {
980
- type: import("../element/types").RoundnessType;
1000
+ type: import("@excalidraw/element/types").RoundnessType;
981
1001
  value?: number | undefined;
982
1002
  } | null;
983
1003
  roughness: number;
@@ -988,7 +1008,7 @@ export declare const actionWrapSelectionInFrame: {
988
1008
  seed: number;
989
1009
  version: number;
990
1010
  versionNonce: number;
991
- index: import("../element/types").FractionalIndex | null;
1011
+ index: import("@excalidraw/element/types").FractionalIndex | null;
992
1012
  isDeleted: boolean;
993
1013
  groupIds: readonly string[];
994
1014
  frameId: string | null;
@@ -1001,20 +1021,21 @@ export declare const actionWrapSelectionInFrame: {
1001
1021
  locked: boolean;
1002
1022
  customData?: Record<string, any> | undefined;
1003
1023
  }> & {
1004
- type: "diamond";
1024
+ type: "frame";
1025
+ name: string | null;
1005
1026
  } & {
1006
- index: import("../element/types").FractionalIndex;
1027
+ index: import("@excalidraw/element/types").FractionalIndex;
1007
1028
  }) | (Readonly<{
1008
1029
  id: string;
1009
1030
  x: number;
1010
1031
  y: number;
1011
1032
  strokeColor: string;
1012
1033
  backgroundColor: string;
1013
- fillStyle: import("../element/types").FillStyle;
1034
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1014
1035
  strokeWidth: number;
1015
- strokeStyle: import("../element/types").StrokeStyle;
1036
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1016
1037
  roundness: {
1017
- type: import("../element/types").RoundnessType;
1038
+ type: import("@excalidraw/element/types").RoundnessType;
1018
1039
  value?: number | undefined;
1019
1040
  } | null;
1020
1041
  roughness: number;
@@ -1025,7 +1046,7 @@ export declare const actionWrapSelectionInFrame: {
1025
1046
  seed: number;
1026
1047
  version: number;
1027
1048
  versionNonce: number;
1028
- index: import("../element/types").FractionalIndex | null;
1049
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1029
1050
  isDeleted: boolean;
1030
1051
  groupIds: readonly string[];
1031
1052
  frameId: string | null;
@@ -1038,20 +1059,21 @@ export declare const actionWrapSelectionInFrame: {
1038
1059
  locked: boolean;
1039
1060
  customData?: Record<string, any> | undefined;
1040
1061
  }> & {
1041
- type: "ellipse";
1062
+ type: "magicframe";
1063
+ name: string | null;
1042
1064
  } & {
1043
- index: import("../element/types").FractionalIndex;
1065
+ index: import("@excalidraw/element/types").FractionalIndex;
1044
1066
  }) | (Readonly<{
1045
1067
  id: string;
1046
1068
  x: number;
1047
1069
  y: number;
1048
1070
  strokeColor: string;
1049
1071
  backgroundColor: string;
1050
- fillStyle: import("../element/types").FillStyle;
1072
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1051
1073
  strokeWidth: number;
1052
- strokeStyle: import("../element/types").StrokeStyle;
1074
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1053
1075
  roundness: {
1054
- type: import("../element/types").RoundnessType;
1076
+ type: import("@excalidraw/element/types").RoundnessType;
1055
1077
  value?: number | undefined;
1056
1078
  } | null;
1057
1079
  roughness: number;
@@ -1062,7 +1084,7 @@ export declare const actionWrapSelectionInFrame: {
1062
1084
  seed: number;
1063
1085
  version: number;
1064
1086
  versionNonce: number;
1065
- index: import("../element/types").FractionalIndex | null;
1087
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1066
1088
  isDeleted: boolean;
1067
1089
  groupIds: readonly string[];
1068
1090
  frameId: string | null;
@@ -1075,32 +1097,21 @@ export declare const actionWrapSelectionInFrame: {
1075
1097
  locked: boolean;
1076
1098
  customData?: Record<string, any> | undefined;
1077
1099
  }> & Readonly<{
1078
- type: "text";
1079
- fontSize: number;
1080
- fontFamily: number;
1081
- text: string;
1082
- rawText: string;
1083
- textAlign: string;
1084
- verticalAlign: string;
1085
- containerId: string | null;
1086
- originalText: string;
1087
- autoResize: boolean;
1088
- lineHeight: number & {
1089
- _brand: "unitlessLineHeight";
1090
- };
1100
+ type: "embeddable";
1101
+ scale: [number, number];
1091
1102
  }> & {
1092
- index: import("../element/types").FractionalIndex;
1103
+ index: import("@excalidraw/element/types").FractionalIndex;
1093
1104
  }) | (Readonly<{
1094
1105
  id: string;
1095
1106
  x: number;
1096
1107
  y: number;
1097
1108
  strokeColor: string;
1098
1109
  backgroundColor: string;
1099
- fillStyle: import("../element/types").FillStyle;
1110
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1100
1111
  strokeWidth: number;
1101
- strokeStyle: import("../element/types").StrokeStyle;
1112
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1102
1113
  roundness: {
1103
- type: import("../element/types").RoundnessType;
1114
+ type: import("@excalidraw/element/types").RoundnessType;
1104
1115
  value?: number | undefined;
1105
1116
  } | null;
1106
1117
  roughness: number;
@@ -1111,7 +1122,7 @@ export declare const actionWrapSelectionInFrame: {
1111
1122
  seed: number;
1112
1123
  version: number;
1113
1124
  versionNonce: number;
1114
- index: import("../element/types").FractionalIndex | null;
1125
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1115
1126
  isDeleted: boolean;
1116
1127
  groupIds: readonly string[];
1117
1128
  frameId: string | null;
@@ -1124,26 +1135,24 @@ export declare const actionWrapSelectionInFrame: {
1124
1135
  locked: boolean;
1125
1136
  customData?: Record<string, any> | undefined;
1126
1137
  }> & Readonly<{
1127
- type: "line" | "arrow";
1128
- points: readonly import("@excalidraw/math").LocalPoint[];
1129
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1130
- startBinding: import("../element/types").PointBinding | null;
1131
- endBinding: import("../element/types").PointBinding | null;
1132
- startArrowhead: import("../element/types").Arrowhead | null;
1133
- endArrowhead: import("../element/types").Arrowhead | null;
1138
+ type: "image";
1139
+ fileId: import("@excalidraw/element/types").FileId | null;
1140
+ status: "pending" | "saved" | "error";
1141
+ scale: [number, number];
1142
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1134
1143
  }> & {
1135
- index: import("../element/types").FractionalIndex;
1144
+ index: import("@excalidraw/element/types").FractionalIndex;
1136
1145
  }) | (Readonly<{
1137
1146
  id: string;
1138
1147
  x: number;
1139
1148
  y: number;
1140
1149
  strokeColor: string;
1141
1150
  backgroundColor: string;
1142
- fillStyle: import("../element/types").FillStyle;
1151
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1143
1152
  strokeWidth: number;
1144
- strokeStyle: import("../element/types").StrokeStyle;
1153
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1145
1154
  roundness: {
1146
- type: import("../element/types").RoundnessType;
1155
+ type: import("@excalidraw/element/types").RoundnessType;
1147
1156
  value?: number | undefined;
1148
1157
  } | null;
1149
1158
  roughness: number;
@@ -1154,7 +1163,7 @@ export declare const actionWrapSelectionInFrame: {
1154
1163
  seed: number;
1155
1164
  version: number;
1156
1165
  versionNonce: number;
1157
- index: import("../element/types").FractionalIndex | null;
1166
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1158
1167
  isDeleted: boolean;
1159
1168
  groupIds: readonly string[];
1160
1169
  frameId: string | null;
@@ -1167,24 +1176,24 @@ export declare const actionWrapSelectionInFrame: {
1167
1176
  locked: boolean;
1168
1177
  customData?: Record<string, any> | undefined;
1169
1178
  }> & Readonly<{
1170
- type: "freedraw";
1171
- points: readonly import("@excalidraw/math").LocalPoint[];
1172
- pressures: readonly number[];
1173
- simulatePressure: boolean;
1174
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1179
+ type: "iframe";
1180
+ customData?: {
1181
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1182
+ } | undefined;
1183
+ scale: [number, number];
1175
1184
  }> & {
1176
- index: import("../element/types").FractionalIndex;
1185
+ index: import("@excalidraw/element/types").FractionalIndex;
1177
1186
  }) | (Readonly<{
1178
1187
  id: string;
1179
1188
  x: number;
1180
1189
  y: number;
1181
1190
  strokeColor: string;
1182
1191
  backgroundColor: string;
1183
- fillStyle: import("../element/types").FillStyle;
1192
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1184
1193
  strokeWidth: number;
1185
- strokeStyle: import("../element/types").StrokeStyle;
1194
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1186
1195
  roundness: {
1187
- type: import("../element/types").RoundnessType;
1196
+ type: import("@excalidraw/element/types").RoundnessType;
1188
1197
  value?: number | undefined;
1189
1198
  } | null;
1190
1199
  roughness: number;
@@ -1195,7 +1204,7 @@ export declare const actionWrapSelectionInFrame: {
1195
1204
  seed: number;
1196
1205
  version: number;
1197
1206
  versionNonce: number;
1198
- index: import("../element/types").FractionalIndex | null;
1207
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1199
1208
  isDeleted: boolean;
1200
1209
  groupIds: readonly string[];
1201
1210
  frameId: string | null;
@@ -1208,24 +1217,32 @@ export declare const actionWrapSelectionInFrame: {
1208
1217
  locked: boolean;
1209
1218
  customData?: Record<string, any> | undefined;
1210
1219
  }> & Readonly<{
1211
- type: "image";
1212
- fileId: import("../element/types").FileId | null;
1213
- status: "error" | "pending" | "saved";
1214
- scale: [number, number];
1215
- crop: import("../element/types").ImageCrop | null;
1220
+ type: "text";
1221
+ fontSize: number;
1222
+ fontFamily: number;
1223
+ text: string;
1224
+ rawText: string;
1225
+ textAlign: string;
1226
+ verticalAlign: string;
1227
+ containerId: string | null;
1228
+ originalText: string;
1229
+ autoResize: boolean;
1230
+ lineHeight: number & {
1231
+ _brand: "unitlessLineHeight";
1232
+ };
1216
1233
  }> & {
1217
- index: import("../element/types").FractionalIndex;
1234
+ index: import("@excalidraw/element/types").FractionalIndex;
1218
1235
  }) | (Readonly<{
1219
1236
  id: string;
1220
1237
  x: number;
1221
1238
  y: number;
1222
1239
  strokeColor: string;
1223
1240
  backgroundColor: string;
1224
- fillStyle: import("../element/types").FillStyle;
1241
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1225
1242
  strokeWidth: number;
1226
- strokeStyle: import("../element/types").StrokeStyle;
1243
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1227
1244
  roundness: {
1228
- type: import("../element/types").RoundnessType;
1245
+ type: import("@excalidraw/element/types").RoundnessType;
1229
1246
  value?: number | undefined;
1230
1247
  } | null;
1231
1248
  roughness: number;
@@ -1236,7 +1253,7 @@ export declare const actionWrapSelectionInFrame: {
1236
1253
  seed: number;
1237
1254
  version: number;
1238
1255
  versionNonce: number;
1239
- index: import("../element/types").FractionalIndex | null;
1256
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1240
1257
  isDeleted: boolean;
1241
1258
  groupIds: readonly string[];
1242
1259
  frameId: string | null;
@@ -1249,21 +1266,20 @@ export declare const actionWrapSelectionInFrame: {
1249
1266
  locked: boolean;
1250
1267
  customData?: Record<string, any> | undefined;
1251
1268
  }> & {
1252
- type: "frame";
1253
- name: string | null;
1269
+ type: "selection";
1254
1270
  } & {
1255
- index: import("../element/types").FractionalIndex;
1271
+ index: import("@excalidraw/element/types").FractionalIndex;
1256
1272
  }) | (Readonly<{
1257
1273
  id: string;
1258
1274
  x: number;
1259
1275
  y: number;
1260
1276
  strokeColor: string;
1261
1277
  backgroundColor: string;
1262
- fillStyle: import("../element/types").FillStyle;
1278
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1263
1279
  strokeWidth: number;
1264
- strokeStyle: import("../element/types").StrokeStyle;
1280
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1265
1281
  roundness: {
1266
- type: import("../element/types").RoundnessType;
1282
+ type: import("@excalidraw/element/types").RoundnessType;
1267
1283
  value?: number | undefined;
1268
1284
  } | null;
1269
1285
  roughness: number;
@@ -1274,7 +1290,7 @@ export declare const actionWrapSelectionInFrame: {
1274
1290
  seed: number;
1275
1291
  version: number;
1276
1292
  versionNonce: number;
1277
- index: import("../element/types").FractionalIndex | null;
1293
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1278
1294
  isDeleted: boolean;
1279
1295
  groupIds: readonly string[];
1280
1296
  frameId: string | null;
@@ -1287,21 +1303,20 @@ export declare const actionWrapSelectionInFrame: {
1287
1303
  locked: boolean;
1288
1304
  customData?: Record<string, any> | undefined;
1289
1305
  }> & {
1290
- type: "magicframe";
1291
- name: string | null;
1306
+ type: "ellipse";
1292
1307
  } & {
1293
- index: import("../element/types").FractionalIndex;
1308
+ index: import("@excalidraw/element/types").FractionalIndex;
1294
1309
  }) | (Readonly<{
1295
1310
  id: string;
1296
1311
  x: number;
1297
1312
  y: number;
1298
1313
  strokeColor: string;
1299
1314
  backgroundColor: string;
1300
- fillStyle: import("../element/types").FillStyle;
1315
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1301
1316
  strokeWidth: number;
1302
- strokeStyle: import("../element/types").StrokeStyle;
1317
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1303
1318
  roundness: {
1304
- type: import("../element/types").RoundnessType;
1319
+ type: import("@excalidraw/element/types").RoundnessType;
1305
1320
  value?: number | undefined;
1306
1321
  } | null;
1307
1322
  roughness: number;
@@ -1312,7 +1327,7 @@ export declare const actionWrapSelectionInFrame: {
1312
1327
  seed: number;
1313
1328
  version: number;
1314
1329
  versionNonce: number;
1315
- index: import("../element/types").FractionalIndex | null;
1330
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1316
1331
  isDeleted: boolean;
1317
1332
  groupIds: readonly string[];
1318
1333
  frameId: string | null;
@@ -1325,24 +1340,26 @@ export declare const actionWrapSelectionInFrame: {
1325
1340
  locked: boolean;
1326
1341
  customData?: Record<string, any> | undefined;
1327
1342
  }> & Readonly<{
1328
- type: "iframe";
1329
- customData?: {
1330
- generationData?: import("../element/types").MagicGenerationData | undefined;
1331
- } | undefined;
1332
- scale: [number, number];
1343
+ type: "line" | "arrow";
1344
+ points: readonly import("@excalidraw/math").LocalPoint[];
1345
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1346
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
1347
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
1348
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1349
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1333
1350
  }> & {
1334
- index: import("../element/types").FractionalIndex;
1351
+ index: import("@excalidraw/element/types").FractionalIndex;
1335
1352
  }) | (Readonly<{
1336
1353
  id: string;
1337
1354
  x: number;
1338
1355
  y: number;
1339
1356
  strokeColor: string;
1340
1357
  backgroundColor: string;
1341
- fillStyle: import("../element/types").FillStyle;
1358
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1342
1359
  strokeWidth: number;
1343
- strokeStyle: import("../element/types").StrokeStyle;
1360
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1344
1361
  roundness: {
1345
- type: import("../element/types").RoundnessType;
1362
+ type: import("@excalidraw/element/types").RoundnessType;
1346
1363
  value?: number | undefined;
1347
1364
  } | null;
1348
1365
  roughness: number;
@@ -1353,7 +1370,7 @@ export declare const actionWrapSelectionInFrame: {
1353
1370
  seed: number;
1354
1371
  version: number;
1355
1372
  versionNonce: number;
1356
- index: import("../element/types").FractionalIndex | null;
1373
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1357
1374
  isDeleted: boolean;
1358
1375
  groupIds: readonly string[];
1359
1376
  frameId: string | null;
@@ -1366,16 +1383,19 @@ export declare const actionWrapSelectionInFrame: {
1366
1383
  locked: boolean;
1367
1384
  customData?: Record<string, any> | undefined;
1368
1385
  }> & Readonly<{
1369
- type: "embeddable";
1370
- scale: [number, number];
1386
+ type: "freedraw";
1387
+ points: readonly import("@excalidraw/math").LocalPoint[];
1388
+ pressures: readonly number[];
1389
+ simulatePressure: boolean;
1390
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1371
1391
  }> & {
1372
- index: import("../element/types").FractionalIndex;
1373
- }) | import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement>)[];
1392
+ index: import("@excalidraw/element/types").FractionalIndex;
1393
+ }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
1374
1394
  appState: {
1375
1395
  selectedElementIds: {
1376
1396
  [x: string]: true;
1377
1397
  };
1378
- theme: import("../element/types").Theme;
1398
+ theme: import("@excalidraw/element/types").Theme;
1379
1399
  };
1380
1400
  captureUpdate: "IMMEDIATELY";
1381
1401
  };