@excalidraw/math 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 +40 -10
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +1 -1
  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 +19 -11
  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 +51 -40
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +5 -3
  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 +6 -2
  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 +484 -869
  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 +129 -182
  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 +161 -1427
  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 +241 -344
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +85 -126
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +131 -186
  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 +24 -20
  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 +13 -38
  100. package/dist/types/excalidraw/components/Actions.d.ts +5 -2
  101. package/dist/types/excalidraw/components/App.d.ts +93 -56
  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 +2 -2
  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,10 +714,10 @@ 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;
@@ -793,22 +728,18 @@ export declare const actionWrapSelectionInFrame: {
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: "arrow" | "text";
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
739
  type: "line" | "arrow";
808
740
  points: readonly import("@excalidraw/math").LocalPoint[];
809
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
810
- startBinding: import("@excalidraw/element/types").PointBinding | null;
811
- endBinding: import("@excalidraw/element/types").PointBinding | null;
741
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
742
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
812
743
  startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
813
744
  endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
814
745
  }> & {
@@ -822,10 +753,10 @@ export declare const actionWrapSelectionInFrame: {
822
753
  fillStyle: import("@excalidraw/element/types").FillStyle;
823
754
  strokeWidth: number;
824
755
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
825
- roundness: {
756
+ roundness: null | {
826
757
  type: import("@excalidraw/element/types").RoundnessType;
827
- value?: number | undefined;
828
- } | null;
758
+ value?: number;
759
+ };
829
760
  roughness: number;
830
761
  opacity: number;
831
762
  width: number;
@@ -836,16 +767,13 @@ export declare const actionWrapSelectionInFrame: {
836
767
  versionNonce: number;
837
768
  index: import("@excalidraw/element/types").FractionalIndex | null;
838
769
  isDeleted: boolean;
839
- groupIds: readonly string[];
770
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
840
771
  frameId: string | null;
841
- boundElements: readonly Readonly<{
842
- id: string;
843
- type: "arrow" | "text";
844
- }>[] | null;
772
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
845
773
  updated: number;
846
774
  link: string | null;
847
775
  locked: boolean;
848
- customData?: Record<string, any> | undefined;
776
+ customData?: Record<string, any>;
849
777
  }> & {
850
778
  type: "selection";
851
779
  } & {
@@ -859,10 +787,10 @@ export declare const actionWrapSelectionInFrame: {
859
787
  fillStyle: import("@excalidraw/element/types").FillStyle;
860
788
  strokeWidth: number;
861
789
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
862
- roundness: {
790
+ roundness: null | {
863
791
  type: import("@excalidraw/element/types").RoundnessType;
864
- value?: number | undefined;
865
- } | null;
792
+ value?: number;
793
+ };
866
794
  roughness: number;
867
795
  opacity: number;
868
796
  width: number;
@@ -873,16 +801,13 @@ export declare const actionWrapSelectionInFrame: {
873
801
  versionNonce: number;
874
802
  index: import("@excalidraw/element/types").FractionalIndex | null;
875
803
  isDeleted: boolean;
876
- groupIds: readonly string[];
804
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
877
805
  frameId: string | null;
878
- boundElements: readonly Readonly<{
879
- id: string;
880
- type: "arrow" | "text";
881
- }>[] | null;
806
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
882
807
  updated: number;
883
808
  link: string | null;
884
809
  locked: boolean;
885
- customData?: Record<string, any> | undefined;
810
+ customData?: Record<string, any>;
886
811
  }> & {
887
812
  type: "rectangle";
888
813
  } & {
@@ -896,10 +821,10 @@ export declare const actionWrapSelectionInFrame: {
896
821
  fillStyle: import("@excalidraw/element/types").FillStyle;
897
822
  strokeWidth: number;
898
823
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
899
- roundness: {
824
+ roundness: null | {
900
825
  type: import("@excalidraw/element/types").RoundnessType;
901
- value?: number | undefined;
902
- } | null;
826
+ value?: number;
827
+ };
903
828
  roughness: number;
904
829
  opacity: number;
905
830
  width: number;
@@ -910,16 +835,13 @@ export declare const actionWrapSelectionInFrame: {
910
835
  versionNonce: number;
911
836
  index: import("@excalidraw/element/types").FractionalIndex | null;
912
837
  isDeleted: boolean;
913
- groupIds: readonly string[];
838
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
914
839
  frameId: string | null;
915
- boundElements: readonly Readonly<{
916
- id: string;
917
- type: "arrow" | "text";
918
- }>[] | null;
840
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
919
841
  updated: number;
920
842
  link: string | null;
921
843
  locked: boolean;
922
- customData?: Record<string, any> | undefined;
844
+ customData?: Record<string, any>;
923
845
  }> & {
924
846
  type: "diamond";
925
847
  } & {
@@ -933,10 +855,10 @@ export declare const actionWrapSelectionInFrame: {
933
855
  fillStyle: import("@excalidraw/element/types").FillStyle;
934
856
  strokeWidth: number;
935
857
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
936
- roundness: {
858
+ roundness: null | {
937
859
  type: import("@excalidraw/element/types").RoundnessType;
938
- value?: number | undefined;
939
- } | null;
860
+ value?: number;
861
+ };
940
862
  roughness: number;
941
863
  opacity: number;
942
864
  width: number;
@@ -947,16 +869,13 @@ export declare const actionWrapSelectionInFrame: {
947
869
  versionNonce: number;
948
870
  index: import("@excalidraw/element/types").FractionalIndex | null;
949
871
  isDeleted: boolean;
950
- groupIds: readonly string[];
872
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
951
873
  frameId: string | null;
952
- boundElements: readonly Readonly<{
953
- id: string;
954
- type: "arrow" | "text";
955
- }>[] | null;
874
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
956
875
  updated: number;
957
876
  link: string | null;
958
877
  locked: boolean;
959
- customData?: Record<string, any> | undefined;
878
+ customData?: Record<string, any>;
960
879
  }> & {
961
880
  type: "ellipse";
962
881
  } & {
@@ -970,10 +889,10 @@ export declare const actionWrapSelectionInFrame: {
970
889
  fillStyle: import("@excalidraw/element/types").FillStyle;
971
890
  strokeWidth: number;
972
891
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
973
- roundness: {
892
+ roundness: null | {
974
893
  type: import("@excalidraw/element/types").RoundnessType;
975
- value?: number | undefined;
976
- } | null;
894
+ value?: number;
895
+ };
977
896
  roughness: number;
978
897
  opacity: number;
979
898
  width: number;
@@ -984,16 +903,13 @@ export declare const actionWrapSelectionInFrame: {
984
903
  versionNonce: number;
985
904
  index: import("@excalidraw/element/types").FractionalIndex | null;
986
905
  isDeleted: boolean;
987
- groupIds: readonly string[];
906
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
988
907
  frameId: string | null;
989
- boundElements: readonly Readonly<{
990
- id: string;
991
- type: "arrow" | "text";
992
- }>[] | null;
908
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
993
909
  updated: number;
994
910
  link: string | null;
995
911
  locked: boolean;
996
- customData?: Record<string, any> | undefined;
912
+ customData?: Record<string, any>;
997
913
  }> & Readonly<{
998
914
  type: "embeddable";
999
915
  }> & {
@@ -1007,10 +923,10 @@ export declare const actionWrapSelectionInFrame: {
1007
923
  fillStyle: import("@excalidraw/element/types").FillStyle;
1008
924
  strokeWidth: number;
1009
925
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1010
- roundness: {
926
+ roundness: null | {
1011
927
  type: import("@excalidraw/element/types").RoundnessType;
1012
- value?: number | undefined;
1013
- } | null;
928
+ value?: number;
929
+ };
1014
930
  roughness: number;
1015
931
  opacity: number;
1016
932
  width: number;
@@ -1021,21 +937,18 @@ export declare const actionWrapSelectionInFrame: {
1021
937
  versionNonce: number;
1022
938
  index: import("@excalidraw/element/types").FractionalIndex | null;
1023
939
  isDeleted: boolean;
1024
- groupIds: readonly string[];
940
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1025
941
  frameId: string | null;
1026
- boundElements: readonly Readonly<{
1027
- id: string;
1028
- type: "arrow" | "text";
1029
- }>[] | null;
942
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1030
943
  updated: number;
1031
944
  link: string | null;
1032
945
  locked: boolean;
1033
- customData?: Record<string, any> | undefined;
946
+ customData?: Record<string, any>;
1034
947
  }> & Readonly<{
1035
948
  type: "iframe";
1036
949
  customData?: {
1037
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1038
- } | undefined;
950
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
951
+ };
1039
952
  }> & {
1040
953
  index: import("@excalidraw/element/types").FractionalIndex;
1041
954
  }) | (Readonly<{
@@ -1047,10 +960,10 @@ export declare const actionWrapSelectionInFrame: {
1047
960
  fillStyle: import("@excalidraw/element/types").FillStyle;
1048
961
  strokeWidth: number;
1049
962
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1050
- roundness: {
963
+ roundness: null | {
1051
964
  type: import("@excalidraw/element/types").RoundnessType;
1052
- value?: number | undefined;
1053
- } | null;
965
+ value?: number;
966
+ };
1054
967
  roughness: number;
1055
968
  opacity: number;
1056
969
  width: number;
@@ -1061,20 +974,17 @@ export declare const actionWrapSelectionInFrame: {
1061
974
  versionNonce: number;
1062
975
  index: import("@excalidraw/element/types").FractionalIndex | null;
1063
976
  isDeleted: boolean;
1064
- groupIds: readonly string[];
977
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1065
978
  frameId: string | null;
1066
- boundElements: readonly Readonly<{
1067
- id: string;
1068
- type: "arrow" | "text";
1069
- }>[] | null;
979
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1070
980
  updated: number;
1071
981
  link: string | null;
1072
982
  locked: boolean;
1073
- customData?: Record<string, any> | undefined;
983
+ customData?: Record<string, any>;
1074
984
  }> & Readonly<{
1075
985
  type: "image";
1076
986
  fileId: import("@excalidraw/element/types").FileId | null;
1077
- status: "pending" | "error" | "saved";
987
+ status: "pending" | "saved" | "error";
1078
988
  scale: [number, number];
1079
989
  crop: import("@excalidraw/element/types").ImageCrop | null;
1080
990
  }> & {
@@ -1088,10 +998,10 @@ export declare const actionWrapSelectionInFrame: {
1088
998
  fillStyle: import("@excalidraw/element/types").FillStyle;
1089
999
  strokeWidth: number;
1090
1000
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1091
- roundness: {
1001
+ roundness: null | {
1092
1002
  type: import("@excalidraw/element/types").RoundnessType;
1093
- value?: number | undefined;
1094
- } | null;
1003
+ value?: number;
1004
+ };
1095
1005
  roughness: number;
1096
1006
  opacity: number;
1097
1007
  width: number;
@@ -1102,16 +1012,13 @@ export declare const actionWrapSelectionInFrame: {
1102
1012
  versionNonce: number;
1103
1013
  index: import("@excalidraw/element/types").FractionalIndex | null;
1104
1014
  isDeleted: boolean;
1105
- groupIds: readonly string[];
1015
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1106
1016
  frameId: string | null;
1107
- boundElements: readonly Readonly<{
1108
- id: string;
1109
- type: "arrow" | "text";
1110
- }>[] | null;
1017
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1111
1018
  updated: number;
1112
1019
  link: string | null;
1113
1020
  locked: boolean;
1114
- customData?: Record<string, any> | undefined;
1021
+ customData?: Record<string, any>;
1115
1022
  }> & {
1116
1023
  type: "frame";
1117
1024
  name: string | null;
@@ -1126,10 +1033,10 @@ export declare const actionWrapSelectionInFrame: {
1126
1033
  fillStyle: import("@excalidraw/element/types").FillStyle;
1127
1034
  strokeWidth: number;
1128
1035
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1129
- roundness: {
1036
+ roundness: null | {
1130
1037
  type: import("@excalidraw/element/types").RoundnessType;
1131
- value?: number | undefined;
1132
- } | null;
1038
+ value?: number;
1039
+ };
1133
1040
  roughness: number;
1134
1041
  opacity: number;
1135
1042
  width: number;
@@ -1140,16 +1047,13 @@ export declare const actionWrapSelectionInFrame: {
1140
1047
  versionNonce: number;
1141
1048
  index: import("@excalidraw/element/types").FractionalIndex | null;
1142
1049
  isDeleted: boolean;
1143
- groupIds: readonly string[];
1050
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1144
1051
  frameId: string | null;
1145
- boundElements: readonly Readonly<{
1146
- id: string;
1147
- type: "arrow" | "text";
1148
- }>[] | null;
1052
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1149
1053
  updated: number;
1150
1054
  link: string | null;
1151
1055
  locked: boolean;
1152
- customData?: Record<string, any> | undefined;
1056
+ customData?: Record<string, any>;
1153
1057
  }> & {
1154
1058
  type: "magicframe";
1155
1059
  name: string | null;
@@ -1164,10 +1068,10 @@ export declare const actionWrapSelectionInFrame: {
1164
1068
  fillStyle: import("@excalidraw/element/types").FillStyle;
1165
1069
  strokeWidth: number;
1166
1070
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1167
- roundness: {
1071
+ roundness: null | {
1168
1072
  type: import("@excalidraw/element/types").RoundnessType;
1169
- value?: number | undefined;
1170
- } | null;
1073
+ value?: number;
1074
+ };
1171
1075
  roughness: number;
1172
1076
  opacity: number;
1173
1077
  width: number;
@@ -1178,24 +1082,21 @@ export declare const actionWrapSelectionInFrame: {
1178
1082
  versionNonce: number;
1179
1083
  index: import("@excalidraw/element/types").FractionalIndex | null;
1180
1084
  isDeleted: boolean;
1181
- groupIds: readonly string[];
1085
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1182
1086
  frameId: string | null;
1183
- boundElements: readonly Readonly<{
1184
- id: string;
1185
- type: "arrow" | "text";
1186
- }>[] | null;
1087
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1187
1088
  updated: number;
1188
1089
  link: string | null;
1189
1090
  locked: boolean;
1190
- customData?: Record<string, any> | undefined;
1091
+ customData?: Record<string, any>;
1191
1092
  }> & Readonly<{
1192
1093
  type: "text";
1193
1094
  fontSize: number;
1194
- fontFamily: number;
1095
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1195
1096
  text: string;
1196
- textAlign: string;
1197
- verticalAlign: string;
1198
- containerId: string | null;
1097
+ textAlign: import("@excalidraw/element/types").TextAlign;
1098
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
1099
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
1199
1100
  originalText: string;
1200
1101
  autoResize: boolean;
1201
1102
  lineHeight: number & {
@@ -1212,10 +1113,10 @@ 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;
@@ -1226,22 +1127,18 @@ export declare const actionWrapSelectionInFrame: {
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: "arrow" | "text";
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
1139
  points: readonly import("@excalidraw/math").LocalPoint[];
1242
1140
  pressures: readonly number[];
1243
1141
  simulatePressure: boolean;
1244
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1245
1142
  }> & {
1246
1143
  index: import("@excalidraw/element/types").FractionalIndex;
1247
1144
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];