@excalidraw/math 0.18.0-200a6bd94 → 0.18.0-214cd6e

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