@excalidraw/math 0.18.0-1b287a8ba → 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 (346) 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 +50 -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 +16 -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 +50 -31
  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 -222
  63. package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
  64. package/dist/types/excalidraw/actions/actionBoundText.d.ts +122 -133
  65. package/dist/types/excalidraw/actions/actionCanvas.d.ts +446 -1576
  66. package/dist/types/excalidraw/actions/actionClipboard.d.ts +149 -904
  67. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +59 -65
  68. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +195 -214
  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 -78
  73. package/dist/types/excalidraw/actions/actionElementLock.d.ts +121 -132
  74. package/dist/types/excalidraw/actions/actionExport.d.ts +200 -1423
  75. package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -395
  76. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  77. package/dist/types/excalidraw/actions/actionFrame.d.ts +269 -508
  78. package/dist/types/excalidraw/actions/actionGroup.d.ts +132 -151
  79. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +181 -191
  80. package/dist/types/excalidraw/actions/actionLink.d.ts +72 -78
  81. package/dist/types/excalidraw/actions/actionMenu.d.ts +61 -441
  82. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  83. package/dist/types/excalidraw/actions/actionProperties.d.ts +204 -2546
  84. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +66 -76
  85. package/dist/types/excalidraw/actions/actionStyles.d.ts +59 -64
  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 -81
  89. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +181 -0
  90. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +73 -79
  91. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +62 -75
  92. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  93. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +72 -78
  94. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +73 -79
  95. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +73 -79
  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 +32 -14
  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/renderer/staticScene.d.ts +4 -1
  291. package/dist/types/excalidraw/scene/Renderer.d.ts +429 -18
  292. package/dist/types/excalidraw/scene/export.d.ts +4 -4
  293. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  294. package/dist/types/excalidraw/scene/types.d.ts +26 -8
  295. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  296. package/dist/types/excalidraw/snapping.d.ts +12 -12
  297. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  298. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  299. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  300. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  301. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  302. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  303. package/dist/types/excalidraw/types.d.ts +559 -58
  304. package/dist/types/excalidraw/viewport.d.ts +275 -0
  305. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +8 -5
  306. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  307. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  308. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  309. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  310. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  311. package/dist/types/math/src/constants.d.ts +0 -1
  312. package/dist/types/math/src/curve.d.ts +23 -13
  313. package/dist/types/math/src/index.d.ts +1 -0
  314. package/dist/types/math/src/pca.d.ts +79 -0
  315. package/dist/types/math/src/point.d.ts +8 -2
  316. package/dist/types/math/src/polygon.d.ts +26 -2
  317. package/dist/types/math/src/range.d.ts +1 -3
  318. package/dist/types/math/src/segment.d.ts +10 -3
  319. package/dist/types/math/src/types.d.ts +25 -1
  320. package/dist/types/utils/src/export.d.ts +8 -8
  321. package/dist/types/utils/src/index.d.ts +1 -2
  322. package/dist/types/utils/src/shape.d.ts +6 -6
  323. package/package.json +2 -2
  324. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -186
  325. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  326. package/dist/types/excalidraw/charts.d.ts +0 -27
  327. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  328. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  329. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  330. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  331. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  332. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  333. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  334. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  335. package/dist/types/excalidraw/components/shapes.d.ts +0 -62
  336. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  337. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  338. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  339. package/dist/types/excalidraw/cursor.d.ts +0 -5
  340. package/dist/types/excalidraw/data/reconcile.d.ts +0 -6
  341. package/dist/types/excalidraw/index.d.ts +0 -47
  342. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  343. package/dist/types/excalidraw/scene/scroll.d.ts +0 -23
  344. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  345. package/dist/types/utils/src/bbox.d.ts +0 -9
  346. 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,15 +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;
43
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | 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;
44
51
  activeTool: {
45
52
  lastActiveTool: import("../types").ActiveTool | null;
46
53
  locked: boolean;
47
54
  fromSelection: boolean;
48
55
  } & import("../types").ActiveTool;
56
+ preferredSelectionTool: {
57
+ type: "selection" | "lasso";
58
+ initialized: boolean;
59
+ };
49
60
  penMode: boolean;
50
61
  penDetected: boolean;
51
62
  exportBackground: boolean;
@@ -54,47 +65,53 @@ export declare const actionSelectAllElementsInFrame: {
54
65
  exportScale: number;
55
66
  currentItemStrokeColor: string;
56
67
  currentItemBackgroundColor: string;
57
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
58
- currentItemStrokeWidth: number;
59
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
68
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
69
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
70
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
60
71
  currentItemRoughness: number;
72
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
61
73
  currentItemOpacity: number;
62
- currentItemFontFamily: number;
74
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
63
75
  currentItemFontSize: number;
64
- currentItemTextAlign: string;
76
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
65
77
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
78
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
67
- currentHoveredFontFamily: number | null;
79
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
68
80
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
69
- currentItemArrowType: "round" | "sharp" | "elbow";
81
+ currentItemArrowType: "sharp" | "round" | "elbow";
70
82
  viewBackgroundColor: string;
71
83
  scrollX: number;
72
84
  scrollY: number;
85
+ scrollConstraints: import("../types").ScrollConstraints | null;
73
86
  cursorButton: "up" | "down";
74
87
  scrolledOutside: boolean;
75
88
  name: string | null;
76
89
  isResizing: boolean;
77
90
  isRotating: boolean;
78
- zoom: Readonly<{
79
- value: import("../types").NormalizedZoomValue;
80
- }>;
81
- openMenu: "canvas" | "shape" | null;
82
- 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;
83
94
  openSidebar: {
84
- name: string;
85
- tab?: string | undefined;
95
+ name: import("../types").SidebarName;
96
+ tab?: import("../types").SidebarTabName;
86
97
  } | null;
87
- openDialog: {
98
+ openDialog: null | {
88
99
  name: "imageExport" | "help" | "jsonExport";
89
100
  } | {
90
101
  name: "ttd";
91
- tab: "mermaid" | "text-to-diagram";
102
+ tab: "text-to-diagram" | "mermaid";
92
103
  } | {
93
104
  name: "commandPalette";
105
+ } | {
106
+ name: "settings";
94
107
  } | {
95
108
  name: "elementLinkSelector";
96
- sourceElementId: string;
97
- } | null;
109
+ sourceElementId: ExcalidrawElement["id"];
110
+ } | {
111
+ name: "charts";
112
+ data: import("../charts").Spreadsheet;
113
+ rawText: string;
114
+ };
98
115
  defaultSidebarDockedPreference: boolean;
99
116
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
100
117
  hoveredElementIds: Readonly<{
@@ -106,9 +123,9 @@ export declare const actionSelectAllElementsInFrame: {
106
123
  selectedElementsAreBeingDragged: boolean;
107
124
  shouldCacheIgnoreZoom: boolean;
108
125
  toast: {
109
- message: string;
110
- closable?: boolean | undefined;
111
- duration?: number | undefined;
126
+ message: React.ReactNode;
127
+ closable?: boolean;
128
+ duration?: number;
112
129
  } | null;
113
130
  zenModeEnabled: boolean;
114
131
  theme: import("@excalidraw/element/types").Theme;
@@ -119,45 +136,18 @@ export declare const actionSelectAllElementsInFrame: {
119
136
  selectedGroupIds: {
120
137
  [groupId: string]: boolean;
121
138
  };
122
- editingGroupId: string | null;
139
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
123
140
  width: number;
124
141
  height: number;
125
142
  offsetTop: number;
126
143
  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
- }>>;
144
+ fileHandle: FileSystemFileHandle | null;
145
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
148
146
  stats: {
149
147
  open: boolean;
150
148
  panels: number;
151
149
  };
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";
150
+ showHyperlinkPopup: false | "info" | "editor";
161
151
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
152
  snapLines: readonly import("../snapping").SnapLine[];
163
153
  originSnapOffset: {
@@ -165,26 +155,30 @@ export declare const actionSelectAllElementsInFrame: {
165
155
  y: number;
166
156
  } | null;
167
157
  objectsSnapModeEnabled: boolean;
168
- userToFollow: import("../types").UserToFollow | null;
169
- followedBy: Set<import("../types").SocketId>;
170
158
  isCropping: boolean;
171
- croppingElementId: string | null;
159
+ croppingElementId: ExcalidrawElement["id"] | null;
172
160
  searchMatches: Readonly<{
173
- focusedId: string | null;
161
+ focusedId: ExcalidrawElement["id"] | null;
174
162
  matches: readonly import("../types").SearchMatch[];
175
163
  }> | null;
176
164
  activeLockedId: string | null;
177
165
  lockedMultiSelections: {
178
166
  [groupId: string]: true;
179
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
+ };
180
174
  };
181
175
  captureUpdate: "IMMEDIATELY";
182
176
  } | {
183
177
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
184
- appState: Readonly<AppState>;
178
+ appState: Readonly<import("../types").AppState>;
185
179
  captureUpdate: "EVENTUALLY";
186
180
  };
187
- 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;
188
182
  } & {
189
183
  keyTest?: undefined;
190
184
  };
@@ -194,7 +188,7 @@ export declare const actionRemoveAllElementsFromFrame: {
194
188
  trackEvent: {
195
189
  category: "history";
196
190
  };
197
- 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) => {
198
192
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
199
193
  appState: {
200
194
  selectedElementIds: {
@@ -207,18 +201,27 @@ export declare const actionRemoveAllElementsFromFrame: {
207
201
  } | null;
208
202
  showWelcomeScreen: boolean;
209
203
  isLoading: boolean;
210
- errorMessage: import("react").ReactNode;
204
+ errorMessage: React.ReactNode;
211
205
  activeEmbeddable: {
212
206
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
213
- state: "active" | "hover";
207
+ state: "hover" | "active";
214
208
  } | null;
215
209
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
216
210
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
217
211
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
218
212
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
219
213
  isBindingEnabled: boolean;
220
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
221
- 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;
222
225
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
223
226
  frameRendering: {
224
227
  enabled: boolean;
@@ -226,15 +229,18 @@ export declare const actionRemoveAllElementsFromFrame: {
226
229
  outline: boolean;
227
230
  clip: boolean;
228
231
  };
229
- editingFrame: string | null;
230
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
231
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
232
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | 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;
233
235
  activeTool: {
234
236
  lastActiveTool: import("../types").ActiveTool | null;
235
237
  locked: boolean;
236
238
  fromSelection: boolean;
237
239
  } & import("../types").ActiveTool;
240
+ preferredSelectionTool: {
241
+ type: "selection" | "lasso";
242
+ initialized: boolean;
243
+ };
238
244
  penMode: boolean;
239
245
  penDetected: boolean;
240
246
  exportBackground: boolean;
@@ -243,47 +249,53 @@ export declare const actionRemoveAllElementsFromFrame: {
243
249
  exportScale: number;
244
250
  currentItemStrokeColor: string;
245
251
  currentItemBackgroundColor: string;
246
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
247
- currentItemStrokeWidth: number;
248
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
252
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
253
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
254
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
249
255
  currentItemRoughness: number;
256
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
250
257
  currentItemOpacity: number;
251
- currentItemFontFamily: number;
258
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
252
259
  currentItemFontSize: number;
253
- currentItemTextAlign: string;
260
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
254
261
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
255
262
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
256
- currentHoveredFontFamily: number | null;
263
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
257
264
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
258
- currentItemArrowType: "round" | "sharp" | "elbow";
265
+ currentItemArrowType: "sharp" | "round" | "elbow";
259
266
  viewBackgroundColor: string;
260
267
  scrollX: number;
261
268
  scrollY: number;
269
+ scrollConstraints: import("../types").ScrollConstraints | null;
262
270
  cursorButton: "up" | "down";
263
271
  scrolledOutside: boolean;
264
272
  name: string | null;
265
273
  isResizing: boolean;
266
274
  isRotating: boolean;
267
- zoom: Readonly<{
268
- value: import("../types").NormalizedZoomValue;
269
- }>;
270
- openMenu: "canvas" | "shape" | null;
271
- 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;
272
278
  openSidebar: {
273
- name: string;
274
- tab?: string | undefined;
279
+ name: import("../types").SidebarName;
280
+ tab?: import("../types").SidebarTabName;
275
281
  } | null;
276
- openDialog: {
282
+ openDialog: null | {
277
283
  name: "imageExport" | "help" | "jsonExport";
278
284
  } | {
279
285
  name: "ttd";
280
- tab: "mermaid" | "text-to-diagram";
286
+ tab: "text-to-diagram" | "mermaid";
281
287
  } | {
282
288
  name: "commandPalette";
289
+ } | {
290
+ name: "settings";
283
291
  } | {
284
292
  name: "elementLinkSelector";
285
- sourceElementId: string;
286
- } | null;
293
+ sourceElementId: ExcalidrawElement["id"];
294
+ } | {
295
+ name: "charts";
296
+ data: import("../charts").Spreadsheet;
297
+ rawText: string;
298
+ };
287
299
  defaultSidebarDockedPreference: boolean;
288
300
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
289
301
  hoveredElementIds: Readonly<{
@@ -295,9 +307,9 @@ export declare const actionRemoveAllElementsFromFrame: {
295
307
  selectedElementsAreBeingDragged: boolean;
296
308
  shouldCacheIgnoreZoom: boolean;
297
309
  toast: {
298
- message: string;
299
- closable?: boolean | undefined;
300
- duration?: number | undefined;
310
+ message: React.ReactNode;
311
+ closable?: boolean;
312
+ duration?: number;
301
313
  } | null;
302
314
  zenModeEnabled: boolean;
303
315
  theme: import("@excalidraw/element/types").Theme;
@@ -308,45 +320,18 @@ export declare const actionRemoveAllElementsFromFrame: {
308
320
  selectedGroupIds: {
309
321
  [groupId: string]: boolean;
310
322
  };
311
- editingGroupId: string | null;
323
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
312
324
  width: number;
313
325
  height: number;
314
326
  offsetTop: number;
315
327
  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
- }>>;
328
+ fileHandle: FileSystemFileHandle | null;
329
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
337
330
  stats: {
338
331
  open: boolean;
339
332
  panels: number;
340
333
  };
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";
334
+ showHyperlinkPopup: false | "info" | "editor";
350
335
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
351
336
  snapLines: readonly import("../snapping").SnapLine[];
352
337
  originSnapOffset: {
@@ -354,26 +339,30 @@ export declare const actionRemoveAllElementsFromFrame: {
354
339
  y: number;
355
340
  } | null;
356
341
  objectsSnapModeEnabled: boolean;
357
- userToFollow: import("../types").UserToFollow | null;
358
- followedBy: Set<import("../types").SocketId>;
359
342
  isCropping: boolean;
360
- croppingElementId: string | null;
343
+ croppingElementId: ExcalidrawElement["id"] | null;
361
344
  searchMatches: Readonly<{
362
- focusedId: string | null;
345
+ focusedId: ExcalidrawElement["id"] | null;
363
346
  matches: readonly import("../types").SearchMatch[];
364
347
  }> | null;
365
348
  activeLockedId: string | null;
366
349
  lockedMultiSelections: {
367
350
  [groupId: string]: true;
368
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
+ };
369
358
  };
370
359
  captureUpdate: "IMMEDIATELY";
371
360
  } | {
372
361
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
373
- appState: Readonly<AppState>;
362
+ appState: Readonly<import("../types").AppState>;
374
363
  captureUpdate: "EVENTUALLY";
375
364
  };
376
- 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;
377
366
  } & {
378
367
  keyTest?: undefined;
379
368
  };
@@ -384,7 +373,7 @@ export declare const actionupdateFrameRendering: {
384
373
  trackEvent: {
385
374
  category: "canvas";
386
375
  };
387
- 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>) => {
388
377
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
389
378
  appState: {
390
379
  frameRendering: {
@@ -400,28 +389,40 @@ export declare const actionupdateFrameRendering: {
400
389
  } | null;
401
390
  showWelcomeScreen: boolean;
402
391
  isLoading: boolean;
403
- errorMessage: import("react").ReactNode;
392
+ errorMessage: React.ReactNode;
404
393
  activeEmbeddable: {
405
394
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
406
- state: "active" | "hover";
395
+ state: "hover" | "active";
407
396
  } | null;
408
397
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
409
398
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
399
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
411
400
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
412
401
  isBindingEnabled: boolean;
413
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
414
- 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;
415
413
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
416
- editingFrame: string | null;
417
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
418
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
419
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | 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;
420
417
  activeTool: {
421
418
  lastActiveTool: import("../types").ActiveTool | null;
422
419
  locked: boolean;
423
420
  fromSelection: boolean;
424
421
  } & import("../types").ActiveTool;
422
+ preferredSelectionTool: {
423
+ type: "selection" | "lasso";
424
+ initialized: boolean;
425
+ };
425
426
  penMode: boolean;
426
427
  penDetected: boolean;
427
428
  exportBackground: boolean;
@@ -430,234 +431,53 @@ export declare const actionupdateFrameRendering: {
430
431
  exportScale: number;
431
432
  currentItemStrokeColor: string;
432
433
  currentItemBackgroundColor: string;
433
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
434
- currentItemStrokeWidth: number;
435
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
434
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
435
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
436
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
436
437
  currentItemRoughness: number;
438
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
437
439
  currentItemOpacity: number;
438
- currentItemFontFamily: number;
440
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
439
441
  currentItemFontSize: number;
440
- currentItemTextAlign: string;
442
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
441
443
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
442
444
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
443
- currentHoveredFontFamily: number | null;
445
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
444
446
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
445
- currentItemArrowType: "round" | "sharp" | "elbow";
447
+ currentItemArrowType: "sharp" | "round" | "elbow";
446
448
  viewBackgroundColor: string;
447
449
  scrollX: number;
448
450
  scrollY: number;
451
+ scrollConstraints: import("../types").ScrollConstraints | null;
449
452
  cursorButton: "up" | "down";
450
453
  scrolledOutside: boolean;
451
454
  name: string | null;
452
455
  isResizing: boolean;
453
456
  isRotating: boolean;
454
- zoom: Readonly<{
455
- value: import("../types").NormalizedZoomValue;
456
- }>;
457
- openMenu: "canvas" | "shape" | null;
458
- 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;
459
460
  openSidebar: {
460
- name: string;
461
- tab?: string | undefined;
461
+ name: import("../types").SidebarName;
462
+ tab?: import("../types").SidebarTabName;
462
463
  } | null;
463
- openDialog: {
464
+ openDialog: null | {
464
465
  name: "imageExport" | "help" | "jsonExport";
465
466
  } | {
466
467
  name: "ttd";
467
- tab: "mermaid" | "text-to-diagram";
468
+ tab: "text-to-diagram" | "mermaid";
468
469
  } | {
469
470
  name: "commandPalette";
471
+ } | {
472
+ name: "settings";
470
473
  } | {
471
474
  name: "elementLinkSelector";
472
- sourceElementId: string;
473
- } | null;
474
- defaultSidebarDockedPreference: boolean;
475
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
476
- selectedElementIds: Readonly<{
477
- [id: string]: true;
478
- }>;
479
- hoveredElementIds: Readonly<{
480
- [id: string]: true;
481
- }>;
482
- previousSelectedElementIds: {
483
- [id: string]: true;
484
- };
485
- selectedElementsAreBeingDragged: boolean;
486
- shouldCacheIgnoreZoom: boolean;
487
- toast: {
488
- message: string;
489
- closable?: boolean | undefined;
490
- duration?: number | undefined;
491
- } | null;
492
- zenModeEnabled: boolean;
493
- theme: import("@excalidraw/element/types").Theme;
494
- gridSize: number;
495
- gridStep: number;
496
- gridModeEnabled: boolean;
497
- viewModeEnabled: boolean;
498
- selectedGroupIds: {
499
- [groupId: string]: boolean;
500
- };
501
- editingGroupId: string | null;
502
- width: number;
503
- height: number;
504
- offsetTop: number;
505
- 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
- }>>;
527
- stats: {
528
- open: boolean;
529
- panels: number;
530
- };
531
- currentChartType: import("@excalidraw/element/types").ChartType;
532
- pasteDialog: {
533
- shown: false;
534
- data: null;
475
+ sourceElementId: ExcalidrawElement["id"];
535
476
  } | {
536
- shown: true;
477
+ name: "charts";
537
478
  data: import("../charts").Spreadsheet;
479
+ rawText: string;
538
480
  };
539
- showHyperlinkPopup: false | "editor" | "info";
540
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
541
- snapLines: readonly import("../snapping").SnapLine[];
542
- originSnapOffset: {
543
- x: number;
544
- y: number;
545
- } | null;
546
- objectsSnapModeEnabled: boolean;
547
- userToFollow: import("../types").UserToFollow | null;
548
- followedBy: Set<import("../types").SocketId>;
549
- isCropping: boolean;
550
- croppingElementId: string | null;
551
- searchMatches: Readonly<{
552
- focusedId: string | null;
553
- matches: readonly import("../types").SearchMatch[];
554
- }> | null;
555
- activeLockedId: string | null;
556
- lockedMultiSelections: {
557
- [groupId: string]: true;
558
- };
559
- };
560
- captureUpdate: "EVENTUALLY";
561
- };
562
- checked: (appState: AppState) => boolean;
563
- } & {
564
- keyTest?: undefined;
565
- };
566
- export declare const actionSetFrameAsActiveTool: {
567
- name: "setFrameAsActiveTool";
568
- label: string;
569
- trackEvent: {
570
- category: "toolbar";
571
- };
572
- icon: import("react/jsx-runtime").JSX.Element;
573
- viewMode: false;
574
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
575
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
576
- appState: {
577
- activeTool: {
578
- lastActiveTool: import("../types").ActiveTool | null;
579
- locked: boolean;
580
- fromSelection: boolean;
581
- } & import("../types").ActiveTool;
582
- contextMenu: {
583
- items: import("../components/ContextMenu").ContextMenuItems;
584
- top: number;
585
- left: number;
586
- } | null;
587
- showWelcomeScreen: boolean;
588
- isLoading: boolean;
589
- errorMessage: import("react").ReactNode;
590
- activeEmbeddable: {
591
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
592
- state: "active" | "hover";
593
- } | null;
594
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
595
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
596
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
597
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
598
- isBindingEnabled: boolean;
599
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
600
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
601
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
602
- frameRendering: {
603
- enabled: boolean;
604
- name: boolean;
605
- outline: boolean;
606
- clip: boolean;
607
- };
608
- editingFrame: string | null;
609
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
610
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
611
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
612
- penMode: boolean;
613
- penDetected: boolean;
614
- exportBackground: boolean;
615
- exportEmbedScene: boolean;
616
- exportWithDarkMode: boolean;
617
- exportScale: number;
618
- currentItemStrokeColor: string;
619
- currentItemBackgroundColor: string;
620
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
621
- currentItemStrokeWidth: number;
622
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
623
- currentItemRoughness: number;
624
- currentItemOpacity: number;
625
- currentItemFontFamily: number;
626
- currentItemFontSize: number;
627
- currentItemTextAlign: string;
628
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
629
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
630
- currentHoveredFontFamily: number | null;
631
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
632
- currentItemArrowType: "round" | "sharp" | "elbow";
633
- viewBackgroundColor: string;
634
- scrollX: number;
635
- scrollY: number;
636
- cursorButton: "up" | "down";
637
- scrolledOutside: boolean;
638
- name: string | null;
639
- isResizing: boolean;
640
- isRotating: boolean;
641
- zoom: Readonly<{
642
- value: import("../types").NormalizedZoomValue;
643
- }>;
644
- openMenu: "canvas" | "shape" | null;
645
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
646
- openSidebar: {
647
- name: string;
648
- tab?: string | undefined;
649
- } | null;
650
- openDialog: {
651
- name: "imageExport" | "help" | "jsonExport";
652
- } | {
653
- name: "ttd";
654
- tab: "mermaid" | "text-to-diagram";
655
- } | {
656
- name: "commandPalette";
657
- } | {
658
- name: "elementLinkSelector";
659
- sourceElementId: string;
660
- } | null;
661
481
  defaultSidebarDockedPreference: boolean;
662
482
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
663
483
  selectedElementIds: Readonly<{
@@ -672,9 +492,9 @@ export declare const actionSetFrameAsActiveTool: {
672
492
  selectedElementsAreBeingDragged: boolean;
673
493
  shouldCacheIgnoreZoom: boolean;
674
494
  toast: {
675
- message: string;
676
- closable?: boolean | undefined;
677
- duration?: number | undefined;
495
+ message: React.ReactNode;
496
+ closable?: boolean;
497
+ duration?: number;
678
498
  } | null;
679
499
  zenModeEnabled: boolean;
680
500
  theme: import("@excalidraw/element/types").Theme;
@@ -685,45 +505,18 @@ export declare const actionSetFrameAsActiveTool: {
685
505
  selectedGroupIds: {
686
506
  [groupId: string]: boolean;
687
507
  };
688
- editingGroupId: string | null;
508
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
689
509
  width: number;
690
510
  height: number;
691
511
  offsetTop: number;
692
512
  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
- }>>;
513
+ fileHandle: FileSystemFileHandle | null;
514
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
714
515
  stats: {
715
516
  open: boolean;
716
517
  panels: number;
717
518
  };
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";
519
+ showHyperlinkPopup: false | "info" | "editor";
727
520
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
728
521
  snapLines: readonly import("../snapping").SnapLine[];
729
522
  originSnapOffset: {
@@ -731,24 +524,28 @@ export declare const actionSetFrameAsActiveTool: {
731
524
  y: number;
732
525
  } | null;
733
526
  objectsSnapModeEnabled: boolean;
734
- userToFollow: import("../types").UserToFollow | null;
735
- followedBy: Set<import("../types").SocketId>;
736
527
  isCropping: boolean;
737
- croppingElementId: string | null;
528
+ croppingElementId: ExcalidrawElement["id"] | null;
738
529
  searchMatches: Readonly<{
739
- focusedId: string | null;
530
+ focusedId: ExcalidrawElement["id"] | null;
740
531
  matches: readonly import("../types").SearchMatch[];
741
532
  }> | null;
742
533
  activeLockedId: string | null;
743
534
  lockedMultiSelections: {
744
535
  [groupId: string]: true;
745
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
+ };
746
543
  };
747
544
  captureUpdate: "EVENTUALLY";
748
545
  };
749
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
546
+ checked: (appState: Readonly<UIAppState>) => boolean;
750
547
  } & {
751
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
548
+ keyTest?: undefined;
752
549
  };
753
550
  export declare const actionWrapSelectionInFrame: {
754
551
  name: "wrapSelectionInFrame";
@@ -756,8 +553,8 @@ export declare const actionWrapSelectionInFrame: {
756
553
  trackEvent: {
757
554
  category: "element";
758
555
  };
759
- 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) => {
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) => {
761
558
  elements: ((Readonly<{
762
559
  id: string;
763
560
  x: number;
@@ -767,10 +564,10 @@ export declare const actionWrapSelectionInFrame: {
767
564
  fillStyle: import("@excalidraw/element/types").FillStyle;
768
565
  strokeWidth: number;
769
566
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
770
- roundness: {
567
+ roundness: null | {
771
568
  type: import("@excalidraw/element/types").RoundnessType;
772
- value?: number | undefined;
773
- } | null;
569
+ value?: number;
570
+ };
774
571
  roughness: number;
775
572
  opacity: number;
776
573
  width: number;
@@ -781,22 +578,18 @@ export declare const actionWrapSelectionInFrame: {
781
578
  versionNonce: number;
782
579
  index: import("@excalidraw/element/types").FractionalIndex | null;
783
580
  isDeleted: boolean;
784
- groupIds: readonly string[];
581
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
785
582
  frameId: string | null;
786
- boundElements: readonly Readonly<{
787
- id: string;
788
- type: "arrow" | "text";
789
- }>[] | null;
583
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
790
584
  updated: number;
791
585
  link: string | null;
792
586
  locked: boolean;
793
- customData?: Record<string, any> | undefined;
587
+ customData?: Record<string, any>;
794
588
  }> & Readonly<{
795
589
  type: "line" | "arrow";
796
590
  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;
591
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
592
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
800
593
  startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
801
594
  endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
802
595
  }> & {
@@ -810,10 +603,10 @@ export declare const actionWrapSelectionInFrame: {
810
603
  fillStyle: import("@excalidraw/element/types").FillStyle;
811
604
  strokeWidth: number;
812
605
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
813
- roundness: {
606
+ roundness: null | {
814
607
  type: import("@excalidraw/element/types").RoundnessType;
815
- value?: number | undefined;
816
- } | null;
608
+ value?: number;
609
+ };
817
610
  roughness: number;
818
611
  opacity: number;
819
612
  width: number;
@@ -824,16 +617,13 @@ export declare const actionWrapSelectionInFrame: {
824
617
  versionNonce: number;
825
618
  index: import("@excalidraw/element/types").FractionalIndex | null;
826
619
  isDeleted: boolean;
827
- groupIds: readonly string[];
620
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
828
621
  frameId: string | null;
829
- boundElements: readonly Readonly<{
830
- id: string;
831
- type: "arrow" | "text";
832
- }>[] | null;
622
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
833
623
  updated: number;
834
624
  link: string | null;
835
625
  locked: boolean;
836
- customData?: Record<string, any> | undefined;
626
+ customData?: Record<string, any>;
837
627
  }> & {
838
628
  type: "selection";
839
629
  } & {
@@ -847,10 +637,10 @@ export declare const actionWrapSelectionInFrame: {
847
637
  fillStyle: import("@excalidraw/element/types").FillStyle;
848
638
  strokeWidth: number;
849
639
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
850
- roundness: {
640
+ roundness: null | {
851
641
  type: import("@excalidraw/element/types").RoundnessType;
852
- value?: number | undefined;
853
- } | null;
642
+ value?: number;
643
+ };
854
644
  roughness: number;
855
645
  opacity: number;
856
646
  width: number;
@@ -861,16 +651,13 @@ export declare const actionWrapSelectionInFrame: {
861
651
  versionNonce: number;
862
652
  index: import("@excalidraw/element/types").FractionalIndex | null;
863
653
  isDeleted: boolean;
864
- groupIds: readonly string[];
654
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
865
655
  frameId: string | null;
866
- boundElements: readonly Readonly<{
867
- id: string;
868
- type: "arrow" | "text";
869
- }>[] | null;
656
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
870
657
  updated: number;
871
658
  link: string | null;
872
659
  locked: boolean;
873
- customData?: Record<string, any> | undefined;
660
+ customData?: Record<string, any>;
874
661
  }> & {
875
662
  type: "rectangle";
876
663
  } & {
@@ -884,10 +671,10 @@ export declare const actionWrapSelectionInFrame: {
884
671
  fillStyle: import("@excalidraw/element/types").FillStyle;
885
672
  strokeWidth: number;
886
673
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
887
- roundness: {
674
+ roundness: null | {
888
675
  type: import("@excalidraw/element/types").RoundnessType;
889
- value?: number | undefined;
890
- } | null;
676
+ value?: number;
677
+ };
891
678
  roughness: number;
892
679
  opacity: number;
893
680
  width: number;
@@ -898,16 +685,13 @@ export declare const actionWrapSelectionInFrame: {
898
685
  versionNonce: number;
899
686
  index: import("@excalidraw/element/types").FractionalIndex | null;
900
687
  isDeleted: boolean;
901
- groupIds: readonly string[];
688
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
902
689
  frameId: string | null;
903
- boundElements: readonly Readonly<{
904
- id: string;
905
- type: "arrow" | "text";
906
- }>[] | null;
690
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
907
691
  updated: number;
908
692
  link: string | null;
909
693
  locked: boolean;
910
- customData?: Record<string, any> | undefined;
694
+ customData?: Record<string, any>;
911
695
  }> & {
912
696
  type: "diamond";
913
697
  } & {
@@ -921,10 +705,10 @@ export declare const actionWrapSelectionInFrame: {
921
705
  fillStyle: import("@excalidraw/element/types").FillStyle;
922
706
  strokeWidth: number;
923
707
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
924
- roundness: {
708
+ roundness: null | {
925
709
  type: import("@excalidraw/element/types").RoundnessType;
926
- value?: number | undefined;
927
- } | null;
710
+ value?: number;
711
+ };
928
712
  roughness: number;
929
713
  opacity: number;
930
714
  width: number;
@@ -935,16 +719,13 @@ export declare const actionWrapSelectionInFrame: {
935
719
  versionNonce: number;
936
720
  index: import("@excalidraw/element/types").FractionalIndex | null;
937
721
  isDeleted: boolean;
938
- groupIds: readonly string[];
722
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
939
723
  frameId: string | null;
940
- boundElements: readonly Readonly<{
941
- id: string;
942
- type: "arrow" | "text";
943
- }>[] | null;
724
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
944
725
  updated: number;
945
726
  link: string | null;
946
727
  locked: boolean;
947
- customData?: Record<string, any> | undefined;
728
+ customData?: Record<string, any>;
948
729
  }> & {
949
730
  type: "ellipse";
950
731
  } & {
@@ -958,10 +739,10 @@ export declare const actionWrapSelectionInFrame: {
958
739
  fillStyle: import("@excalidraw/element/types").FillStyle;
959
740
  strokeWidth: number;
960
741
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
961
- roundness: {
742
+ roundness: null | {
962
743
  type: import("@excalidraw/element/types").RoundnessType;
963
- value?: number | undefined;
964
- } | null;
744
+ value?: number;
745
+ };
965
746
  roughness: number;
966
747
  opacity: number;
967
748
  width: number;
@@ -972,16 +753,13 @@ export declare const actionWrapSelectionInFrame: {
972
753
  versionNonce: number;
973
754
  index: import("@excalidraw/element/types").FractionalIndex | null;
974
755
  isDeleted: boolean;
975
- groupIds: readonly string[];
756
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
976
757
  frameId: string | null;
977
- boundElements: readonly Readonly<{
978
- id: string;
979
- type: "arrow" | "text";
980
- }>[] | null;
758
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
981
759
  updated: number;
982
760
  link: string | null;
983
761
  locked: boolean;
984
- customData?: Record<string, any> | undefined;
762
+ customData?: Record<string, any>;
985
763
  }> & Readonly<{
986
764
  type: "embeddable";
987
765
  }> & {
@@ -995,10 +773,10 @@ export declare const actionWrapSelectionInFrame: {
995
773
  fillStyle: import("@excalidraw/element/types").FillStyle;
996
774
  strokeWidth: number;
997
775
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
998
- roundness: {
776
+ roundness: null | {
999
777
  type: import("@excalidraw/element/types").RoundnessType;
1000
- value?: number | undefined;
1001
- } | null;
778
+ value?: number;
779
+ };
1002
780
  roughness: number;
1003
781
  opacity: number;
1004
782
  width: number;
@@ -1009,21 +787,18 @@ export declare const actionWrapSelectionInFrame: {
1009
787
  versionNonce: number;
1010
788
  index: import("@excalidraw/element/types").FractionalIndex | null;
1011
789
  isDeleted: boolean;
1012
- groupIds: readonly string[];
790
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1013
791
  frameId: string | null;
1014
- boundElements: readonly Readonly<{
1015
- id: string;
1016
- type: "arrow" | "text";
1017
- }>[] | null;
792
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1018
793
  updated: number;
1019
794
  link: string | null;
1020
795
  locked: boolean;
1021
- customData?: Record<string, any> | undefined;
796
+ customData?: Record<string, any>;
1022
797
  }> & Readonly<{
1023
798
  type: "iframe";
1024
799
  customData?: {
1025
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1026
- } | undefined;
800
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
801
+ };
1027
802
  }> & {
1028
803
  index: import("@excalidraw/element/types").FractionalIndex;
1029
804
  }) | (Readonly<{
@@ -1035,10 +810,10 @@ export declare const actionWrapSelectionInFrame: {
1035
810
  fillStyle: import("@excalidraw/element/types").FillStyle;
1036
811
  strokeWidth: number;
1037
812
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1038
- roundness: {
813
+ roundness: null | {
1039
814
  type: import("@excalidraw/element/types").RoundnessType;
1040
- value?: number | undefined;
1041
- } | null;
815
+ value?: number;
816
+ };
1042
817
  roughness: number;
1043
818
  opacity: number;
1044
819
  width: number;
@@ -1049,20 +824,17 @@ export declare const actionWrapSelectionInFrame: {
1049
824
  versionNonce: number;
1050
825
  index: import("@excalidraw/element/types").FractionalIndex | null;
1051
826
  isDeleted: boolean;
1052
- groupIds: readonly string[];
827
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1053
828
  frameId: string | null;
1054
- boundElements: readonly Readonly<{
1055
- id: string;
1056
- type: "arrow" | "text";
1057
- }>[] | null;
829
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1058
830
  updated: number;
1059
831
  link: string | null;
1060
832
  locked: boolean;
1061
- customData?: Record<string, any> | undefined;
833
+ customData?: Record<string, any>;
1062
834
  }> & Readonly<{
1063
835
  type: "image";
1064
836
  fileId: import("@excalidraw/element/types").FileId | null;
1065
- status: "pending" | "error" | "saved";
837
+ status: "pending" | "saved" | "error";
1066
838
  scale: [number, number];
1067
839
  crop: import("@excalidraw/element/types").ImageCrop | null;
1068
840
  }> & {
@@ -1076,10 +848,10 @@ export declare const actionWrapSelectionInFrame: {
1076
848
  fillStyle: import("@excalidraw/element/types").FillStyle;
1077
849
  strokeWidth: number;
1078
850
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1079
- roundness: {
851
+ roundness: null | {
1080
852
  type: import("@excalidraw/element/types").RoundnessType;
1081
- value?: number | undefined;
1082
- } | null;
853
+ value?: number;
854
+ };
1083
855
  roughness: number;
1084
856
  opacity: number;
1085
857
  width: number;
@@ -1090,16 +862,13 @@ export declare const actionWrapSelectionInFrame: {
1090
862
  versionNonce: number;
1091
863
  index: import("@excalidraw/element/types").FractionalIndex | null;
1092
864
  isDeleted: boolean;
1093
- groupIds: readonly string[];
865
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1094
866
  frameId: string | null;
1095
- boundElements: readonly Readonly<{
1096
- id: string;
1097
- type: "arrow" | "text";
1098
- }>[] | null;
867
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1099
868
  updated: number;
1100
869
  link: string | null;
1101
870
  locked: boolean;
1102
- customData?: Record<string, any> | undefined;
871
+ customData?: Record<string, any>;
1103
872
  }> & {
1104
873
  type: "frame";
1105
874
  name: string | null;
@@ -1114,10 +883,10 @@ export declare const actionWrapSelectionInFrame: {
1114
883
  fillStyle: import("@excalidraw/element/types").FillStyle;
1115
884
  strokeWidth: number;
1116
885
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1117
- roundness: {
886
+ roundness: null | {
1118
887
  type: import("@excalidraw/element/types").RoundnessType;
1119
- value?: number | undefined;
1120
- } | null;
888
+ value?: number;
889
+ };
1121
890
  roughness: number;
1122
891
  opacity: number;
1123
892
  width: number;
@@ -1128,16 +897,13 @@ export declare const actionWrapSelectionInFrame: {
1128
897
  versionNonce: number;
1129
898
  index: import("@excalidraw/element/types").FractionalIndex | null;
1130
899
  isDeleted: boolean;
1131
- groupIds: readonly string[];
900
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1132
901
  frameId: string | null;
1133
- boundElements: readonly Readonly<{
1134
- id: string;
1135
- type: "arrow" | "text";
1136
- }>[] | null;
902
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1137
903
  updated: number;
1138
904
  link: string | null;
1139
905
  locked: boolean;
1140
- customData?: Record<string, any> | undefined;
906
+ customData?: Record<string, any>;
1141
907
  }> & {
1142
908
  type: "magicframe";
1143
909
  name: string | null;
@@ -1152,10 +918,10 @@ export declare const actionWrapSelectionInFrame: {
1152
918
  fillStyle: import("@excalidraw/element/types").FillStyle;
1153
919
  strokeWidth: number;
1154
920
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1155
- roundness: {
921
+ roundness: null | {
1156
922
  type: import("@excalidraw/element/types").RoundnessType;
1157
- value?: number | undefined;
1158
- } | null;
923
+ value?: number;
924
+ };
1159
925
  roughness: number;
1160
926
  opacity: number;
1161
927
  width: number;
@@ -1166,29 +932,27 @@ export declare const actionWrapSelectionInFrame: {
1166
932
  versionNonce: number;
1167
933
  index: import("@excalidraw/element/types").FractionalIndex | null;
1168
934
  isDeleted: boolean;
1169
- groupIds: readonly string[];
935
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1170
936
  frameId: string | null;
1171
- boundElements: readonly Readonly<{
1172
- id: string;
1173
- type: "arrow" | "text";
1174
- }>[] | null;
937
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1175
938
  updated: number;
1176
939
  link: string | null;
1177
940
  locked: boolean;
1178
- customData?: Record<string, any> | undefined;
941
+ customData?: Record<string, any>;
1179
942
  }> & Readonly<{
1180
943
  type: "text";
1181
944
  fontSize: number;
1182
- fontFamily: number;
945
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1183
946
  text: string;
1184
- textAlign: string;
1185
- verticalAlign: string;
1186
- 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;
1187
950
  originalText: string;
1188
951
  autoResize: boolean;
1189
952
  lineHeight: number & {
1190
953
  _brand: "unitlessLineHeight";
1191
954
  };
955
+ labelPosition?: number | null;
1192
956
  }> & {
1193
957
  index: import("@excalidraw/element/types").FractionalIndex;
1194
958
  }) | (Readonly<{
@@ -1200,10 +964,10 @@ export declare const actionWrapSelectionInFrame: {
1200
964
  fillStyle: import("@excalidraw/element/types").FillStyle;
1201
965
  strokeWidth: number;
1202
966
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1203
- roundness: {
967
+ roundness: null | {
1204
968
  type: import("@excalidraw/element/types").RoundnessType;
1205
- value?: number | undefined;
1206
- } | null;
969
+ value?: number;
970
+ };
1207
971
  roughness: number;
1208
972
  opacity: number;
1209
973
  width: number;
@@ -1214,22 +978,19 @@ export declare const actionWrapSelectionInFrame: {
1214
978
  versionNonce: number;
1215
979
  index: import("@excalidraw/element/types").FractionalIndex | null;
1216
980
  isDeleted: boolean;
1217
- groupIds: readonly string[];
981
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1218
982
  frameId: string | null;
1219
- boundElements: readonly Readonly<{
1220
- id: string;
1221
- type: "arrow" | "text";
1222
- }>[] | null;
983
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1223
984
  updated: number;
1224
985
  link: string | null;
1225
986
  locked: boolean;
1226
- customData?: Record<string, any> | undefined;
987
+ customData?: Record<string, any>;
1227
988
  }> & Readonly<{
1228
989
  type: "freedraw";
1229
990
  points: readonly import("@excalidraw/math").LocalPoint[];
1230
991
  pressures: readonly number[];
1231
992
  simulatePressure: boolean;
1232
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
993
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
1233
994
  }> & {
1234
995
  index: import("@excalidraw/element/types").FractionalIndex;
1235
996
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];