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

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