@excalidraw/common 0.18.0-ac0d305 → 0.18.0-b1c6bfc

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