@excalidraw/element 0.18.0-4e471c107 → 0.18.0-4f68076

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