@excalidraw/common 0.18.0-d2463f87d → 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 (276) hide show
  1. package/dist/dev/index.js +1660 -257
  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 +39 -27
  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 -42
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +12 -6
  17. package/dist/types/element/src/align.d.ts +2 -1
  18. package/dist/types/element/src/arrowheads.d.ts +3 -0
  19. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  20. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  21. package/dist/types/element/src/binding.d.ts +67 -48
  22. package/dist/types/element/src/bounds.d.ts +8 -14
  23. package/dist/types/element/src/collision.d.ts +7 -2
  24. package/dist/types/element/src/comparisons.d.ts +7 -7
  25. package/dist/types/element/src/delta.d.ts +16 -4
  26. package/dist/types/element/src/distribute.d.ts +3 -1
  27. package/dist/types/element/src/dragElements.d.ts +3 -3
  28. package/dist/types/element/src/duplicate.d.ts +3 -3
  29. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  30. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  31. package/dist/types/element/src/frame.d.ts +8 -4
  32. package/dist/types/element/src/groups.d.ts +1 -0
  33. package/dist/types/element/src/heading.d.ts +2 -1
  34. package/dist/types/element/src/image.d.ts +1 -11
  35. package/dist/types/element/src/index.d.ts +5 -3
  36. package/dist/types/element/src/linearElementEditor.d.ts +25 -23
  37. package/dist/types/element/src/mutateElement.d.ts +5 -1
  38. package/dist/types/element/src/newElement.d.ts +6 -6
  39. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  40. package/dist/types/element/src/renderElement.d.ts +4 -7
  41. package/dist/types/element/src/resizeElements.d.ts +10 -10
  42. package/dist/types/element/src/resizeTest.d.ts +6 -5
  43. package/dist/types/element/src/selection.d.ts +10 -10
  44. package/dist/types/element/src/shape.d.ts +9 -8
  45. package/dist/types/element/src/store.d.ts +8 -2
  46. package/dist/types/element/src/textElement.d.ts +2 -2
  47. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  48. package/dist/types/element/src/textWrapping.d.ts +26 -0
  49. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  50. package/dist/types/element/src/transformHandles.d.ts +8 -27
  51. package/dist/types/element/src/typeChecks.d.ts +4 -7
  52. package/dist/types/element/src/types.d.ts +12 -13
  53. package/dist/types/element/src/utils.d.ts +9 -4
  54. package/dist/types/element/src/zindex.d.ts +7 -1
  55. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +170 -210
  56. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  57. package/dist/types/excalidraw/actions/actionBoundText.d.ts +94 -121
  58. package/dist/types/excalidraw/actions/actionCanvas.d.ts +591 -936
  59. package/dist/types/excalidraw/actions/actionClipboard.d.ts +125 -896
  60. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +45 -59
  61. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +154 -198
  62. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  63. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  64. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  65. package/dist/types/excalidraw/actions/actionElementLink.d.ts +54 -74
  66. package/dist/types/excalidraw/actions/actionElementLock.d.ts +92 -119
  67. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +60 -74
  68. package/dist/types/excalidraw/actions/actionExport.d.ts +174 -1413
  69. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -395
  70. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  71. package/dist/types/excalidraw/actions/actionFrame.d.ts +304 -395
  72. package/dist/types/excalidraw/actions/actionGroup.d.ts +97 -132
  73. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +201 -222
  74. package/dist/types/excalidraw/actions/actionLink.d.ts +60 -74
  75. package/dist/types/excalidraw/actions/actionMenu.d.ts +49 -437
  76. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  77. package/dist/types/excalidraw/actions/actionProperties.d.ts +152 -2522
  78. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -66
  79. package/dist/types/excalidraw/actions/actionStyles.d.ts +45 -58
  80. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  81. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  82. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +60 -74
  83. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  84. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +60 -74
  85. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +48 -68
  86. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  87. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +59 -73
  88. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +60 -74
  89. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +60 -74
  90. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  91. package/dist/types/excalidraw/actions/index.d.ts +5 -2
  92. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  93. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  94. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  95. package/dist/types/excalidraw/appState.d.ts +43 -35
  96. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  97. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  98. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  99. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  100. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  101. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  102. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  103. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  104. package/dist/types/excalidraw/clipboard.d.ts +59 -21
  105. package/dist/types/excalidraw/components/Actions.d.ts +21 -8
  106. package/dist/types/excalidraw/components/App.d.ts +118 -75
  107. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  108. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  109. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  110. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  111. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  112. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  113. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  114. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  115. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  116. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  117. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  118. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  119. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  120. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  121. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Ellipsify.d.ts +3 -0
  123. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  124. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  125. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  126. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  127. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  128. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  129. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  130. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  131. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  132. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  133. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  134. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  135. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  136. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  137. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  138. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  139. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  140. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  141. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  142. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  143. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  144. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  145. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  146. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  147. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  148. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  149. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  150. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  151. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  152. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  153. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  154. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  155. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  156. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  157. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  158. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  159. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  160. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  161. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  162. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  163. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  164. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  165. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  166. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  167. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  168. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  169. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  170. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  171. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  172. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  173. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  174. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  175. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  176. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  177. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  178. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  179. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  180. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  181. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  182. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  183. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  184. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  185. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  186. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  187. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  188. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  189. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  190. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  191. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  192. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  193. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  194. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  195. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  196. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  202. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  204. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  205. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  206. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  207. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  208. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  209. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  210. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  211. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  212. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  213. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  214. package/dist/types/excalidraw/components/icons.d.ts +49 -21
  215. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  216. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  217. package/dist/types/excalidraw/components/shapes.d.ts +202 -1
  218. package/dist/types/excalidraw/data/blob.d.ts +329 -12
  219. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  220. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  221. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  222. package/dist/types/excalidraw/data/index.d.ts +4 -5
  223. package/dist/types/excalidraw/data/json.d.ts +171 -4
  224. package/dist/types/excalidraw/data/library.d.ts +24 -9
  225. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  226. package/dist/types/excalidraw/data/restore.d.ts +27 -7
  227. package/dist/types/excalidraw/data/types.d.ts +4 -1
  228. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  229. package/dist/types/excalidraw/errors.d.ts +14 -0
  230. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  231. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  232. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  233. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  234. package/dist/types/excalidraw/i18n.d.ts +2 -2
  235. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  236. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  237. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  238. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  239. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  240. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  241. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  242. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  243. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  244. package/dist/types/excalidraw/snapping.d.ts +5 -5
  245. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  246. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  247. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  248. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  249. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  250. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  251. package/dist/types/excalidraw/types.d.ts +130 -38
  252. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  253. package/dist/types/math/src/curve.d.ts +4 -1
  254. package/dist/types/math/src/point.d.ts +7 -2
  255. package/dist/types/math/src/polygon.d.ts +2 -2
  256. package/dist/types/math/src/range.d.ts +1 -3
  257. package/dist/types/math/src/segment.d.ts +4 -3
  258. package/dist/types/math/src/types.d.ts +25 -1
  259. package/dist/types/utils/src/bbox.d.ts +1 -1
  260. package/dist/types/utils/src/export.d.ts +5 -5
  261. package/dist/types/utils/src/shape.d.ts +6 -6
  262. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  263. package/package.json +7 -1
  264. package/dist/types/excalidraw/charts.d.ts +0 -27
  265. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  266. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  267. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  268. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  269. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  270. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  271. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  272. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  273. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  274. package/dist/types/excalidraw/data/reconcile.d.ts +0 -6
  275. package/dist/types/excalidraw/index.d.ts +0 -46
  276. 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,13 +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;
43
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
47
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
44
48
  activeTool: {
45
49
  lastActiveTool: import("../types").ActiveTool | null;
46
50
  locked: boolean;
47
51
  fromSelection: boolean;
48
52
  } & import("../types").ActiveTool;
53
+ preferredSelectionTool: {
54
+ type: "selection" | "lasso";
55
+ initialized: boolean;
56
+ };
49
57
  penMode: boolean;
50
58
  penDetected: boolean;
51
59
  exportBackground: boolean;
@@ -54,19 +62,19 @@ export declare const actionSelectAllElementsInFrame: {
54
62
  exportScale: number;
55
63
  currentItemStrokeColor: string;
56
64
  currentItemBackgroundColor: string;
57
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
65
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
58
66
  currentItemStrokeWidth: number;
59
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
67
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
60
68
  currentItemRoughness: number;
61
69
  currentItemOpacity: number;
62
- currentItemFontFamily: number;
70
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
63
71
  currentItemFontSize: number;
64
- currentItemTextAlign: string;
72
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
65
73
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
74
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
67
- currentHoveredFontFamily: number | null;
75
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
68
76
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
69
- currentItemArrowType: "round" | "sharp" | "elbow";
77
+ currentItemArrowType: "sharp" | "round" | "elbow";
70
78
  viewBackgroundColor: string;
71
79
  scrollX: number;
72
80
  scrollY: number;
@@ -75,26 +83,30 @@ export declare const actionSelectAllElementsInFrame: {
75
83
  name: string | null;
76
84
  isResizing: boolean;
77
85
  isRotating: boolean;
78
- zoom: Readonly<{
79
- value: import("../types").NormalizedZoomValue;
80
- }>;
81
- openMenu: "canvas" | "shape" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
86
+ zoom: import("../types").Zoom;
87
+ openMenu: "canvas" | null;
88
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
89
  openSidebar: {
84
- name: string;
85
- tab?: string | undefined;
90
+ name: import("../types").SidebarName;
91
+ tab?: import("../types").SidebarTabName;
86
92
  } | null;
87
- openDialog: {
93
+ openDialog: null | {
88
94
  name: "imageExport" | "help" | "jsonExport";
89
95
  } | {
90
96
  name: "ttd";
91
- tab: "mermaid" | "text-to-diagram";
97
+ tab: "text-to-diagram" | "mermaid";
92
98
  } | {
93
99
  name: "commandPalette";
100
+ } | {
101
+ name: "settings";
94
102
  } | {
95
103
  name: "elementLinkSelector";
96
- sourceElementId: string;
97
- } | null;
104
+ sourceElementId: ExcalidrawElement["id"];
105
+ } | {
106
+ name: "charts";
107
+ data: import("../charts").Spreadsheet;
108
+ rawText: string;
109
+ };
98
110
  defaultSidebarDockedPreference: boolean;
99
111
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
100
112
  hoveredElementIds: Readonly<{
@@ -106,9 +118,9 @@ export declare const actionSelectAllElementsInFrame: {
106
118
  selectedElementsAreBeingDragged: boolean;
107
119
  shouldCacheIgnoreZoom: boolean;
108
120
  toast: {
109
- message: string;
110
- closable?: boolean | undefined;
111
- duration?: number | undefined;
121
+ message: React.ReactNode;
122
+ closable?: boolean;
123
+ duration?: number;
112
124
  } | null;
113
125
  zenModeEnabled: boolean;
114
126
  theme: import("@excalidraw/element/types").Theme;
@@ -119,45 +131,18 @@ export declare const actionSelectAllElementsInFrame: {
119
131
  selectedGroupIds: {
120
132
  [groupId: string]: boolean;
121
133
  };
122
- editingGroupId: string | null;
134
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
123
135
  width: number;
124
136
  height: number;
125
137
  offsetTop: number;
126
138
  offsetLeft: number;
127
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
128
- collaborators: Map<import("../types").SocketId, Readonly<{
129
- pointer?: import("../types").CollaboratorPointer | undefined;
130
- button?: "up" | "down" | undefined;
131
- selectedElementIds?: Readonly<{
132
- [id: string]: true;
133
- }> | undefined;
134
- username?: string | null | undefined;
135
- userState?: import("@excalidraw/common").UserIdleState | undefined;
136
- color?: {
137
- background: string;
138
- stroke: string;
139
- } | undefined;
140
- avatarUrl?: string | undefined;
141
- id?: string | undefined;
142
- socketId?: import("../types").SocketId | undefined;
143
- isCurrentUser?: boolean | undefined;
144
- isInCall?: boolean | undefined;
145
- isSpeaking?: boolean | undefined;
146
- isMuted?: boolean | undefined;
147
- }>>;
139
+ fileHandle: FileSystemFileHandle | null;
140
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
148
141
  stats: {
149
142
  open: boolean;
150
143
  panels: number;
151
144
  };
152
- currentChartType: import("@excalidraw/element/types").ChartType;
153
- pasteDialog: {
154
- shown: false;
155
- data: null;
156
- } | {
157
- shown: true;
158
- data: import("../charts").Spreadsheet;
159
- };
160
- showHyperlinkPopup: false | "editor" | "info";
145
+ showHyperlinkPopup: false | "info" | "editor";
161
146
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
147
  snapLines: readonly import("../snapping").SnapLine[];
163
148
  originSnapOffset: {
@@ -168,15 +153,16 @@ export declare const actionSelectAllElementsInFrame: {
168
153
  userToFollow: import("../types").UserToFollow | null;
169
154
  followedBy: Set<import("../types").SocketId>;
170
155
  isCropping: boolean;
171
- croppingElementId: string | null;
156
+ croppingElementId: ExcalidrawElement["id"] | null;
172
157
  searchMatches: Readonly<{
173
- focusedId: string | null;
158
+ focusedId: ExcalidrawElement["id"] | null;
174
159
  matches: readonly import("../types").SearchMatch[];
175
160
  }> | null;
176
161
  activeLockedId: string | null;
177
162
  lockedMultiSelections: {
178
163
  [groupId: string]: true;
179
164
  };
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,13 +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;
232
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
223
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
233
224
  activeTool: {
234
225
  lastActiveTool: import("../types").ActiveTool | null;
235
226
  locked: boolean;
236
227
  fromSelection: boolean;
237
228
  } & import("../types").ActiveTool;
229
+ preferredSelectionTool: {
230
+ type: "selection" | "lasso";
231
+ initialized: boolean;
232
+ };
238
233
  penMode: boolean;
239
234
  penDetected: boolean;
240
235
  exportBackground: boolean;
@@ -243,19 +238,19 @@ export declare const actionRemoveAllElementsFromFrame: {
243
238
  exportScale: number;
244
239
  currentItemStrokeColor: string;
245
240
  currentItemBackgroundColor: string;
246
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
241
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
247
242
  currentItemStrokeWidth: number;
248
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
243
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
249
244
  currentItemRoughness: number;
250
245
  currentItemOpacity: number;
251
- currentItemFontFamily: number;
246
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
252
247
  currentItemFontSize: number;
253
- currentItemTextAlign: string;
248
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
254
249
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
255
250
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
256
- currentHoveredFontFamily: number | null;
251
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
257
252
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
258
- currentItemArrowType: "round" | "sharp" | "elbow";
253
+ currentItemArrowType: "sharp" | "round" | "elbow";
259
254
  viewBackgroundColor: string;
260
255
  scrollX: number;
261
256
  scrollY: number;
@@ -264,26 +259,30 @@ export declare const actionRemoveAllElementsFromFrame: {
264
259
  name: string | null;
265
260
  isResizing: boolean;
266
261
  isRotating: boolean;
267
- zoom: Readonly<{
268
- value: import("../types").NormalizedZoomValue;
269
- }>;
270
- openMenu: "canvas" | "shape" | null;
271
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
262
+ zoom: import("../types").Zoom;
263
+ openMenu: "canvas" | null;
264
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
272
265
  openSidebar: {
273
- name: string;
274
- tab?: string | undefined;
266
+ name: import("../types").SidebarName;
267
+ tab?: import("../types").SidebarTabName;
275
268
  } | null;
276
- openDialog: {
269
+ openDialog: null | {
277
270
  name: "imageExport" | "help" | "jsonExport";
278
271
  } | {
279
272
  name: "ttd";
280
- tab: "mermaid" | "text-to-diagram";
273
+ tab: "text-to-diagram" | "mermaid";
281
274
  } | {
282
275
  name: "commandPalette";
276
+ } | {
277
+ name: "settings";
283
278
  } | {
284
279
  name: "elementLinkSelector";
285
- sourceElementId: string;
286
- } | null;
280
+ sourceElementId: ExcalidrawElement["id"];
281
+ } | {
282
+ name: "charts";
283
+ data: import("../charts").Spreadsheet;
284
+ rawText: string;
285
+ };
287
286
  defaultSidebarDockedPreference: boolean;
288
287
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
289
288
  hoveredElementIds: Readonly<{
@@ -295,9 +294,9 @@ export declare const actionRemoveAllElementsFromFrame: {
295
294
  selectedElementsAreBeingDragged: boolean;
296
295
  shouldCacheIgnoreZoom: boolean;
297
296
  toast: {
298
- message: string;
299
- closable?: boolean | undefined;
300
- duration?: number | undefined;
297
+ message: React.ReactNode;
298
+ closable?: boolean;
299
+ duration?: number;
301
300
  } | null;
302
301
  zenModeEnabled: boolean;
303
302
  theme: import("@excalidraw/element/types").Theme;
@@ -308,45 +307,18 @@ export declare const actionRemoveAllElementsFromFrame: {
308
307
  selectedGroupIds: {
309
308
  [groupId: string]: boolean;
310
309
  };
311
- editingGroupId: string | null;
310
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
312
311
  width: number;
313
312
  height: number;
314
313
  offsetTop: number;
315
314
  offsetLeft: number;
316
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
317
- collaborators: Map<import("../types").SocketId, Readonly<{
318
- pointer?: import("../types").CollaboratorPointer | undefined;
319
- button?: "up" | "down" | undefined;
320
- selectedElementIds?: Readonly<{
321
- [id: string]: true;
322
- }> | undefined;
323
- username?: string | null | undefined;
324
- userState?: import("@excalidraw/common").UserIdleState | undefined;
325
- color?: {
326
- background: string;
327
- stroke: string;
328
- } | undefined;
329
- avatarUrl?: string | undefined;
330
- id?: string | undefined;
331
- socketId?: import("../types").SocketId | undefined;
332
- isCurrentUser?: boolean | undefined;
333
- isInCall?: boolean | undefined;
334
- isSpeaking?: boolean | undefined;
335
- isMuted?: boolean | undefined;
336
- }>>;
315
+ fileHandle: FileSystemFileHandle | null;
316
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
337
317
  stats: {
338
318
  open: boolean;
339
319
  panels: number;
340
320
  };
341
- currentChartType: import("@excalidraw/element/types").ChartType;
342
- pasteDialog: {
343
- shown: false;
344
- data: null;
345
- } | {
346
- shown: true;
347
- data: import("../charts").Spreadsheet;
348
- };
349
- showHyperlinkPopup: false | "editor" | "info";
321
+ showHyperlinkPopup: false | "info" | "editor";
350
322
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
351
323
  snapLines: readonly import("../snapping").SnapLine[];
352
324
  originSnapOffset: {
@@ -357,15 +329,16 @@ export declare const actionRemoveAllElementsFromFrame: {
357
329
  userToFollow: import("../types").UserToFollow | null;
358
330
  followedBy: Set<import("../types").SocketId>;
359
331
  isCropping: boolean;
360
- croppingElementId: string | null;
332
+ croppingElementId: ExcalidrawElement["id"] | null;
361
333
  searchMatches: Readonly<{
362
- focusedId: string | null;
334
+ focusedId: ExcalidrawElement["id"] | null;
363
335
  matches: readonly import("../types").SearchMatch[];
364
336
  }> | null;
365
337
  activeLockedId: string | null;
366
338
  lockedMultiSelections: {
367
339
  [groupId: string]: true;
368
340
  };
341
+ bindMode: import("@excalidraw/element/types").BindMode;
369
342
  };
370
343
  captureUpdate: "IMMEDIATELY";
371
344
  } | {
@@ -400,28 +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;
419
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
397
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
420
398
  activeTool: {
421
399
  lastActiveTool: import("../types").ActiveTool | null;
422
400
  locked: boolean;
423
401
  fromSelection: boolean;
424
402
  } & import("../types").ActiveTool;
403
+ preferredSelectionTool: {
404
+ type: "selection" | "lasso";
405
+ initialized: boolean;
406
+ };
425
407
  penMode: boolean;
426
408
  penDetected: boolean;
427
409
  exportBackground: boolean;
@@ -430,19 +412,19 @@ export declare const actionupdateFrameRendering: {
430
412
  exportScale: number;
431
413
  currentItemStrokeColor: string;
432
414
  currentItemBackgroundColor: string;
433
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
415
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
434
416
  currentItemStrokeWidth: number;
435
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
417
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
436
418
  currentItemRoughness: number;
437
419
  currentItemOpacity: number;
438
- currentItemFontFamily: number;
420
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
439
421
  currentItemFontSize: number;
440
- currentItemTextAlign: string;
422
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
441
423
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
442
424
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
443
- currentHoveredFontFamily: number | null;
425
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
444
426
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
445
- currentItemArrowType: "round" | "sharp" | "elbow";
427
+ currentItemArrowType: "sharp" | "round" | "elbow";
446
428
  viewBackgroundColor: string;
447
429
  scrollX: number;
448
430
  scrollY: number;
@@ -451,26 +433,30 @@ export declare const actionupdateFrameRendering: {
451
433
  name: string | null;
452
434
  isResizing: boolean;
453
435
  isRotating: boolean;
454
- zoom: Readonly<{
455
- value: import("../types").NormalizedZoomValue;
456
- }>;
457
- openMenu: "canvas" | "shape" | null;
458
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
436
+ zoom: import("../types").Zoom;
437
+ openMenu: "canvas" | null;
438
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
459
439
  openSidebar: {
460
- name: string;
461
- tab?: string | undefined;
440
+ name: import("../types").SidebarName;
441
+ tab?: import("../types").SidebarTabName;
462
442
  } | null;
463
- openDialog: {
443
+ openDialog: null | {
464
444
  name: "imageExport" | "help" | "jsonExport";
465
445
  } | {
466
446
  name: "ttd";
467
- tab: "mermaid" | "text-to-diagram";
447
+ tab: "text-to-diagram" | "mermaid";
468
448
  } | {
469
449
  name: "commandPalette";
450
+ } | {
451
+ name: "settings";
470
452
  } | {
471
453
  name: "elementLinkSelector";
472
- sourceElementId: string;
473
- } | null;
454
+ sourceElementId: ExcalidrawElement["id"];
455
+ } | {
456
+ name: "charts";
457
+ data: import("../charts").Spreadsheet;
458
+ rawText: string;
459
+ };
474
460
  defaultSidebarDockedPreference: boolean;
475
461
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
476
462
  selectedElementIds: Readonly<{
@@ -485,9 +471,9 @@ export declare const actionupdateFrameRendering: {
485
471
  selectedElementsAreBeingDragged: boolean;
486
472
  shouldCacheIgnoreZoom: boolean;
487
473
  toast: {
488
- message: string;
489
- closable?: boolean | undefined;
490
- duration?: number | undefined;
474
+ message: React.ReactNode;
475
+ closable?: boolean;
476
+ duration?: number;
491
477
  } | null;
492
478
  zenModeEnabled: boolean;
493
479
  theme: import("@excalidraw/element/types").Theme;
@@ -498,45 +484,18 @@ export declare const actionupdateFrameRendering: {
498
484
  selectedGroupIds: {
499
485
  [groupId: string]: boolean;
500
486
  };
501
- editingGroupId: string | null;
487
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
502
488
  width: number;
503
489
  height: number;
504
490
  offsetTop: number;
505
491
  offsetLeft: number;
506
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
507
- collaborators: Map<import("../types").SocketId, Readonly<{
508
- pointer?: import("../types").CollaboratorPointer | undefined;
509
- button?: "up" | "down" | undefined;
510
- selectedElementIds?: Readonly<{
511
- [id: string]: true;
512
- }> | undefined;
513
- username?: string | null | undefined;
514
- userState?: import("@excalidraw/common").UserIdleState | undefined;
515
- color?: {
516
- background: string;
517
- stroke: string;
518
- } | undefined;
519
- avatarUrl?: string | undefined;
520
- id?: string | undefined;
521
- socketId?: import("../types").SocketId | undefined;
522
- isCurrentUser?: boolean | undefined;
523
- isInCall?: boolean | undefined;
524
- isSpeaking?: boolean | undefined;
525
- isMuted?: boolean | undefined;
526
- }>>;
492
+ fileHandle: FileSystemFileHandle | null;
493
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
527
494
  stats: {
528
495
  open: boolean;
529
496
  panels: number;
530
497
  };
531
- currentChartType: import("@excalidraw/element/types").ChartType;
532
- pasteDialog: {
533
- shown: false;
534
- data: null;
535
- } | {
536
- shown: true;
537
- data: import("../charts").Spreadsheet;
538
- };
539
- showHyperlinkPopup: false | "editor" | "info";
498
+ showHyperlinkPopup: false | "info" | "editor";
540
499
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
541
500
  snapLines: readonly import("../snapping").SnapLine[];
542
501
  originSnapOffset: {
@@ -547,15 +506,16 @@ export declare const actionupdateFrameRendering: {
547
506
  userToFollow: import("../types").UserToFollow | null;
548
507
  followedBy: Set<import("../types").SocketId>;
549
508
  isCropping: boolean;
550
- croppingElementId: string | null;
509
+ croppingElementId: ExcalidrawElement["id"] | null;
551
510
  searchMatches: Readonly<{
552
- focusedId: string | null;
511
+ focusedId: ExcalidrawElement["id"] | null;
553
512
  matches: readonly import("../types").SearchMatch[];
554
513
  }> | null;
555
514
  activeLockedId: string | null;
556
515
  lockedMultiSelections: {
557
516
  [groupId: string]: true;
558
517
  };
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,8 +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;
611
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
576
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
577
+ preferredSelectionTool: {
578
+ type: "selection" | "lasso";
579
+ initialized: boolean;
580
+ };
612
581
  penMode: boolean;
613
582
  penDetected: boolean;
614
583
  exportBackground: boolean;
@@ -617,19 +586,19 @@ export declare const actionSetFrameAsActiveTool: {
617
586
  exportScale: number;
618
587
  currentItemStrokeColor: string;
619
588
  currentItemBackgroundColor: string;
620
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
589
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
621
590
  currentItemStrokeWidth: number;
622
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
591
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
623
592
  currentItemRoughness: number;
624
593
  currentItemOpacity: number;
625
- currentItemFontFamily: number;
594
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
626
595
  currentItemFontSize: number;
627
- currentItemTextAlign: string;
596
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
628
597
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
629
598
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
630
- currentHoveredFontFamily: number | null;
599
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
631
600
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
632
- currentItemArrowType: "round" | "sharp" | "elbow";
601
+ currentItemArrowType: "sharp" | "round" | "elbow";
633
602
  viewBackgroundColor: string;
634
603
  scrollX: number;
635
604
  scrollY: number;
@@ -638,26 +607,30 @@ export declare const actionSetFrameAsActiveTool: {
638
607
  name: string | null;
639
608
  isResizing: boolean;
640
609
  isRotating: boolean;
641
- zoom: Readonly<{
642
- value: import("../types").NormalizedZoomValue;
643
- }>;
644
- openMenu: "canvas" | "shape" | null;
645
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
610
+ zoom: import("../types").Zoom;
611
+ openMenu: "canvas" | null;
612
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
646
613
  openSidebar: {
647
- name: string;
648
- tab?: string | undefined;
614
+ name: import("../types").SidebarName;
615
+ tab?: import("../types").SidebarTabName;
649
616
  } | null;
650
- openDialog: {
617
+ openDialog: null | {
651
618
  name: "imageExport" | "help" | "jsonExport";
652
619
  } | {
653
620
  name: "ttd";
654
- tab: "mermaid" | "text-to-diagram";
621
+ tab: "text-to-diagram" | "mermaid";
655
622
  } | {
656
623
  name: "commandPalette";
624
+ } | {
625
+ name: "settings";
657
626
  } | {
658
627
  name: "elementLinkSelector";
659
- sourceElementId: string;
660
- } | null;
628
+ sourceElementId: ExcalidrawElement["id"];
629
+ } | {
630
+ name: "charts";
631
+ data: import("../charts").Spreadsheet;
632
+ rawText: string;
633
+ };
661
634
  defaultSidebarDockedPreference: boolean;
662
635
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
663
636
  selectedElementIds: Readonly<{
@@ -672,9 +645,9 @@ export declare const actionSetFrameAsActiveTool: {
672
645
  selectedElementsAreBeingDragged: boolean;
673
646
  shouldCacheIgnoreZoom: boolean;
674
647
  toast: {
675
- message: string;
676
- closable?: boolean | undefined;
677
- duration?: number | undefined;
648
+ message: React.ReactNode;
649
+ closable?: boolean;
650
+ duration?: number;
678
651
  } | null;
679
652
  zenModeEnabled: boolean;
680
653
  theme: import("@excalidraw/element/types").Theme;
@@ -685,45 +658,18 @@ export declare const actionSetFrameAsActiveTool: {
685
658
  selectedGroupIds: {
686
659
  [groupId: string]: boolean;
687
660
  };
688
- editingGroupId: string | null;
661
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
689
662
  width: number;
690
663
  height: number;
691
664
  offsetTop: number;
692
665
  offsetLeft: number;
693
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
694
- collaborators: Map<import("../types").SocketId, Readonly<{
695
- pointer?: import("../types").CollaboratorPointer | undefined;
696
- button?: "up" | "down" | undefined;
697
- selectedElementIds?: Readonly<{
698
- [id: string]: true;
699
- }> | undefined;
700
- username?: string | null | undefined;
701
- userState?: import("@excalidraw/common").UserIdleState | undefined;
702
- color?: {
703
- background: string;
704
- stroke: string;
705
- } | undefined;
706
- avatarUrl?: string | undefined;
707
- id?: string | undefined;
708
- socketId?: import("../types").SocketId | undefined;
709
- isCurrentUser?: boolean | undefined;
710
- isInCall?: boolean | undefined;
711
- isSpeaking?: boolean | undefined;
712
- isMuted?: boolean | undefined;
713
- }>>;
666
+ fileHandle: FileSystemFileHandle | null;
667
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
714
668
  stats: {
715
669
  open: boolean;
716
670
  panels: number;
717
671
  };
718
- currentChartType: import("@excalidraw/element/types").ChartType;
719
- pasteDialog: {
720
- shown: false;
721
- data: null;
722
- } | {
723
- shown: true;
724
- data: import("../charts").Spreadsheet;
725
- };
726
- showHyperlinkPopup: false | "editor" | "info";
672
+ showHyperlinkPopup: false | "info" | "editor";
727
673
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
728
674
  snapLines: readonly import("../snapping").SnapLine[];
729
675
  originSnapOffset: {
@@ -734,15 +680,16 @@ export declare const actionSetFrameAsActiveTool: {
734
680
  userToFollow: import("../types").UserToFollow | null;
735
681
  followedBy: Set<import("../types").SocketId>;
736
682
  isCropping: boolean;
737
- croppingElementId: string | null;
683
+ croppingElementId: ExcalidrawElement["id"] | null;
738
684
  searchMatches: Readonly<{
739
- focusedId: string | null;
685
+ focusedId: ExcalidrawElement["id"] | null;
740
686
  matches: readonly import("../types").SearchMatch[];
741
687
  }> | null;
742
688
  activeLockedId: string | null;
743
689
  lockedMultiSelections: {
744
690
  [groupId: string]: true;
745
691
  };
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>)[];