@excalidraw/element 0.18.0-91c7748 → 0.18.0-a52cd20

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 (360) hide show
  1. package/dist/dev/index.js +15101 -8988
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +20 -19
  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 +89 -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 +52 -78
  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 +85 -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 +11 -3
  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 +67 -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 +59 -9
  46. package/dist/types/element/src/renderElement.d.ts +21 -13
  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 +36 -9
  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 +21 -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 +22 -6
  62. package/dist/types/element/src/visualdebug.d.ts +58 -0
  63. package/dist/types/element/src/zindex.d.ts +7 -1
  64. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +215 -189
  65. package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
  66. package/dist/types/excalidraw/actions/actionBoundText.d.ts +150 -133
  67. package/dist/types/excalidraw/actions/actionCanvas.d.ts +543 -1576
  68. package/dist/types/excalidraw/actions/actionClipboard.d.ts +152 -880
  69. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +73 -65
  70. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +237 -214
  71. package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
  72. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -6
  73. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  74. package/dist/types/excalidraw/actions/actionElementLink.d.ts +65 -63
  75. package/dist/types/excalidraw/actions/actionElementLock.d.ts +149 -132
  76. package/dist/types/excalidraw/actions/actionExport.d.ts +228 -1423
  77. package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -396
  78. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  79. package/dist/types/excalidraw/actions/actionFrame.d.ts +373 -521
  80. package/dist/types/excalidraw/actions/actionGroup.d.ts +160 -151
  81. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +236 -214
  82. package/dist/types/excalidraw/actions/actionLink.d.ts +72 -64
  83. package/dist/types/excalidraw/actions/actionMenu.d.ts +64 -430
  84. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  85. package/dist/types/excalidraw/actions/actionProperties.d.ts +241 -2560
  86. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +80 -76
  87. package/dist/types/excalidraw/actions/actionStyles.d.ts +74 -65
  88. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  89. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +88 -79
  90. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +77 -70
  91. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
  92. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +74 -66
  93. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +65 -64
  94. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  95. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +74 -66
  96. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +75 -67
  97. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +75 -67
  98. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  99. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  100. package/dist/types/excalidraw/actions/index.d.ts +5 -3
  101. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  102. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  103. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  104. package/dist/types/excalidraw/actions/types.d.ts +11 -7
  105. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  106. package/dist/types/excalidraw/appState.d.ts +50 -20
  107. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  108. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  109. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  110. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  111. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  112. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  113. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  114. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  115. package/dist/types/excalidraw/clipboard.d.ts +13 -38
  116. package/dist/types/excalidraw/components/Actions.d.ts +26 -11
  117. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  118. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  119. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  120. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  121. package/dist/types/excalidraw/components/App.d.ts +646 -132
  122. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  123. package/dist/types/excalidraw/components/App.duplicate.d.ts +51 -0
  124. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  125. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  126. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  127. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  128. package/dist/types/excalidraw/components/App.viewport.d.ts +113 -0
  129. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  130. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  131. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  132. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  133. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -5
  134. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  135. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +7 -1
  136. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -2
  137. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +5 -2
  138. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  139. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -2
  140. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  141. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  142. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  143. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  144. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  145. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -4
  146. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  147. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  148. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  149. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  150. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  151. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  152. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -2
  153. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  154. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  155. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  156. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  157. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  158. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  159. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  160. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  161. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  162. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  163. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  164. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  165. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  166. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  167. package/dist/types/excalidraw/components/LayerUI.d.ts +6 -2
  168. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  169. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  170. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  171. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +7 -3
  172. package/dist/types/excalidraw/components/LibraryUnit.d.ts +9 -5
  173. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  174. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  175. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  176. package/dist/types/excalidraw/components/MobileMenu.d.ts +5 -7
  177. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  178. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  179. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  180. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  181. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  182. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  183. package/dist/types/excalidraw/components/Popover.d.ts +2 -3
  184. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  185. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  186. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  187. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  188. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  189. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  190. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  191. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  192. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +16 -22
  193. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  194. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  195. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  196. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  197. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  198. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  199. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  200. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  201. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  202. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  203. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -3
  204. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  205. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  206. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  207. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  208. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  209. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  210. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  211. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  212. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  213. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  214. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  215. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  216. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  217. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  218. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  219. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  220. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  221. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  222. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  223. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  224. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  225. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  226. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  227. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  228. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  229. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  230. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  231. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  232. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  233. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  234. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  235. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  236. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  237. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  238. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  239. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  240. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  241. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  242. package/dist/types/excalidraw/components/ToolPopover.d.ts +22 -0
  243. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  244. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  245. package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
  246. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  247. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  248. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  249. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  250. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  251. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  252. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +10 -4
  253. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  254. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  255. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  256. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  257. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  258. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  259. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  260. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  261. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  262. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  263. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  264. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  265. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  266. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  267. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  268. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  269. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  270. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  271. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  272. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
  273. package/dist/types/excalidraw/components/icons.d.ts +51 -23
  274. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +26 -3
  275. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  276. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  277. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  278. package/dist/types/excalidraw/data/blob.d.ts +373 -8
  279. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  280. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  281. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  282. package/dist/types/excalidraw/data/index.d.ts +8 -9
  283. package/dist/types/excalidraw/data/json.d.ts +192 -3
  284. package/dist/types/excalidraw/data/library.d.ts +25 -10
  285. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  286. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  287. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  288. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  289. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  290. package/dist/types/excalidraw/errors.d.ts +14 -0
  291. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
  292. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  293. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +2 -2
  294. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  295. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  296. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  297. package/dist/types/excalidraw/i18n.d.ts +2 -2
  298. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  299. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  300. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  301. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  302. package/dist/types/excalidraw/renderer/animation.d.ts +16 -0
  303. package/dist/types/excalidraw/renderer/helpers.d.ts +31 -8
  304. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +7 -15
  305. package/dist/types/excalidraw/scene/Renderer.d.ts +491 -19
  306. package/dist/types/excalidraw/scene/export.d.ts +4 -4
  307. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  308. package/dist/types/excalidraw/scene/types.d.ts +28 -8
  309. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  310. package/dist/types/excalidraw/snapping.d.ts +12 -12
  311. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  312. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  313. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  314. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  315. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  316. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  317. package/dist/types/excalidraw/types.d.ts +644 -60
  318. package/dist/types/excalidraw/viewport.d.ts +302 -0
  319. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +14 -5
  320. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  321. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  322. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  323. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  324. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  325. package/dist/types/math/src/constants.d.ts +0 -1
  326. package/dist/types/math/src/curve.d.ts +23 -13
  327. package/dist/types/math/src/index.d.ts +1 -0
  328. package/dist/types/math/src/pca.d.ts +79 -0
  329. package/dist/types/math/src/point.d.ts +8 -2
  330. package/dist/types/math/src/polygon.d.ts +26 -2
  331. package/dist/types/math/src/range.d.ts +1 -3
  332. package/dist/types/math/src/segment.d.ts +9 -3
  333. package/dist/types/math/src/types.d.ts +25 -1
  334. package/dist/types/utils/src/export.d.ts +9 -8
  335. package/dist/types/utils/src/index.d.ts +1 -2
  336. package/dist/types/utils/src/shape.d.ts +8 -8
  337. package/package.json +10 -3
  338. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  339. package/dist/types/excalidraw/charts.d.ts +0 -27
  340. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  341. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  342. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  343. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  344. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  345. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  346. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  347. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  348. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  349. package/dist/types/excalidraw/components/shapes.d.ts +0 -190
  350. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  351. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  352. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  353. package/dist/types/excalidraw/cursor.d.ts +0 -5
  354. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  355. package/dist/types/excalidraw/index.d.ts +0 -47
  356. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  357. package/dist/types/excalidraw/scene/scroll.d.ts +0 -23
  358. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  359. package/dist/types/utils/src/bbox.d.ts +0 -9
  360. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  export declare const actionAddToLibrary: {
3
2
  name: "addToLibrary";
4
3
  trackEvent: {
5
4
  category: "element";
6
5
  };
7
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
6
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
8
7
  captureUpdate: "EVENTUALLY";
9
8
  appState: {
10
9
  toast: {
@@ -17,18 +16,36 @@ export declare const actionAddToLibrary: {
17
16
  } | null;
18
17
  showWelcomeScreen: boolean;
19
18
  isLoading: boolean;
20
- errorMessage: import("react").ReactNode;
19
+ errorMessage: React.ReactNode;
21
20
  activeEmbeddable: {
22
21
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
- state: "active" | "hover";
22
+ state: "hover" | "active";
24
23
  } | null;
25
24
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
25
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
26
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
28
  isBindingEnabled: boolean;
30
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
29
+ boxSelectionMode: import("../types").BoxSelectionMode;
30
+ bindingPreference: "enabled" | "disabled";
31
+ isMidpointSnappingEnabled: boolean;
32
+ showHints: 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
+ textToolHover: {
39
+ type: "text";
40
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
41
+ } | {
42
+ type: "container";
43
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "arrow";
46
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
47
+ anchor: "start" | "end" | "label";
48
+ } | null;
32
49
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
50
  frameRendering: {
34
51
  enabled: boolean;
@@ -36,14 +53,18 @@ export declare const actionAddToLibrary: {
36
53
  outline: boolean;
37
54
  clip: boolean;
38
55
  };
39
- editingFrame: string | null;
40
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
56
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
57
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
58
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
42
59
  activeTool: {
43
60
  lastActiveTool: import("../types").ActiveTool | null;
44
61
  locked: boolean;
45
62
  fromSelection: boolean;
46
63
  } & import("../types").ActiveTool;
64
+ preferredSelectionTool: {
65
+ type: "selection" | "lasso";
66
+ initialized: boolean;
67
+ };
47
68
  penMode: boolean;
48
69
  penDetected: boolean;
49
70
  exportBackground: boolean;
@@ -51,48 +72,56 @@ export declare const actionAddToLibrary: {
51
72
  exportWithDarkMode: boolean;
52
73
  exportScale: number;
53
74
  currentItemStrokeColor: string;
75
+ currentItemStickynoteStrokeColor: string;
76
+ currentItemStickynoteBackgroundColor: string;
54
77
  currentItemBackgroundColor: string;
55
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
56
- currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
78
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
79
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
80
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
58
81
  currentItemRoughness: number;
82
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
59
83
  currentItemOpacity: number;
60
- currentItemFontFamily: number;
84
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
61
85
  currentItemFontSize: number;
62
- currentItemTextAlign: string;
86
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
63
87
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
88
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
- currentHoveredFontFamily: number | null;
89
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
66
90
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
- currentItemArrowType: "round" | "sharp" | "elbow";
91
+ currentItemArrowType: "sharp" | "round" | "elbow";
68
92
  viewBackgroundColor: string;
69
93
  scrollX: number;
70
94
  scrollY: number;
95
+ scrollConstraints: import("../types").ScrollConstraints | null;
71
96
  cursorButton: "up" | "down";
72
97
  scrolledOutside: boolean;
73
98
  name: string | null;
74
99
  isResizing: boolean;
75
100
  isRotating: boolean;
76
- zoom: Readonly<{
77
- value: import("../types").NormalizedZoomValue;
78
- }>;
79
- openMenu: "canvas" | "shape" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
101
+ zoom: import("../types").Zoom;
102
+ openMenu: "canvas" | null;
103
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
81
104
  openSidebar: {
82
- name: string;
83
- tab?: string | undefined;
105
+ name: import("../types").SidebarName;
106
+ tab?: import("../types").SidebarTabName;
84
107
  } | null;
85
- openDialog: {
108
+ openDialog: null | {
86
109
  name: "imageExport" | "help" | "jsonExport";
87
110
  } | {
88
111
  name: "ttd";
89
- tab: "mermaid" | "text-to-diagram";
112
+ tab: "text-to-diagram" | "mermaid";
90
113
  } | {
91
114
  name: "commandPalette";
115
+ } | {
116
+ name: "settings";
92
117
  } | {
93
118
  name: "elementLinkSelector";
94
- sourceElementId: string;
95
- } | null;
119
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
120
+ } | {
121
+ name: "charts";
122
+ data: import("../charts").Spreadsheet;
123
+ rawText: string;
124
+ };
96
125
  defaultSidebarDockedPreference: boolean;
97
126
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
127
  selectedElementIds: Readonly<{
@@ -115,45 +144,18 @@ export declare const actionAddToLibrary: {
115
144
  selectedGroupIds: {
116
145
  [groupId: string]: boolean;
117
146
  };
118
- editingGroupId: string | null;
147
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
119
148
  width: number;
120
149
  height: number;
121
150
  offsetTop: number;
122
151
  offsetLeft: number;
123
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
124
- collaborators: Map<import("../types").SocketId, Readonly<{
125
- pointer?: import("../types").CollaboratorPointer | undefined;
126
- button?: "up" | "down" | undefined;
127
- selectedElementIds?: Readonly<{
128
- [id: string]: true;
129
- }> | undefined;
130
- username?: string | null | undefined;
131
- userState?: import("@excalidraw/common").UserIdleState | undefined;
132
- color?: {
133
- background: string;
134
- stroke: string;
135
- } | undefined;
136
- avatarUrl?: string | undefined;
137
- id?: string | undefined;
138
- socketId?: import("../types").SocketId | undefined;
139
- isCurrentUser?: boolean | undefined;
140
- isInCall?: boolean | undefined;
141
- isSpeaking?: boolean | undefined;
142
- isMuted?: boolean | undefined;
143
- }>>;
152
+ fileHandle: FileSystemFileHandle | null;
153
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
144
154
  stats: {
145
155
  open: boolean;
146
156
  panels: number;
147
157
  };
148
- currentChartType: import("@excalidraw/element/types").ChartType;
149
- pasteDialog: {
150
- shown: false;
151
- data: null;
152
- } | {
153
- shown: true;
154
- data: import("../charts").Spreadsheet;
155
- };
156
- showHyperlinkPopup: false | "editor" | "info";
158
+ showHyperlinkPopup: false | "info" | "editor";
157
159
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
158
160
  snapLines: readonly import("../snapping").SnapLine[];
159
161
  originSnapOffset: {
@@ -161,19 +163,25 @@ export declare const actionAddToLibrary: {
161
163
  y: number;
162
164
  } | null;
163
165
  objectsSnapModeEnabled: boolean;
164
- userToFollow: import("../types").UserToFollow | null;
165
- followedBy: Set<import("../types").SocketId>;
166
166
  isCropping: boolean;
167
- croppingElementId: string | null;
167
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
168
168
  searchMatches: Readonly<{
169
- focusedId: string | null;
169
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
170
170
  matches: readonly import("../types").SearchMatch[];
171
171
  }> | null;
172
172
  activeLockedId: string | null;
173
173
  lockedMultiSelections: {
174
174
  [groupId: string]: true;
175
175
  };
176
- stylesPanelMode: "compact" | "full";
176
+ bindMode: import("@excalidraw/element/types").BindMode;
177
+ colorTopPicks: {
178
+ elementStroke: readonly string[] | null;
179
+ elementBackground: readonly string[] | null;
180
+ bucketFill: readonly string[] | null;
181
+ stickyNoteStroke: readonly string[] | null;
182
+ stickyNoteBackground: readonly string[] | null;
183
+ };
184
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
177
185
  };
178
186
  } | {
179
187
  captureUpdate: "EVENTUALLY";
@@ -188,15 +196,33 @@ export declare const actionAddToLibrary: {
188
196
  isLoading: boolean;
189
197
  activeEmbeddable: {
190
198
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
191
- state: "active" | "hover";
199
+ state: "hover" | "active";
192
200
  } | null;
193
201
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
194
202
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
195
203
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
196
204
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
197
205
  isBindingEnabled: boolean;
198
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
199
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
206
+ boxSelectionMode: import("../types").BoxSelectionMode;
207
+ bindingPreference: "enabled" | "disabled";
208
+ isMidpointSnappingEnabled: boolean;
209
+ showHints: boolean;
210
+ inputDevice: import("../types").InputDevice;
211
+ suggestedBinding: {
212
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
213
+ midPoint?: import("@excalidraw/math").GlobalPoint;
214
+ } | null;
215
+ textToolHover: {
216
+ type: "text";
217
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
218
+ } | {
219
+ type: "container";
220
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
221
+ } | {
222
+ type: "arrow";
223
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
224
+ anchor: "start" | "end" | "label";
225
+ } | null;
200
226
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
201
227
  frameRendering: {
202
228
  enabled: boolean;
@@ -204,14 +230,18 @@ export declare const actionAddToLibrary: {
204
230
  outline: boolean;
205
231
  clip: boolean;
206
232
  };
207
- editingFrame: string | null;
208
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
209
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
233
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
234
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
235
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
210
236
  activeTool: {
211
237
  lastActiveTool: import("../types").ActiveTool | null;
212
238
  locked: boolean;
213
239
  fromSelection: boolean;
214
240
  } & import("../types").ActiveTool;
241
+ preferredSelectionTool: {
242
+ type: "selection" | "lasso";
243
+ initialized: boolean;
244
+ };
215
245
  penMode: boolean;
216
246
  penDetected: boolean;
217
247
  exportBackground: boolean;
@@ -219,48 +249,56 @@ export declare const actionAddToLibrary: {
219
249
  exportWithDarkMode: boolean;
220
250
  exportScale: number;
221
251
  currentItemStrokeColor: string;
252
+ currentItemStickynoteStrokeColor: string;
253
+ currentItemStickynoteBackgroundColor: string;
222
254
  currentItemBackgroundColor: string;
223
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
224
- currentItemStrokeWidth: number;
225
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
255
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
256
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
257
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
226
258
  currentItemRoughness: number;
259
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
227
260
  currentItemOpacity: number;
228
- currentItemFontFamily: number;
261
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
229
262
  currentItemFontSize: number;
230
- currentItemTextAlign: string;
263
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
231
264
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
232
265
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
233
- currentHoveredFontFamily: number | null;
266
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
234
267
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
235
- currentItemArrowType: "round" | "sharp" | "elbow";
268
+ currentItemArrowType: "sharp" | "round" | "elbow";
236
269
  viewBackgroundColor: string;
237
270
  scrollX: number;
238
271
  scrollY: number;
272
+ scrollConstraints: import("../types").ScrollConstraints | null;
239
273
  cursorButton: "up" | "down";
240
274
  scrolledOutside: boolean;
241
275
  name: string | null;
242
276
  isResizing: boolean;
243
277
  isRotating: boolean;
244
- zoom: Readonly<{
245
- value: import("../types").NormalizedZoomValue;
246
- }>;
247
- openMenu: "canvas" | "shape" | null;
248
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
278
+ zoom: import("../types").Zoom;
279
+ openMenu: "canvas" | null;
280
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
249
281
  openSidebar: {
250
- name: string;
251
- tab?: string | undefined;
282
+ name: import("../types").SidebarName;
283
+ tab?: import("../types").SidebarTabName;
252
284
  } | null;
253
- openDialog: {
285
+ openDialog: null | {
254
286
  name: "imageExport" | "help" | "jsonExport";
255
287
  } | {
256
288
  name: "ttd";
257
- tab: "mermaid" | "text-to-diagram";
289
+ tab: "text-to-diagram" | "mermaid";
258
290
  } | {
259
291
  name: "commandPalette";
292
+ } | {
293
+ name: "settings";
260
294
  } | {
261
295
  name: "elementLinkSelector";
262
- sourceElementId: string;
263
- } | null;
296
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
297
+ } | {
298
+ name: "charts";
299
+ data: import("../charts").Spreadsheet;
300
+ rawText: string;
301
+ };
264
302
  defaultSidebarDockedPreference: boolean;
265
303
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
266
304
  selectedElementIds: Readonly<{
@@ -275,9 +313,9 @@ export declare const actionAddToLibrary: {
275
313
  selectedElementsAreBeingDragged: boolean;
276
314
  shouldCacheIgnoreZoom: boolean;
277
315
  toast: {
278
- message: string;
279
- closable?: boolean | undefined;
280
- duration?: number | undefined;
316
+ message: React.ReactNode;
317
+ closable?: boolean;
318
+ duration?: number;
281
319
  } | null;
282
320
  zenModeEnabled: boolean;
283
321
  theme: import("@excalidraw/element/types").Theme;
@@ -288,45 +326,18 @@ export declare const actionAddToLibrary: {
288
326
  selectedGroupIds: {
289
327
  [groupId: string]: boolean;
290
328
  };
291
- editingGroupId: string | null;
329
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
292
330
  width: number;
293
331
  height: number;
294
332
  offsetTop: number;
295
333
  offsetLeft: number;
296
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
297
- collaborators: Map<import("../types").SocketId, Readonly<{
298
- pointer?: import("../types").CollaboratorPointer | undefined;
299
- button?: "up" | "down" | undefined;
300
- selectedElementIds?: Readonly<{
301
- [id: string]: true;
302
- }> | undefined;
303
- username?: string | null | undefined;
304
- userState?: import("@excalidraw/common").UserIdleState | undefined;
305
- color?: {
306
- background: string;
307
- stroke: string;
308
- } | undefined;
309
- avatarUrl?: string | undefined;
310
- id?: string | undefined;
311
- socketId?: import("../types").SocketId | undefined;
312
- isCurrentUser?: boolean | undefined;
313
- isInCall?: boolean | undefined;
314
- isSpeaking?: boolean | undefined;
315
- isMuted?: boolean | undefined;
316
- }>>;
334
+ fileHandle: FileSystemFileHandle | null;
335
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
317
336
  stats: {
318
337
  open: boolean;
319
338
  panels: number;
320
339
  };
321
- currentChartType: import("@excalidraw/element/types").ChartType;
322
- pasteDialog: {
323
- shown: false;
324
- data: null;
325
- } | {
326
- shown: true;
327
- data: import("../charts").Spreadsheet;
328
- };
329
- showHyperlinkPopup: false | "editor" | "info";
340
+ showHyperlinkPopup: false | "info" | "editor";
330
341
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
331
342
  snapLines: readonly import("../snapping").SnapLine[];
332
343
  originSnapOffset: {
@@ -334,19 +345,25 @@ export declare const actionAddToLibrary: {
334
345
  y: number;
335
346
  } | null;
336
347
  objectsSnapModeEnabled: boolean;
337
- userToFollow: import("../types").UserToFollow | null;
338
- followedBy: Set<import("../types").SocketId>;
339
348
  isCropping: boolean;
340
- croppingElementId: string | null;
349
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
341
350
  searchMatches: Readonly<{
342
- focusedId: string | null;
351
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
343
352
  matches: readonly import("../types").SearchMatch[];
344
353
  }> | null;
345
354
  activeLockedId: string | null;
346
355
  lockedMultiSelections: {
347
356
  [groupId: string]: true;
348
357
  };
349
- stylesPanelMode: "compact" | "full";
358
+ bindMode: import("@excalidraw/element/types").BindMode;
359
+ colorTopPicks: {
360
+ elementStroke: readonly string[] | null;
361
+ elementBackground: readonly string[] | null;
362
+ bucketFill: readonly string[] | null;
363
+ stickyNoteStroke: readonly string[] | null;
364
+ stickyNoteBackground: readonly string[] | null;
365
+ };
366
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
350
367
  };
351
368
  }> | {
352
369
  captureUpdate: "EVENTUALLY";
@@ -361,15 +378,33 @@ export declare const actionAddToLibrary: {
361
378
  isLoading: boolean;
362
379
  activeEmbeddable: {
363
380
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
364
- state: "active" | "hover";
381
+ state: "hover" | "active";
365
382
  } | null;
366
383
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
367
384
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
368
385
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
369
386
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
370
387
  isBindingEnabled: boolean;
371
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
372
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
388
+ boxSelectionMode: import("../types").BoxSelectionMode;
389
+ bindingPreference: "enabled" | "disabled";
390
+ isMidpointSnappingEnabled: boolean;
391
+ showHints: boolean;
392
+ inputDevice: import("../types").InputDevice;
393
+ suggestedBinding: {
394
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
395
+ midPoint?: import("@excalidraw/math").GlobalPoint;
396
+ } | null;
397
+ textToolHover: {
398
+ type: "text";
399
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
400
+ } | {
401
+ type: "container";
402
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
403
+ } | {
404
+ type: "arrow";
405
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
406
+ anchor: "start" | "end" | "label";
407
+ } | null;
373
408
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
374
409
  frameRendering: {
375
410
  enabled: boolean;
@@ -377,14 +412,18 @@ export declare const actionAddToLibrary: {
377
412
  outline: boolean;
378
413
  clip: boolean;
379
414
  };
380
- editingFrame: string | null;
381
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
382
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
415
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
416
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
417
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
383
418
  activeTool: {
384
419
  lastActiveTool: import("../types").ActiveTool | null;
385
420
  locked: boolean;
386
421
  fromSelection: boolean;
387
422
  } & import("../types").ActiveTool;
423
+ preferredSelectionTool: {
424
+ type: "selection" | "lasso";
425
+ initialized: boolean;
426
+ };
388
427
  penMode: boolean;
389
428
  penDetected: boolean;
390
429
  exportBackground: boolean;
@@ -392,48 +431,56 @@ export declare const actionAddToLibrary: {
392
431
  exportWithDarkMode: boolean;
393
432
  exportScale: number;
394
433
  currentItemStrokeColor: string;
434
+ currentItemStickynoteStrokeColor: string;
435
+ currentItemStickynoteBackgroundColor: string;
395
436
  currentItemBackgroundColor: string;
396
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
397
- currentItemStrokeWidth: number;
398
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
437
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
438
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
439
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
399
440
  currentItemRoughness: number;
441
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
400
442
  currentItemOpacity: number;
401
- currentItemFontFamily: number;
443
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
402
444
  currentItemFontSize: number;
403
- currentItemTextAlign: string;
445
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
404
446
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
405
447
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
406
- currentHoveredFontFamily: number | null;
448
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
407
449
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
408
- currentItemArrowType: "round" | "sharp" | "elbow";
450
+ currentItemArrowType: "sharp" | "round" | "elbow";
409
451
  viewBackgroundColor: string;
410
452
  scrollX: number;
411
453
  scrollY: number;
454
+ scrollConstraints: import("../types").ScrollConstraints | null;
412
455
  cursorButton: "up" | "down";
413
456
  scrolledOutside: boolean;
414
457
  name: string | null;
415
458
  isResizing: boolean;
416
459
  isRotating: boolean;
417
- zoom: Readonly<{
418
- value: import("../types").NormalizedZoomValue;
419
- }>;
420
- openMenu: "canvas" | "shape" | null;
421
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
460
+ zoom: import("../types").Zoom;
461
+ openMenu: "canvas" | null;
462
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
422
463
  openSidebar: {
423
- name: string;
424
- tab?: string | undefined;
464
+ name: import("../types").SidebarName;
465
+ tab?: import("../types").SidebarTabName;
425
466
  } | null;
426
- openDialog: {
467
+ openDialog: null | {
427
468
  name: "imageExport" | "help" | "jsonExport";
428
469
  } | {
429
470
  name: "ttd";
430
- tab: "mermaid" | "text-to-diagram";
471
+ tab: "text-to-diagram" | "mermaid";
431
472
  } | {
432
473
  name: "commandPalette";
474
+ } | {
475
+ name: "settings";
433
476
  } | {
434
477
  name: "elementLinkSelector";
435
- sourceElementId: string;
436
- } | null;
478
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
479
+ } | {
480
+ name: "charts";
481
+ data: import("../charts").Spreadsheet;
482
+ rawText: string;
483
+ };
437
484
  defaultSidebarDockedPreference: boolean;
438
485
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
439
486
  selectedElementIds: Readonly<{
@@ -448,9 +495,9 @@ export declare const actionAddToLibrary: {
448
495
  selectedElementsAreBeingDragged: boolean;
449
496
  shouldCacheIgnoreZoom: boolean;
450
497
  toast: {
451
- message: string;
452
- closable?: boolean | undefined;
453
- duration?: number | undefined;
498
+ message: React.ReactNode;
499
+ closable?: boolean;
500
+ duration?: number;
454
501
  } | null;
455
502
  zenModeEnabled: boolean;
456
503
  theme: import("@excalidraw/element/types").Theme;
@@ -461,45 +508,18 @@ export declare const actionAddToLibrary: {
461
508
  selectedGroupIds: {
462
509
  [groupId: string]: boolean;
463
510
  };
464
- editingGroupId: string | null;
511
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
465
512
  width: number;
466
513
  height: number;
467
514
  offsetTop: number;
468
515
  offsetLeft: number;
469
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
470
- collaborators: Map<import("../types").SocketId, Readonly<{
471
- pointer?: import("../types").CollaboratorPointer | undefined;
472
- button?: "up" | "down" | undefined;
473
- selectedElementIds?: Readonly<{
474
- [id: string]: true;
475
- }> | undefined;
476
- username?: string | null | undefined;
477
- userState?: import("@excalidraw/common").UserIdleState | undefined;
478
- color?: {
479
- background: string;
480
- stroke: string;
481
- } | undefined;
482
- avatarUrl?: string | undefined;
483
- id?: string | undefined;
484
- socketId?: import("../types").SocketId | undefined;
485
- isCurrentUser?: boolean | undefined;
486
- isInCall?: boolean | undefined;
487
- isSpeaking?: boolean | undefined;
488
- isMuted?: boolean | undefined;
489
- }>>;
516
+ fileHandle: FileSystemFileHandle | null;
517
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
490
518
  stats: {
491
519
  open: boolean;
492
520
  panels: number;
493
521
  };
494
- currentChartType: import("@excalidraw/element/types").ChartType;
495
- pasteDialog: {
496
- shown: false;
497
- data: null;
498
- } | {
499
- shown: true;
500
- data: import("../charts").Spreadsheet;
501
- };
502
- showHyperlinkPopup: false | "editor" | "info";
522
+ showHyperlinkPopup: false | "info" | "editor";
503
523
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
504
524
  snapLines: readonly import("../snapping").SnapLine[];
505
525
  originSnapOffset: {
@@ -507,19 +527,25 @@ export declare const actionAddToLibrary: {
507
527
  y: number;
508
528
  } | null;
509
529
  objectsSnapModeEnabled: boolean;
510
- userToFollow: import("../types").UserToFollow | null;
511
- followedBy: Set<import("../types").SocketId>;
512
530
  isCropping: boolean;
513
- croppingElementId: string | null;
531
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
514
532
  searchMatches: Readonly<{
515
- focusedId: string | null;
533
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
516
534
  matches: readonly import("../types").SearchMatch[];
517
535
  }> | null;
518
536
  activeLockedId: string | null;
519
537
  lockedMultiSelections: {
520
538
  [groupId: string]: true;
521
539
  };
522
- stylesPanelMode: "compact" | "full";
540
+ bindMode: import("@excalidraw/element/types").BindMode;
541
+ colorTopPicks: {
542
+ elementStroke: readonly string[] | null;
543
+ elementBackground: readonly string[] | null;
544
+ bucketFill: readonly string[] | null;
545
+ stickyNoteStroke: readonly string[] | null;
546
+ stickyNoteBackground: readonly string[] | null;
547
+ };
548
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
523
549
  };
524
550
  };
525
551
  label: string;