@excalidraw/math 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 +363 -163
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +81 -39
  8. package/dist/types/common/src/constants.d.ts +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/zindex.d.ts +7 -1
  66. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +248 -222
  67. package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
  68. package/dist/types/excalidraw/actions/actionBoundText.d.ts +150 -133
  69. package/dist/types/excalidraw/actions/actionCanvas.d.ts +543 -1575
  70. package/dist/types/excalidraw/actions/actionClipboard.d.ts +177 -904
  71. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +73 -65
  72. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +237 -214
  73. package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
  74. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -6
  75. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  76. package/dist/types/excalidraw/actions/actionElementLink.d.ts +80 -78
  77. package/dist/types/excalidraw/actions/actionElementLock.d.ts +149 -132
  78. package/dist/types/excalidraw/actions/actionExport.d.ts +228 -1423
  79. package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -395
  80. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  81. package/dist/types/excalidraw/actions/actionFrame.d.ts +359 -507
  82. package/dist/types/excalidraw/actions/actionGroup.d.ts +160 -151
  83. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +244 -191
  84. package/dist/types/excalidraw/actions/actionLink.d.ts +86 -78
  85. package/dist/types/excalidraw/actions/actionMenu.d.ts +75 -441
  86. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  87. package/dist/types/excalidraw/actions/actionProperties.d.ts +238 -2548
  88. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +80 -76
  89. package/dist/types/excalidraw/actions/actionStyles.d.ts +74 -65
  90. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  91. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +195 -0
  92. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +88 -81
  93. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
  94. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +87 -79
  95. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +76 -75
  96. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  97. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +197 -0
  98. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +86 -78
  99. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +87 -79
  100. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +87 -79
  101. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  102. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  103. package/dist/types/excalidraw/actions/index.d.ts +6 -3
  104. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  105. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  106. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  107. package/dist/types/excalidraw/actions/types.d.ts +11 -7
  108. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  109. package/dist/types/excalidraw/appState.d.ts +57 -26
  110. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  111. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  112. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  113. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  114. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  115. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  116. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  117. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  118. package/dist/types/excalidraw/clipboard.d.ts +57 -19
  119. package/dist/types/excalidraw/components/Actions.d.ts +32 -14
  120. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  121. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  122. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  123. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  124. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  125. package/dist/types/excalidraw/components/App.d.ts +404 -155
  126. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  127. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  128. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  129. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  130. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  131. package/dist/types/excalidraw/components/App.selectionTool.d.ts +57 -0
  132. package/dist/types/excalidraw/components/App.text.d.ts +146 -0
  133. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  134. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  135. package/dist/types/excalidraw/components/App.viewport.d.ts +113 -0
  136. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  137. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  138. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  139. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  140. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -4
  141. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  142. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +7 -1
  143. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -2
  144. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +5 -2
  145. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  146. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -2
  147. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  148. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  149. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  150. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  151. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  152. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -4
  153. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  154. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  155. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  156. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  157. package/dist/types/excalidraw/components/Ellipsify.d.ts +3 -0
  158. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  159. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -2
  160. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  161. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  162. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +5 -1
  163. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  164. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  165. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  166. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  167. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  168. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  169. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  170. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  171. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  172. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  173. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  174. package/dist/types/excalidraw/components/LayerUI.d.ts +6 -2
  175. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  176. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  177. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  178. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +7 -3
  179. package/dist/types/excalidraw/components/LibraryUnit.d.ts +9 -5
  180. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  181. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  182. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  183. package/dist/types/excalidraw/components/MobileMenu.d.ts +5 -7
  184. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  185. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  186. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  187. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  188. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  189. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  190. package/dist/types/excalidraw/components/Popover.d.ts +2 -3
  191. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  192. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  193. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  194. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  195. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  196. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  197. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  198. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  199. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +16 -22
  200. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  201. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  202. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  203. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  204. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  205. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  206. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  207. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  208. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  209. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  210. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -3
  211. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  212. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  213. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  214. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  215. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  216. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  217. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  218. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  219. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  220. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  221. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  222. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  223. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  224. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  225. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  226. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  227. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  228. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  229. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  230. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  231. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  232. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  233. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  234. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  235. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  236. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  237. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  238. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  239. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  240. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  241. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  242. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  243. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  244. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  245. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  246. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  247. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  248. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  249. package/dist/types/excalidraw/components/ToolPopover.d.ts +22 -0
  250. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  251. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  252. package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
  253. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  254. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  255. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  256. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  257. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  258. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  259. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +10 -4
  260. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  261. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  262. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  263. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  264. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  265. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  266. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  267. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  268. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  269. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  270. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  271. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  272. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  273. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  274. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  275. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  276. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  277. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  278. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  279. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
  280. package/dist/types/excalidraw/components/icons.d.ts +56 -22
  281. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +26 -3
  282. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  283. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  284. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  285. package/dist/types/excalidraw/data/blob.d.ts +373 -12
  286. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  287. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  288. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  289. package/dist/types/excalidraw/data/index.d.ts +8 -9
  290. package/dist/types/excalidraw/data/json.d.ts +192 -3
  291. package/dist/types/excalidraw/data/library.d.ts +25 -10
  292. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  293. package/dist/types/excalidraw/data/restore.d.ts +27 -7
  294. package/dist/types/excalidraw/data/types.d.ts +4 -1
  295. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  296. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  297. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  298. package/dist/types/excalidraw/errors.d.ts +14 -0
  299. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
  300. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  301. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +2 -2
  302. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  303. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  304. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  305. package/dist/types/excalidraw/i18n.d.ts +2 -2
  306. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  307. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  308. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  309. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  310. package/dist/types/excalidraw/renderer/animation.d.ts +16 -0
  311. package/dist/types/excalidraw/renderer/helpers.d.ts +31 -8
  312. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +7 -15
  313. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  314. package/dist/types/excalidraw/scene/Renderer.d.ts +491 -19
  315. package/dist/types/excalidraw/scene/export.d.ts +4 -4
  316. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  317. package/dist/types/excalidraw/scene/types.d.ts +28 -8
  318. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  319. package/dist/types/excalidraw/snapping.d.ts +12 -12
  320. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  321. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  322. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  323. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  324. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  325. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  326. package/dist/types/excalidraw/types.d.ts +658 -64
  327. package/dist/types/excalidraw/viewport.d.ts +302 -0
  328. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +19 -5
  329. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  330. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  331. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  332. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  333. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  334. package/dist/types/math/src/constants.d.ts +0 -1
  335. package/dist/types/math/src/curve.d.ts +23 -13
  336. package/dist/types/math/src/index.d.ts +1 -0
  337. package/dist/types/math/src/pca.d.ts +79 -0
  338. package/dist/types/math/src/point.d.ts +8 -2
  339. package/dist/types/math/src/polygon.d.ts +26 -2
  340. package/dist/types/math/src/range.d.ts +1 -3
  341. package/dist/types/math/src/segment.d.ts +10 -3
  342. package/dist/types/math/src/types.d.ts +25 -1
  343. package/dist/types/utils/src/export.d.ts +9 -8
  344. package/dist/types/utils/src/index.d.ts +1 -2
  345. package/dist/types/utils/src/shape.d.ts +8 -8
  346. package/package.json +2 -2
  347. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -186
  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,1102 +1,71 @@
1
- /// <reference types="react" />
2
- import type { Theme } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement, Theme } from "@excalidraw/element/types";
3
2
  import "../components/ToolIcon.scss";
4
- export declare const actionChangeProjectName: {
5
- name: "changeProjectName";
6
- label: string;
7
- trackEvent: false;
8
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
9
- appState: {
10
- name: any;
11
- contextMenu: {
12
- items: import("../components/ContextMenu").ContextMenuItems;
13
- top: number;
14
- left: number;
15
- } | null;
16
- showWelcomeScreen: boolean;
17
- isLoading: boolean;
18
- errorMessage: import("react").ReactNode;
19
- activeEmbeddable: {
20
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
- frameRendering: {
32
- enabled: boolean;
33
- name: boolean;
34
- outline: boolean;
35
- clip: boolean;
36
- };
37
- editingFrame: string | null;
38
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
- activeTool: {
42
- lastActiveTool: import("../types").ActiveTool | null;
43
- locked: boolean;
44
- fromSelection: boolean;
45
- } & import("../types").ActiveTool;
46
- penMode: boolean;
47
- penDetected: boolean;
48
- exportBackground: boolean;
49
- exportEmbedScene: boolean;
50
- exportWithDarkMode: boolean;
51
- exportScale: number;
52
- currentItemStrokeColor: string;
53
- currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
- currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
- currentItemRoughness: number;
58
- currentItemOpacity: number;
59
- currentItemFontFamily: number;
60
- currentItemFontSize: number;
61
- currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
- currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
- currentItemArrowType: "round" | "sharp" | "elbow";
67
- viewBackgroundColor: string;
68
- scrollX: number;
69
- scrollY: number;
70
- cursorButton: "up" | "down";
71
- scrolledOutside: boolean;
72
- isResizing: boolean;
73
- isRotating: boolean;
74
- zoom: Readonly<{
75
- value: import("../types").NormalizedZoomValue;
76
- }>;
77
- openMenu: "canvas" | "shape" | null;
78
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
79
- openSidebar: {
80
- name: string;
81
- tab?: string | undefined;
82
- } | null;
83
- openDialog: {
84
- name: "imageExport" | "help" | "jsonExport";
85
- } | {
86
- name: "ttd";
87
- tab: "mermaid" | "text-to-diagram";
88
- } | {
89
- name: "commandPalette";
90
- } | {
91
- name: "elementLinkSelector";
92
- sourceElementId: string;
93
- } | null;
94
- defaultSidebarDockedPreference: boolean;
95
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
96
- selectedElementIds: Readonly<{
97
- [id: string]: true;
98
- }>;
99
- hoveredElementIds: Readonly<{
100
- [id: string]: true;
101
- }>;
102
- previousSelectedElementIds: {
103
- [id: string]: true;
104
- };
105
- selectedElementsAreBeingDragged: boolean;
106
- shouldCacheIgnoreZoom: boolean;
107
- toast: {
108
- message: string;
109
- closable?: boolean | undefined;
110
- duration?: number | undefined;
111
- } | null;
112
- zenModeEnabled: boolean;
113
- theme: Theme;
114
- gridSize: number;
115
- gridStep: number;
116
- gridModeEnabled: boolean;
117
- viewModeEnabled: boolean;
118
- selectedGroupIds: {
119
- [groupId: string]: boolean;
120
- };
121
- editingGroupId: string | null;
122
- width: number;
123
- height: number;
124
- offsetTop: number;
125
- offsetLeft: number;
126
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
127
- collaborators: Map<import("../types").SocketId, Readonly<{
128
- pointer?: import("../types").CollaboratorPointer | undefined;
129
- button?: "up" | "down" | undefined;
130
- selectedElementIds?: Readonly<{
131
- [id: string]: true;
132
- }> | undefined;
133
- username?: string | null | undefined;
134
- userState?: import("@excalidraw/common").UserIdleState | undefined;
135
- color?: {
136
- background: string;
137
- stroke: string;
138
- } | undefined;
139
- avatarUrl?: string | undefined;
140
- id?: string | undefined;
141
- socketId?: import("../types").SocketId | undefined;
142
- isCurrentUser?: boolean | undefined;
143
- isInCall?: boolean | undefined;
144
- isSpeaking?: boolean | undefined;
145
- isMuted?: boolean | undefined;
146
- }>>;
147
- stats: {
148
- open: boolean;
149
- panels: number;
150
- };
151
- currentChartType: import("@excalidraw/element/types").ChartType;
152
- pasteDialog: {
153
- shown: false;
154
- data: null;
155
- } | {
156
- shown: true;
157
- data: import("../charts").Spreadsheet;
158
- };
159
- showHyperlinkPopup: false | "editor" | "info";
160
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
- snapLines: readonly import("../snapping").SnapLine[];
162
- originSnapOffset: {
163
- x: number;
164
- y: number;
165
- } | null;
166
- objectsSnapModeEnabled: boolean;
167
- userToFollow: import("../types").UserToFollow | null;
168
- followedBy: Set<import("../types").SocketId>;
169
- isCropping: boolean;
170
- croppingElementId: string | null;
171
- searchMatches: Readonly<{
172
- focusedId: string | null;
173
- matches: readonly import("../types").SearchMatch[];
174
- }> | null;
175
- activeLockedId: string | null;
176
- lockedMultiSelections: {
177
- [groupId: string]: true;
178
- };
179
- };
180
- captureUpdate: "EVENTUALLY";
181
- };
182
- PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
183
- } & {
184
- keyTest?: undefined;
185
- };
186
- export declare const actionChangeExportScale: {
187
- name: "changeExportScale";
188
- label: string;
189
- trackEvent: {
190
- category: "export";
191
- action: string;
192
- };
193
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
194
- appState: {
195
- exportScale: any;
196
- contextMenu: {
197
- items: import("../components/ContextMenu").ContextMenuItems;
198
- top: number;
199
- left: number;
200
- } | null;
201
- showWelcomeScreen: boolean;
202
- isLoading: boolean;
203
- errorMessage: import("react").ReactNode;
204
- activeEmbeddable: {
205
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
206
- state: "active" | "hover";
207
- } | null;
208
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
209
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
210
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
211
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
212
- isBindingEnabled: boolean;
213
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
214
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
215
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
216
- frameRendering: {
217
- enabled: boolean;
218
- name: boolean;
219
- outline: boolean;
220
- clip: boolean;
221
- };
222
- editingFrame: string | null;
223
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
224
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
226
- activeTool: {
227
- lastActiveTool: import("../types").ActiveTool | null;
228
- locked: boolean;
229
- fromSelection: boolean;
230
- } & import("../types").ActiveTool;
231
- penMode: boolean;
232
- penDetected: boolean;
233
- exportBackground: boolean;
234
- exportEmbedScene: boolean;
235
- exportWithDarkMode: boolean;
236
- currentItemStrokeColor: string;
237
- currentItemBackgroundColor: string;
238
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
239
- currentItemStrokeWidth: number;
240
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
241
- currentItemRoughness: number;
242
- currentItemOpacity: number;
243
- currentItemFontFamily: number;
244
- currentItemFontSize: number;
245
- currentItemTextAlign: string;
246
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
247
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
248
- currentHoveredFontFamily: number | null;
249
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
250
- currentItemArrowType: "round" | "sharp" | "elbow";
251
- viewBackgroundColor: string;
252
- scrollX: number;
253
- scrollY: number;
254
- cursorButton: "up" | "down";
255
- scrolledOutside: boolean;
256
- name: string | null;
257
- isResizing: boolean;
258
- isRotating: boolean;
259
- zoom: Readonly<{
260
- value: import("../types").NormalizedZoomValue;
261
- }>;
262
- openMenu: "canvas" | "shape" | null;
263
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
264
- openSidebar: {
265
- name: string;
266
- tab?: string | undefined;
267
- } | null;
268
- openDialog: {
269
- name: "imageExport" | "help" | "jsonExport";
270
- } | {
271
- name: "ttd";
272
- tab: "mermaid" | "text-to-diagram";
273
- } | {
274
- name: "commandPalette";
275
- } | {
276
- name: "elementLinkSelector";
277
- sourceElementId: string;
278
- } | null;
279
- defaultSidebarDockedPreference: boolean;
280
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
281
- selectedElementIds: Readonly<{
282
- [id: string]: true;
283
- }>;
284
- hoveredElementIds: Readonly<{
285
- [id: string]: true;
286
- }>;
287
- previousSelectedElementIds: {
288
- [id: string]: true;
289
- };
290
- selectedElementsAreBeingDragged: boolean;
291
- shouldCacheIgnoreZoom: boolean;
292
- toast: {
293
- message: string;
294
- closable?: boolean | undefined;
295
- duration?: number | undefined;
296
- } | null;
297
- zenModeEnabled: boolean;
298
- theme: Theme;
299
- gridSize: number;
300
- gridStep: number;
301
- gridModeEnabled: boolean;
302
- viewModeEnabled: boolean;
303
- selectedGroupIds: {
304
- [groupId: string]: boolean;
305
- };
306
- editingGroupId: string | null;
307
- width: number;
308
- height: number;
309
- offsetTop: number;
310
- offsetLeft: number;
311
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
312
- collaborators: Map<import("../types").SocketId, Readonly<{
313
- pointer?: import("../types").CollaboratorPointer | undefined;
314
- button?: "up" | "down" | undefined;
315
- selectedElementIds?: Readonly<{
316
- [id: string]: true;
317
- }> | undefined;
318
- username?: string | null | undefined;
319
- userState?: import("@excalidraw/common").UserIdleState | undefined;
320
- color?: {
321
- background: string;
322
- stroke: string;
323
- } | undefined;
324
- avatarUrl?: string | undefined;
325
- id?: string | undefined;
326
- socketId?: import("../types").SocketId | undefined;
327
- isCurrentUser?: boolean | undefined;
328
- isInCall?: boolean | undefined;
329
- isSpeaking?: boolean | undefined;
330
- isMuted?: boolean | undefined;
331
- }>>;
332
- stats: {
333
- open: boolean;
334
- panels: number;
335
- };
336
- currentChartType: import("@excalidraw/element/types").ChartType;
337
- pasteDialog: {
338
- shown: false;
339
- data: null;
340
- } | {
341
- shown: true;
342
- data: import("../charts").Spreadsheet;
343
- };
344
- showHyperlinkPopup: false | "editor" | "info";
345
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
346
- snapLines: readonly import("../snapping").SnapLine[];
347
- originSnapOffset: {
348
- x: number;
349
- y: number;
350
- } | null;
351
- objectsSnapModeEnabled: boolean;
352
- userToFollow: import("../types").UserToFollow | null;
353
- followedBy: Set<import("../types").SocketId>;
354
- isCropping: boolean;
355
- croppingElementId: string | null;
356
- searchMatches: Readonly<{
357
- focusedId: string | null;
358
- matches: readonly import("../types").SearchMatch[];
359
- }> | null;
360
- activeLockedId: string | null;
361
- lockedMultiSelections: {
362
- [groupId: string]: true;
363
- };
364
- };
365
- captureUpdate: "EVENTUALLY";
366
- };
367
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
368
- } & {
369
- keyTest?: undefined;
370
- };
371
- export declare const actionChangeExportBackground: {
372
- name: "changeExportBackground";
373
- label: string;
374
- trackEvent: {
375
- category: "export";
376
- action: string;
377
- };
378
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
379
- appState: {
380
- exportBackground: any;
381
- contextMenu: {
382
- items: import("../components/ContextMenu").ContextMenuItems;
383
- top: number;
384
- left: number;
385
- } | null;
386
- showWelcomeScreen: boolean;
387
- isLoading: boolean;
388
- errorMessage: import("react").ReactNode;
389
- activeEmbeddable: {
390
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
391
- state: "active" | "hover";
392
- } | null;
393
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
394
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
395
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
396
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
397
- isBindingEnabled: boolean;
398
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
399
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
400
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
401
- frameRendering: {
402
- enabled: boolean;
403
- name: boolean;
404
- outline: boolean;
405
- clip: boolean;
406
- };
407
- editingFrame: string | null;
408
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
409
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
411
- activeTool: {
412
- lastActiveTool: import("../types").ActiveTool | null;
413
- locked: boolean;
414
- fromSelection: boolean;
415
- } & import("../types").ActiveTool;
416
- penMode: boolean;
417
- penDetected: boolean;
418
- exportEmbedScene: boolean;
419
- exportWithDarkMode: boolean;
420
- exportScale: number;
421
- currentItemStrokeColor: string;
422
- currentItemBackgroundColor: string;
423
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
424
- currentItemStrokeWidth: number;
425
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
426
- currentItemRoughness: number;
427
- currentItemOpacity: number;
428
- currentItemFontFamily: number;
429
- currentItemFontSize: number;
430
- currentItemTextAlign: string;
431
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
432
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
433
- currentHoveredFontFamily: number | null;
434
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
435
- currentItemArrowType: "round" | "sharp" | "elbow";
436
- viewBackgroundColor: string;
437
- scrollX: number;
438
- scrollY: number;
439
- cursorButton: "up" | "down";
440
- scrolledOutside: boolean;
441
- name: string | null;
442
- isResizing: boolean;
443
- isRotating: boolean;
444
- zoom: Readonly<{
445
- value: import("../types").NormalizedZoomValue;
446
- }>;
447
- openMenu: "canvas" | "shape" | null;
448
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
449
- openSidebar: {
450
- name: string;
451
- tab?: string | undefined;
452
- } | null;
453
- openDialog: {
454
- name: "imageExport" | "help" | "jsonExport";
455
- } | {
456
- name: "ttd";
457
- tab: "mermaid" | "text-to-diagram";
458
- } | {
459
- name: "commandPalette";
460
- } | {
461
- name: "elementLinkSelector";
462
- sourceElementId: string;
463
- } | null;
464
- defaultSidebarDockedPreference: boolean;
465
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
466
- selectedElementIds: Readonly<{
467
- [id: string]: true;
468
- }>;
469
- hoveredElementIds: Readonly<{
470
- [id: string]: true;
471
- }>;
472
- previousSelectedElementIds: {
473
- [id: string]: true;
474
- };
475
- selectedElementsAreBeingDragged: boolean;
476
- shouldCacheIgnoreZoom: boolean;
477
- toast: {
478
- message: string;
479
- closable?: boolean | undefined;
480
- duration?: number | undefined;
481
- } | null;
482
- zenModeEnabled: boolean;
483
- theme: Theme;
484
- gridSize: number;
485
- gridStep: number;
486
- gridModeEnabled: boolean;
487
- viewModeEnabled: boolean;
488
- selectedGroupIds: {
489
- [groupId: string]: boolean;
490
- };
491
- editingGroupId: string | null;
492
- width: number;
493
- height: number;
494
- offsetTop: number;
495
- offsetLeft: number;
496
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
497
- collaborators: Map<import("../types").SocketId, Readonly<{
498
- pointer?: import("../types").CollaboratorPointer | undefined;
499
- button?: "up" | "down" | undefined;
500
- selectedElementIds?: Readonly<{
501
- [id: string]: true;
502
- }> | undefined;
503
- username?: string | null | undefined;
504
- userState?: import("@excalidraw/common").UserIdleState | undefined;
505
- color?: {
506
- background: string;
507
- stroke: string;
508
- } | undefined;
509
- avatarUrl?: string | undefined;
510
- id?: string | undefined;
511
- socketId?: import("../types").SocketId | undefined;
512
- isCurrentUser?: boolean | undefined;
513
- isInCall?: boolean | undefined;
514
- isSpeaking?: boolean | undefined;
515
- isMuted?: boolean | undefined;
516
- }>>;
517
- stats: {
518
- open: boolean;
519
- panels: number;
520
- };
521
- currentChartType: import("@excalidraw/element/types").ChartType;
522
- pasteDialog: {
523
- shown: false;
524
- data: null;
525
- } | {
526
- shown: true;
527
- data: import("../charts").Spreadsheet;
528
- };
529
- showHyperlinkPopup: false | "editor" | "info";
530
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
531
- snapLines: readonly import("../snapping").SnapLine[];
532
- originSnapOffset: {
533
- x: number;
534
- y: number;
535
- } | null;
536
- objectsSnapModeEnabled: boolean;
537
- userToFollow: import("../types").UserToFollow | null;
538
- followedBy: Set<import("../types").SocketId>;
539
- isCropping: boolean;
540
- croppingElementId: string | null;
541
- searchMatches: Readonly<{
542
- focusedId: string | null;
543
- matches: readonly import("../types").SearchMatch[];
544
- }> | null;
545
- activeLockedId: string | null;
546
- lockedMultiSelections: {
547
- [groupId: string]: true;
548
- };
549
- };
550
- captureUpdate: "EVENTUALLY";
551
- };
552
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
553
- } & {
554
- keyTest?: undefined;
555
- };
556
- export declare const actionChangeExportEmbedScene: {
557
- name: "changeExportEmbedScene";
558
- label: string;
559
- trackEvent: {
560
- category: "export";
561
- action: string;
562
- };
563
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
564
- appState: {
565
- exportEmbedScene: any;
566
- contextMenu: {
567
- items: import("../components/ContextMenu").ContextMenuItems;
568
- top: number;
569
- left: number;
570
- } | null;
571
- showWelcomeScreen: boolean;
572
- isLoading: boolean;
573
- errorMessage: import("react").ReactNode;
574
- activeEmbeddable: {
575
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
576
- state: "active" | "hover";
577
- } | null;
578
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
579
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
580
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
581
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
582
- isBindingEnabled: boolean;
583
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
584
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
585
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
586
- frameRendering: {
587
- enabled: boolean;
588
- name: boolean;
589
- outline: boolean;
590
- clip: boolean;
591
- };
592
- editingFrame: string | null;
593
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
594
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
595
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
596
- activeTool: {
597
- lastActiveTool: import("../types").ActiveTool | null;
598
- locked: boolean;
599
- fromSelection: boolean;
600
- } & import("../types").ActiveTool;
601
- penMode: boolean;
602
- penDetected: boolean;
603
- exportBackground: boolean;
604
- exportWithDarkMode: boolean;
605
- exportScale: number;
606
- currentItemStrokeColor: string;
607
- currentItemBackgroundColor: string;
608
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
609
- currentItemStrokeWidth: number;
610
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
611
- currentItemRoughness: number;
612
- currentItemOpacity: number;
613
- currentItemFontFamily: number;
614
- currentItemFontSize: number;
615
- currentItemTextAlign: string;
616
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
617
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
618
- currentHoveredFontFamily: number | null;
619
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
620
- currentItemArrowType: "round" | "sharp" | "elbow";
621
- viewBackgroundColor: string;
622
- scrollX: number;
623
- scrollY: number;
624
- cursorButton: "up" | "down";
625
- scrolledOutside: boolean;
626
- name: string | null;
627
- isResizing: boolean;
628
- isRotating: boolean;
629
- zoom: Readonly<{
630
- value: import("../types").NormalizedZoomValue;
631
- }>;
632
- openMenu: "canvas" | "shape" | null;
633
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
634
- openSidebar: {
635
- name: string;
636
- tab?: string | undefined;
637
- } | null;
638
- openDialog: {
639
- name: "imageExport" | "help" | "jsonExport";
640
- } | {
641
- name: "ttd";
642
- tab: "mermaid" | "text-to-diagram";
643
- } | {
644
- name: "commandPalette";
645
- } | {
646
- name: "elementLinkSelector";
647
- sourceElementId: string;
648
- } | null;
649
- defaultSidebarDockedPreference: boolean;
650
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
651
- selectedElementIds: Readonly<{
652
- [id: string]: true;
653
- }>;
654
- hoveredElementIds: Readonly<{
655
- [id: string]: true;
656
- }>;
657
- previousSelectedElementIds: {
658
- [id: string]: true;
659
- };
660
- selectedElementsAreBeingDragged: boolean;
661
- shouldCacheIgnoreZoom: boolean;
662
- toast: {
663
- message: string;
664
- closable?: boolean | undefined;
665
- duration?: number | undefined;
666
- } | null;
667
- zenModeEnabled: boolean;
668
- theme: Theme;
669
- gridSize: number;
670
- gridStep: number;
671
- gridModeEnabled: boolean;
672
- viewModeEnabled: boolean;
673
- selectedGroupIds: {
674
- [groupId: string]: boolean;
675
- };
676
- editingGroupId: string | null;
677
- width: number;
678
- height: number;
679
- offsetTop: number;
680
- offsetLeft: number;
681
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
682
- collaborators: Map<import("../types").SocketId, Readonly<{
683
- pointer?: import("../types").CollaboratorPointer | undefined;
684
- button?: "up" | "down" | undefined;
685
- selectedElementIds?: Readonly<{
686
- [id: string]: true;
687
- }> | undefined;
688
- username?: string | null | undefined;
689
- userState?: import("@excalidraw/common").UserIdleState | undefined;
690
- color?: {
691
- background: string;
692
- stroke: string;
693
- } | undefined;
694
- avatarUrl?: string | undefined;
695
- id?: string | undefined;
696
- socketId?: import("../types").SocketId | undefined;
697
- isCurrentUser?: boolean | undefined;
698
- isInCall?: boolean | undefined;
699
- isSpeaking?: boolean | undefined;
700
- isMuted?: boolean | undefined;
701
- }>>;
702
- stats: {
703
- open: boolean;
704
- panels: number;
705
- };
706
- currentChartType: import("@excalidraw/element/types").ChartType;
707
- pasteDialog: {
708
- shown: false;
709
- data: null;
710
- } | {
711
- shown: true;
712
- data: import("../charts").Spreadsheet;
713
- };
714
- showHyperlinkPopup: false | "editor" | "info";
715
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
716
- snapLines: readonly import("../snapping").SnapLine[];
717
- originSnapOffset: {
718
- x: number;
719
- y: number;
720
- } | null;
721
- objectsSnapModeEnabled: boolean;
722
- userToFollow: import("../types").UserToFollow | null;
723
- followedBy: Set<import("../types").SocketId>;
724
- isCropping: boolean;
725
- croppingElementId: string | null;
726
- searchMatches: Readonly<{
727
- focusedId: string | null;
728
- matches: readonly import("../types").SearchMatch[];
729
- }> | null;
730
- activeLockedId: string | null;
731
- lockedMultiSelections: {
732
- [groupId: string]: true;
733
- };
734
- };
735
- captureUpdate: "EVENTUALLY";
736
- };
737
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
738
- } & {
739
- keyTest?: undefined;
740
- };
741
- export declare const actionSaveToActiveFile: {
742
- name: "saveToActiveFile";
743
- label: string;
744
- icon: import("react/jsx-runtime").JSX.Element;
745
- trackEvent: {
746
- category: "export";
747
- };
748
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
749
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
750
- captureUpdate: "EVENTUALLY";
751
- appState: {
752
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
753
- toast: {
754
- message: string;
755
- } | null;
756
- contextMenu: {
757
- items: import("../components/ContextMenu").ContextMenuItems;
758
- top: number;
759
- left: number;
760
- } | null;
761
- showWelcomeScreen: boolean;
762
- isLoading: boolean;
763
- errorMessage: import("react").ReactNode;
764
- activeEmbeddable: {
765
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
766
- state: "active" | "hover";
767
- } | null;
768
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
769
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
770
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
771
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
772
- isBindingEnabled: boolean;
773
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
774
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
775
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
776
- frameRendering: {
777
- enabled: boolean;
778
- name: boolean;
779
- outline: boolean;
780
- clip: boolean;
781
- };
782
- editingFrame: string | null;
783
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
784
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
785
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
786
- activeTool: {
787
- lastActiveTool: import("../types").ActiveTool | null;
788
- locked: boolean;
789
- fromSelection: boolean;
790
- } & import("../types").ActiveTool;
791
- penMode: boolean;
792
- penDetected: boolean;
793
- exportBackground: boolean;
794
- exportEmbedScene: boolean;
795
- exportWithDarkMode: boolean;
796
- exportScale: number;
797
- currentItemStrokeColor: string;
798
- currentItemBackgroundColor: string;
799
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
800
- currentItemStrokeWidth: number;
801
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
802
- currentItemRoughness: number;
803
- currentItemOpacity: number;
804
- currentItemFontFamily: number;
805
- currentItemFontSize: number;
806
- currentItemTextAlign: string;
807
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
808
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
809
- currentHoveredFontFamily: number | null;
810
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
811
- currentItemArrowType: "round" | "sharp" | "elbow";
812
- viewBackgroundColor: string;
813
- scrollX: number;
814
- scrollY: number;
815
- cursorButton: "up" | "down";
816
- scrolledOutside: boolean;
817
- name: string | null;
818
- isResizing: boolean;
819
- isRotating: boolean;
820
- zoom: Readonly<{
821
- value: import("../types").NormalizedZoomValue;
822
- }>;
823
- openMenu: "canvas" | "shape" | null;
824
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
825
- openSidebar: {
826
- name: string;
827
- tab?: string | undefined;
828
- } | null;
829
- openDialog: {
830
- name: "imageExport" | "help" | "jsonExport";
831
- } | {
832
- name: "ttd";
833
- tab: "mermaid" | "text-to-diagram";
834
- } | {
835
- name: "commandPalette";
836
- } | {
837
- name: "elementLinkSelector";
838
- sourceElementId: string;
839
- } | null;
840
- defaultSidebarDockedPreference: boolean;
841
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
842
- selectedElementIds: Readonly<{
843
- [id: string]: true;
844
- }>;
845
- hoveredElementIds: Readonly<{
846
- [id: string]: true;
847
- }>;
848
- previousSelectedElementIds: {
849
- [id: string]: true;
850
- };
851
- selectedElementsAreBeingDragged: boolean;
852
- shouldCacheIgnoreZoom: boolean;
853
- zenModeEnabled: boolean;
854
- theme: Theme;
855
- gridSize: number;
856
- gridStep: number;
857
- gridModeEnabled: boolean;
858
- viewModeEnabled: boolean;
859
- selectedGroupIds: {
860
- [groupId: string]: boolean;
861
- };
862
- editingGroupId: string | null;
863
- width: number;
864
- height: number;
865
- offsetTop: number;
866
- offsetLeft: number;
867
- collaborators: Map<import("../types").SocketId, Readonly<{
868
- pointer?: import("../types").CollaboratorPointer | undefined;
869
- button?: "up" | "down" | undefined;
870
- selectedElementIds?: Readonly<{
871
- [id: string]: true;
872
- }> | undefined;
873
- username?: string | null | undefined;
874
- userState?: import("@excalidraw/common").UserIdleState | undefined;
875
- color?: {
876
- background: string;
877
- stroke: string;
878
- } | undefined;
879
- avatarUrl?: string | undefined;
880
- id?: string | undefined;
881
- socketId?: import("../types").SocketId | undefined;
882
- isCurrentUser?: boolean | undefined;
883
- isInCall?: boolean | undefined;
884
- isSpeaking?: boolean | undefined;
885
- isMuted?: boolean | undefined;
886
- }>>;
887
- stats: {
888
- open: boolean;
889
- panels: number;
890
- };
891
- currentChartType: import("@excalidraw/element/types").ChartType;
892
- pasteDialog: {
893
- shown: false;
894
- data: null;
895
- } | {
896
- shown: true;
897
- data: import("../charts").Spreadsheet;
898
- };
899
- showHyperlinkPopup: false | "editor" | "info";
900
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
901
- snapLines: readonly import("../snapping").SnapLine[];
902
- originSnapOffset: {
903
- x: number;
904
- y: number;
905
- } | null;
906
- objectsSnapModeEnabled: boolean;
907
- userToFollow: import("../types").UserToFollow | null;
908
- followedBy: Set<import("../types").SocketId>;
909
- isCropping: boolean;
910
- croppingElementId: string | null;
911
- searchMatches: Readonly<{
912
- focusedId: string | null;
913
- matches: readonly import("../types").SearchMatch[];
914
- }> | null;
915
- activeLockedId: string | null;
916
- lockedMultiSelections: {
917
- [groupId: string]: true;
918
- };
919
- };
920
- } | {
921
- captureUpdate: "EVENTUALLY";
922
- appState?: undefined;
923
- }>;
924
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
925
- } & {
926
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
927
- };
928
- export declare const actionSaveFileToDisk: {
929
- name: "saveFileToDisk";
930
- label: string;
931
- icon: import("react/jsx-runtime").JSX.Element;
932
- viewMode: true;
933
- trackEvent: {
934
- category: "export";
935
- };
936
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
937
- captureUpdate: "EVENTUALLY";
938
- appState: {
939
- openDialog: null;
940
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
941
- toast: {
942
- message: string;
943
- };
944
- contextMenu: {
945
- items: import("../components/ContextMenu").ContextMenuItems;
946
- top: number;
947
- left: number;
948
- } | null;
949
- showWelcomeScreen: boolean;
950
- isLoading: boolean;
951
- errorMessage: import("react").ReactNode;
952
- activeEmbeddable: {
953
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
954
- state: "active" | "hover";
955
- } | null;
956
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
957
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
958
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
959
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
960
- isBindingEnabled: boolean;
961
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
962
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
963
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
964
- frameRendering: {
965
- enabled: boolean;
966
- name: boolean;
967
- outline: boolean;
968
- clip: boolean;
969
- };
970
- editingFrame: string | null;
971
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
972
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
973
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
974
- activeTool: {
975
- lastActiveTool: import("../types").ActiveTool | null;
976
- locked: boolean;
977
- fromSelection: boolean;
978
- } & import("../types").ActiveTool;
979
- penMode: boolean;
980
- penDetected: boolean;
981
- exportBackground: boolean;
982
- exportEmbedScene: boolean;
983
- exportWithDarkMode: boolean;
984
- exportScale: number;
985
- currentItemStrokeColor: string;
986
- currentItemBackgroundColor: string;
987
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
988
- currentItemStrokeWidth: number;
989
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
990
- currentItemRoughness: number;
991
- currentItemOpacity: number;
992
- currentItemFontFamily: number;
993
- currentItemFontSize: number;
994
- currentItemTextAlign: string;
995
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
996
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
997
- currentHoveredFontFamily: number | null;
998
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
999
- currentItemArrowType: "round" | "sharp" | "elbow";
1000
- viewBackgroundColor: string;
1001
- scrollX: number;
1002
- scrollY: number;
1003
- cursorButton: "up" | "down";
1004
- scrolledOutside: boolean;
1005
- name: string | null;
1006
- isResizing: boolean;
1007
- isRotating: boolean;
1008
- zoom: Readonly<{
1009
- value: import("../types").NormalizedZoomValue;
1010
- }>;
1011
- openMenu: "canvas" | "shape" | null;
1012
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1013
- openSidebar: {
1014
- name: string;
1015
- tab?: string | undefined;
1016
- } | null;
1017
- defaultSidebarDockedPreference: boolean;
1018
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1019
- selectedElementIds: Readonly<{
1020
- [id: string]: true;
1021
- }>;
1022
- hoveredElementIds: Readonly<{
1023
- [id: string]: true;
1024
- }>;
1025
- previousSelectedElementIds: {
1026
- [id: string]: true;
1027
- };
1028
- selectedElementsAreBeingDragged: boolean;
1029
- shouldCacheIgnoreZoom: boolean;
1030
- zenModeEnabled: boolean;
1031
- theme: Theme;
1032
- gridSize: number;
1033
- gridStep: number;
1034
- gridModeEnabled: boolean;
1035
- viewModeEnabled: boolean;
1036
- selectedGroupIds: {
1037
- [groupId: string]: boolean;
1038
- };
1039
- editingGroupId: string | null;
1040
- width: number;
1041
- height: number;
1042
- offsetTop: number;
1043
- offsetLeft: number;
1044
- collaborators: Map<import("../types").SocketId, Readonly<{
1045
- pointer?: import("../types").CollaboratorPointer | undefined;
1046
- button?: "up" | "down" | undefined;
1047
- selectedElementIds?: Readonly<{
1048
- [id: string]: true;
1049
- }> | undefined;
1050
- username?: string | null | undefined;
1051
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1052
- color?: {
1053
- background: string;
1054
- stroke: string;
1055
- } | undefined;
1056
- avatarUrl?: string | undefined;
1057
- id?: string | undefined;
1058
- socketId?: import("../types").SocketId | undefined;
1059
- isCurrentUser?: boolean | undefined;
1060
- isInCall?: boolean | undefined;
1061
- isSpeaking?: boolean | undefined;
1062
- isMuted?: boolean | undefined;
1063
- }>>;
1064
- stats: {
1065
- open: boolean;
1066
- panels: number;
1067
- };
1068
- currentChartType: import("@excalidraw/element/types").ChartType;
1069
- pasteDialog: {
1070
- shown: false;
1071
- data: null;
1072
- } | {
1073
- shown: true;
1074
- data: import("../charts").Spreadsheet;
3
+ import type { AppClassProperties, AppState, BinaryFiles, ExcalidrawProps } from "../types";
4
+ export declare const actionChangeProjectName: import("./types").Action<string | null> & {
5
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
6
+ };
7
+ export declare const actionChangeExportScale: import("./types").Action<number> & {
8
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
9
+ };
10
+ export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
11
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
12
+ };
13
+ export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
14
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
15
+ };
16
+ export declare const actionSaveToActiveFile: {
17
+ name: "saveToActiveFile";
18
+ label: string;
19
+ icon: import("react/jsx-runtime").JSX.Element;
20
+ trackEvent: {
21
+ category: "export";
22
+ };
23
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
24
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
25
+ captureUpdate: "NEVER";
26
+ appState: {
27
+ fileHandle: FileSystemFileHandle | null;
28
+ toast: {
29
+ message: string;
30
+ duration: number;
1075
31
  };
1076
- showHyperlinkPopup: false | "editor" | "info";
1077
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1078
- snapLines: readonly import("../snapping").SnapLine[];
1079
- originSnapOffset: {
1080
- x: number;
1081
- y: number;
1082
- } | null;
1083
- objectsSnapModeEnabled: boolean;
1084
- userToFollow: import("../types").UserToFollow | null;
1085
- followedBy: Set<import("../types").SocketId>;
1086
- isCropping: boolean;
1087
- croppingElementId: string | null;
1088
- searchMatches: Readonly<{
1089
- focusedId: string | null;
1090
- matches: readonly import("../types").SearchMatch[];
1091
- }> | null;
1092
- activeLockedId: string | null;
1093
- lockedMultiSelections: {
1094
- [groupId: string]: true;
32
+ };
33
+ } | {
34
+ captureUpdate: "NEVER";
35
+ appState: {
36
+ toast: null;
37
+ fileHandle?: undefined;
38
+ };
39
+ }>;
40
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
41
+ } & {
42
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
43
+ };
44
+ export declare const actionSaveFileToDisk: {
45
+ name: "saveFileToDisk";
46
+ label: string;
47
+ icon: import("react/jsx-runtime").JSX.Element;
48
+ viewMode: true;
49
+ trackEvent: {
50
+ category: "export";
51
+ };
52
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
53
+ captureUpdate: "NEVER";
54
+ appState: {
55
+ openDialog: null;
56
+ fileHandle: FileSystemFileHandle | null;
57
+ toast: {
58
+ message: string;
59
+ duration: number;
1095
60
  };
1096
61
  };
1097
62
  } | {
1098
- captureUpdate: "EVENTUALLY";
1099
- appState?: undefined;
63
+ captureUpdate: "NEVER";
64
+ appState: {
65
+ toast: null;
66
+ openDialog?: undefined;
67
+ fileHandle?: undefined;
68
+ };
1100
69
  }>;
1101
70
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1102
71
  PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1109,11 +78,12 @@ export declare const actionLoadScene: {
1109
78
  trackEvent: {
1110
79
  category: "export";
1111
80
  };
1112
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1113
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
81
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
82
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => Promise<false | {
1114
83
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1115
84
  appState: {
1116
85
  viewBackgroundColor: string;
86
+ theme: Theme;
1117
87
  frameRendering: {
1118
88
  enabled: boolean;
1119
89
  name: boolean;
@@ -1121,74 +91,87 @@ export declare const actionLoadScene: {
1121
91
  clip: boolean;
1122
92
  };
1123
93
  name: string | null;
1124
- zoom: Readonly<{
1125
- value: import("../types").NormalizedZoomValue;
1126
- }>;
94
+ zoom: import("../types").Zoom;
1127
95
  scrollX: number;
1128
96
  scrollY: number;
1129
97
  viewModeEnabled: boolean;
1130
- openDialog: {
98
+ openDialog: null | {
1131
99
  name: "imageExport" | "help" | "jsonExport";
1132
100
  } | {
1133
101
  name: "ttd";
1134
- tab: "mermaid" | "text-to-diagram";
102
+ tab: "text-to-diagram" | "mermaid";
1135
103
  } | {
1136
104
  name: "commandPalette";
105
+ } | {
106
+ name: "settings";
1137
107
  } | {
1138
108
  name: "elementLinkSelector";
1139
- sourceElementId: string;
1140
- } | null;
1141
- editingGroupId: string | null;
109
+ sourceElementId: ExcalidrawElement["id"];
110
+ } | {
111
+ name: "charts";
112
+ data: import("../charts").Spreadsheet;
113
+ rawText: string;
114
+ };
115
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1142
116
  selectedElementIds: Readonly<{
1143
117
  [id: string]: true;
1144
118
  }>;
1145
119
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1146
- theme: Theme;
120
+ activeTool: {
121
+ lastActiveTool: import("../types").ActiveTool | null;
122
+ locked: boolean;
123
+ fromSelection: boolean;
124
+ } & import("../types").ActiveTool;
1147
125
  activeEmbeddable: {
1148
126
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1149
- state: "active" | "hover";
127
+ state: "hover" | "active";
1150
128
  } | null;
1151
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1152
129
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1153
130
  selectedGroupIds: {
1154
131
  [groupId: string]: boolean;
1155
132
  };
1156
133
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1157
134
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
135
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1158
136
  isBindingEnabled: boolean;
1159
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
137
+ isMidpointSnappingEnabled: boolean;
138
+ gridModeEnabled: boolean;
139
+ suggestedBinding: {
140
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
141
+ midPoint?: import("@excalidraw/math").GlobalPoint;
142
+ } | null;
143
+ textToolHover: {
144
+ type: "text";
145
+ elementId: ExcalidrawElement["id"];
146
+ } | {
147
+ type: "container";
148
+ elementId: ExcalidrawElement["id"];
149
+ } | {
150
+ type: "arrow";
151
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
152
+ anchor: "start" | "end" | "label";
153
+ } | null;
1160
154
  isRotating: boolean;
1161
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1162
- collaborators: Map<import("../types").SocketId, Readonly<{
1163
- pointer?: import("../types").CollaboratorPointer | undefined;
1164
- button?: "up" | "down" | undefined;
1165
- selectedElementIds?: Readonly<{
1166
- [id: string]: true;
1167
- }> | undefined;
1168
- username?: string | null | undefined;
1169
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1170
- color?: {
1171
- background: string;
1172
- stroke: string;
1173
- } | undefined;
1174
- avatarUrl?: string | undefined;
1175
- id?: string | undefined;
1176
- socketId?: import("../types").SocketId | undefined;
1177
- isCurrentUser?: boolean | undefined;
1178
- isInCall?: boolean | undefined;
1179
- isSpeaking?: boolean | undefined;
1180
- isMuted?: boolean | undefined;
1181
- }>>;
155
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
156
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1182
157
  snapLines: readonly import("../snapping").SnapLine[];
1183
158
  zenModeEnabled: boolean;
1184
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
159
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1185
160
  isCropping: boolean;
1186
- croppingElementId: string | null;
161
+ croppingElementId: ExcalidrawElement["id"] | null;
1187
162
  searchMatches: Readonly<{
1188
- focusedId: string | null;
163
+ focusedId: ExcalidrawElement["id"] | null;
1189
164
  matches: readonly import("../types").SearchMatch[];
1190
165
  }> | null;
1191
166
  activeLockedId: string | null;
167
+ hoveredElementIds: Readonly<{
168
+ [id: string]: true;
169
+ }>;
170
+ shouldCacheIgnoreZoom: boolean;
171
+ exportScale: number;
172
+ currentItemArrowType: "sharp" | "round" | "elbow";
173
+ gridSize: number;
174
+ bindMode: import("@excalidraw/element/types").BindMode;
1192
175
  contextMenu: {
1193
176
  items: import("../components/ContextMenu").ContextMenuItems;
1194
177
  top: number;
@@ -1196,90 +179,85 @@ export declare const actionLoadScene: {
1196
179
  } | null;
1197
180
  showWelcomeScreen: boolean;
1198
181
  isLoading: boolean;
1199
- errorMessage: import("react").ReactNode;
1200
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
182
+ errorMessage: React.ReactNode;
1201
183
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1202
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1203
- editingFrame: string | null;
1204
- activeTool: {
1205
- lastActiveTool: import("../types").ActiveTool | null;
1206
- locked: boolean;
1207
- fromSelection: boolean;
1208
- } & import("../types").ActiveTool;
184
+ boxSelectionMode: import("../types").BoxSelectionMode;
185
+ bindingPreference: "enabled" | "disabled";
186
+ showHints: boolean;
187
+ inputDevice: import("../types").InputDevice;
188
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
189
+ preferredSelectionTool: {
190
+ type: "selection" | "lasso";
191
+ initialized: boolean;
192
+ };
1209
193
  penMode: boolean;
1210
194
  penDetected: boolean;
1211
195
  exportBackground: boolean;
1212
196
  exportEmbedScene: boolean;
1213
197
  exportWithDarkMode: boolean;
1214
- exportScale: number;
1215
198
  currentItemStrokeColor: string;
199
+ currentItemStickynoteStrokeColor: string;
200
+ currentItemStickynoteBackgroundColor: string;
1216
201
  currentItemBackgroundColor: string;
1217
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1218
- currentItemStrokeWidth: number;
1219
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
202
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
203
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
204
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1220
205
  currentItemRoughness: number;
206
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1221
207
  currentItemOpacity: number;
1222
- currentItemFontFamily: number;
208
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1223
209
  currentItemFontSize: number;
1224
- currentItemTextAlign: string;
210
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1225
211
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1226
212
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1227
- currentHoveredFontFamily: number | null;
213
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1228
214
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1229
- currentItemArrowType: "round" | "sharp" | "elbow";
215
+ scrollConstraints: import("../types").ScrollConstraints | null;
1230
216
  cursorButton: "up" | "down";
1231
217
  scrolledOutside: boolean;
1232
218
  isResizing: boolean;
1233
- openMenu: "canvas" | "shape" | null;
1234
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
219
+ openMenu: "canvas" | null;
220
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1235
221
  openSidebar: {
1236
- name: string;
1237
- tab?: string | undefined;
222
+ name: import("../types").SidebarName;
223
+ tab?: import("../types").SidebarTabName;
1238
224
  } | null;
1239
225
  defaultSidebarDockedPreference: boolean;
1240
226
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1241
- hoveredElementIds: Readonly<{
1242
- [id: string]: true;
1243
- }>;
1244
227
  previousSelectedElementIds: {
1245
228
  [id: string]: true;
1246
229
  };
1247
230
  selectedElementsAreBeingDragged: boolean;
1248
- shouldCacheIgnoreZoom: boolean;
1249
231
  toast: {
1250
- message: string;
1251
- closable?: boolean | undefined;
1252
- duration?: number | undefined;
232
+ message: React.ReactNode;
233
+ closable?: boolean;
234
+ duration?: number;
1253
235
  } | null;
1254
- gridSize: number;
1255
236
  gridStep: number;
1256
- gridModeEnabled: boolean;
1257
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
237
+ fileHandle: FileSystemFileHandle | null;
1258
238
  stats: {
1259
239
  open: boolean;
1260
240
  panels: number;
1261
241
  };
1262
- currentChartType: import("@excalidraw/element/types").ChartType;
1263
- pasteDialog: {
1264
- shown: false;
1265
- data: null;
1266
- } | {
1267
- shown: true;
1268
- data: import("../charts").Spreadsheet;
1269
- };
1270
- showHyperlinkPopup: false | "editor" | "info";
242
+ showHyperlinkPopup: false | "info" | "editor";
1271
243
  originSnapOffset: {
1272
244
  x: number;
1273
245
  y: number;
1274
246
  } | null;
1275
247
  objectsSnapModeEnabled: boolean;
1276
- userToFollow: import("../types").UserToFollow | null;
1277
- followedBy: Set<import("../types").SocketId>;
1278
248
  lockedMultiSelections: {
1279
249
  [groupId: string]: true;
1280
250
  };
251
+ colorTopPicks: {
252
+ elementStroke: readonly string[] | null;
253
+ elementBackground: readonly string[] | null;
254
+ bucketFill: readonly string[] | null;
255
+ stickyNoteStroke: readonly string[] | null;
256
+ stickyNoteBackground: readonly string[] | null;
257
+ };
258
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1281
259
  };
1282
- files: import("../types").BinaryFiles;
260
+ files: BinaryFiles;
1283
261
  captureUpdate: "IMMEDIATELY";
1284
262
  } | {
1285
263
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
@@ -1294,15 +272,33 @@ export declare const actionLoadScene: {
1294
272
  isLoading: boolean;
1295
273
  activeEmbeddable: {
1296
274
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1297
- state: "active" | "hover";
275
+ state: "hover" | "active";
1298
276
  } | null;
1299
277
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1300
278
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1301
279
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1302
280
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1303
281
  isBindingEnabled: boolean;
1304
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1305
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
282
+ boxSelectionMode: import("../types").BoxSelectionMode;
283
+ bindingPreference: "enabled" | "disabled";
284
+ isMidpointSnappingEnabled: boolean;
285
+ showHints: boolean;
286
+ inputDevice: import("../types").InputDevice;
287
+ suggestedBinding: {
288
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
289
+ midPoint?: import("@excalidraw/math").GlobalPoint;
290
+ } | null;
291
+ textToolHover: {
292
+ type: "text";
293
+ elementId: ExcalidrawElement["id"];
294
+ } | {
295
+ type: "container";
296
+ elementId: ExcalidrawElement["id"];
297
+ } | {
298
+ type: "arrow";
299
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
300
+ anchor: "start" | "end" | "label";
301
+ } | null;
1306
302
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1307
303
  frameRendering: {
1308
304
  enabled: boolean;
@@ -1310,15 +306,18 @@ export declare const actionLoadScene: {
1310
306
  outline: boolean;
1311
307
  clip: boolean;
1312
308
  };
1313
- editingFrame: string | null;
1314
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1315
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1316
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
309
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
310
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
311
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1317
312
  activeTool: {
1318
313
  lastActiveTool: import("../types").ActiveTool | null;
1319
314
  locked: boolean;
1320
315
  fromSelection: boolean;
1321
316
  } & import("../types").ActiveTool;
317
+ preferredSelectionTool: {
318
+ type: "selection" | "lasso";
319
+ initialized: boolean;
320
+ };
1322
321
  penMode: boolean;
1323
322
  penDetected: boolean;
1324
323
  exportBackground: boolean;
@@ -1326,48 +325,56 @@ export declare const actionLoadScene: {
1326
325
  exportWithDarkMode: boolean;
1327
326
  exportScale: number;
1328
327
  currentItemStrokeColor: string;
328
+ currentItemStickynoteStrokeColor: string;
329
+ currentItemStickynoteBackgroundColor: string;
1329
330
  currentItemBackgroundColor: string;
1330
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1331
- currentItemStrokeWidth: number;
1332
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
331
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
332
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
333
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1333
334
  currentItemRoughness: number;
335
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1334
336
  currentItemOpacity: number;
1335
- currentItemFontFamily: number;
337
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1336
338
  currentItemFontSize: number;
1337
- currentItemTextAlign: string;
339
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1338
340
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1339
341
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1340
- currentHoveredFontFamily: number | null;
342
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1341
343
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1342
- currentItemArrowType: "round" | "sharp" | "elbow";
344
+ currentItemArrowType: "sharp" | "round" | "elbow";
1343
345
  viewBackgroundColor: string;
1344
346
  scrollX: number;
1345
347
  scrollY: number;
348
+ scrollConstraints: import("../types").ScrollConstraints | null;
1346
349
  cursorButton: "up" | "down";
1347
350
  scrolledOutside: boolean;
1348
351
  name: string | null;
1349
352
  isResizing: boolean;
1350
353
  isRotating: boolean;
1351
- zoom: Readonly<{
1352
- value: import("../types").NormalizedZoomValue;
1353
- }>;
1354
- openMenu: "canvas" | "shape" | null;
1355
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
354
+ zoom: import("../types").Zoom;
355
+ openMenu: "canvas" | null;
356
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1356
357
  openSidebar: {
1357
- name: string;
1358
- tab?: string | undefined;
358
+ name: import("../types").SidebarName;
359
+ tab?: import("../types").SidebarTabName;
1359
360
  } | null;
1360
- openDialog: {
361
+ openDialog: null | {
1361
362
  name: "imageExport" | "help" | "jsonExport";
1362
363
  } | {
1363
364
  name: "ttd";
1364
- tab: "mermaid" | "text-to-diagram";
365
+ tab: "text-to-diagram" | "mermaid";
1365
366
  } | {
1366
367
  name: "commandPalette";
368
+ } | {
369
+ name: "settings";
1367
370
  } | {
1368
371
  name: "elementLinkSelector";
1369
- sourceElementId: string;
1370
- } | null;
372
+ sourceElementId: ExcalidrawElement["id"];
373
+ } | {
374
+ name: "charts";
375
+ data: import("../charts").Spreadsheet;
376
+ rawText: string;
377
+ };
1371
378
  defaultSidebarDockedPreference: boolean;
1372
379
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1373
380
  selectedElementIds: Readonly<{
@@ -1382,9 +389,9 @@ export declare const actionLoadScene: {
1382
389
  selectedElementsAreBeingDragged: boolean;
1383
390
  shouldCacheIgnoreZoom: boolean;
1384
391
  toast: {
1385
- message: string;
1386
- closable?: boolean | undefined;
1387
- duration?: number | undefined;
392
+ message: React.ReactNode;
393
+ closable?: boolean;
394
+ duration?: number;
1388
395
  } | null;
1389
396
  zenModeEnabled: boolean;
1390
397
  theme: Theme;
@@ -1395,45 +402,18 @@ export declare const actionLoadScene: {
1395
402
  selectedGroupIds: {
1396
403
  [groupId: string]: boolean;
1397
404
  };
1398
- editingGroupId: string | null;
405
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1399
406
  width: number;
1400
407
  height: number;
1401
408
  offsetTop: number;
1402
409
  offsetLeft: number;
1403
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1404
- collaborators: Map<import("../types").SocketId, Readonly<{
1405
- pointer?: import("../types").CollaboratorPointer | undefined;
1406
- button?: "up" | "down" | undefined;
1407
- selectedElementIds?: Readonly<{
1408
- [id: string]: true;
1409
- }> | undefined;
1410
- username?: string | null | undefined;
1411
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1412
- color?: {
1413
- background: string;
1414
- stroke: string;
1415
- } | undefined;
1416
- avatarUrl?: string | undefined;
1417
- id?: string | undefined;
1418
- socketId?: import("../types").SocketId | undefined;
1419
- isCurrentUser?: boolean | undefined;
1420
- isInCall?: boolean | undefined;
1421
- isSpeaking?: boolean | undefined;
1422
- isMuted?: boolean | undefined;
1423
- }>>;
410
+ fileHandle: FileSystemFileHandle | null;
411
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1424
412
  stats: {
1425
413
  open: boolean;
1426
414
  panels: number;
1427
415
  };
1428
- currentChartType: import("@excalidraw/element/types").ChartType;
1429
- pasteDialog: {
1430
- shown: false;
1431
- data: null;
1432
- } | {
1433
- shown: true;
1434
- data: import("../charts").Spreadsheet;
1435
- };
1436
- showHyperlinkPopup: false | "editor" | "info";
416
+ showHyperlinkPopup: false | "info" | "editor";
1437
417
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1438
418
  snapLines: readonly import("../snapping").SnapLine[];
1439
419
  originSnapOffset: {
@@ -1441,208 +421,33 @@ export declare const actionLoadScene: {
1441
421
  y: number;
1442
422
  } | null;
1443
423
  objectsSnapModeEnabled: boolean;
1444
- userToFollow: import("../types").UserToFollow | null;
1445
- followedBy: Set<import("../types").SocketId>;
1446
424
  isCropping: boolean;
1447
- croppingElementId: string | null;
425
+ croppingElementId: ExcalidrawElement["id"] | null;
1448
426
  searchMatches: Readonly<{
1449
- focusedId: string | null;
427
+ focusedId: ExcalidrawElement["id"] | null;
1450
428
  matches: readonly import("../types").SearchMatch[];
1451
429
  }> | null;
1452
430
  activeLockedId: string | null;
1453
431
  lockedMultiSelections: {
1454
432
  [groupId: string]: true;
1455
433
  };
434
+ bindMode: import("@excalidraw/element/types").BindMode;
435
+ colorTopPicks: {
436
+ elementStroke: readonly string[] | null;
437
+ elementBackground: readonly string[] | null;
438
+ bucketFill: readonly string[] | null;
439
+ stickyNoteStroke: readonly string[] | null;
440
+ stickyNoteBackground: readonly string[] | null;
441
+ };
442
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1456
443
  };
1457
- files: import("../types").BinaryFiles;
444
+ files: BinaryFiles;
1458
445
  captureUpdate: "EVENTUALLY";
1459
446
  }>;
1460
447
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1461
448
  } & {
1462
449
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1463
450
  };
1464
- export declare const actionExportWithDarkMode: {
1465
- name: "exportWithDarkMode";
1466
- label: string;
1467
- trackEvent: {
1468
- category: "export";
1469
- action: string;
1470
- };
1471
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1472
- appState: {
1473
- exportWithDarkMode: any;
1474
- contextMenu: {
1475
- items: import("../components/ContextMenu").ContextMenuItems;
1476
- top: number;
1477
- left: number;
1478
- } | null;
1479
- showWelcomeScreen: boolean;
1480
- isLoading: boolean;
1481
- errorMessage: import("react").ReactNode;
1482
- activeEmbeddable: {
1483
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1484
- state: "active" | "hover";
1485
- } | null;
1486
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1487
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1488
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1489
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1490
- isBindingEnabled: boolean;
1491
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1492
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1493
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1494
- frameRendering: {
1495
- enabled: boolean;
1496
- name: boolean;
1497
- outline: boolean;
1498
- clip: boolean;
1499
- };
1500
- editingFrame: string | null;
1501
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1502
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1503
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1504
- activeTool: {
1505
- lastActiveTool: import("../types").ActiveTool | null;
1506
- locked: boolean;
1507
- fromSelection: boolean;
1508
- } & import("../types").ActiveTool;
1509
- penMode: boolean;
1510
- penDetected: boolean;
1511
- exportBackground: boolean;
1512
- exportEmbedScene: boolean;
1513
- exportScale: number;
1514
- currentItemStrokeColor: string;
1515
- currentItemBackgroundColor: string;
1516
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1517
- currentItemStrokeWidth: number;
1518
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1519
- currentItemRoughness: number;
1520
- currentItemOpacity: number;
1521
- currentItemFontFamily: number;
1522
- currentItemFontSize: number;
1523
- currentItemTextAlign: string;
1524
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1525
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1526
- currentHoveredFontFamily: number | null;
1527
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1528
- currentItemArrowType: "round" | "sharp" | "elbow";
1529
- viewBackgroundColor: string;
1530
- scrollX: number;
1531
- scrollY: number;
1532
- cursorButton: "up" | "down";
1533
- scrolledOutside: boolean;
1534
- name: string | null;
1535
- isResizing: boolean;
1536
- isRotating: boolean;
1537
- zoom: Readonly<{
1538
- value: import("../types").NormalizedZoomValue;
1539
- }>;
1540
- openMenu: "canvas" | "shape" | null;
1541
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1542
- openSidebar: {
1543
- name: string;
1544
- tab?: string | undefined;
1545
- } | null;
1546
- openDialog: {
1547
- name: "imageExport" | "help" | "jsonExport";
1548
- } | {
1549
- name: "ttd";
1550
- tab: "mermaid" | "text-to-diagram";
1551
- } | {
1552
- name: "commandPalette";
1553
- } | {
1554
- name: "elementLinkSelector";
1555
- sourceElementId: string;
1556
- } | null;
1557
- defaultSidebarDockedPreference: boolean;
1558
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1559
- selectedElementIds: Readonly<{
1560
- [id: string]: true;
1561
- }>;
1562
- hoveredElementIds: Readonly<{
1563
- [id: string]: true;
1564
- }>;
1565
- previousSelectedElementIds: {
1566
- [id: string]: true;
1567
- };
1568
- selectedElementsAreBeingDragged: boolean;
1569
- shouldCacheIgnoreZoom: boolean;
1570
- toast: {
1571
- message: string;
1572
- closable?: boolean | undefined;
1573
- duration?: number | undefined;
1574
- } | null;
1575
- zenModeEnabled: boolean;
1576
- theme: Theme;
1577
- gridSize: number;
1578
- gridStep: number;
1579
- gridModeEnabled: boolean;
1580
- viewModeEnabled: boolean;
1581
- selectedGroupIds: {
1582
- [groupId: string]: boolean;
1583
- };
1584
- editingGroupId: string | null;
1585
- width: number;
1586
- height: number;
1587
- offsetTop: number;
1588
- offsetLeft: number;
1589
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1590
- collaborators: Map<import("../types").SocketId, Readonly<{
1591
- pointer?: import("../types").CollaboratorPointer | undefined;
1592
- button?: "up" | "down" | undefined;
1593
- selectedElementIds?: Readonly<{
1594
- [id: string]: true;
1595
- }> | undefined;
1596
- username?: string | null | undefined;
1597
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1598
- color?: {
1599
- background: string;
1600
- stroke: string;
1601
- } | undefined;
1602
- avatarUrl?: string | undefined;
1603
- id?: string | undefined;
1604
- socketId?: import("../types").SocketId | undefined;
1605
- isCurrentUser?: boolean | undefined;
1606
- isInCall?: boolean | undefined;
1607
- isSpeaking?: boolean | undefined;
1608
- isMuted?: boolean | undefined;
1609
- }>>;
1610
- stats: {
1611
- open: boolean;
1612
- panels: number;
1613
- };
1614
- currentChartType: import("@excalidraw/element/types").ChartType;
1615
- pasteDialog: {
1616
- shown: false;
1617
- data: null;
1618
- } | {
1619
- shown: true;
1620
- data: import("../charts").Spreadsheet;
1621
- };
1622
- showHyperlinkPopup: false | "editor" | "info";
1623
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1624
- snapLines: readonly import("../snapping").SnapLine[];
1625
- originSnapOffset: {
1626
- x: number;
1627
- y: number;
1628
- } | null;
1629
- objectsSnapModeEnabled: boolean;
1630
- userToFollow: import("../types").UserToFollow | null;
1631
- followedBy: Set<import("../types").SocketId>;
1632
- isCropping: boolean;
1633
- croppingElementId: string | null;
1634
- searchMatches: Readonly<{
1635
- focusedId: string | null;
1636
- matches: readonly import("../types").SearchMatch[];
1637
- }> | null;
1638
- activeLockedId: string | null;
1639
- lockedMultiSelections: {
1640
- [groupId: string]: true;
1641
- };
1642
- };
1643
- captureUpdate: "EVENTUALLY";
1644
- };
1645
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1646
- } & {
1647
- keyTest?: undefined;
451
+ export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
452
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
1648
453
  };