@excalidraw/common 0.18.0-d1f3982 → 0.18.0-d9e8a33

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 (254) hide show
  1. package/dist/dev/index.js +1483 -216
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +59 -39
  8. package/dist/types/common/src/constants.d.ts +20 -12
  9. package/dist/types/common/src/editorInterface.d.ts +1 -1
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +4 -0
  12. package/dist/types/common/src/keys.d.ts +1 -1
  13. package/dist/types/common/src/utility-types.d.ts +0 -1
  14. package/dist/types/common/src/utils.d.ts +52 -41
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +6 -4
  17. package/dist/types/element/src/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  19. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  20. package/dist/types/element/src/binding.d.ts +67 -48
  21. package/dist/types/element/src/bounds.d.ts +7 -13
  22. package/dist/types/element/src/collision.d.ts +7 -2
  23. package/dist/types/element/src/comparisons.d.ts +7 -7
  24. package/dist/types/element/src/distribute.d.ts +2 -1
  25. package/dist/types/element/src/dragElements.d.ts +3 -3
  26. package/dist/types/element/src/duplicate.d.ts +3 -3
  27. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +8 -4
  30. package/dist/types/element/src/heading.d.ts +2 -1
  31. package/dist/types/element/src/image.d.ts +1 -11
  32. package/dist/types/element/src/index.d.ts +4 -3
  33. package/dist/types/element/src/linearElementEditor.d.ts +23 -22
  34. package/dist/types/element/src/mutateElement.d.ts +5 -1
  35. package/dist/types/element/src/newElement.d.ts +6 -6
  36. package/dist/types/element/src/renderElement.d.ts +1 -7
  37. package/dist/types/element/src/resizeElements.d.ts +10 -10
  38. package/dist/types/element/src/resizeTest.d.ts +1 -1
  39. package/dist/types/element/src/selection.d.ts +10 -10
  40. package/dist/types/element/src/shape.d.ts +9 -8
  41. package/dist/types/element/src/textElement.d.ts +1 -1
  42. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  43. package/dist/types/element/src/textWrapping.d.ts +26 -0
  44. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  45. package/dist/types/element/src/transformHandles.d.ts +3 -23
  46. package/dist/types/element/src/typeChecks.d.ts +4 -7
  47. package/dist/types/element/src/types.d.ts +12 -13
  48. package/dist/types/element/src/utils.d.ts +9 -4
  49. package/dist/types/element/src/zindex.d.ts +7 -1
  50. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +152 -201
  51. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  52. package/dist/types/excalidraw/actions/actionBoundText.d.ts +82 -115
  53. package/dist/types/excalidraw/actions/actionCanvas.d.ts +518 -903
  54. package/dist/types/excalidraw/actions/actionClipboard.d.ts +113 -903
  55. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +39 -56
  56. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +132 -185
  57. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +48 -71
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +80 -113
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +54 -71
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +162 -1428
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -402
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +280 -383
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +85 -126
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +173 -228
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +56 -73
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -65
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -367
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +142 -2566
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +42 -63
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +39 -55
  75. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  76. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  77. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +54 -71
  78. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +54 -71
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -65
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +53 -70
  83. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +54 -71
  84. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +54 -71
  85. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  86. package/dist/types/excalidraw/actions/index.d.ts +3 -0
  87. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  90. package/dist/types/excalidraw/appState.d.ts +38 -34
  91. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  92. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  93. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  94. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  95. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  96. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  97. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  98. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  99. package/dist/types/excalidraw/clipboard.d.ts +15 -40
  100. package/dist/types/excalidraw/components/Actions.d.ts +5 -2
  101. package/dist/types/excalidraw/components/App.d.ts +92 -55
  102. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  103. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  104. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  105. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  106. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  107. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  108. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  109. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  110. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  111. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  112. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  114. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  115. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  116. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  117. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  118. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  119. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  120. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  121. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  122. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  123. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  124. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  125. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  126. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  127. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  128. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  129. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  130. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  131. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  132. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  133. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  134. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  135. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  136. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  137. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  138. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  139. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  140. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  141. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  142. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  143. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  144. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  145. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  146. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  147. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  148. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  149. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  150. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  151. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  152. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  153. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  154. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  155. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  156. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  157. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  158. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  159. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  160. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  161. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  162. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  163. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  164. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  165. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  166. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  167. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  168. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  169. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  170. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  171. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  172. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  173. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  174. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  175. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  176. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  177. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  178. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  179. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +5 -2
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  181. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  182. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  183. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  184. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  185. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  186. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  187. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  188. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  193. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  194. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  195. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  196. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  197. package/dist/types/excalidraw/components/icons.d.ts +44 -21
  198. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  199. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
  200. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  201. package/dist/types/excalidraw/data/blob.d.ts +328 -7
  202. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  203. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  204. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  205. package/dist/types/excalidraw/data/index.d.ts +4 -5
  206. package/dist/types/excalidraw/data/json.d.ts +171 -4
  207. package/dist/types/excalidraw/data/library.d.ts +24 -9
  208. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  209. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  210. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  211. package/dist/types/excalidraw/errors.d.ts +14 -0
  212. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  213. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  214. package/dist/types/excalidraw/i18n.d.ts +2 -2
  215. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  216. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  217. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  218. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  219. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  220. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  221. package/dist/types/excalidraw/scene/types.d.ts +19 -2
  222. package/dist/types/excalidraw/snapping.d.ts +5 -5
  223. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  224. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  225. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  226. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  227. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  228. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  229. package/dist/types/excalidraw/types.d.ts +109 -21
  230. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  231. package/dist/types/math/src/curve.d.ts +4 -1
  232. package/dist/types/math/src/point.d.ts +7 -2
  233. package/dist/types/math/src/polygon.d.ts +2 -2
  234. package/dist/types/math/src/range.d.ts +1 -3
  235. package/dist/types/math/src/segment.d.ts +3 -3
  236. package/dist/types/math/src/types.d.ts +25 -1
  237. package/dist/types/utils/src/bbox.d.ts +1 -1
  238. package/dist/types/utils/src/export.d.ts +5 -5
  239. package/dist/types/utils/src/shape.d.ts +6 -6
  240. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  241. package/package.json +7 -1
  242. package/dist/types/excalidraw/charts.d.ts +0 -27
  243. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  244. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  245. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  246. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  247. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  248. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -22
  249. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  250. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  251. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  252. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  253. package/dist/types/excalidraw/index.d.ts +0 -46
  254. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppClassProperties, AppState } from "../types";
4
3
  export declare const actionSelectAllElementsInFrame: {
@@ -7,7 +6,7 @@ export declare const actionSelectAllElementsInFrame: {
7
6
  trackEvent: {
8
7
  category: "canvas";
9
8
  };
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
11
10
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
12
11
  appState: {
13
12
  selectedElementIds: Record<string, true>;
@@ -18,18 +17,24 @@ export declare const actionSelectAllElementsInFrame: {
18
17
  } | null;
19
18
  showWelcomeScreen: boolean;
20
19
  isLoading: boolean;
21
- errorMessage: import("react").ReactNode;
20
+ errorMessage: React.ReactNode;
22
21
  activeEmbeddable: {
23
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
- state: "active" | "hover";
23
+ state: "hover" | "active";
25
24
  } | null;
26
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
29
  isBindingEnabled: boolean;
30
+ boxSelectionMode: import("../types").BoxSelectionMode;
31
+ bindingPreference: "enabled" | "disabled";
32
+ isMidpointSnappingEnabled: boolean;
31
33
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
34
+ suggestedBinding: {
35
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
+ midPoint?: import("@excalidraw/math").GlobalPoint;
37
+ } | null;
33
38
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
39
  frameRendering: {
35
40
  enabled: boolean;
@@ -39,7 +44,7 @@ export declare const actionSelectAllElementsInFrame: {
39
44
  };
40
45
  editingFrame: string | null;
41
46
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
47
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
43
48
  activeTool: {
44
49
  lastActiveTool: import("../types").ActiveTool | null;
45
50
  locked: boolean;
@@ -57,19 +62,19 @@ export declare const actionSelectAllElementsInFrame: {
57
62
  exportScale: number;
58
63
  currentItemStrokeColor: string;
59
64
  currentItemBackgroundColor: string;
60
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
65
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
61
66
  currentItemStrokeWidth: number;
62
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
67
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
63
68
  currentItemRoughness: number;
64
69
  currentItemOpacity: number;
65
- currentItemFontFamily: number;
70
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
66
71
  currentItemFontSize: number;
67
- currentItemTextAlign: string;
72
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
68
73
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
69
74
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
- currentHoveredFontFamily: number | null;
75
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
71
76
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
72
- currentItemArrowType: "round" | "sharp" | "elbow";
77
+ currentItemArrowType: "sharp" | "round" | "elbow";
73
78
  viewBackgroundColor: string;
74
79
  scrollX: number;
75
80
  scrollY: number;
@@ -78,26 +83,30 @@ export declare const actionSelectAllElementsInFrame: {
78
83
  name: string | null;
79
84
  isResizing: boolean;
80
85
  isRotating: boolean;
81
- zoom: Readonly<{
82
- value: import("../types").NormalizedZoomValue;
83
- }>;
86
+ zoom: import("../types").Zoom;
84
87
  openMenu: "canvas" | null;
85
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
88
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
86
89
  openSidebar: {
87
- name: string;
88
- tab?: string | undefined;
90
+ name: import("../types").SidebarName;
91
+ tab?: import("../types").SidebarTabName;
89
92
  } | null;
90
- openDialog: {
93
+ openDialog: null | {
91
94
  name: "imageExport" | "help" | "jsonExport";
92
95
  } | {
93
96
  name: "ttd";
94
- tab: "mermaid" | "text-to-diagram";
97
+ tab: "text-to-diagram" | "mermaid";
95
98
  } | {
96
99
  name: "commandPalette";
100
+ } | {
101
+ name: "settings";
97
102
  } | {
98
103
  name: "elementLinkSelector";
99
- sourceElementId: string;
100
- } | null;
104
+ sourceElementId: ExcalidrawElement["id"];
105
+ } | {
106
+ name: "charts";
107
+ data: import("../charts").Spreadsheet;
108
+ rawText: string;
109
+ };
101
110
  defaultSidebarDockedPreference: boolean;
102
111
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
103
112
  hoveredElementIds: Readonly<{
@@ -109,9 +118,9 @@ export declare const actionSelectAllElementsInFrame: {
109
118
  selectedElementsAreBeingDragged: boolean;
110
119
  shouldCacheIgnoreZoom: boolean;
111
120
  toast: {
112
- message: string;
113
- closable?: boolean | undefined;
114
- duration?: number | undefined;
121
+ message: React.ReactNode;
122
+ closable?: boolean;
123
+ duration?: number;
115
124
  } | null;
116
125
  zenModeEnabled: boolean;
117
126
  theme: import("@excalidraw/element/types").Theme;
@@ -122,44 +131,17 @@ export declare const actionSelectAllElementsInFrame: {
122
131
  selectedGroupIds: {
123
132
  [groupId: string]: boolean;
124
133
  };
125
- editingGroupId: string | null;
134
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
126
135
  width: number;
127
136
  height: number;
128
137
  offsetTop: number;
129
138
  offsetLeft: number;
130
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
131
- collaborators: Map<import("../types").SocketId, Readonly<{
132
- pointer?: import("../types").CollaboratorPointer | undefined;
133
- button?: "up" | "down" | undefined;
134
- selectedElementIds?: Readonly<{
135
- [id: string]: true;
136
- }> | undefined;
137
- username?: string | null | undefined;
138
- userState?: import("@excalidraw/common").UserIdleState | undefined;
139
- color?: {
140
- background: string;
141
- stroke: string;
142
- } | undefined;
143
- avatarUrl?: string | undefined;
144
- id?: string | undefined;
145
- socketId?: import("../types").SocketId | undefined;
146
- isCurrentUser?: boolean | undefined;
147
- isInCall?: boolean | undefined;
148
- isSpeaking?: boolean | undefined;
149
- isMuted?: boolean | undefined;
150
- }>>;
139
+ fileHandle: FileSystemFileHandle | null;
140
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
151
141
  stats: {
152
142
  open: boolean;
153
143
  panels: number;
154
144
  };
155
- currentChartType: import("@excalidraw/element/types").ChartType;
156
- pasteDialog: {
157
- shown: false;
158
- data: null;
159
- } | {
160
- shown: true;
161
- data: import("../charts").Spreadsheet;
162
- };
163
145
  showHyperlinkPopup: false | "info" | "editor";
164
146
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
165
147
  snapLines: readonly import("../snapping").SnapLine[];
@@ -171,15 +153,16 @@ export declare const actionSelectAllElementsInFrame: {
171
153
  userToFollow: import("../types").UserToFollow | null;
172
154
  followedBy: Set<import("../types").SocketId>;
173
155
  isCropping: boolean;
174
- croppingElementId: string | null;
156
+ croppingElementId: ExcalidrawElement["id"] | null;
175
157
  searchMatches: Readonly<{
176
- focusedId: string | null;
158
+ focusedId: ExcalidrawElement["id"] | null;
177
159
  matches: readonly import("../types").SearchMatch[];
178
160
  }> | null;
179
161
  activeLockedId: string | null;
180
162
  lockedMultiSelections: {
181
163
  [groupId: string]: true;
182
164
  };
165
+ bindMode: import("@excalidraw/element/types").BindMode;
183
166
  };
184
167
  captureUpdate: "IMMEDIATELY";
185
168
  } | {
@@ -197,7 +180,7 @@ export declare const actionRemoveAllElementsFromFrame: {
197
180
  trackEvent: {
198
181
  category: "history";
199
182
  };
200
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
183
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
201
184
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
202
185
  appState: {
203
186
  selectedElementIds: {
@@ -210,18 +193,24 @@ export declare const actionRemoveAllElementsFromFrame: {
210
193
  } | null;
211
194
  showWelcomeScreen: boolean;
212
195
  isLoading: boolean;
213
- errorMessage: import("react").ReactNode;
196
+ errorMessage: React.ReactNode;
214
197
  activeEmbeddable: {
215
198
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
216
- state: "active" | "hover";
199
+ state: "hover" | "active";
217
200
  } | null;
218
201
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
219
202
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
220
203
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
221
204
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
205
  isBindingEnabled: boolean;
206
+ boxSelectionMode: import("../types").BoxSelectionMode;
207
+ bindingPreference: "enabled" | "disabled";
208
+ isMidpointSnappingEnabled: boolean;
223
209
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
224
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
210
+ suggestedBinding: {
211
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
212
+ midPoint?: import("@excalidraw/math").GlobalPoint;
213
+ } | null;
225
214
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
226
215
  frameRendering: {
227
216
  enabled: boolean;
@@ -231,7 +220,7 @@ export declare const actionRemoveAllElementsFromFrame: {
231
220
  };
232
221
  editingFrame: string | null;
233
222
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
234
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
223
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
235
224
  activeTool: {
236
225
  lastActiveTool: import("../types").ActiveTool | null;
237
226
  locked: boolean;
@@ -249,19 +238,19 @@ export declare const actionRemoveAllElementsFromFrame: {
249
238
  exportScale: number;
250
239
  currentItemStrokeColor: string;
251
240
  currentItemBackgroundColor: string;
252
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
241
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
253
242
  currentItemStrokeWidth: number;
254
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
243
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
255
244
  currentItemRoughness: number;
256
245
  currentItemOpacity: number;
257
- currentItemFontFamily: number;
246
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
258
247
  currentItemFontSize: number;
259
- currentItemTextAlign: string;
248
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
260
249
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
261
250
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
262
- currentHoveredFontFamily: number | null;
251
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
263
252
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
264
- currentItemArrowType: "round" | "sharp" | "elbow";
253
+ currentItemArrowType: "sharp" | "round" | "elbow";
265
254
  viewBackgroundColor: string;
266
255
  scrollX: number;
267
256
  scrollY: number;
@@ -270,26 +259,30 @@ export declare const actionRemoveAllElementsFromFrame: {
270
259
  name: string | null;
271
260
  isResizing: boolean;
272
261
  isRotating: boolean;
273
- zoom: Readonly<{
274
- value: import("../types").NormalizedZoomValue;
275
- }>;
262
+ zoom: import("../types").Zoom;
276
263
  openMenu: "canvas" | null;
277
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
264
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
278
265
  openSidebar: {
279
- name: string;
280
- tab?: string | undefined;
266
+ name: import("../types").SidebarName;
267
+ tab?: import("../types").SidebarTabName;
281
268
  } | null;
282
- openDialog: {
269
+ openDialog: null | {
283
270
  name: "imageExport" | "help" | "jsonExport";
284
271
  } | {
285
272
  name: "ttd";
286
- tab: "mermaid" | "text-to-diagram";
273
+ tab: "text-to-diagram" | "mermaid";
287
274
  } | {
288
275
  name: "commandPalette";
276
+ } | {
277
+ name: "settings";
289
278
  } | {
290
279
  name: "elementLinkSelector";
291
- sourceElementId: string;
292
- } | null;
280
+ sourceElementId: ExcalidrawElement["id"];
281
+ } | {
282
+ name: "charts";
283
+ data: import("../charts").Spreadsheet;
284
+ rawText: string;
285
+ };
293
286
  defaultSidebarDockedPreference: boolean;
294
287
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
295
288
  hoveredElementIds: Readonly<{
@@ -301,9 +294,9 @@ export declare const actionRemoveAllElementsFromFrame: {
301
294
  selectedElementsAreBeingDragged: boolean;
302
295
  shouldCacheIgnoreZoom: boolean;
303
296
  toast: {
304
- message: string;
305
- closable?: boolean | undefined;
306
- duration?: number | undefined;
297
+ message: React.ReactNode;
298
+ closable?: boolean;
299
+ duration?: number;
307
300
  } | null;
308
301
  zenModeEnabled: boolean;
309
302
  theme: import("@excalidraw/element/types").Theme;
@@ -314,44 +307,17 @@ export declare const actionRemoveAllElementsFromFrame: {
314
307
  selectedGroupIds: {
315
308
  [groupId: string]: boolean;
316
309
  };
317
- editingGroupId: string | null;
310
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
318
311
  width: number;
319
312
  height: number;
320
313
  offsetTop: number;
321
314
  offsetLeft: number;
322
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
323
- collaborators: Map<import("../types").SocketId, Readonly<{
324
- pointer?: import("../types").CollaboratorPointer | undefined;
325
- button?: "up" | "down" | undefined;
326
- selectedElementIds?: Readonly<{
327
- [id: string]: true;
328
- }> | undefined;
329
- username?: string | null | undefined;
330
- userState?: import("@excalidraw/common").UserIdleState | undefined;
331
- color?: {
332
- background: string;
333
- stroke: string;
334
- } | undefined;
335
- avatarUrl?: string | undefined;
336
- id?: string | undefined;
337
- socketId?: import("../types").SocketId | undefined;
338
- isCurrentUser?: boolean | undefined;
339
- isInCall?: boolean | undefined;
340
- isSpeaking?: boolean | undefined;
341
- isMuted?: boolean | undefined;
342
- }>>;
315
+ fileHandle: FileSystemFileHandle | null;
316
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
343
317
  stats: {
344
318
  open: boolean;
345
319
  panels: number;
346
320
  };
347
- currentChartType: import("@excalidraw/element/types").ChartType;
348
- pasteDialog: {
349
- shown: false;
350
- data: null;
351
- } | {
352
- shown: true;
353
- data: import("../charts").Spreadsheet;
354
- };
355
321
  showHyperlinkPopup: false | "info" | "editor";
356
322
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
357
323
  snapLines: readonly import("../snapping").SnapLine[];
@@ -363,15 +329,16 @@ export declare const actionRemoveAllElementsFromFrame: {
363
329
  userToFollow: import("../types").UserToFollow | null;
364
330
  followedBy: Set<import("../types").SocketId>;
365
331
  isCropping: boolean;
366
- croppingElementId: string | null;
332
+ croppingElementId: ExcalidrawElement["id"] | null;
367
333
  searchMatches: Readonly<{
368
- focusedId: string | null;
334
+ focusedId: ExcalidrawElement["id"] | null;
369
335
  matches: readonly import("../types").SearchMatch[];
370
336
  }> | null;
371
337
  activeLockedId: string | null;
372
338
  lockedMultiSelections: {
373
339
  [groupId: string]: true;
374
340
  };
341
+ bindMode: import("@excalidraw/element/types").BindMode;
375
342
  };
376
343
  captureUpdate: "IMMEDIATELY";
377
344
  } | {
@@ -406,22 +373,28 @@ export declare const actionupdateFrameRendering: {
406
373
  } | null;
407
374
  showWelcomeScreen: boolean;
408
375
  isLoading: boolean;
409
- errorMessage: import("react").ReactNode;
376
+ errorMessage: React.ReactNode;
410
377
  activeEmbeddable: {
411
378
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
412
- state: "active" | "hover";
379
+ state: "hover" | "active";
413
380
  } | null;
414
381
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
415
382
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
416
383
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
417
384
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
418
385
  isBindingEnabled: boolean;
386
+ boxSelectionMode: import("../types").BoxSelectionMode;
387
+ bindingPreference: "enabled" | "disabled";
388
+ isMidpointSnappingEnabled: boolean;
419
389
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
420
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
390
+ suggestedBinding: {
391
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
392
+ midPoint?: import("@excalidraw/math").GlobalPoint;
393
+ } | null;
421
394
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
422
395
  editingFrame: string | null;
423
396
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
424
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
397
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
425
398
  activeTool: {
426
399
  lastActiveTool: import("../types").ActiveTool | null;
427
400
  locked: boolean;
@@ -439,19 +412,19 @@ export declare const actionupdateFrameRendering: {
439
412
  exportScale: number;
440
413
  currentItemStrokeColor: string;
441
414
  currentItemBackgroundColor: string;
442
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
415
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
443
416
  currentItemStrokeWidth: number;
444
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
417
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
445
418
  currentItemRoughness: number;
446
419
  currentItemOpacity: number;
447
- currentItemFontFamily: number;
420
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
448
421
  currentItemFontSize: number;
449
- currentItemTextAlign: string;
422
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
450
423
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
451
424
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
452
- currentHoveredFontFamily: number | null;
425
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
453
426
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
454
- currentItemArrowType: "round" | "sharp" | "elbow";
427
+ currentItemArrowType: "sharp" | "round" | "elbow";
455
428
  viewBackgroundColor: string;
456
429
  scrollX: number;
457
430
  scrollY: number;
@@ -460,26 +433,30 @@ export declare const actionupdateFrameRendering: {
460
433
  name: string | null;
461
434
  isResizing: boolean;
462
435
  isRotating: boolean;
463
- zoom: Readonly<{
464
- value: import("../types").NormalizedZoomValue;
465
- }>;
436
+ zoom: import("../types").Zoom;
466
437
  openMenu: "canvas" | null;
467
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
438
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
468
439
  openSidebar: {
469
- name: string;
470
- tab?: string | undefined;
440
+ name: import("../types").SidebarName;
441
+ tab?: import("../types").SidebarTabName;
471
442
  } | null;
472
- openDialog: {
443
+ openDialog: null | {
473
444
  name: "imageExport" | "help" | "jsonExport";
474
445
  } | {
475
446
  name: "ttd";
476
- tab: "mermaid" | "text-to-diagram";
447
+ tab: "text-to-diagram" | "mermaid";
477
448
  } | {
478
449
  name: "commandPalette";
450
+ } | {
451
+ name: "settings";
479
452
  } | {
480
453
  name: "elementLinkSelector";
481
- sourceElementId: string;
482
- } | null;
454
+ sourceElementId: ExcalidrawElement["id"];
455
+ } | {
456
+ name: "charts";
457
+ data: import("../charts").Spreadsheet;
458
+ rawText: string;
459
+ };
483
460
  defaultSidebarDockedPreference: boolean;
484
461
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
485
462
  selectedElementIds: Readonly<{
@@ -494,9 +471,9 @@ export declare const actionupdateFrameRendering: {
494
471
  selectedElementsAreBeingDragged: boolean;
495
472
  shouldCacheIgnoreZoom: boolean;
496
473
  toast: {
497
- message: string;
498
- closable?: boolean | undefined;
499
- duration?: number | undefined;
474
+ message: React.ReactNode;
475
+ closable?: boolean;
476
+ duration?: number;
500
477
  } | null;
501
478
  zenModeEnabled: boolean;
502
479
  theme: import("@excalidraw/element/types").Theme;
@@ -507,44 +484,17 @@ export declare const actionupdateFrameRendering: {
507
484
  selectedGroupIds: {
508
485
  [groupId: string]: boolean;
509
486
  };
510
- editingGroupId: string | null;
487
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
511
488
  width: number;
512
489
  height: number;
513
490
  offsetTop: number;
514
491
  offsetLeft: number;
515
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
516
- collaborators: Map<import("../types").SocketId, Readonly<{
517
- pointer?: import("../types").CollaboratorPointer | undefined;
518
- button?: "up" | "down" | undefined;
519
- selectedElementIds?: Readonly<{
520
- [id: string]: true;
521
- }> | undefined;
522
- username?: string | null | undefined;
523
- userState?: import("@excalidraw/common").UserIdleState | undefined;
524
- color?: {
525
- background: string;
526
- stroke: string;
527
- } | undefined;
528
- avatarUrl?: string | undefined;
529
- id?: string | undefined;
530
- socketId?: import("../types").SocketId | undefined;
531
- isCurrentUser?: boolean | undefined;
532
- isInCall?: boolean | undefined;
533
- isSpeaking?: boolean | undefined;
534
- isMuted?: boolean | undefined;
535
- }>>;
492
+ fileHandle: FileSystemFileHandle | null;
493
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
536
494
  stats: {
537
495
  open: boolean;
538
496
  panels: number;
539
497
  };
540
- currentChartType: import("@excalidraw/element/types").ChartType;
541
- pasteDialog: {
542
- shown: false;
543
- data: null;
544
- } | {
545
- shown: true;
546
- data: import("../charts").Spreadsheet;
547
- };
548
498
  showHyperlinkPopup: false | "info" | "editor";
549
499
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
550
500
  snapLines: readonly import("../snapping").SnapLine[];
@@ -556,15 +506,16 @@ export declare const actionupdateFrameRendering: {
556
506
  userToFollow: import("../types").UserToFollow | null;
557
507
  followedBy: Set<import("../types").SocketId>;
558
508
  isCropping: boolean;
559
- croppingElementId: string | null;
509
+ croppingElementId: ExcalidrawElement["id"] | null;
560
510
  searchMatches: Readonly<{
561
- focusedId: string | null;
511
+ focusedId: ExcalidrawElement["id"] | null;
562
512
  matches: readonly import("../types").SearchMatch[];
563
513
  }> | null;
564
514
  activeLockedId: string | null;
565
515
  lockedMultiSelections: {
566
516
  [groupId: string]: true;
567
517
  };
518
+ bindMode: import("@excalidraw/element/types").BindMode;
568
519
  };
569
520
  captureUpdate: "EVENTUALLY";
570
521
  };
@@ -580,7 +531,7 @@ export declare const actionSetFrameAsActiveTool: {
580
531
  };
581
532
  icon: import("react/jsx-runtime").JSX.Element;
582
533
  viewMode: false;
583
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
534
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
584
535
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
585
536
  appState: {
586
537
  activeTool: {
@@ -595,18 +546,24 @@ export declare const actionSetFrameAsActiveTool: {
595
546
  } | null;
596
547
  showWelcomeScreen: boolean;
597
548
  isLoading: boolean;
598
- errorMessage: import("react").ReactNode;
549
+ errorMessage: React.ReactNode;
599
550
  activeEmbeddable: {
600
551
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
- state: "active" | "hover";
552
+ state: "hover" | "active";
602
553
  } | null;
603
554
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
555
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
605
556
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
606
557
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
558
  isBindingEnabled: boolean;
559
+ boxSelectionMode: import("../types").BoxSelectionMode;
560
+ bindingPreference: "enabled" | "disabled";
561
+ isMidpointSnappingEnabled: boolean;
608
562
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
563
+ suggestedBinding: {
564
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
565
+ midPoint?: import("@excalidraw/math").GlobalPoint;
566
+ } | null;
610
567
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
611
568
  frameRendering: {
612
569
  enabled: boolean;
@@ -616,7 +573,7 @@ export declare const actionSetFrameAsActiveTool: {
616
573
  };
617
574
  editingFrame: string | null;
618
575
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
619
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
576
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
620
577
  preferredSelectionTool: {
621
578
  type: "selection" | "lasso";
622
579
  initialized: boolean;
@@ -629,19 +586,19 @@ export declare const actionSetFrameAsActiveTool: {
629
586
  exportScale: number;
630
587
  currentItemStrokeColor: string;
631
588
  currentItemBackgroundColor: string;
632
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
589
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
633
590
  currentItemStrokeWidth: number;
634
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
591
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
635
592
  currentItemRoughness: number;
636
593
  currentItemOpacity: number;
637
- currentItemFontFamily: number;
594
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
638
595
  currentItemFontSize: number;
639
- currentItemTextAlign: string;
596
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
640
597
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
641
598
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
642
- currentHoveredFontFamily: number | null;
599
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
643
600
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
644
- currentItemArrowType: "round" | "sharp" | "elbow";
601
+ currentItemArrowType: "sharp" | "round" | "elbow";
645
602
  viewBackgroundColor: string;
646
603
  scrollX: number;
647
604
  scrollY: number;
@@ -650,26 +607,30 @@ export declare const actionSetFrameAsActiveTool: {
650
607
  name: string | null;
651
608
  isResizing: boolean;
652
609
  isRotating: boolean;
653
- zoom: Readonly<{
654
- value: import("../types").NormalizedZoomValue;
655
- }>;
610
+ zoom: import("../types").Zoom;
656
611
  openMenu: "canvas" | null;
657
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
612
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
658
613
  openSidebar: {
659
- name: string;
660
- tab?: string | undefined;
614
+ name: import("../types").SidebarName;
615
+ tab?: import("../types").SidebarTabName;
661
616
  } | null;
662
- openDialog: {
617
+ openDialog: null | {
663
618
  name: "imageExport" | "help" | "jsonExport";
664
619
  } | {
665
620
  name: "ttd";
666
- tab: "mermaid" | "text-to-diagram";
621
+ tab: "text-to-diagram" | "mermaid";
667
622
  } | {
668
623
  name: "commandPalette";
624
+ } | {
625
+ name: "settings";
669
626
  } | {
670
627
  name: "elementLinkSelector";
671
- sourceElementId: string;
672
- } | null;
628
+ sourceElementId: ExcalidrawElement["id"];
629
+ } | {
630
+ name: "charts";
631
+ data: import("../charts").Spreadsheet;
632
+ rawText: string;
633
+ };
673
634
  defaultSidebarDockedPreference: boolean;
674
635
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
675
636
  selectedElementIds: Readonly<{
@@ -684,9 +645,9 @@ export declare const actionSetFrameAsActiveTool: {
684
645
  selectedElementsAreBeingDragged: boolean;
685
646
  shouldCacheIgnoreZoom: boolean;
686
647
  toast: {
687
- message: string;
688
- closable?: boolean | undefined;
689
- duration?: number | undefined;
648
+ message: React.ReactNode;
649
+ closable?: boolean;
650
+ duration?: number;
690
651
  } | null;
691
652
  zenModeEnabled: boolean;
692
653
  theme: import("@excalidraw/element/types").Theme;
@@ -697,44 +658,17 @@ export declare const actionSetFrameAsActiveTool: {
697
658
  selectedGroupIds: {
698
659
  [groupId: string]: boolean;
699
660
  };
700
- editingGroupId: string | null;
661
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
701
662
  width: number;
702
663
  height: number;
703
664
  offsetTop: number;
704
665
  offsetLeft: number;
705
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
706
- collaborators: Map<import("../types").SocketId, Readonly<{
707
- pointer?: import("../types").CollaboratorPointer | undefined;
708
- button?: "up" | "down" | undefined;
709
- selectedElementIds?: Readonly<{
710
- [id: string]: true;
711
- }> | undefined;
712
- username?: string | null | undefined;
713
- userState?: import("@excalidraw/common").UserIdleState | undefined;
714
- color?: {
715
- background: string;
716
- stroke: string;
717
- } | undefined;
718
- avatarUrl?: string | undefined;
719
- id?: string | undefined;
720
- socketId?: import("../types").SocketId | undefined;
721
- isCurrentUser?: boolean | undefined;
722
- isInCall?: boolean | undefined;
723
- isSpeaking?: boolean | undefined;
724
- isMuted?: boolean | undefined;
725
- }>>;
666
+ fileHandle: FileSystemFileHandle | null;
667
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
726
668
  stats: {
727
669
  open: boolean;
728
670
  panels: number;
729
671
  };
730
- currentChartType: import("@excalidraw/element/types").ChartType;
731
- pasteDialog: {
732
- shown: false;
733
- data: null;
734
- } | {
735
- shown: true;
736
- data: import("../charts").Spreadsheet;
737
- };
738
672
  showHyperlinkPopup: false | "info" | "editor";
739
673
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
740
674
  snapLines: readonly import("../snapping").SnapLine[];
@@ -746,15 +680,16 @@ export declare const actionSetFrameAsActiveTool: {
746
680
  userToFollow: import("../types").UserToFollow | null;
747
681
  followedBy: Set<import("../types").SocketId>;
748
682
  isCropping: boolean;
749
- croppingElementId: string | null;
683
+ croppingElementId: ExcalidrawElement["id"] | null;
750
684
  searchMatches: Readonly<{
751
- focusedId: string | null;
685
+ focusedId: ExcalidrawElement["id"] | null;
752
686
  matches: readonly import("../types").SearchMatch[];
753
687
  }> | null;
754
688
  activeLockedId: string | null;
755
689
  lockedMultiSelections: {
756
690
  [groupId: string]: true;
757
691
  };
692
+ bindMode: import("@excalidraw/element/types").BindMode;
758
693
  };
759
694
  captureUpdate: "EVENTUALLY";
760
695
  };
@@ -769,7 +704,7 @@ export declare const actionWrapSelectionInFrame: {
769
704
  category: "element";
770
705
  };
771
706
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
772
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
707
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
773
708
  elements: ((Readonly<{
774
709
  id: string;
775
710
  x: number;
@@ -779,43 +714,34 @@ export declare const actionWrapSelectionInFrame: {
779
714
  fillStyle: import("@excalidraw/element/types").FillStyle;
780
715
  strokeWidth: number;
781
716
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
782
- roundness: {
717
+ roundness: null | {
783
718
  type: import("@excalidraw/element/types").RoundnessType;
784
- value?: number | undefined;
785
- } | null;
719
+ value?: number;
720
+ };
786
721
  roughness: number;
787
722
  opacity: number;
788
723
  width: number;
789
724
  height: number;
790
- angle: import("../../math/src").Radians;
725
+ angle: import("@excalidraw/math").Radians;
791
726
  seed: number;
792
727
  version: number;
793
728
  versionNonce: number;
794
729
  index: import("@excalidraw/element/types").FractionalIndex | null;
795
730
  isDeleted: boolean;
796
- groupIds: readonly string[];
731
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
797
732
  frameId: string | null;
798
- boundElements: readonly Readonly<{
799
- id: string;
800
- type: "text" | "arrow";
801
- }>[] | null;
733
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
802
734
  updated: number;
803
735
  link: string | null;
804
736
  locked: boolean;
805
- customData?: Record<string, any> | undefined;
737
+ customData?: Record<string, any>;
806
738
  }> & Readonly<{
807
- type: "text";
808
- fontSize: number;
809
- fontFamily: number;
810
- text: string;
811
- textAlign: string;
812
- verticalAlign: string;
813
- containerId: string | null;
814
- originalText: string;
815
- autoResize: boolean;
816
- lineHeight: number & {
817
- _brand: "unitlessLineHeight";
818
- };
739
+ type: "line" | "arrow";
740
+ points: readonly import("@excalidraw/math").LocalPoint[];
741
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
742
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
743
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
744
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
819
745
  }> & {
820
746
  index: import("@excalidraw/element/types").FractionalIndex;
821
747
  }) | (Readonly<{
@@ -827,32 +753,29 @@ export declare const actionWrapSelectionInFrame: {
827
753
  fillStyle: import("@excalidraw/element/types").FillStyle;
828
754
  strokeWidth: number;
829
755
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
830
- roundness: {
756
+ roundness: null | {
831
757
  type: import("@excalidraw/element/types").RoundnessType;
832
- value?: number | undefined;
833
- } | null;
758
+ value?: number;
759
+ };
834
760
  roughness: number;
835
761
  opacity: number;
836
762
  width: number;
837
763
  height: number;
838
- angle: import("../../math/src").Radians;
764
+ angle: import("@excalidraw/math").Radians;
839
765
  seed: number;
840
766
  version: number;
841
767
  versionNonce: number;
842
768
  index: import("@excalidraw/element/types").FractionalIndex | null;
843
769
  isDeleted: boolean;
844
- groupIds: readonly string[];
770
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
845
771
  frameId: string | null;
846
- boundElements: readonly Readonly<{
847
- id: string;
848
- type: "text" | "arrow";
849
- }>[] | null;
772
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
850
773
  updated: number;
851
774
  link: string | null;
852
775
  locked: boolean;
853
- customData?: Record<string, any> | undefined;
776
+ customData?: Record<string, any>;
854
777
  }> & {
855
- type: "rectangle";
778
+ type: "selection";
856
779
  } & {
857
780
  index: import("@excalidraw/element/types").FractionalIndex;
858
781
  }) | (Readonly<{
@@ -864,32 +787,29 @@ export declare const actionWrapSelectionInFrame: {
864
787
  fillStyle: import("@excalidraw/element/types").FillStyle;
865
788
  strokeWidth: number;
866
789
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
867
- roundness: {
790
+ roundness: null | {
868
791
  type: import("@excalidraw/element/types").RoundnessType;
869
- value?: number | undefined;
870
- } | null;
792
+ value?: number;
793
+ };
871
794
  roughness: number;
872
795
  opacity: number;
873
796
  width: number;
874
797
  height: number;
875
- angle: import("../../math/src").Radians;
798
+ angle: import("@excalidraw/math").Radians;
876
799
  seed: number;
877
800
  version: number;
878
801
  versionNonce: number;
879
802
  index: import("@excalidraw/element/types").FractionalIndex | null;
880
803
  isDeleted: boolean;
881
- groupIds: readonly string[];
804
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
882
805
  frameId: string | null;
883
- boundElements: readonly Readonly<{
884
- id: string;
885
- type: "text" | "arrow";
886
- }>[] | null;
806
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
887
807
  updated: number;
888
808
  link: string | null;
889
809
  locked: boolean;
890
- customData?: Record<string, any> | undefined;
810
+ customData?: Record<string, any>;
891
811
  }> & {
892
- type: "diamond";
812
+ type: "rectangle";
893
813
  } & {
894
814
  index: import("@excalidraw/element/types").FractionalIndex;
895
815
  }) | (Readonly<{
@@ -901,33 +821,29 @@ export declare const actionWrapSelectionInFrame: {
901
821
  fillStyle: import("@excalidraw/element/types").FillStyle;
902
822
  strokeWidth: number;
903
823
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
904
- roundness: {
824
+ roundness: null | {
905
825
  type: import("@excalidraw/element/types").RoundnessType;
906
- value?: number | undefined;
907
- } | null;
826
+ value?: number;
827
+ };
908
828
  roughness: number;
909
829
  opacity: number;
910
830
  width: number;
911
831
  height: number;
912
- angle: import("../../math/src").Radians;
832
+ angle: import("@excalidraw/math").Radians;
913
833
  seed: number;
914
834
  version: number;
915
835
  versionNonce: number;
916
836
  index: import("@excalidraw/element/types").FractionalIndex | null;
917
837
  isDeleted: boolean;
918
- groupIds: readonly string[];
838
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
919
839
  frameId: string | null;
920
- boundElements: readonly Readonly<{
921
- id: string;
922
- type: "text" | "arrow";
923
- }>[] | null;
840
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
924
841
  updated: number;
925
842
  link: string | null;
926
843
  locked: boolean;
927
- customData?: Record<string, any> | undefined;
844
+ customData?: Record<string, any>;
928
845
  }> & {
929
- type: "frame";
930
- name: string | null;
846
+ type: "diamond";
931
847
  } & {
932
848
  index: import("@excalidraw/element/types").FractionalIndex;
933
849
  }) | (Readonly<{
@@ -939,33 +855,29 @@ export declare const actionWrapSelectionInFrame: {
939
855
  fillStyle: import("@excalidraw/element/types").FillStyle;
940
856
  strokeWidth: number;
941
857
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
942
- roundness: {
858
+ roundness: null | {
943
859
  type: import("@excalidraw/element/types").RoundnessType;
944
- value?: number | undefined;
945
- } | null;
860
+ value?: number;
861
+ };
946
862
  roughness: number;
947
863
  opacity: number;
948
864
  width: number;
949
865
  height: number;
950
- angle: import("../../math/src").Radians;
866
+ angle: import("@excalidraw/math").Radians;
951
867
  seed: number;
952
868
  version: number;
953
869
  versionNonce: number;
954
870
  index: import("@excalidraw/element/types").FractionalIndex | null;
955
871
  isDeleted: boolean;
956
- groupIds: readonly string[];
872
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
957
873
  frameId: string | null;
958
- boundElements: readonly Readonly<{
959
- id: string;
960
- type: "text" | "arrow";
961
- }>[] | null;
874
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
962
875
  updated: number;
963
876
  link: string | null;
964
877
  locked: boolean;
965
- customData?: Record<string, any> | undefined;
878
+ customData?: Record<string, any>;
966
879
  }> & {
967
- type: "magicframe";
968
- name: string | null;
880
+ type: "ellipse";
969
881
  } & {
970
882
  index: import("@excalidraw/element/types").FractionalIndex;
971
883
  }) | (Readonly<{
@@ -977,30 +889,27 @@ export declare const actionWrapSelectionInFrame: {
977
889
  fillStyle: import("@excalidraw/element/types").FillStyle;
978
890
  strokeWidth: number;
979
891
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
980
- roundness: {
892
+ roundness: null | {
981
893
  type: import("@excalidraw/element/types").RoundnessType;
982
- value?: number | undefined;
983
- } | null;
894
+ value?: number;
895
+ };
984
896
  roughness: number;
985
897
  opacity: number;
986
898
  width: number;
987
899
  height: number;
988
- angle: import("../../math/src").Radians;
900
+ angle: import("@excalidraw/math").Radians;
989
901
  seed: number;
990
902
  version: number;
991
903
  versionNonce: number;
992
904
  index: import("@excalidraw/element/types").FractionalIndex | null;
993
905
  isDeleted: boolean;
994
- groupIds: readonly string[];
906
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
995
907
  frameId: string | null;
996
- boundElements: readonly Readonly<{
997
- id: string;
998
- type: "text" | "arrow";
999
- }>[] | null;
908
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1000
909
  updated: number;
1001
910
  link: string | null;
1002
911
  locked: boolean;
1003
- customData?: Record<string, any> | undefined;
912
+ customData?: Record<string, any>;
1004
913
  }> & Readonly<{
1005
914
  type: "embeddable";
1006
915
  }> & {
@@ -1014,36 +923,32 @@ export declare const actionWrapSelectionInFrame: {
1014
923
  fillStyle: import("@excalidraw/element/types").FillStyle;
1015
924
  strokeWidth: number;
1016
925
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1017
- roundness: {
926
+ roundness: null | {
1018
927
  type: import("@excalidraw/element/types").RoundnessType;
1019
- value?: number | undefined;
1020
- } | null;
928
+ value?: number;
929
+ };
1021
930
  roughness: number;
1022
931
  opacity: number;
1023
932
  width: number;
1024
933
  height: number;
1025
- angle: import("../../math/src").Radians;
934
+ angle: import("@excalidraw/math").Radians;
1026
935
  seed: number;
1027
936
  version: number;
1028
937
  versionNonce: number;
1029
938
  index: import("@excalidraw/element/types").FractionalIndex | null;
1030
939
  isDeleted: boolean;
1031
- groupIds: readonly string[];
940
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1032
941
  frameId: string | null;
1033
- boundElements: readonly Readonly<{
1034
- id: string;
1035
- type: "text" | "arrow";
1036
- }>[] | null;
942
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1037
943
  updated: number;
1038
944
  link: string | null;
1039
945
  locked: boolean;
1040
- customData?: Record<string, any> | undefined;
946
+ customData?: Record<string, any>;
1041
947
  }> & Readonly<{
1042
- type: "image";
1043
- fileId: import("@excalidraw/element/types").FileId | null;
1044
- status: "pending" | "saved" | "error";
1045
- scale: [number, number];
1046
- crop: import("@excalidraw/element/types").ImageCrop | null;
948
+ type: "iframe";
949
+ customData?: {
950
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
951
+ };
1047
952
  }> & {
1048
953
  index: import("@excalidraw/element/types").FractionalIndex;
1049
954
  }) | (Readonly<{
@@ -1055,35 +960,33 @@ export declare const actionWrapSelectionInFrame: {
1055
960
  fillStyle: import("@excalidraw/element/types").FillStyle;
1056
961
  strokeWidth: number;
1057
962
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1058
- roundness: {
963
+ roundness: null | {
1059
964
  type: import("@excalidraw/element/types").RoundnessType;
1060
- value?: number | undefined;
1061
- } | null;
965
+ value?: number;
966
+ };
1062
967
  roughness: number;
1063
968
  opacity: number;
1064
969
  width: number;
1065
970
  height: number;
1066
- angle: import("../../math/src").Radians;
971
+ angle: import("@excalidraw/math").Radians;
1067
972
  seed: number;
1068
973
  version: number;
1069
974
  versionNonce: number;
1070
975
  index: import("@excalidraw/element/types").FractionalIndex | null;
1071
976
  isDeleted: boolean;
1072
- groupIds: readonly string[];
977
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1073
978
  frameId: string | null;
1074
- boundElements: readonly Readonly<{
1075
- id: string;
1076
- type: "text" | "arrow";
1077
- }>[] | null;
979
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1078
980
  updated: number;
1079
981
  link: string | null;
1080
982
  locked: boolean;
1081
- customData?: Record<string, any> | undefined;
983
+ customData?: Record<string, any>;
1082
984
  }> & Readonly<{
1083
- type: "iframe";
1084
- customData?: {
1085
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1086
- } | undefined;
985
+ type: "image";
986
+ fileId: import("@excalidraw/element/types").FileId | null;
987
+ status: "pending" | "saved" | "error";
988
+ scale: [number, number];
989
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1087
990
  }> & {
1088
991
  index: import("@excalidraw/element/types").FractionalIndex;
1089
992
  }) | (Readonly<{
@@ -1095,32 +998,30 @@ export declare const actionWrapSelectionInFrame: {
1095
998
  fillStyle: import("@excalidraw/element/types").FillStyle;
1096
999
  strokeWidth: number;
1097
1000
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1098
- roundness: {
1001
+ roundness: null | {
1099
1002
  type: import("@excalidraw/element/types").RoundnessType;
1100
- value?: number | undefined;
1101
- } | null;
1003
+ value?: number;
1004
+ };
1102
1005
  roughness: number;
1103
1006
  opacity: number;
1104
1007
  width: number;
1105
1008
  height: number;
1106
- angle: import("../../math/src").Radians;
1009
+ angle: import("@excalidraw/math").Radians;
1107
1010
  seed: number;
1108
1011
  version: number;
1109
1012
  versionNonce: number;
1110
1013
  index: import("@excalidraw/element/types").FractionalIndex | null;
1111
1014
  isDeleted: boolean;
1112
- groupIds: readonly string[];
1015
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1113
1016
  frameId: string | null;
1114
- boundElements: readonly Readonly<{
1115
- id: string;
1116
- type: "text" | "arrow";
1117
- }>[] | null;
1017
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1118
1018
  updated: number;
1119
1019
  link: string | null;
1120
1020
  locked: boolean;
1121
- customData?: Record<string, any> | undefined;
1021
+ customData?: Record<string, any>;
1122
1022
  }> & {
1123
- type: "selection";
1023
+ type: "frame";
1024
+ name: string | null;
1124
1025
  } & {
1125
1026
  index: import("@excalidraw/element/types").FractionalIndex;
1126
1027
  }) | (Readonly<{
@@ -1132,32 +1033,30 @@ export declare const actionWrapSelectionInFrame: {
1132
1033
  fillStyle: import("@excalidraw/element/types").FillStyle;
1133
1034
  strokeWidth: number;
1134
1035
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1135
- roundness: {
1036
+ roundness: null | {
1136
1037
  type: import("@excalidraw/element/types").RoundnessType;
1137
- value?: number | undefined;
1138
- } | null;
1038
+ value?: number;
1039
+ };
1139
1040
  roughness: number;
1140
1041
  opacity: number;
1141
1042
  width: number;
1142
1043
  height: number;
1143
- angle: import("../../math/src").Radians;
1044
+ angle: import("@excalidraw/math").Radians;
1144
1045
  seed: number;
1145
1046
  version: number;
1146
1047
  versionNonce: number;
1147
1048
  index: import("@excalidraw/element/types").FractionalIndex | null;
1148
1049
  isDeleted: boolean;
1149
- groupIds: readonly string[];
1050
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1150
1051
  frameId: string | null;
1151
- boundElements: readonly Readonly<{
1152
- id: string;
1153
- type: "text" | "arrow";
1154
- }>[] | null;
1052
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1155
1053
  updated: number;
1156
1054
  link: string | null;
1157
1055
  locked: boolean;
1158
- customData?: Record<string, any> | undefined;
1056
+ customData?: Record<string, any>;
1159
1057
  }> & {
1160
- type: "ellipse";
1058
+ type: "magicframe";
1059
+ name: string | null;
1161
1060
  } & {
1162
1061
  index: import("@excalidraw/element/types").FractionalIndex;
1163
1062
  }) | (Readonly<{
@@ -1169,38 +1068,40 @@ export declare const actionWrapSelectionInFrame: {
1169
1068
  fillStyle: import("@excalidraw/element/types").FillStyle;
1170
1069
  strokeWidth: number;
1171
1070
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1172
- roundness: {
1071
+ roundness: null | {
1173
1072
  type: import("@excalidraw/element/types").RoundnessType;
1174
- value?: number | undefined;
1175
- } | null;
1073
+ value?: number;
1074
+ };
1176
1075
  roughness: number;
1177
1076
  opacity: number;
1178
1077
  width: number;
1179
1078
  height: number;
1180
- angle: import("../../math/src").Radians;
1079
+ angle: import("@excalidraw/math").Radians;
1181
1080
  seed: number;
1182
1081
  version: number;
1183
1082
  versionNonce: number;
1184
1083
  index: import("@excalidraw/element/types").FractionalIndex | null;
1185
1084
  isDeleted: boolean;
1186
- groupIds: readonly string[];
1085
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1187
1086
  frameId: string | null;
1188
- boundElements: readonly Readonly<{
1189
- id: string;
1190
- type: "text" | "arrow";
1191
- }>[] | null;
1087
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1192
1088
  updated: number;
1193
1089
  link: string | null;
1194
1090
  locked: boolean;
1195
- customData?: Record<string, any> | undefined;
1091
+ customData?: Record<string, any>;
1196
1092
  }> & Readonly<{
1197
- type: "line" | "arrow";
1198
- points: readonly import("../../math/src").LocalPoint[];
1199
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
1200
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1201
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1202
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1203
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1093
+ type: "text";
1094
+ fontSize: number;
1095
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1096
+ text: string;
1097
+ textAlign: import("@excalidraw/element/types").TextAlign;
1098
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
1099
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
1100
+ originalText: string;
1101
+ autoResize: boolean;
1102
+ lineHeight: number & {
1103
+ _brand: "unitlessLineHeight";
1104
+ };
1204
1105
  }> & {
1205
1106
  index: import("@excalidraw/element/types").FractionalIndex;
1206
1107
  }) | (Readonly<{
@@ -1212,36 +1113,32 @@ export declare const actionWrapSelectionInFrame: {
1212
1113
  fillStyle: import("@excalidraw/element/types").FillStyle;
1213
1114
  strokeWidth: number;
1214
1115
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1215
- roundness: {
1116
+ roundness: null | {
1216
1117
  type: import("@excalidraw/element/types").RoundnessType;
1217
- value?: number | undefined;
1218
- } | null;
1118
+ value?: number;
1119
+ };
1219
1120
  roughness: number;
1220
1121
  opacity: number;
1221
1122
  width: number;
1222
1123
  height: number;
1223
- angle: import("../../math/src").Radians;
1124
+ angle: import("@excalidraw/math").Radians;
1224
1125
  seed: number;
1225
1126
  version: number;
1226
1127
  versionNonce: number;
1227
1128
  index: import("@excalidraw/element/types").FractionalIndex | null;
1228
1129
  isDeleted: boolean;
1229
- groupIds: readonly string[];
1130
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1230
1131
  frameId: string | null;
1231
- boundElements: readonly Readonly<{
1232
- id: string;
1233
- type: "text" | "arrow";
1234
- }>[] | null;
1132
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1235
1133
  updated: number;
1236
1134
  link: string | null;
1237
1135
  locked: boolean;
1238
- customData?: Record<string, any> | undefined;
1136
+ customData?: Record<string, any>;
1239
1137
  }> & Readonly<{
1240
1138
  type: "freedraw";
1241
- points: readonly import("../../math/src").LocalPoint[];
1139
+ points: readonly import("@excalidraw/math").LocalPoint[];
1242
1140
  pressures: readonly number[];
1243
1141
  simulatePressure: boolean;
1244
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
1245
1142
  }> & {
1246
1143
  index: import("@excalidraw/element/types").FractionalIndex;
1247
1144
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];