@excalidraw/math 0.18.0-b7aac689a → 0.18.0-c108292

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