@excalidraw/math 0.18.0-4e0441e → 0.18.0-4e758db

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