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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/dist/dev/index.js +15101 -8988
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +20 -19
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +81 -39
  8. package/dist/types/common/src/constants.d.ts +89 -34
  9. package/dist/types/common/src/editorInterface.d.ts +34 -0
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +5 -0
  12. package/dist/types/common/src/keys.d.ts +5 -1
  13. package/dist/types/common/src/points.d.ts +1 -1
  14. package/dist/types/common/src/random.d.ts +7 -0
  15. package/dist/types/common/src/utility-types.d.ts +0 -1
  16. package/dist/types/common/src/utils.d.ts +52 -78
  17. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  18. package/dist/types/element/src/Scene.d.ts +12 -8
  19. package/dist/types/element/src/align.d.ts +2 -2
  20. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  21. package/dist/types/element/src/arrowheads.d.ts +3 -0
  22. package/dist/types/element/src/arrows/focus.d.ts +30 -0
  23. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  24. package/dist/types/element/src/binding.d.ts +85 -51
  25. package/dist/types/element/src/bounds.d.ts +25 -18
  26. package/dist/types/element/src/bucketFill.d.ts +110 -0
  27. package/dist/types/element/src/collision.d.ts +11 -3
  28. package/dist/types/element/src/comparisons.d.ts +10 -7
  29. package/dist/types/element/src/convertToShape.d.ts +23 -0
  30. package/dist/types/element/src/delta.d.ts +23 -1
  31. package/dist/types/element/src/distribute.d.ts +3 -2
  32. package/dist/types/element/src/dragElements.d.ts +30 -3
  33. package/dist/types/element/src/duplicate.d.ts +67 -6
  34. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  35. package/dist/types/element/src/embeddable.d.ts +2 -2
  36. package/dist/types/element/src/flowchart.d.ts +11 -7
  37. package/dist/types/element/src/fractionalIndex.d.ts +4 -4
  38. package/dist/types/element/src/frame.d.ts +16 -11
  39. package/dist/types/element/src/groups.d.ts +9 -9
  40. package/dist/types/element/src/heading.d.ts +2 -1
  41. package/dist/types/element/src/image.d.ts +1 -11
  42. package/dist/types/element/src/index.d.ts +9 -4
  43. package/dist/types/element/src/linearElementEditor.d.ts +48 -30
  44. package/dist/types/element/src/mutateElement.d.ts +6 -2
  45. package/dist/types/element/src/newElement.d.ts +59 -9
  46. package/dist/types/element/src/renderElement.d.ts +21 -13
  47. package/dist/types/element/src/resizeElements.d.ts +12 -12
  48. package/dist/types/element/src/resizeTest.d.ts +6 -5
  49. package/dist/types/element/src/selection.d.ts +14 -14
  50. package/dist/types/element/src/shape.d.ts +36 -9
  51. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  52. package/dist/types/element/src/sortElements.d.ts +10 -0
  53. package/dist/types/element/src/stickyNote.d.ts +183 -0
  54. package/dist/types/element/src/textElement.d.ts +21 -10
  55. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  56. package/dist/types/element/src/textWrapping.d.ts +26 -0
  57. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +27 -8
  58. package/dist/types/element/src/transformHandles.d.ts +8 -27
  59. package/dist/types/element/src/typeChecks.d.ts +30 -31
  60. package/dist/types/element/src/types.d.ts +55 -20
  61. package/dist/types/element/src/utils.d.ts +22 -6
  62. package/dist/types/element/src/visualdebug.d.ts +58 -0
  63. package/dist/types/element/src/zindex.d.ts +7 -1
  64. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +215 -189
  65. package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
  66. package/dist/types/excalidraw/actions/actionBoundText.d.ts +150 -133
  67. package/dist/types/excalidraw/actions/actionCanvas.d.ts +543 -1576
  68. package/dist/types/excalidraw/actions/actionClipboard.d.ts +152 -880
  69. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +73 -65
  70. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +237 -214
  71. package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
  72. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -6
  73. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  74. package/dist/types/excalidraw/actions/actionElementLink.d.ts +65 -63
  75. package/dist/types/excalidraw/actions/actionElementLock.d.ts +149 -132
  76. package/dist/types/excalidraw/actions/actionExport.d.ts +228 -1423
  77. package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -396
  78. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  79. package/dist/types/excalidraw/actions/actionFrame.d.ts +373 -521
  80. package/dist/types/excalidraw/actions/actionGroup.d.ts +160 -151
  81. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +236 -214
  82. package/dist/types/excalidraw/actions/actionLink.d.ts +72 -64
  83. package/dist/types/excalidraw/actions/actionMenu.d.ts +64 -430
  84. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  85. package/dist/types/excalidraw/actions/actionProperties.d.ts +241 -2560
  86. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +80 -76
  87. package/dist/types/excalidraw/actions/actionStyles.d.ts +74 -65
  88. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  89. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +88 -79
  90. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +77 -70
  91. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
  92. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +74 -66
  93. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +65 -64
  94. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  95. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +74 -66
  96. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +75 -67
  97. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +75 -67
  98. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  99. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  100. package/dist/types/excalidraw/actions/index.d.ts +5 -3
  101. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  102. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  103. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  104. package/dist/types/excalidraw/actions/types.d.ts +11 -7
  105. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  106. package/dist/types/excalidraw/appState.d.ts +50 -20
  107. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  108. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  109. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  110. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  111. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  112. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  113. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  114. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  115. package/dist/types/excalidraw/clipboard.d.ts +13 -38
  116. package/dist/types/excalidraw/components/Actions.d.ts +26 -11
  117. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  118. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  119. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  120. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  121. package/dist/types/excalidraw/components/App.d.ts +646 -132
  122. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  123. package/dist/types/excalidraw/components/App.duplicate.d.ts +51 -0
  124. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  125. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  126. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  127. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  128. package/dist/types/excalidraw/components/App.viewport.d.ts +113 -0
  129. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  130. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  131. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  132. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  133. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -5
  134. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  135. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +7 -1
  136. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -2
  137. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +5 -2
  138. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  139. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -2
  140. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  141. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  142. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  143. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  144. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  145. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -4
  146. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  147. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  148. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  149. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  150. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  151. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  152. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -2
  153. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  154. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  155. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  156. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  157. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  158. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  159. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  160. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  161. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  162. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  163. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  164. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  165. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  166. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  167. package/dist/types/excalidraw/components/LayerUI.d.ts +6 -2
  168. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  169. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  170. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  171. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +7 -3
  172. package/dist/types/excalidraw/components/LibraryUnit.d.ts +9 -5
  173. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  174. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  175. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  176. package/dist/types/excalidraw/components/MobileMenu.d.ts +5 -7
  177. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  178. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  179. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  180. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  181. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  182. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  183. package/dist/types/excalidraw/components/Popover.d.ts +2 -3
  184. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  185. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  186. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  187. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  188. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  189. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  190. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  191. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  192. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +16 -22
  193. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  194. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  195. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  196. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  197. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  198. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  199. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  200. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  201. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  202. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  203. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -3
  204. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  205. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  206. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  207. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  208. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  209. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  210. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  211. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  212. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  213. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  214. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  215. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  216. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  217. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  218. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  219. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  220. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  221. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  222. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  223. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  224. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  225. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  226. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  227. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  228. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  229. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  230. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  231. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  232. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  233. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  234. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  235. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  236. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  237. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  238. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  239. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  240. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  241. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  242. package/dist/types/excalidraw/components/ToolPopover.d.ts +22 -0
  243. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  244. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  245. package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
  246. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  247. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  248. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  249. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  250. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  251. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  252. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +10 -4
  253. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  254. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  255. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  256. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  257. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  258. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  259. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  260. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  261. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  262. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  263. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  264. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  265. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  266. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  267. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  268. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  269. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  270. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  271. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  272. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
  273. package/dist/types/excalidraw/components/icons.d.ts +51 -23
  274. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +26 -3
  275. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  276. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  277. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  278. package/dist/types/excalidraw/data/blob.d.ts +373 -8
  279. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  280. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  281. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  282. package/dist/types/excalidraw/data/index.d.ts +8 -9
  283. package/dist/types/excalidraw/data/json.d.ts +192 -3
  284. package/dist/types/excalidraw/data/library.d.ts +25 -10
  285. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  286. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  287. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  288. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  289. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  290. package/dist/types/excalidraw/errors.d.ts +14 -0
  291. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
  292. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  293. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +2 -2
  294. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  295. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  296. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  297. package/dist/types/excalidraw/i18n.d.ts +2 -2
  298. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  299. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  300. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  301. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  302. package/dist/types/excalidraw/renderer/animation.d.ts +16 -0
  303. package/dist/types/excalidraw/renderer/helpers.d.ts +31 -8
  304. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +7 -15
  305. package/dist/types/excalidraw/scene/Renderer.d.ts +491 -19
  306. package/dist/types/excalidraw/scene/export.d.ts +4 -4
  307. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  308. package/dist/types/excalidraw/scene/types.d.ts +28 -8
  309. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  310. package/dist/types/excalidraw/snapping.d.ts +12 -12
  311. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  312. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  313. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  314. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  315. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  316. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  317. package/dist/types/excalidraw/types.d.ts +644 -60
  318. package/dist/types/excalidraw/viewport.d.ts +302 -0
  319. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +14 -5
  320. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  321. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  322. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  323. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  324. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  325. package/dist/types/math/src/constants.d.ts +0 -1
  326. package/dist/types/math/src/curve.d.ts +23 -13
  327. package/dist/types/math/src/index.d.ts +1 -0
  328. package/dist/types/math/src/pca.d.ts +79 -0
  329. package/dist/types/math/src/point.d.ts +8 -2
  330. package/dist/types/math/src/polygon.d.ts +26 -2
  331. package/dist/types/math/src/range.d.ts +1 -3
  332. package/dist/types/math/src/segment.d.ts +9 -3
  333. package/dist/types/math/src/types.d.ts +25 -1
  334. package/dist/types/utils/src/export.d.ts +9 -8
  335. package/dist/types/utils/src/index.d.ts +1 -2
  336. package/dist/types/utils/src/shape.d.ts +8 -8
  337. package/package.json +10 -3
  338. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  339. package/dist/types/excalidraw/charts.d.ts +0 -27
  340. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  341. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  342. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  343. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  344. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  345. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  346. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  347. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  348. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  349. package/dist/types/excalidraw/components/shapes.d.ts +0 -190
  350. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  351. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  352. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  353. package/dist/types/excalidraw/cursor.d.ts +0 -5
  354. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  355. package/dist/types/excalidraw/index.d.ts +0 -47
  356. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  357. package/dist/types/excalidraw/scene/scroll.d.ts +0 -23
  358. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  359. package/dist/types/utils/src/bbox.d.ts +0 -9
  360. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,2233 +1,57 @@
1
- /// <reference types="react" />
1
+ import { type StrokeWidthKey } from "@excalidraw/common";
2
2
  import { LinearElementEditor } from "@excalidraw/element";
3
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
3
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, NonDeleted, NonDeletedExcalidrawElement, TextAlign } from "@excalidraw/element/types";
4
4
  import type { AppClassProperties, AppState, Primitive } from "../types";
5
- export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
- export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
7
- export declare const actionChangeStrokeColor: {
8
- name: "changeStrokeColor";
9
- label: string;
10
- trackEvent: false;
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
- } & {
14
- keyTest?: undefined;
15
- };
16
- export declare const actionChangeBackgroundColor: {
17
- name: "changeBackgroundColor";
18
- label: string;
19
- trackEvent: false;
20
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
21
- appState: any;
22
- captureUpdate: "EVENTUALLY";
23
- elements?: undefined;
24
- } | {
25
- elements: ExcalidrawElement[];
26
- appState: any;
27
- captureUpdate: "IMMEDIATELY";
28
- };
29
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
30
- } & {
31
- keyTest?: undefined;
32
- };
33
- export declare const actionChangeFillStyle: {
34
- name: "changeFillStyle";
35
- label: string;
36
- trackEvent: false;
37
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
38
- elements: ExcalidrawElement[];
39
- appState: {
40
- currentItemFillStyle: any;
41
- contextMenu: {
42
- items: import("../components/ContextMenu").ContextMenuItems;
43
- top: number;
44
- left: number;
45
- } | null;
46
- showWelcomeScreen: boolean;
47
- isLoading: boolean;
48
- errorMessage: import("react").ReactNode;
49
- activeEmbeddable: {
50
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
51
- state: "active" | "hover";
52
- } | null;
53
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
54
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
55
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
56
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
57
- isBindingEnabled: boolean;
58
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
59
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
60
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
61
- frameRendering: {
62
- enabled: boolean;
63
- name: boolean;
64
- outline: boolean;
65
- clip: boolean;
66
- };
67
- editingFrame: string | null;
68
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
69
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
70
- activeTool: {
71
- lastActiveTool: import("../types").ActiveTool | null;
72
- locked: boolean;
73
- fromSelection: boolean;
74
- } & import("../types").ActiveTool;
75
- penMode: boolean;
76
- penDetected: boolean;
77
- exportBackground: boolean;
78
- exportEmbedScene: boolean;
79
- exportWithDarkMode: boolean;
80
- exportScale: number;
81
- currentItemStrokeColor: string;
82
- currentItemBackgroundColor: string;
83
- currentItemStrokeWidth: number;
84
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
85
- currentItemRoughness: number;
86
- currentItemOpacity: number;
87
- currentItemFontFamily: number;
88
- currentItemFontSize: number;
89
- currentItemTextAlign: string;
90
- currentItemStartArrowhead: Arrowhead | null;
91
- currentItemEndArrowhead: Arrowhead | null;
92
- currentHoveredFontFamily: number | null;
93
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
94
- currentItemArrowType: "round" | "sharp" | "elbow";
95
- viewBackgroundColor: string;
96
- scrollX: number;
97
- scrollY: number;
98
- cursorButton: "up" | "down";
99
- scrolledOutside: boolean;
100
- name: string | null;
101
- isResizing: boolean;
102
- isRotating: boolean;
103
- zoom: Readonly<{
104
- value: import("../types").NormalizedZoomValue;
105
- }>;
106
- openMenu: "canvas" | "shape" | null;
107
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
108
- openSidebar: {
109
- name: string;
110
- tab?: string | undefined;
111
- } | null;
112
- openDialog: {
113
- name: "imageExport" | "help" | "jsonExport";
114
- } | {
115
- name: "ttd";
116
- tab: "mermaid" | "text-to-diagram";
117
- } | {
118
- name: "commandPalette";
119
- } | {
120
- name: "elementLinkSelector";
121
- sourceElementId: string;
122
- } | null;
123
- defaultSidebarDockedPreference: boolean;
124
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
125
- selectedElementIds: Readonly<{
126
- [id: string]: true;
127
- }>;
128
- hoveredElementIds: Readonly<{
129
- [id: string]: true;
130
- }>;
131
- previousSelectedElementIds: {
132
- [id: string]: true;
133
- };
134
- selectedElementsAreBeingDragged: boolean;
135
- shouldCacheIgnoreZoom: boolean;
136
- toast: {
137
- message: string;
138
- closable?: boolean | undefined;
139
- duration?: number | undefined;
140
- } | null;
141
- zenModeEnabled: boolean;
142
- theme: import("@excalidraw/element/types").Theme;
143
- gridSize: number;
144
- gridStep: number;
145
- gridModeEnabled: boolean;
146
- viewModeEnabled: boolean;
147
- selectedGroupIds: {
148
- [groupId: string]: boolean;
149
- };
150
- editingGroupId: string | null;
151
- width: number;
152
- height: number;
153
- offsetTop: number;
154
- offsetLeft: number;
155
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
156
- collaborators: Map<import("../types").SocketId, Readonly<{
157
- pointer?: import("../types").CollaboratorPointer | undefined;
158
- button?: "up" | "down" | undefined;
159
- selectedElementIds?: Readonly<{
160
- [id: string]: true;
161
- }> | undefined;
162
- username?: string | null | undefined;
163
- userState?: import("@excalidraw/common").UserIdleState | undefined;
164
- color?: {
165
- background: string;
166
- stroke: string;
167
- } | undefined;
168
- avatarUrl?: string | undefined;
169
- id?: string | undefined;
170
- socketId?: import("../types").SocketId | undefined;
171
- isCurrentUser?: boolean | undefined;
172
- isInCall?: boolean | undefined;
173
- isSpeaking?: boolean | undefined;
174
- isMuted?: boolean | undefined;
175
- }>>;
176
- stats: {
177
- open: boolean;
178
- panels: number;
179
- };
180
- currentChartType: import("@excalidraw/element/types").ChartType;
181
- pasteDialog: {
182
- shown: false;
183
- data: null;
184
- } | {
185
- shown: true;
186
- data: import("../charts").Spreadsheet;
187
- };
188
- showHyperlinkPopup: false | "editor" | "info";
189
- selectedLinearElement: LinearElementEditor | null;
190
- snapLines: readonly import("../snapping").SnapLine[];
191
- originSnapOffset: {
192
- x: number;
193
- y: number;
194
- } | null;
195
- objectsSnapModeEnabled: boolean;
196
- userToFollow: import("../types").UserToFollow | null;
197
- followedBy: Set<import("../types").SocketId>;
198
- isCropping: boolean;
199
- croppingElementId: string | null;
200
- searchMatches: Readonly<{
201
- focusedId: string | null;
202
- matches: readonly import("../types").SearchMatch[];
203
- }> | null;
204
- activeLockedId: string | null;
205
- lockedMultiSelections: {
206
- [groupId: string]: true;
207
- };
208
- stylesPanelMode: "compact" | "full";
209
- };
210
- captureUpdate: "IMMEDIATELY";
211
- };
212
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
213
- } & {
214
- keyTest?: undefined;
215
- };
216
- export declare const actionChangeStrokeWidth: {
217
- name: "changeStrokeWidth";
218
- label: string;
219
- trackEvent: false;
220
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
221
- elements: ExcalidrawElement[];
222
- appState: {
223
- currentItemStrokeWidth: any;
224
- contextMenu: {
225
- items: import("../components/ContextMenu").ContextMenuItems;
226
- top: number;
227
- left: number;
228
- } | null;
229
- showWelcomeScreen: boolean;
230
- isLoading: boolean;
231
- errorMessage: import("react").ReactNode;
232
- activeEmbeddable: {
233
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
234
- state: "active" | "hover";
235
- } | null;
236
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
237
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
238
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
239
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
240
- isBindingEnabled: boolean;
241
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
242
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
243
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
244
- frameRendering: {
245
- enabled: boolean;
246
- name: boolean;
247
- outline: boolean;
248
- clip: boolean;
249
- };
250
- editingFrame: string | null;
251
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
252
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
253
- activeTool: {
254
- lastActiveTool: import("../types").ActiveTool | null;
255
- locked: boolean;
256
- fromSelection: boolean;
257
- } & import("../types").ActiveTool;
258
- penMode: boolean;
259
- penDetected: boolean;
260
- exportBackground: boolean;
261
- exportEmbedScene: boolean;
262
- exportWithDarkMode: boolean;
263
- exportScale: number;
264
- currentItemStrokeColor: string;
265
- currentItemBackgroundColor: string;
266
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
267
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
268
- currentItemRoughness: number;
269
- currentItemOpacity: number;
270
- currentItemFontFamily: number;
271
- currentItemFontSize: number;
272
- currentItemTextAlign: string;
273
- currentItemStartArrowhead: Arrowhead | null;
274
- currentItemEndArrowhead: Arrowhead | null;
275
- currentHoveredFontFamily: number | null;
276
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
277
- currentItemArrowType: "round" | "sharp" | "elbow";
278
- viewBackgroundColor: string;
279
- scrollX: number;
280
- scrollY: number;
281
- cursorButton: "up" | "down";
282
- scrolledOutside: boolean;
283
- name: string | null;
284
- isResizing: boolean;
285
- isRotating: boolean;
286
- zoom: Readonly<{
287
- value: import("../types").NormalizedZoomValue;
288
- }>;
289
- openMenu: "canvas" | "shape" | null;
290
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
291
- openSidebar: {
292
- name: string;
293
- tab?: string | undefined;
294
- } | null;
295
- openDialog: {
296
- name: "imageExport" | "help" | "jsonExport";
297
- } | {
298
- name: "ttd";
299
- tab: "mermaid" | "text-to-diagram";
300
- } | {
301
- name: "commandPalette";
302
- } | {
303
- name: "elementLinkSelector";
304
- sourceElementId: string;
305
- } | null;
306
- defaultSidebarDockedPreference: boolean;
307
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
308
- selectedElementIds: Readonly<{
309
- [id: string]: true;
310
- }>;
311
- hoveredElementIds: Readonly<{
312
- [id: string]: true;
313
- }>;
314
- previousSelectedElementIds: {
315
- [id: string]: true;
316
- };
317
- selectedElementsAreBeingDragged: boolean;
318
- shouldCacheIgnoreZoom: boolean;
319
- toast: {
320
- message: string;
321
- closable?: boolean | undefined;
322
- duration?: number | undefined;
323
- } | null;
324
- zenModeEnabled: boolean;
325
- theme: import("@excalidraw/element/types").Theme;
326
- gridSize: number;
327
- gridStep: number;
328
- gridModeEnabled: boolean;
329
- viewModeEnabled: boolean;
330
- selectedGroupIds: {
331
- [groupId: string]: boolean;
332
- };
333
- editingGroupId: string | null;
334
- width: number;
335
- height: number;
336
- offsetTop: number;
337
- offsetLeft: number;
338
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
339
- collaborators: Map<import("../types").SocketId, Readonly<{
340
- pointer?: import("../types").CollaboratorPointer | undefined;
341
- button?: "up" | "down" | undefined;
342
- selectedElementIds?: Readonly<{
343
- [id: string]: true;
344
- }> | undefined;
345
- username?: string | null | undefined;
346
- userState?: import("@excalidraw/common").UserIdleState | undefined;
347
- color?: {
348
- background: string;
349
- stroke: string;
350
- } | undefined;
351
- avatarUrl?: string | undefined;
352
- id?: string | undefined;
353
- socketId?: import("../types").SocketId | undefined;
354
- isCurrentUser?: boolean | undefined;
355
- isInCall?: boolean | undefined;
356
- isSpeaking?: boolean | undefined;
357
- isMuted?: boolean | undefined;
358
- }>>;
359
- stats: {
360
- open: boolean;
361
- panels: number;
362
- };
363
- currentChartType: import("@excalidraw/element/types").ChartType;
364
- pasteDialog: {
365
- shown: false;
366
- data: null;
367
- } | {
368
- shown: true;
369
- data: import("../charts").Spreadsheet;
370
- };
371
- showHyperlinkPopup: false | "editor" | "info";
372
- selectedLinearElement: LinearElementEditor | null;
373
- snapLines: readonly import("../snapping").SnapLine[];
374
- originSnapOffset: {
375
- x: number;
376
- y: number;
377
- } | null;
378
- objectsSnapModeEnabled: boolean;
379
- userToFollow: import("../types").UserToFollow | null;
380
- followedBy: Set<import("../types").SocketId>;
381
- isCropping: boolean;
382
- croppingElementId: string | null;
383
- searchMatches: Readonly<{
384
- focusedId: string | null;
385
- matches: readonly import("../types").SearchMatch[];
386
- }> | null;
387
- activeLockedId: string | null;
388
- lockedMultiSelections: {
389
- [groupId: string]: true;
390
- };
391
- stylesPanelMode: "compact" | "full";
392
- };
393
- captureUpdate: "IMMEDIATELY";
394
- };
395
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
396
- } & {
397
- keyTest?: undefined;
398
- };
399
- export declare const actionChangeSloppiness: {
400
- name: "changeSloppiness";
401
- label: string;
402
- trackEvent: false;
403
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
404
- elements: ExcalidrawElement[];
405
- appState: {
406
- currentItemRoughness: any;
407
- contextMenu: {
408
- items: import("../components/ContextMenu").ContextMenuItems;
409
- top: number;
410
- left: number;
411
- } | null;
412
- showWelcomeScreen: boolean;
413
- isLoading: boolean;
414
- errorMessage: import("react").ReactNode;
415
- activeEmbeddable: {
416
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
417
- state: "active" | "hover";
418
- } | null;
419
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
420
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
421
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
422
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
423
- isBindingEnabled: boolean;
424
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
425
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
426
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
427
- frameRendering: {
428
- enabled: boolean;
429
- name: boolean;
430
- outline: boolean;
431
- clip: boolean;
432
- };
433
- editingFrame: string | null;
434
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
435
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
436
- activeTool: {
437
- lastActiveTool: import("../types").ActiveTool | null;
438
- locked: boolean;
439
- fromSelection: boolean;
440
- } & import("../types").ActiveTool;
441
- penMode: boolean;
442
- penDetected: boolean;
443
- exportBackground: boolean;
444
- exportEmbedScene: boolean;
445
- exportWithDarkMode: boolean;
446
- exportScale: number;
447
- currentItemStrokeColor: string;
448
- currentItemBackgroundColor: string;
449
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
450
- currentItemStrokeWidth: number;
451
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
452
- currentItemOpacity: number;
453
- currentItemFontFamily: number;
454
- currentItemFontSize: number;
455
- currentItemTextAlign: string;
456
- currentItemStartArrowhead: Arrowhead | null;
457
- currentItemEndArrowhead: Arrowhead | null;
458
- currentHoveredFontFamily: number | null;
459
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
460
- currentItemArrowType: "round" | "sharp" | "elbow";
461
- viewBackgroundColor: string;
462
- scrollX: number;
463
- scrollY: number;
464
- cursorButton: "up" | "down";
465
- scrolledOutside: boolean;
466
- name: string | null;
467
- isResizing: boolean;
468
- isRotating: boolean;
469
- zoom: Readonly<{
470
- value: import("../types").NormalizedZoomValue;
471
- }>;
472
- openMenu: "canvas" | "shape" | null;
473
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
474
- openSidebar: {
475
- name: string;
476
- tab?: string | undefined;
477
- } | null;
478
- openDialog: {
479
- name: "imageExport" | "help" | "jsonExport";
480
- } | {
481
- name: "ttd";
482
- tab: "mermaid" | "text-to-diagram";
483
- } | {
484
- name: "commandPalette";
485
- } | {
486
- name: "elementLinkSelector";
487
- sourceElementId: string;
488
- } | null;
489
- defaultSidebarDockedPreference: boolean;
490
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
491
- selectedElementIds: Readonly<{
492
- [id: string]: true;
493
- }>;
494
- hoveredElementIds: Readonly<{
495
- [id: string]: true;
496
- }>;
497
- previousSelectedElementIds: {
498
- [id: string]: true;
499
- };
500
- selectedElementsAreBeingDragged: boolean;
501
- shouldCacheIgnoreZoom: boolean;
502
- toast: {
503
- message: string;
504
- closable?: boolean | undefined;
505
- duration?: number | undefined;
506
- } | null;
507
- zenModeEnabled: boolean;
508
- theme: import("@excalidraw/element/types").Theme;
509
- gridSize: number;
510
- gridStep: number;
511
- gridModeEnabled: boolean;
512
- viewModeEnabled: boolean;
513
- selectedGroupIds: {
514
- [groupId: string]: boolean;
515
- };
516
- editingGroupId: string | null;
517
- width: number;
518
- height: number;
519
- offsetTop: number;
520
- offsetLeft: number;
521
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
522
- collaborators: Map<import("../types").SocketId, Readonly<{
523
- pointer?: import("../types").CollaboratorPointer | undefined;
524
- button?: "up" | "down" | undefined;
525
- selectedElementIds?: Readonly<{
526
- [id: string]: true;
527
- }> | undefined;
528
- username?: string | null | undefined;
529
- userState?: import("@excalidraw/common").UserIdleState | undefined;
530
- color?: {
531
- background: string;
532
- stroke: string;
533
- } | undefined;
534
- avatarUrl?: string | undefined;
535
- id?: string | undefined;
536
- socketId?: import("../types").SocketId | undefined;
537
- isCurrentUser?: boolean | undefined;
538
- isInCall?: boolean | undefined;
539
- isSpeaking?: boolean | undefined;
540
- isMuted?: boolean | undefined;
541
- }>>;
542
- stats: {
543
- open: boolean;
544
- panels: number;
545
- };
546
- currentChartType: import("@excalidraw/element/types").ChartType;
547
- pasteDialog: {
548
- shown: false;
549
- data: null;
550
- } | {
551
- shown: true;
552
- data: import("../charts").Spreadsheet;
553
- };
554
- showHyperlinkPopup: false | "editor" | "info";
555
- selectedLinearElement: LinearElementEditor | null;
556
- snapLines: readonly import("../snapping").SnapLine[];
557
- originSnapOffset: {
558
- x: number;
559
- y: number;
560
- } | null;
561
- objectsSnapModeEnabled: boolean;
562
- userToFollow: import("../types").UserToFollow | null;
563
- followedBy: Set<import("../types").SocketId>;
564
- isCropping: boolean;
565
- croppingElementId: string | null;
566
- searchMatches: Readonly<{
567
- focusedId: string | null;
568
- matches: readonly import("../types").SearchMatch[];
569
- }> | null;
570
- activeLockedId: string | null;
571
- lockedMultiSelections: {
572
- [groupId: string]: true;
573
- };
574
- stylesPanelMode: "compact" | "full";
575
- };
576
- captureUpdate: "IMMEDIATELY";
577
- };
578
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
579
- } & {
580
- keyTest?: undefined;
581
- };
582
- export declare const actionChangeStrokeStyle: {
583
- name: "changeStrokeStyle";
584
- label: string;
585
- trackEvent: false;
586
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
587
- elements: ExcalidrawElement[];
588
- appState: {
589
- currentItemStrokeStyle: any;
590
- contextMenu: {
591
- items: import("../components/ContextMenu").ContextMenuItems;
592
- top: number;
593
- left: number;
594
- } | null;
595
- showWelcomeScreen: boolean;
596
- isLoading: boolean;
597
- errorMessage: import("react").ReactNode;
598
- activeEmbeddable: {
599
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
600
- state: "active" | "hover";
601
- } | null;
602
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
603
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
604
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
605
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
606
- isBindingEnabled: boolean;
607
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
608
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
609
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
610
- frameRendering: {
611
- enabled: boolean;
612
- name: boolean;
613
- outline: boolean;
614
- clip: boolean;
615
- };
616
- editingFrame: string | null;
617
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
618
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
619
- activeTool: {
620
- lastActiveTool: import("../types").ActiveTool | null;
621
- locked: boolean;
622
- fromSelection: boolean;
623
- } & import("../types").ActiveTool;
624
- penMode: boolean;
625
- penDetected: boolean;
626
- exportBackground: boolean;
627
- exportEmbedScene: boolean;
628
- exportWithDarkMode: boolean;
629
- exportScale: number;
630
- currentItemStrokeColor: string;
631
- currentItemBackgroundColor: string;
632
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
633
- currentItemStrokeWidth: number;
634
- currentItemRoughness: number;
635
- currentItemOpacity: number;
636
- currentItemFontFamily: number;
637
- currentItemFontSize: number;
638
- currentItemTextAlign: string;
639
- currentItemStartArrowhead: Arrowhead | null;
640
- currentItemEndArrowhead: Arrowhead | null;
641
- currentHoveredFontFamily: number | null;
642
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
643
- currentItemArrowType: "round" | "sharp" | "elbow";
644
- viewBackgroundColor: string;
645
- scrollX: number;
646
- scrollY: number;
647
- cursorButton: "up" | "down";
648
- scrolledOutside: boolean;
649
- name: string | null;
650
- isResizing: boolean;
651
- isRotating: boolean;
652
- zoom: Readonly<{
653
- value: import("../types").NormalizedZoomValue;
654
- }>;
655
- openMenu: "canvas" | "shape" | null;
656
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
657
- openSidebar: {
658
- name: string;
659
- tab?: string | undefined;
660
- } | null;
661
- openDialog: {
662
- name: "imageExport" | "help" | "jsonExport";
663
- } | {
664
- name: "ttd";
665
- tab: "mermaid" | "text-to-diagram";
666
- } | {
667
- name: "commandPalette";
668
- } | {
669
- name: "elementLinkSelector";
670
- sourceElementId: string;
671
- } | null;
672
- defaultSidebarDockedPreference: boolean;
673
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
674
- selectedElementIds: Readonly<{
675
- [id: string]: true;
676
- }>;
677
- hoveredElementIds: Readonly<{
678
- [id: string]: true;
679
- }>;
680
- previousSelectedElementIds: {
681
- [id: string]: true;
682
- };
683
- selectedElementsAreBeingDragged: boolean;
684
- shouldCacheIgnoreZoom: boolean;
685
- toast: {
686
- message: string;
687
- closable?: boolean | undefined;
688
- duration?: number | undefined;
689
- } | null;
690
- zenModeEnabled: boolean;
691
- theme: import("@excalidraw/element/types").Theme;
692
- gridSize: number;
693
- gridStep: number;
694
- gridModeEnabled: boolean;
695
- viewModeEnabled: boolean;
696
- selectedGroupIds: {
697
- [groupId: string]: boolean;
698
- };
699
- editingGroupId: string | null;
700
- width: number;
701
- height: number;
702
- offsetTop: number;
703
- offsetLeft: number;
704
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
705
- collaborators: Map<import("../types").SocketId, Readonly<{
706
- pointer?: import("../types").CollaboratorPointer | undefined;
707
- button?: "up" | "down" | undefined;
708
- selectedElementIds?: Readonly<{
709
- [id: string]: true;
710
- }> | undefined;
711
- username?: string | null | undefined;
712
- userState?: import("@excalidraw/common").UserIdleState | undefined;
713
- color?: {
714
- background: string;
715
- stroke: string;
716
- } | undefined;
717
- avatarUrl?: string | undefined;
718
- id?: string | undefined;
719
- socketId?: import("../types").SocketId | undefined;
720
- isCurrentUser?: boolean | undefined;
721
- isInCall?: boolean | undefined;
722
- isSpeaking?: boolean | undefined;
723
- isMuted?: boolean | undefined;
724
- }>>;
725
- stats: {
726
- open: boolean;
727
- panels: number;
728
- };
729
- currentChartType: import("@excalidraw/element/types").ChartType;
730
- pasteDialog: {
731
- shown: false;
732
- data: null;
733
- } | {
734
- shown: true;
735
- data: import("../charts").Spreadsheet;
736
- };
737
- showHyperlinkPopup: false | "editor" | "info";
738
- selectedLinearElement: LinearElementEditor | null;
739
- snapLines: readonly import("../snapping").SnapLine[];
740
- originSnapOffset: {
741
- x: number;
742
- y: number;
743
- } | null;
744
- objectsSnapModeEnabled: boolean;
745
- userToFollow: import("../types").UserToFollow | null;
746
- followedBy: Set<import("../types").SocketId>;
747
- isCropping: boolean;
748
- croppingElementId: string | null;
749
- searchMatches: Readonly<{
750
- focusedId: string | null;
751
- matches: readonly import("../types").SearchMatch[];
752
- }> | null;
753
- activeLockedId: string | null;
754
- lockedMultiSelections: {
755
- [groupId: string]: true;
756
- };
757
- stylesPanelMode: "compact" | "full";
758
- };
759
- captureUpdate: "IMMEDIATELY";
760
- };
761
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
762
- } & {
763
- keyTest?: undefined;
764
- };
765
- export declare const actionChangeOpacity: {
766
- name: "changeOpacity";
767
- label: string;
768
- trackEvent: false;
769
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
770
- elements: ExcalidrawElement[];
771
- appState: {
772
- currentItemOpacity: any;
773
- contextMenu: {
774
- items: import("../components/ContextMenu").ContextMenuItems;
775
- top: number;
776
- left: number;
777
- } | null;
778
- showWelcomeScreen: boolean;
779
- isLoading: boolean;
780
- errorMessage: import("react").ReactNode;
781
- activeEmbeddable: {
782
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
783
- state: "active" | "hover";
784
- } | null;
785
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
786
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
787
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
788
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
789
- isBindingEnabled: boolean;
790
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
791
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
792
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
793
- frameRendering: {
794
- enabled: boolean;
795
- name: boolean;
796
- outline: boolean;
797
- clip: boolean;
798
- };
799
- editingFrame: string | null;
800
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
801
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
802
- activeTool: {
803
- lastActiveTool: import("../types").ActiveTool | null;
804
- locked: boolean;
805
- fromSelection: boolean;
806
- } & import("../types").ActiveTool;
807
- penMode: boolean;
808
- penDetected: boolean;
809
- exportBackground: boolean;
810
- exportEmbedScene: boolean;
811
- exportWithDarkMode: boolean;
812
- exportScale: number;
813
- currentItemStrokeColor: string;
814
- currentItemBackgroundColor: string;
815
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
816
- currentItemStrokeWidth: number;
817
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
818
- currentItemRoughness: number;
819
- currentItemFontFamily: number;
820
- currentItemFontSize: number;
821
- currentItemTextAlign: string;
822
- currentItemStartArrowhead: Arrowhead | null;
823
- currentItemEndArrowhead: Arrowhead | null;
824
- currentHoveredFontFamily: number | null;
825
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
826
- currentItemArrowType: "round" | "sharp" | "elbow";
827
- viewBackgroundColor: string;
828
- scrollX: number;
829
- scrollY: number;
830
- cursorButton: "up" | "down";
831
- scrolledOutside: boolean;
832
- name: string | null;
833
- isResizing: boolean;
834
- isRotating: boolean;
835
- zoom: Readonly<{
836
- value: import("../types").NormalizedZoomValue;
837
- }>;
838
- openMenu: "canvas" | "shape" | null;
839
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
840
- openSidebar: {
841
- name: string;
842
- tab?: string | undefined;
843
- } | null;
844
- openDialog: {
845
- name: "imageExport" | "help" | "jsonExport";
846
- } | {
847
- name: "ttd";
848
- tab: "mermaid" | "text-to-diagram";
849
- } | {
850
- name: "commandPalette";
851
- } | {
852
- name: "elementLinkSelector";
853
- sourceElementId: string;
854
- } | null;
855
- defaultSidebarDockedPreference: boolean;
856
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
857
- selectedElementIds: Readonly<{
858
- [id: string]: true;
859
- }>;
860
- hoveredElementIds: Readonly<{
861
- [id: string]: true;
862
- }>;
863
- previousSelectedElementIds: {
864
- [id: string]: true;
865
- };
866
- selectedElementsAreBeingDragged: boolean;
867
- shouldCacheIgnoreZoom: boolean;
868
- toast: {
869
- message: string;
870
- closable?: boolean | undefined;
871
- duration?: number | undefined;
872
- } | null;
873
- zenModeEnabled: boolean;
874
- theme: import("@excalidraw/element/types").Theme;
875
- gridSize: number;
876
- gridStep: number;
877
- gridModeEnabled: boolean;
878
- viewModeEnabled: boolean;
879
- selectedGroupIds: {
880
- [groupId: string]: boolean;
881
- };
882
- editingGroupId: string | null;
883
- width: number;
884
- height: number;
885
- offsetTop: number;
886
- offsetLeft: number;
887
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
888
- collaborators: Map<import("../types").SocketId, Readonly<{
889
- pointer?: import("../types").CollaboratorPointer | undefined;
890
- button?: "up" | "down" | undefined;
891
- selectedElementIds?: Readonly<{
892
- [id: string]: true;
893
- }> | undefined;
894
- username?: string | null | undefined;
895
- userState?: import("@excalidraw/common").UserIdleState | undefined;
896
- color?: {
897
- background: string;
898
- stroke: string;
899
- } | undefined;
900
- avatarUrl?: string | undefined;
901
- id?: string | undefined;
902
- socketId?: import("../types").SocketId | undefined;
903
- isCurrentUser?: boolean | undefined;
904
- isInCall?: boolean | undefined;
905
- isSpeaking?: boolean | undefined;
906
- isMuted?: boolean | undefined;
907
- }>>;
908
- stats: {
909
- open: boolean;
910
- panels: number;
911
- };
912
- currentChartType: import("@excalidraw/element/types").ChartType;
913
- pasteDialog: {
914
- shown: false;
915
- data: null;
916
- } | {
917
- shown: true;
918
- data: import("../charts").Spreadsheet;
919
- };
920
- showHyperlinkPopup: false | "editor" | "info";
921
- selectedLinearElement: LinearElementEditor | null;
922
- snapLines: readonly import("../snapping").SnapLine[];
923
- originSnapOffset: {
924
- x: number;
925
- y: number;
926
- } | null;
927
- objectsSnapModeEnabled: boolean;
928
- userToFollow: import("../types").UserToFollow | null;
929
- followedBy: Set<import("../types").SocketId>;
930
- isCropping: boolean;
931
- croppingElementId: string | null;
932
- searchMatches: Readonly<{
933
- focusedId: string | null;
934
- matches: readonly import("../types").SearchMatch[];
935
- }> | null;
936
- activeLockedId: string | null;
937
- lockedMultiSelections: {
938
- [groupId: string]: true;
939
- };
940
- stylesPanelMode: "compact" | "full";
941
- };
942
- captureUpdate: "IMMEDIATELY";
943
- };
944
- PanelComponent: ({ app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
945
- } & {
946
- keyTest?: undefined;
947
- };
948
- export declare const actionChangeFontSize: {
949
- name: "changeFontSize";
950
- label: string;
951
- trackEvent: false;
952
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
953
- elements: ExcalidrawElement[];
954
- appState: {
955
- currentItemFontSize: number;
956
- contextMenu: {
957
- items: import("../components/ContextMenu").ContextMenuItems;
958
- top: number;
959
- left: number;
960
- } | null;
961
- showWelcomeScreen: boolean;
962
- isLoading: boolean;
963
- errorMessage: import("react").ReactNode;
964
- activeEmbeddable: {
965
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
966
- state: "active" | "hover";
967
- } | null;
968
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
969
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
970
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
971
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
972
- isBindingEnabled: boolean;
973
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
974
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
975
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
976
- frameRendering: {
977
- enabled: boolean;
978
- name: boolean;
979
- outline: boolean;
980
- clip: boolean;
981
- };
982
- editingFrame: string | null;
983
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
984
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
985
- activeTool: {
986
- lastActiveTool: import("../types").ActiveTool | null;
987
- locked: boolean;
988
- fromSelection: boolean;
989
- } & import("../types").ActiveTool;
990
- penMode: boolean;
991
- penDetected: boolean;
992
- exportBackground: boolean;
993
- exportEmbedScene: boolean;
994
- exportWithDarkMode: boolean;
995
- exportScale: number;
996
- currentItemStrokeColor: string;
997
- currentItemBackgroundColor: string;
998
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
999
- currentItemStrokeWidth: number;
1000
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1001
- currentItemRoughness: number;
1002
- currentItemOpacity: number;
1003
- currentItemFontFamily: number;
1004
- currentItemTextAlign: string;
1005
- currentItemStartArrowhead: Arrowhead | null;
1006
- currentItemEndArrowhead: Arrowhead | null;
1007
- currentHoveredFontFamily: number | null;
1008
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1009
- currentItemArrowType: "round" | "sharp" | "elbow";
1010
- viewBackgroundColor: string;
1011
- scrollX: number;
1012
- scrollY: number;
1013
- cursorButton: "up" | "down";
1014
- scrolledOutside: boolean;
1015
- name: string | null;
1016
- isResizing: boolean;
1017
- isRotating: boolean;
1018
- zoom: Readonly<{
1019
- value: import("../types").NormalizedZoomValue;
1020
- }>;
1021
- openMenu: "canvas" | "shape" | null;
1022
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1023
- openSidebar: {
1024
- name: string;
1025
- tab?: string | undefined;
1026
- } | null;
1027
- openDialog: {
1028
- name: "imageExport" | "help" | "jsonExport";
1029
- } | {
1030
- name: "ttd";
1031
- tab: "mermaid" | "text-to-diagram";
1032
- } | {
1033
- name: "commandPalette";
1034
- } | {
1035
- name: "elementLinkSelector";
1036
- sourceElementId: string;
1037
- } | null;
1038
- defaultSidebarDockedPreference: boolean;
1039
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1040
- selectedElementIds: Readonly<{
1041
- [id: string]: true;
1042
- }>;
1043
- hoveredElementIds: Readonly<{
1044
- [id: string]: true;
1045
- }>;
1046
- previousSelectedElementIds: {
1047
- [id: string]: true;
1048
- };
1049
- selectedElementsAreBeingDragged: boolean;
1050
- shouldCacheIgnoreZoom: boolean;
1051
- toast: {
1052
- message: string;
1053
- closable?: boolean | undefined;
1054
- duration?: number | undefined;
1055
- } | null;
1056
- zenModeEnabled: boolean;
1057
- theme: import("@excalidraw/element/types").Theme;
1058
- gridSize: number;
1059
- gridStep: number;
1060
- gridModeEnabled: boolean;
1061
- viewModeEnabled: boolean;
1062
- selectedGroupIds: {
1063
- [groupId: string]: boolean;
1064
- };
1065
- editingGroupId: string | null;
1066
- width: number;
1067
- height: number;
1068
- offsetTop: number;
1069
- offsetLeft: number;
1070
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1071
- collaborators: Map<import("../types").SocketId, Readonly<{
1072
- pointer?: import("../types").CollaboratorPointer | undefined;
1073
- button?: "up" | "down" | undefined;
1074
- selectedElementIds?: Readonly<{
1075
- [id: string]: true;
1076
- }> | undefined;
1077
- username?: string | null | undefined;
1078
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1079
- color?: {
1080
- background: string;
1081
- stroke: string;
1082
- } | undefined;
1083
- avatarUrl?: string | undefined;
1084
- id?: string | undefined;
1085
- socketId?: import("../types").SocketId | undefined;
1086
- isCurrentUser?: boolean | undefined;
1087
- isInCall?: boolean | undefined;
1088
- isSpeaking?: boolean | undefined;
1089
- isMuted?: boolean | undefined;
1090
- }>>;
1091
- stats: {
1092
- open: boolean;
1093
- panels: number;
1094
- };
1095
- currentChartType: import("@excalidraw/element/types").ChartType;
1096
- pasteDialog: {
1097
- shown: false;
1098
- data: null;
1099
- } | {
1100
- shown: true;
1101
- data: import("../charts").Spreadsheet;
1102
- };
1103
- showHyperlinkPopup: false | "editor" | "info";
1104
- selectedLinearElement: LinearElementEditor | null;
1105
- snapLines: readonly import("../snapping").SnapLine[];
1106
- originSnapOffset: {
1107
- x: number;
1108
- y: number;
1109
- } | null;
1110
- objectsSnapModeEnabled: boolean;
1111
- userToFollow: import("../types").UserToFollow | null;
1112
- followedBy: Set<import("../types").SocketId>;
1113
- isCropping: boolean;
1114
- croppingElementId: string | null;
1115
- searchMatches: Readonly<{
1116
- focusedId: string | null;
1117
- matches: readonly import("../types").SearchMatch[];
1118
- }> | null;
1119
- activeLockedId: string | null;
1120
- lockedMultiSelections: {
1121
- [groupId: string]: true;
1122
- };
1123
- stylesPanelMode: "compact" | "full";
1124
- };
1125
- captureUpdate: "IMMEDIATELY";
1126
- };
1127
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1128
- } & {
1129
- keyTest?: undefined;
1130
- };
1131
- export declare const actionDecreaseFontSize: {
1132
- name: "decreaseFontSize";
1133
- label: string;
1134
- icon: import("react/jsx-runtime").JSX.Element;
1135
- trackEvent: false;
1136
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1137
- elements: ExcalidrawElement[];
1138
- appState: {
1139
- currentItemFontSize: number;
1140
- contextMenu: {
1141
- items: import("../components/ContextMenu").ContextMenuItems;
1142
- top: number;
1143
- left: number;
1144
- } | null;
1145
- showWelcomeScreen: boolean;
1146
- isLoading: boolean;
1147
- errorMessage: import("react").ReactNode;
1148
- activeEmbeddable: {
1149
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1150
- state: "active" | "hover";
1151
- } | null;
1152
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1153
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1154
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1155
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1156
- isBindingEnabled: boolean;
1157
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1158
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1159
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1160
- frameRendering: {
1161
- enabled: boolean;
1162
- name: boolean;
1163
- outline: boolean;
1164
- clip: boolean;
1165
- };
1166
- editingFrame: string | null;
1167
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1168
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1169
- activeTool: {
1170
- lastActiveTool: import("../types").ActiveTool | null;
1171
- locked: boolean;
1172
- fromSelection: boolean;
1173
- } & import("../types").ActiveTool;
1174
- penMode: boolean;
1175
- penDetected: boolean;
1176
- exportBackground: boolean;
1177
- exportEmbedScene: boolean;
1178
- exportWithDarkMode: boolean;
1179
- exportScale: number;
1180
- currentItemStrokeColor: string;
1181
- currentItemBackgroundColor: string;
1182
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1183
- currentItemStrokeWidth: number;
1184
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1185
- currentItemRoughness: number;
1186
- currentItemOpacity: number;
1187
- currentItemFontFamily: number;
1188
- currentItemTextAlign: string;
1189
- currentItemStartArrowhead: Arrowhead | null;
1190
- currentItemEndArrowhead: Arrowhead | null;
1191
- currentHoveredFontFamily: number | null;
1192
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1193
- currentItemArrowType: "round" | "sharp" | "elbow";
1194
- viewBackgroundColor: string;
1195
- scrollX: number;
1196
- scrollY: number;
1197
- cursorButton: "up" | "down";
1198
- scrolledOutside: boolean;
1199
- name: string | null;
1200
- isResizing: boolean;
1201
- isRotating: boolean;
1202
- zoom: Readonly<{
1203
- value: import("../types").NormalizedZoomValue;
1204
- }>;
1205
- openMenu: "canvas" | "shape" | null;
1206
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1207
- openSidebar: {
1208
- name: string;
1209
- tab?: string | undefined;
1210
- } | null;
1211
- openDialog: {
1212
- name: "imageExport" | "help" | "jsonExport";
1213
- } | {
1214
- name: "ttd";
1215
- tab: "mermaid" | "text-to-diagram";
1216
- } | {
1217
- name: "commandPalette";
1218
- } | {
1219
- name: "elementLinkSelector";
1220
- sourceElementId: string;
1221
- } | null;
1222
- defaultSidebarDockedPreference: boolean;
1223
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1224
- selectedElementIds: Readonly<{
1225
- [id: string]: true;
1226
- }>;
1227
- hoveredElementIds: Readonly<{
1228
- [id: string]: true;
1229
- }>;
1230
- previousSelectedElementIds: {
1231
- [id: string]: true;
1232
- };
1233
- selectedElementsAreBeingDragged: boolean;
1234
- shouldCacheIgnoreZoom: boolean;
1235
- toast: {
1236
- message: string;
1237
- closable?: boolean | undefined;
1238
- duration?: number | undefined;
1239
- } | null;
1240
- zenModeEnabled: boolean;
1241
- theme: import("@excalidraw/element/types").Theme;
1242
- gridSize: number;
1243
- gridStep: number;
1244
- gridModeEnabled: boolean;
1245
- viewModeEnabled: boolean;
1246
- selectedGroupIds: {
1247
- [groupId: string]: boolean;
1248
- };
1249
- editingGroupId: string | null;
1250
- width: number;
1251
- height: number;
1252
- offsetTop: number;
1253
- offsetLeft: number;
1254
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1255
- collaborators: Map<import("../types").SocketId, Readonly<{
1256
- pointer?: import("../types").CollaboratorPointer | undefined;
1257
- button?: "up" | "down" | undefined;
1258
- selectedElementIds?: Readonly<{
1259
- [id: string]: true;
1260
- }> | undefined;
1261
- username?: string | null | undefined;
1262
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1263
- color?: {
1264
- background: string;
1265
- stroke: string;
1266
- } | undefined;
1267
- avatarUrl?: string | undefined;
1268
- id?: string | undefined;
1269
- socketId?: import("../types").SocketId | undefined;
1270
- isCurrentUser?: boolean | undefined;
1271
- isInCall?: boolean | undefined;
1272
- isSpeaking?: boolean | undefined;
1273
- isMuted?: boolean | undefined;
1274
- }>>;
1275
- stats: {
1276
- open: boolean;
1277
- panels: number;
1278
- };
1279
- currentChartType: import("@excalidraw/element/types").ChartType;
1280
- pasteDialog: {
1281
- shown: false;
1282
- data: null;
1283
- } | {
1284
- shown: true;
1285
- data: import("../charts").Spreadsheet;
1286
- };
1287
- showHyperlinkPopup: false | "editor" | "info";
1288
- selectedLinearElement: LinearElementEditor | null;
1289
- snapLines: readonly import("../snapping").SnapLine[];
1290
- originSnapOffset: {
1291
- x: number;
1292
- y: number;
1293
- } | null;
1294
- objectsSnapModeEnabled: boolean;
1295
- userToFollow: import("../types").UserToFollow | null;
1296
- followedBy: Set<import("../types").SocketId>;
1297
- isCropping: boolean;
1298
- croppingElementId: string | null;
1299
- searchMatches: Readonly<{
1300
- focusedId: string | null;
1301
- matches: readonly import("../types").SearchMatch[];
1302
- }> | null;
1303
- activeLockedId: string | null;
1304
- lockedMultiSelections: {
1305
- [groupId: string]: true;
1306
- };
1307
- stylesPanelMode: "compact" | "full";
1308
- };
1309
- captureUpdate: "IMMEDIATELY";
1310
- };
1311
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1312
- } & {
1313
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1314
- };
1315
- export declare const actionIncreaseFontSize: {
1316
- name: "increaseFontSize";
1317
- label: string;
1318
- icon: import("react/jsx-runtime").JSX.Element;
1319
- trackEvent: false;
1320
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1321
- elements: ExcalidrawElement[];
1322
- appState: {
1323
- currentItemFontSize: number;
1324
- contextMenu: {
1325
- items: import("../components/ContextMenu").ContextMenuItems;
1326
- top: number;
1327
- left: number;
1328
- } | null;
1329
- showWelcomeScreen: boolean;
1330
- isLoading: boolean;
1331
- errorMessage: import("react").ReactNode;
1332
- activeEmbeddable: {
1333
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1334
- state: "active" | "hover";
1335
- } | null;
1336
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1337
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1338
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1339
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1340
- isBindingEnabled: boolean;
1341
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1342
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1343
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1344
- frameRendering: {
1345
- enabled: boolean;
1346
- name: boolean;
1347
- outline: boolean;
1348
- clip: boolean;
1349
- };
1350
- editingFrame: string | null;
1351
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1352
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1353
- activeTool: {
1354
- lastActiveTool: import("../types").ActiveTool | null;
1355
- locked: boolean;
1356
- fromSelection: boolean;
1357
- } & import("../types").ActiveTool;
1358
- penMode: boolean;
1359
- penDetected: boolean;
1360
- exportBackground: boolean;
1361
- exportEmbedScene: boolean;
1362
- exportWithDarkMode: boolean;
1363
- exportScale: number;
1364
- currentItemStrokeColor: string;
1365
- currentItemBackgroundColor: string;
1366
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1367
- currentItemStrokeWidth: number;
1368
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1369
- currentItemRoughness: number;
1370
- currentItemOpacity: number;
1371
- currentItemFontFamily: number;
1372
- currentItemTextAlign: string;
1373
- currentItemStartArrowhead: Arrowhead | null;
1374
- currentItemEndArrowhead: Arrowhead | null;
1375
- currentHoveredFontFamily: number | null;
1376
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1377
- currentItemArrowType: "round" | "sharp" | "elbow";
1378
- viewBackgroundColor: string;
1379
- scrollX: number;
1380
- scrollY: number;
1381
- cursorButton: "up" | "down";
1382
- scrolledOutside: boolean;
1383
- name: string | null;
1384
- isResizing: boolean;
1385
- isRotating: boolean;
1386
- zoom: Readonly<{
1387
- value: import("../types").NormalizedZoomValue;
1388
- }>;
1389
- openMenu: "canvas" | "shape" | null;
1390
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1391
- openSidebar: {
1392
- name: string;
1393
- tab?: string | undefined;
1394
- } | null;
1395
- openDialog: {
1396
- name: "imageExport" | "help" | "jsonExport";
1397
- } | {
1398
- name: "ttd";
1399
- tab: "mermaid" | "text-to-diagram";
1400
- } | {
1401
- name: "commandPalette";
1402
- } | {
1403
- name: "elementLinkSelector";
1404
- sourceElementId: string;
1405
- } | null;
1406
- defaultSidebarDockedPreference: boolean;
1407
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1408
- selectedElementIds: Readonly<{
1409
- [id: string]: true;
1410
- }>;
1411
- hoveredElementIds: Readonly<{
1412
- [id: string]: true;
1413
- }>;
1414
- previousSelectedElementIds: {
1415
- [id: string]: true;
1416
- };
1417
- selectedElementsAreBeingDragged: boolean;
1418
- shouldCacheIgnoreZoom: boolean;
1419
- toast: {
1420
- message: string;
1421
- closable?: boolean | undefined;
1422
- duration?: number | undefined;
1423
- } | null;
1424
- zenModeEnabled: boolean;
1425
- theme: import("@excalidraw/element/types").Theme;
1426
- gridSize: number;
1427
- gridStep: number;
1428
- gridModeEnabled: boolean;
1429
- viewModeEnabled: boolean;
1430
- selectedGroupIds: {
1431
- [groupId: string]: boolean;
1432
- };
1433
- editingGroupId: string | null;
1434
- width: number;
1435
- height: number;
1436
- offsetTop: number;
1437
- offsetLeft: number;
1438
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1439
- collaborators: Map<import("../types").SocketId, Readonly<{
1440
- pointer?: import("../types").CollaboratorPointer | undefined;
1441
- button?: "up" | "down" | undefined;
1442
- selectedElementIds?: Readonly<{
1443
- [id: string]: true;
1444
- }> | undefined;
1445
- username?: string | null | undefined;
1446
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1447
- color?: {
1448
- background: string;
1449
- stroke: string;
1450
- } | undefined;
1451
- avatarUrl?: string | undefined;
1452
- id?: string | undefined;
1453
- socketId?: import("../types").SocketId | undefined;
1454
- isCurrentUser?: boolean | undefined;
1455
- isInCall?: boolean | undefined;
1456
- isSpeaking?: boolean | undefined;
1457
- isMuted?: boolean | undefined;
1458
- }>>;
1459
- stats: {
1460
- open: boolean;
1461
- panels: number;
1462
- };
1463
- currentChartType: import("@excalidraw/element/types").ChartType;
1464
- pasteDialog: {
1465
- shown: false;
1466
- data: null;
1467
- } | {
1468
- shown: true;
1469
- data: import("../charts").Spreadsheet;
1470
- };
1471
- showHyperlinkPopup: false | "editor" | "info";
1472
- selectedLinearElement: LinearElementEditor | null;
1473
- snapLines: readonly import("../snapping").SnapLine[];
1474
- originSnapOffset: {
1475
- x: number;
1476
- y: number;
1477
- } | null;
1478
- objectsSnapModeEnabled: boolean;
1479
- userToFollow: import("../types").UserToFollow | null;
1480
- followedBy: Set<import("../types").SocketId>;
1481
- isCropping: boolean;
1482
- croppingElementId: string | null;
1483
- searchMatches: Readonly<{
1484
- focusedId: string | null;
1485
- matches: readonly import("../types").SearchMatch[];
1486
- }> | null;
1487
- activeLockedId: string | null;
1488
- lockedMultiSelections: {
1489
- [groupId: string]: true;
1490
- };
1491
- stylesPanelMode: "compact" | "full";
1492
- };
1493
- captureUpdate: "IMMEDIATELY";
1494
- };
1495
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1496
- } & {
1497
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1498
- };
1499
- export declare const actionChangeFontFamily: {
1500
- name: "changeFontFamily";
1501
- label: string;
1502
- trackEvent: false;
1503
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1504
- appState: {
1505
- currentItemFontFamily: number;
1506
- currentHoveredFontFamily: number | null;
1507
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1508
- contextMenu: {
1509
- items: import("../components/ContextMenu").ContextMenuItems;
1510
- top: number;
1511
- left: number;
1512
- } | null;
1513
- showWelcomeScreen: boolean;
1514
- isLoading: boolean;
1515
- errorMessage: import("react").ReactNode;
1516
- activeEmbeddable: {
1517
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1518
- state: "active" | "hover";
1519
- } | null;
1520
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1521
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1522
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1523
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1524
- isBindingEnabled: boolean;
1525
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1526
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1527
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1528
- frameRendering: {
1529
- enabled: boolean;
1530
- name: boolean;
1531
- outline: boolean;
1532
- clip: boolean;
1533
- };
1534
- editingFrame: string | null;
1535
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1536
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1537
- activeTool: {
1538
- lastActiveTool: import("../types").ActiveTool | null;
1539
- locked: boolean;
1540
- fromSelection: boolean;
1541
- } & import("../types").ActiveTool;
1542
- penMode: boolean;
1543
- penDetected: boolean;
1544
- exportBackground: boolean;
1545
- exportEmbedScene: boolean;
1546
- exportWithDarkMode: boolean;
1547
- exportScale: number;
1548
- currentItemStrokeColor: string;
1549
- currentItemBackgroundColor: string;
1550
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1551
- currentItemStrokeWidth: number;
1552
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1553
- currentItemRoughness: number;
1554
- currentItemOpacity: number;
1555
- currentItemFontSize: number;
1556
- currentItemTextAlign: string;
1557
- currentItemStartArrowhead: Arrowhead | null;
1558
- currentItemEndArrowhead: Arrowhead | null;
1559
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1560
- currentItemArrowType: "round" | "sharp" | "elbow";
1561
- viewBackgroundColor: string;
1562
- scrollX: number;
1563
- scrollY: number;
1564
- cursorButton: "up" | "down";
1565
- scrolledOutside: boolean;
1566
- name: string | null;
1567
- isResizing: boolean;
1568
- isRotating: boolean;
1569
- zoom: Readonly<{
1570
- value: import("../types").NormalizedZoomValue;
1571
- }>;
1572
- openMenu: "canvas" | "shape" | null;
1573
- openSidebar: {
1574
- name: string;
1575
- tab?: string | undefined;
1576
- } | null;
1577
- openDialog: {
1578
- name: "imageExport" | "help" | "jsonExport";
1579
- } | {
1580
- name: "ttd";
1581
- tab: "mermaid" | "text-to-diagram";
1582
- } | {
1583
- name: "commandPalette";
1584
- } | {
1585
- name: "elementLinkSelector";
1586
- sourceElementId: string;
1587
- } | null;
1588
- defaultSidebarDockedPreference: boolean;
1589
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1590
- selectedElementIds: Readonly<{
1591
- [id: string]: true;
1592
- }>;
1593
- hoveredElementIds: Readonly<{
1594
- [id: string]: true;
1595
- }>;
1596
- previousSelectedElementIds: {
1597
- [id: string]: true;
1598
- };
1599
- selectedElementsAreBeingDragged: boolean;
1600
- shouldCacheIgnoreZoom: boolean;
1601
- toast: {
1602
- message: string;
1603
- closable?: boolean | undefined;
1604
- duration?: number | undefined;
1605
- } | null;
1606
- zenModeEnabled: boolean;
1607
- theme: import("@excalidraw/element/types").Theme;
1608
- gridSize: number;
1609
- gridStep: number;
1610
- gridModeEnabled: boolean;
1611
- viewModeEnabled: boolean;
1612
- selectedGroupIds: {
1613
- [groupId: string]: boolean;
1614
- };
1615
- editingGroupId: string | null;
1616
- width: number;
1617
- height: number;
1618
- offsetTop: number;
1619
- offsetLeft: number;
1620
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1621
- collaborators: Map<import("../types").SocketId, Readonly<{
1622
- pointer?: import("../types").CollaboratorPointer | undefined;
1623
- button?: "up" | "down" | undefined;
1624
- selectedElementIds?: Readonly<{
1625
- [id: string]: true;
1626
- }> | undefined;
1627
- username?: string | null | undefined;
1628
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1629
- color?: {
1630
- background: string;
1631
- stroke: string;
1632
- } | undefined;
1633
- avatarUrl?: string | undefined;
1634
- id?: string | undefined;
1635
- socketId?: import("../types").SocketId | undefined;
1636
- isCurrentUser?: boolean | undefined;
1637
- isInCall?: boolean | undefined;
1638
- isSpeaking?: boolean | undefined;
1639
- isMuted?: boolean | undefined;
1640
- }>>;
1641
- stats: {
1642
- open: boolean;
1643
- panels: number;
1644
- };
1645
- currentChartType: import("@excalidraw/element/types").ChartType;
1646
- pasteDialog: {
1647
- shown: false;
1648
- data: null;
1649
- } | {
1650
- shown: true;
1651
- data: import("../charts").Spreadsheet;
1652
- };
1653
- showHyperlinkPopup: false | "editor" | "info";
1654
- selectedLinearElement: LinearElementEditor | null;
1655
- snapLines: readonly import("../snapping").SnapLine[];
1656
- originSnapOffset: {
1657
- x: number;
1658
- y: number;
1659
- } | null;
1660
- objectsSnapModeEnabled: boolean;
1661
- userToFollow: import("../types").UserToFollow | null;
1662
- followedBy: Set<import("../types").SocketId>;
1663
- isCropping: boolean;
1664
- croppingElementId: string | null;
1665
- searchMatches: Readonly<{
1666
- focusedId: string | null;
1667
- matches: readonly import("../types").SearchMatch[];
1668
- }> | null;
1669
- activeLockedId: string | null;
1670
- lockedMultiSelections: {
1671
- [groupId: string]: true;
1672
- };
1673
- stylesPanelMode: "compact" | "full";
1674
- };
1675
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1676
- } | {
1677
- elements: ExcalidrawElement[];
1678
- appState: {
1679
- currentItemFontFamily: number;
1680
- currentHoveredFontFamily: number | null;
1681
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1682
- contextMenu: {
1683
- items: import("../components/ContextMenu").ContextMenuItems;
1684
- top: number;
1685
- left: number;
1686
- } | null;
1687
- showWelcomeScreen: boolean;
1688
- isLoading: boolean;
1689
- errorMessage: import("react").ReactNode;
1690
- activeEmbeddable: {
1691
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1692
- state: "active" | "hover";
1693
- } | null;
1694
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1695
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1696
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1697
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1698
- isBindingEnabled: boolean;
1699
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1700
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1701
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1702
- frameRendering: {
1703
- enabled: boolean;
1704
- name: boolean;
1705
- outline: boolean;
1706
- clip: boolean;
1707
- };
1708
- editingFrame: string | null;
1709
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1710
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1711
- activeTool: {
1712
- lastActiveTool: import("../types").ActiveTool | null;
1713
- locked: boolean;
1714
- fromSelection: boolean;
1715
- } & import("../types").ActiveTool;
1716
- penMode: boolean;
1717
- penDetected: boolean;
1718
- exportBackground: boolean;
1719
- exportEmbedScene: boolean;
1720
- exportWithDarkMode: boolean;
1721
- exportScale: number;
1722
- currentItemStrokeColor: string;
1723
- currentItemBackgroundColor: string;
1724
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1725
- currentItemStrokeWidth: number;
1726
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1727
- currentItemRoughness: number;
1728
- currentItemOpacity: number;
1729
- currentItemFontSize: number;
1730
- currentItemTextAlign: string;
1731
- currentItemStartArrowhead: Arrowhead | null;
1732
- currentItemEndArrowhead: Arrowhead | null;
1733
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1734
- currentItemArrowType: "round" | "sharp" | "elbow";
1735
- viewBackgroundColor: string;
1736
- scrollX: number;
1737
- scrollY: number;
1738
- cursorButton: "up" | "down";
1739
- scrolledOutside: boolean;
1740
- name: string | null;
1741
- isResizing: boolean;
1742
- isRotating: boolean;
1743
- zoom: Readonly<{
1744
- value: import("../types").NormalizedZoomValue;
1745
- }>;
1746
- openMenu: "canvas" | "shape" | null;
1747
- openSidebar: {
1748
- name: string;
1749
- tab?: string | undefined;
1750
- } | null;
1751
- openDialog: {
1752
- name: "imageExport" | "help" | "jsonExport";
1753
- } | {
1754
- name: "ttd";
1755
- tab: "mermaid" | "text-to-diagram";
1756
- } | {
1757
- name: "commandPalette";
1758
- } | {
1759
- name: "elementLinkSelector";
1760
- sourceElementId: string;
1761
- } | null;
1762
- defaultSidebarDockedPreference: boolean;
1763
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1764
- selectedElementIds: Readonly<{
1765
- [id: string]: true;
1766
- }>;
1767
- hoveredElementIds: Readonly<{
1768
- [id: string]: true;
1769
- }>;
1770
- previousSelectedElementIds: {
1771
- [id: string]: true;
1772
- };
1773
- selectedElementsAreBeingDragged: boolean;
1774
- shouldCacheIgnoreZoom: boolean;
1775
- toast: {
1776
- message: string;
1777
- closable?: boolean | undefined;
1778
- duration?: number | undefined;
1779
- } | null;
1780
- zenModeEnabled: boolean;
1781
- theme: import("@excalidraw/element/types").Theme;
1782
- gridSize: number;
1783
- gridStep: number;
1784
- gridModeEnabled: boolean;
1785
- viewModeEnabled: boolean;
1786
- selectedGroupIds: {
1787
- [groupId: string]: boolean;
1788
- };
1789
- editingGroupId: string | null;
1790
- width: number;
1791
- height: number;
1792
- offsetTop: number;
1793
- offsetLeft: number;
1794
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1795
- collaborators: Map<import("../types").SocketId, Readonly<{
1796
- pointer?: import("../types").CollaboratorPointer | undefined;
1797
- button?: "up" | "down" | undefined;
1798
- selectedElementIds?: Readonly<{
1799
- [id: string]: true;
1800
- }> | undefined;
1801
- username?: string | null | undefined;
1802
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1803
- color?: {
1804
- background: string;
1805
- stroke: string;
1806
- } | undefined;
1807
- avatarUrl?: string | undefined;
1808
- id?: string | undefined;
1809
- socketId?: import("../types").SocketId | undefined;
1810
- isCurrentUser?: boolean | undefined;
1811
- isInCall?: boolean | undefined;
1812
- isSpeaking?: boolean | undefined;
1813
- isMuted?: boolean | undefined;
1814
- }>>;
1815
- stats: {
1816
- open: boolean;
1817
- panels: number;
1818
- };
1819
- currentChartType: import("@excalidraw/element/types").ChartType;
1820
- pasteDialog: {
1821
- shown: false;
1822
- data: null;
1823
- } | {
1824
- shown: true;
1825
- data: import("../charts").Spreadsheet;
1826
- };
1827
- showHyperlinkPopup: false | "editor" | "info";
1828
- selectedLinearElement: LinearElementEditor | null;
1829
- snapLines: readonly import("../snapping").SnapLine[];
1830
- originSnapOffset: {
1831
- x: number;
1832
- y: number;
1833
- } | null;
1834
- objectsSnapModeEnabled: boolean;
1835
- userToFollow: import("../types").UserToFollow | null;
1836
- followedBy: Set<import("../types").SocketId>;
1837
- isCropping: boolean;
1838
- croppingElementId: string | null;
1839
- searchMatches: Readonly<{
1840
- focusedId: string | null;
1841
- matches: readonly import("../types").SearchMatch[];
1842
- }> | null;
1843
- activeLockedId: string | null;
1844
- lockedMultiSelections: {
1845
- [groupId: string]: true;
1846
- };
1847
- stylesPanelMode: "compact" | "full";
1848
- };
1849
- captureUpdate: "NEVER";
1850
- };
1851
- PanelComponent: ({ elements, appState, app, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1852
- } & {
1853
- keyTest?: undefined;
1854
- };
1855
- export declare const actionChangeTextAlign: {
1856
- name: "changeTextAlign";
1857
- label: string;
1858
- trackEvent: false;
1859
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1860
- elements: ExcalidrawElement[];
1861
- appState: {
1862
- currentItemTextAlign: any;
1863
- contextMenu: {
1864
- items: import("../components/ContextMenu").ContextMenuItems;
1865
- top: number;
1866
- left: number;
1867
- } | null;
1868
- showWelcomeScreen: boolean;
1869
- isLoading: boolean;
1870
- errorMessage: import("react").ReactNode;
1871
- activeEmbeddable: {
1872
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1873
- state: "active" | "hover";
1874
- } | null;
1875
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1876
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1877
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1878
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1879
- isBindingEnabled: boolean;
1880
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1881
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1882
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1883
- frameRendering: {
1884
- enabled: boolean;
1885
- name: boolean;
1886
- outline: boolean;
1887
- clip: boolean;
1888
- };
1889
- editingFrame: string | null;
1890
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1891
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1892
- activeTool: {
1893
- lastActiveTool: import("../types").ActiveTool | null;
1894
- locked: boolean;
1895
- fromSelection: boolean;
1896
- } & import("../types").ActiveTool;
1897
- penMode: boolean;
1898
- penDetected: boolean;
1899
- exportBackground: boolean;
1900
- exportEmbedScene: boolean;
1901
- exportWithDarkMode: boolean;
1902
- exportScale: number;
1903
- currentItemStrokeColor: string;
1904
- currentItemBackgroundColor: string;
1905
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1906
- currentItemStrokeWidth: number;
1907
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1908
- currentItemRoughness: number;
1909
- currentItemOpacity: number;
1910
- currentItemFontFamily: number;
1911
- currentItemFontSize: number;
1912
- currentItemStartArrowhead: Arrowhead | null;
1913
- currentItemEndArrowhead: Arrowhead | null;
1914
- currentHoveredFontFamily: number | null;
1915
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1916
- currentItemArrowType: "round" | "sharp" | "elbow";
1917
- viewBackgroundColor: string;
1918
- scrollX: number;
1919
- scrollY: number;
1920
- cursorButton: "up" | "down";
1921
- scrolledOutside: boolean;
1922
- name: string | null;
1923
- isResizing: boolean;
1924
- isRotating: boolean;
1925
- zoom: Readonly<{
1926
- value: import("../types").NormalizedZoomValue;
1927
- }>;
1928
- openMenu: "canvas" | "shape" | null;
1929
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1930
- openSidebar: {
1931
- name: string;
1932
- tab?: string | undefined;
1933
- } | null;
1934
- openDialog: {
1935
- name: "imageExport" | "help" | "jsonExport";
1936
- } | {
1937
- name: "ttd";
1938
- tab: "mermaid" | "text-to-diagram";
1939
- } | {
1940
- name: "commandPalette";
1941
- } | {
1942
- name: "elementLinkSelector";
1943
- sourceElementId: string;
1944
- } | null;
1945
- defaultSidebarDockedPreference: boolean;
1946
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1947
- selectedElementIds: Readonly<{
1948
- [id: string]: true;
1949
- }>;
1950
- hoveredElementIds: Readonly<{
1951
- [id: string]: true;
1952
- }>;
1953
- previousSelectedElementIds: {
1954
- [id: string]: true;
1955
- };
1956
- selectedElementsAreBeingDragged: boolean;
1957
- shouldCacheIgnoreZoom: boolean;
1958
- toast: {
1959
- message: string;
1960
- closable?: boolean | undefined;
1961
- duration?: number | undefined;
1962
- } | null;
1963
- zenModeEnabled: boolean;
1964
- theme: import("@excalidraw/element/types").Theme;
1965
- gridSize: number;
1966
- gridStep: number;
1967
- gridModeEnabled: boolean;
1968
- viewModeEnabled: boolean;
1969
- selectedGroupIds: {
1970
- [groupId: string]: boolean;
1971
- };
1972
- editingGroupId: string | null;
1973
- width: number;
1974
- height: number;
1975
- offsetTop: number;
1976
- offsetLeft: number;
1977
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1978
- collaborators: Map<import("../types").SocketId, Readonly<{
1979
- pointer?: import("../types").CollaboratorPointer | undefined;
1980
- button?: "up" | "down" | undefined;
1981
- selectedElementIds?: Readonly<{
1982
- [id: string]: true;
1983
- }> | undefined;
1984
- username?: string | null | undefined;
1985
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1986
- color?: {
1987
- background: string;
1988
- stroke: string;
1989
- } | undefined;
1990
- avatarUrl?: string | undefined;
1991
- id?: string | undefined;
1992
- socketId?: import("../types").SocketId | undefined;
1993
- isCurrentUser?: boolean | undefined;
1994
- isInCall?: boolean | undefined;
1995
- isSpeaking?: boolean | undefined;
1996
- isMuted?: boolean | undefined;
1997
- }>>;
1998
- stats: {
1999
- open: boolean;
2000
- panels: number;
2001
- };
2002
- currentChartType: import("@excalidraw/element/types").ChartType;
2003
- pasteDialog: {
2004
- shown: false;
2005
- data: null;
2006
- } | {
2007
- shown: true;
2008
- data: import("../charts").Spreadsheet;
2009
- };
2010
- showHyperlinkPopup: false | "editor" | "info";
2011
- selectedLinearElement: LinearElementEditor | null;
2012
- snapLines: readonly import("../snapping").SnapLine[];
2013
- originSnapOffset: {
2014
- x: number;
2015
- y: number;
2016
- } | null;
2017
- objectsSnapModeEnabled: boolean;
2018
- userToFollow: import("../types").UserToFollow | null;
2019
- followedBy: Set<import("../types").SocketId>;
2020
- isCropping: boolean;
2021
- croppingElementId: string | null;
2022
- searchMatches: Readonly<{
2023
- focusedId: string | null;
2024
- matches: readonly import("../types").SearchMatch[];
2025
- }> | null;
2026
- activeLockedId: string | null;
2027
- lockedMultiSelections: {
2028
- [groupId: string]: true;
2029
- };
2030
- stylesPanelMode: "compact" | "full";
2031
- };
2032
- captureUpdate: "IMMEDIATELY";
2033
- };
2034
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2035
- } & {
2036
- keyTest?: undefined;
2037
- };
2038
- export declare const actionChangeVerticalAlign: {
2039
- name: "changeVerticalAlign";
2040
- label: string;
2041
- trackEvent: {
2042
- category: "element";
2043
- };
2044
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2045
- elements: ExcalidrawElement[];
2046
- appState: {
2047
- contextMenu: {
2048
- items: import("../components/ContextMenu").ContextMenuItems;
2049
- top: number;
2050
- left: number;
2051
- } | null;
2052
- showWelcomeScreen: boolean;
2053
- isLoading: boolean;
2054
- errorMessage: import("react").ReactNode;
2055
- activeEmbeddable: {
2056
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2057
- state: "active" | "hover";
2058
- } | null;
2059
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2060
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2061
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2062
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2063
- isBindingEnabled: boolean;
2064
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2065
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2066
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2067
- frameRendering: {
2068
- enabled: boolean;
2069
- name: boolean;
2070
- outline: boolean;
2071
- clip: boolean;
2072
- };
2073
- editingFrame: string | null;
2074
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2075
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2076
- activeTool: {
2077
- lastActiveTool: import("../types").ActiveTool | null;
2078
- locked: boolean;
2079
- fromSelection: boolean;
2080
- } & import("../types").ActiveTool;
2081
- penMode: boolean;
2082
- penDetected: boolean;
2083
- exportBackground: boolean;
2084
- exportEmbedScene: boolean;
2085
- exportWithDarkMode: boolean;
2086
- exportScale: number;
2087
- currentItemStrokeColor: string;
2088
- currentItemBackgroundColor: string;
2089
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2090
- currentItemStrokeWidth: number;
2091
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2092
- currentItemRoughness: number;
2093
- currentItemOpacity: number;
2094
- currentItemFontFamily: number;
2095
- currentItemFontSize: number;
2096
- currentItemTextAlign: string;
2097
- currentItemStartArrowhead: Arrowhead | null;
2098
- currentItemEndArrowhead: Arrowhead | null;
2099
- currentHoveredFontFamily: number | null;
2100
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2101
- currentItemArrowType: "round" | "sharp" | "elbow";
2102
- viewBackgroundColor: string;
2103
- scrollX: number;
2104
- scrollY: number;
2105
- cursorButton: "up" | "down";
2106
- scrolledOutside: boolean;
2107
- name: string | null;
2108
- isResizing: boolean;
2109
- isRotating: boolean;
2110
- zoom: Readonly<{
2111
- value: import("../types").NormalizedZoomValue;
2112
- }>;
2113
- openMenu: "canvas" | "shape" | null;
2114
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2115
- openSidebar: {
2116
- name: string;
2117
- tab?: string | undefined;
2118
- } | null;
2119
- openDialog: {
2120
- name: "imageExport" | "help" | "jsonExport";
2121
- } | {
2122
- name: "ttd";
2123
- tab: "mermaid" | "text-to-diagram";
2124
- } | {
2125
- name: "commandPalette";
2126
- } | {
2127
- name: "elementLinkSelector";
2128
- sourceElementId: string;
2129
- } | null;
2130
- defaultSidebarDockedPreference: boolean;
2131
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2132
- selectedElementIds: Readonly<{
2133
- [id: string]: true;
2134
- }>;
2135
- hoveredElementIds: Readonly<{
2136
- [id: string]: true;
2137
- }>;
2138
- previousSelectedElementIds: {
2139
- [id: string]: true;
2140
- };
2141
- selectedElementsAreBeingDragged: boolean;
2142
- shouldCacheIgnoreZoom: boolean;
2143
- toast: {
2144
- message: string;
2145
- closable?: boolean | undefined;
2146
- duration?: number | undefined;
2147
- } | null;
2148
- zenModeEnabled: boolean;
2149
- theme: import("@excalidraw/element/types").Theme;
2150
- gridSize: number;
2151
- gridStep: number;
2152
- gridModeEnabled: boolean;
2153
- viewModeEnabled: boolean;
2154
- selectedGroupIds: {
2155
- [groupId: string]: boolean;
2156
- };
2157
- editingGroupId: string | null;
2158
- width: number;
2159
- height: number;
2160
- offsetTop: number;
2161
- offsetLeft: number;
2162
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2163
- collaborators: Map<import("../types").SocketId, Readonly<{
2164
- pointer?: import("../types").CollaboratorPointer | undefined;
2165
- button?: "up" | "down" | undefined;
2166
- selectedElementIds?: Readonly<{
2167
- [id: string]: true;
2168
- }> | undefined;
2169
- username?: string | null | undefined;
2170
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2171
- color?: {
2172
- background: string;
2173
- stroke: string;
2174
- } | undefined;
2175
- avatarUrl?: string | undefined;
2176
- id?: string | undefined;
2177
- socketId?: import("../types").SocketId | undefined;
2178
- isCurrentUser?: boolean | undefined;
2179
- isInCall?: boolean | undefined;
2180
- isSpeaking?: boolean | undefined;
2181
- isMuted?: boolean | undefined;
2182
- }>>;
2183
- stats: {
2184
- open: boolean;
2185
- panels: number;
2186
- };
2187
- currentChartType: import("@excalidraw/element/types").ChartType;
2188
- pasteDialog: {
2189
- shown: false;
2190
- data: null;
2191
- } | {
2192
- shown: true;
2193
- data: import("../charts").Spreadsheet;
2194
- };
2195
- showHyperlinkPopup: false | "editor" | "info";
2196
- selectedLinearElement: LinearElementEditor | null;
2197
- snapLines: readonly import("../snapping").SnapLine[];
2198
- originSnapOffset: {
2199
- x: number;
2200
- y: number;
2201
- } | null;
2202
- objectsSnapModeEnabled: boolean;
2203
- userToFollow: import("../types").UserToFollow | null;
2204
- followedBy: Set<import("../types").SocketId>;
2205
- isCropping: boolean;
2206
- croppingElementId: string | null;
2207
- searchMatches: Readonly<{
2208
- focusedId: string | null;
2209
- matches: readonly import("../types").SearchMatch[];
2210
- }> | null;
2211
- activeLockedId: string | null;
2212
- lockedMultiSelections: {
2213
- [groupId: string]: true;
2214
- };
2215
- stylesPanelMode: "compact" | "full";
2216
- };
2217
- captureUpdate: "IMMEDIATELY";
2218
- };
2219
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2220
- } & {
2221
- keyTest?: undefined;
5
+ export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: NonDeletedExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => (ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | ExcalidrawTextElement | ExcalidrawFreeDrawElement)[];
6
+ export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
7
+ /**
8
+ * input value (usually the element attribute value,
9
+ * but depends on what the action's PanelComponent input expects)
10
+ */
11
+ getValue: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
12
+ export declare const actionChangeStrokeColor: import("./types").Action<Partial<AppState> & {
13
+ color?: string;
14
+ }> & {
15
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
16
+ };
17
+ export declare const actionChangeBackgroundColor: import("./types").Action<Partial<AppState> & {
18
+ color?: string;
19
+ }> & {
20
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
21
+ };
22
+ export declare const actionChangeBucketFillBackgroundColor: import("./types").Action<Pick<AppState, "currentItemBackgroundColor">> & {
23
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
24
+ };
25
+ export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
26
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
27
+ };
28
+ export declare const actionChangeStrokeWidth: import("./types").Action<StrokeWidthKey> & {
29
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
30
+ };
31
+ export declare const actionChangeSloppiness: import("./types").Action<number> & {
32
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
33
+ };
34
+ export declare const actionChangeFreedrawMode: import("./types").Action<StrokeVariability> & {
35
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
2222
36
  };
2223
- export declare const actionChangeRoundness: {
2224
- name: "changeRoundness";
37
+ export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
38
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
39
+ };
40
+ export declare const actionChangeOpacity: import("./types").Action<number> & {
41
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
42
+ };
43
+ export declare const actionChangeFontSize: import("./types").Action<number> & {
44
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
45
+ };
46
+ export declare const actionDecreaseFontSize: {
47
+ name: "decreaseFontSize";
2225
48
  label: string;
49
+ icon: import("react/jsx-runtime").JSX.Element;
2226
50
  trackEvent: false;
2227
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
2228
- elements: ExcalidrawElement[];
51
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
52
+ elements: (ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | ExcalidrawTextElement | ExcalidrawFreeDrawElement)[];
2229
53
  appState: {
2230
- currentItemRoundness: any;
54
+ currentItemFontSize: number;
2231
55
  contextMenu: {
2232
56
  items: import("../components/ContextMenu").ContextMenuItems;
2233
57
  top: number;
@@ -2235,33 +59,55 @@ export declare const actionChangeRoundness: {
2235
59
  } | null;
2236
60
  showWelcomeScreen: boolean;
2237
61
  isLoading: boolean;
2238
- errorMessage: import("react").ReactNode;
62
+ errorMessage: React.ReactNode;
2239
63
  activeEmbeddable: {
2240
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2241
- state: "active" | "hover";
64
+ element: NonDeletedExcalidrawElement;
65
+ state: "hover" | "active";
2242
66
  } | null;
2243
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2244
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2245
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2246
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
67
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
68
+ resizingElement: NonDeletedExcalidrawElement | null;
69
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
70
+ selectionElement: NonDeletedExcalidrawElement | null;
2247
71
  isBindingEnabled: boolean;
2248
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2249
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2250
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
72
+ boxSelectionMode: import("../types").BoxSelectionMode;
73
+ bindingPreference: "enabled" | "disabled";
74
+ isMidpointSnappingEnabled: boolean;
75
+ showHints: boolean;
76
+ inputDevice: import("../types").InputDevice;
77
+ suggestedBinding: {
78
+ element: NonDeleted<ExcalidrawBindableElement>;
79
+ midPoint?: import("@excalidraw/math").GlobalPoint;
80
+ } | null;
81
+ textToolHover: {
82
+ type: "text";
83
+ elementId: ExcalidrawElement["id"];
84
+ } | {
85
+ type: "container";
86
+ elementId: ExcalidrawElement["id"];
87
+ } | {
88
+ type: "arrow";
89
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
90
+ anchor: "start" | "end" | "label";
91
+ } | null;
92
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2251
93
  frameRendering: {
2252
94
  enabled: boolean;
2253
95
  name: boolean;
2254
96
  outline: boolean;
2255
97
  clip: boolean;
2256
98
  };
2257
- editingFrame: string | null;
2258
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2259
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
99
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
100
+ elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
101
+ editingTextElement: ExcalidrawTextElement | null;
2260
102
  activeTool: {
2261
103
  lastActiveTool: import("../types").ActiveTool | null;
2262
104
  locked: boolean;
2263
105
  fromSelection: boolean;
2264
106
  } & import("../types").ActiveTool;
107
+ preferredSelectionTool: {
108
+ type: "selection" | "lasso";
109
+ initialized: boolean;
110
+ };
2265
111
  penMode: boolean;
2266
112
  penDetected: boolean;
2267
113
  exportBackground: boolean;
@@ -2269,47 +115,55 @@ export declare const actionChangeRoundness: {
2269
115
  exportWithDarkMode: boolean;
2270
116
  exportScale: number;
2271
117
  currentItemStrokeColor: string;
118
+ currentItemStickynoteStrokeColor: string;
119
+ currentItemStickynoteBackgroundColor: string;
2272
120
  currentItemBackgroundColor: string;
2273
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2274
- currentItemStrokeWidth: number;
2275
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
121
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
122
+ currentItemStrokeWidthKey: StrokeWidthKey;
123
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
2276
124
  currentItemRoughness: number;
125
+ currentItemStrokeVariability: StrokeVariability;
2277
126
  currentItemOpacity: number;
2278
- currentItemFontFamily: number;
2279
- currentItemFontSize: number;
2280
- currentItemTextAlign: string;
127
+ currentItemFontFamily: FontFamilyValues;
128
+ currentItemTextAlign: TextAlign;
2281
129
  currentItemStartArrowhead: Arrowhead | null;
2282
130
  currentItemEndArrowhead: Arrowhead | null;
2283
- currentHoveredFontFamily: number | null;
2284
- currentItemArrowType: "round" | "sharp" | "elbow";
131
+ currentHoveredFontFamily: FontFamilyValues | null;
132
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
133
+ currentItemArrowType: "sharp" | "round" | "elbow";
2285
134
  viewBackgroundColor: string;
2286
135
  scrollX: number;
2287
136
  scrollY: number;
137
+ scrollConstraints: import("../types").ScrollConstraints | null;
2288
138
  cursorButton: "up" | "down";
2289
139
  scrolledOutside: boolean;
2290
140
  name: string | null;
2291
141
  isResizing: boolean;
2292
142
  isRotating: boolean;
2293
- zoom: Readonly<{
2294
- value: import("../types").NormalizedZoomValue;
2295
- }>;
2296
- openMenu: "canvas" | "shape" | null;
2297
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
143
+ zoom: import("../types").Zoom;
144
+ openMenu: "canvas" | null;
145
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2298
146
  openSidebar: {
2299
- name: string;
2300
- tab?: string | undefined;
147
+ name: import("../types").SidebarName;
148
+ tab?: import("../types").SidebarTabName;
2301
149
  } | null;
2302
- openDialog: {
150
+ openDialog: null | {
2303
151
  name: "imageExport" | "help" | "jsonExport";
2304
152
  } | {
2305
153
  name: "ttd";
2306
- tab: "mermaid" | "text-to-diagram";
154
+ tab: "text-to-diagram" | "mermaid";
2307
155
  } | {
2308
156
  name: "commandPalette";
157
+ } | {
158
+ name: "settings";
2309
159
  } | {
2310
160
  name: "elementLinkSelector";
2311
- sourceElementId: string;
2312
- } | null;
161
+ sourceElementId: ExcalidrawElement["id"];
162
+ } | {
163
+ name: "charts";
164
+ data: import("../charts").Spreadsheet;
165
+ rawText: string;
166
+ };
2313
167
  defaultSidebarDockedPreference: boolean;
2314
168
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2315
169
  selectedElementIds: Readonly<{
@@ -2324,9 +178,9 @@ export declare const actionChangeRoundness: {
2324
178
  selectedElementsAreBeingDragged: boolean;
2325
179
  shouldCacheIgnoreZoom: boolean;
2326
180
  toast: {
2327
- message: string;
2328
- closable?: boolean | undefined;
2329
- duration?: number | undefined;
181
+ message: React.ReactNode;
182
+ closable?: boolean;
183
+ duration?: number;
2330
184
  } | null;
2331
185
  zenModeEnabled: boolean;
2332
186
  theme: import("@excalidraw/element/types").Theme;
@@ -2337,45 +191,18 @@ export declare const actionChangeRoundness: {
2337
191
  selectedGroupIds: {
2338
192
  [groupId: string]: boolean;
2339
193
  };
2340
- editingGroupId: string | null;
194
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
2341
195
  width: number;
2342
196
  height: number;
2343
197
  offsetTop: number;
2344
198
  offsetLeft: number;
2345
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2346
- collaborators: Map<import("../types").SocketId, Readonly<{
2347
- pointer?: import("../types").CollaboratorPointer | undefined;
2348
- button?: "up" | "down" | undefined;
2349
- selectedElementIds?: Readonly<{
2350
- [id: string]: true;
2351
- }> | undefined;
2352
- username?: string | null | undefined;
2353
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2354
- color?: {
2355
- background: string;
2356
- stroke: string;
2357
- } | undefined;
2358
- avatarUrl?: string | undefined;
2359
- id?: string | undefined;
2360
- socketId?: import("../types").SocketId | undefined;
2361
- isCurrentUser?: boolean | undefined;
2362
- isInCall?: boolean | undefined;
2363
- isSpeaking?: boolean | undefined;
2364
- isMuted?: boolean | undefined;
2365
- }>>;
199
+ fileHandle: FileSystemFileHandle | null;
200
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2366
201
  stats: {
2367
202
  open: boolean;
2368
203
  panels: number;
2369
204
  };
2370
- currentChartType: import("@excalidraw/element/types").ChartType;
2371
- pasteDialog: {
2372
- shown: false;
2373
- data: null;
2374
- } | {
2375
- shown: true;
2376
- data: import("../charts").Spreadsheet;
2377
- };
2378
- showHyperlinkPopup: false | "editor" | "info";
205
+ showHyperlinkPopup: false | "info" | "editor";
2379
206
  selectedLinearElement: LinearElementEditor | null;
2380
207
  snapLines: readonly import("../snapping").SnapLine[];
2381
208
  originSnapOffset: {
@@ -2383,36 +210,41 @@ export declare const actionChangeRoundness: {
2383
210
  y: number;
2384
211
  } | null;
2385
212
  objectsSnapModeEnabled: boolean;
2386
- userToFollow: import("../types").UserToFollow | null;
2387
- followedBy: Set<import("../types").SocketId>;
2388
213
  isCropping: boolean;
2389
- croppingElementId: string | null;
214
+ croppingElementId: ExcalidrawElement["id"] | null;
2390
215
  searchMatches: Readonly<{
2391
- focusedId: string | null;
216
+ focusedId: ExcalidrawElement["id"] | null;
2392
217
  matches: readonly import("../types").SearchMatch[];
2393
218
  }> | null;
2394
219
  activeLockedId: string | null;
2395
220
  lockedMultiSelections: {
2396
221
  [groupId: string]: true;
2397
222
  };
2398
- stylesPanelMode: "compact" | "full";
223
+ bindMode: import("@excalidraw/element/types").BindMode;
224
+ colorTopPicks: {
225
+ elementStroke: readonly string[] | null;
226
+ elementBackground: readonly string[] | null;
227
+ bucketFill: readonly string[] | null;
228
+ stickyNoteStroke: readonly string[] | null;
229
+ stickyNoteBackground: readonly string[] | null;
230
+ };
231
+ fontTopPicks: readonly FontFamilyValues[] | null;
2399
232
  };
2400
233
  captureUpdate: "IMMEDIATELY";
2401
234
  };
2402
- PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
235
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2403
236
  } & {
2404
- keyTest?: undefined;
237
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2405
238
  };
2406
- export declare const actionChangeArrowhead: {
2407
- name: "changeArrowhead";
239
+ export declare const actionIncreaseFontSize: {
240
+ name: "increaseFontSize";
2408
241
  label: string;
242
+ icon: import("react/jsx-runtime").JSX.Element;
2409
243
  trackEvent: false;
2410
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2411
- position: "start" | "end";
2412
- type: Arrowhead;
2413
- }) => {
2414
- elements: ExcalidrawElement[];
244
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
245
+ elements: (ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | ExcalidrawTextElement | ExcalidrawFreeDrawElement)[];
2415
246
  appState: {
247
+ currentItemFontSize: number;
2416
248
  contextMenu: {
2417
249
  items: import("../components/ContextMenu").ContextMenuItems;
2418
250
  top: number;
@@ -2420,33 +252,55 @@ export declare const actionChangeArrowhead: {
2420
252
  } | null;
2421
253
  showWelcomeScreen: boolean;
2422
254
  isLoading: boolean;
2423
- errorMessage: import("react").ReactNode;
255
+ errorMessage: React.ReactNode;
2424
256
  activeEmbeddable: {
2425
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2426
- state: "active" | "hover";
257
+ element: NonDeletedExcalidrawElement;
258
+ state: "hover" | "active";
2427
259
  } | null;
2428
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2429
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2430
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2431
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
260
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
261
+ resizingElement: NonDeletedExcalidrawElement | null;
262
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
263
+ selectionElement: NonDeletedExcalidrawElement | null;
2432
264
  isBindingEnabled: boolean;
2433
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2434
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2435
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
265
+ boxSelectionMode: import("../types").BoxSelectionMode;
266
+ bindingPreference: "enabled" | "disabled";
267
+ isMidpointSnappingEnabled: boolean;
268
+ showHints: boolean;
269
+ inputDevice: import("../types").InputDevice;
270
+ suggestedBinding: {
271
+ element: NonDeleted<ExcalidrawBindableElement>;
272
+ midPoint?: import("@excalidraw/math").GlobalPoint;
273
+ } | null;
274
+ textToolHover: {
275
+ type: "text";
276
+ elementId: ExcalidrawElement["id"];
277
+ } | {
278
+ type: "container";
279
+ elementId: ExcalidrawElement["id"];
280
+ } | {
281
+ type: "arrow";
282
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
283
+ anchor: "start" | "end" | "label";
284
+ } | null;
285
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2436
286
  frameRendering: {
2437
287
  enabled: boolean;
2438
288
  name: boolean;
2439
289
  outline: boolean;
2440
290
  clip: boolean;
2441
291
  };
2442
- editingFrame: string | null;
2443
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2444
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
292
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
293
+ elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
294
+ editingTextElement: ExcalidrawTextElement | null;
2445
295
  activeTool: {
2446
296
  lastActiveTool: import("../types").ActiveTool | null;
2447
297
  locked: boolean;
2448
298
  fromSelection: boolean;
2449
299
  } & import("../types").ActiveTool;
300
+ preferredSelectionTool: {
301
+ type: "selection" | "lasso";
302
+ initialized: boolean;
303
+ };
2450
304
  penMode: boolean;
2451
305
  penDetected: boolean;
2452
306
  exportBackground: boolean;
@@ -2454,48 +308,55 @@ export declare const actionChangeArrowhead: {
2454
308
  exportWithDarkMode: boolean;
2455
309
  exportScale: number;
2456
310
  currentItemStrokeColor: string;
311
+ currentItemStickynoteStrokeColor: string;
312
+ currentItemStickynoteBackgroundColor: string;
2457
313
  currentItemBackgroundColor: string;
2458
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2459
- currentItemStrokeWidth: number;
2460
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
314
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
315
+ currentItemStrokeWidthKey: StrokeWidthKey;
316
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
2461
317
  currentItemRoughness: number;
318
+ currentItemStrokeVariability: StrokeVariability;
2462
319
  currentItemOpacity: number;
2463
- currentItemFontFamily: number;
2464
- currentItemFontSize: number;
2465
- currentItemTextAlign: string;
320
+ currentItemFontFamily: FontFamilyValues;
321
+ currentItemTextAlign: TextAlign;
2466
322
  currentItemStartArrowhead: Arrowhead | null;
2467
323
  currentItemEndArrowhead: Arrowhead | null;
2468
- currentHoveredFontFamily: number | null;
324
+ currentHoveredFontFamily: FontFamilyValues | null;
2469
325
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2470
- currentItemArrowType: "round" | "sharp" | "elbow";
326
+ currentItemArrowType: "sharp" | "round" | "elbow";
2471
327
  viewBackgroundColor: string;
2472
328
  scrollX: number;
2473
329
  scrollY: number;
330
+ scrollConstraints: import("../types").ScrollConstraints | null;
2474
331
  cursorButton: "up" | "down";
2475
332
  scrolledOutside: boolean;
2476
333
  name: string | null;
2477
334
  isResizing: boolean;
2478
335
  isRotating: boolean;
2479
- zoom: Readonly<{
2480
- value: import("../types").NormalizedZoomValue;
2481
- }>;
2482
- openMenu: "canvas" | "shape" | null;
2483
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
336
+ zoom: import("../types").Zoom;
337
+ openMenu: "canvas" | null;
338
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2484
339
  openSidebar: {
2485
- name: string;
2486
- tab?: string | undefined;
340
+ name: import("../types").SidebarName;
341
+ tab?: import("../types").SidebarTabName;
2487
342
  } | null;
2488
- openDialog: {
343
+ openDialog: null | {
2489
344
  name: "imageExport" | "help" | "jsonExport";
2490
345
  } | {
2491
346
  name: "ttd";
2492
- tab: "mermaid" | "text-to-diagram";
347
+ tab: "text-to-diagram" | "mermaid";
2493
348
  } | {
2494
349
  name: "commandPalette";
350
+ } | {
351
+ name: "settings";
2495
352
  } | {
2496
353
  name: "elementLinkSelector";
2497
- sourceElementId: string;
2498
- } | null;
354
+ sourceElementId: ExcalidrawElement["id"];
355
+ } | {
356
+ name: "charts";
357
+ data: import("../charts").Spreadsheet;
358
+ rawText: string;
359
+ };
2499
360
  defaultSidebarDockedPreference: boolean;
2500
361
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2501
362
  selectedElementIds: Readonly<{
@@ -2510,9 +371,9 @@ export declare const actionChangeArrowhead: {
2510
371
  selectedElementsAreBeingDragged: boolean;
2511
372
  shouldCacheIgnoreZoom: boolean;
2512
373
  toast: {
2513
- message: string;
2514
- closable?: boolean | undefined;
2515
- duration?: number | undefined;
374
+ message: React.ReactNode;
375
+ closable?: boolean;
376
+ duration?: number;
2516
377
  } | null;
2517
378
  zenModeEnabled: boolean;
2518
379
  theme: import("@excalidraw/element/types").Theme;
@@ -2523,45 +384,18 @@ export declare const actionChangeArrowhead: {
2523
384
  selectedGroupIds: {
2524
385
  [groupId: string]: boolean;
2525
386
  };
2526
- editingGroupId: string | null;
387
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
2527
388
  width: number;
2528
389
  height: number;
2529
390
  offsetTop: number;
2530
391
  offsetLeft: number;
2531
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2532
- collaborators: Map<import("../types").SocketId, Readonly<{
2533
- pointer?: import("../types").CollaboratorPointer | undefined;
2534
- button?: "up" | "down" | undefined;
2535
- selectedElementIds?: Readonly<{
2536
- [id: string]: true;
2537
- }> | undefined;
2538
- username?: string | null | undefined;
2539
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2540
- color?: {
2541
- background: string;
2542
- stroke: string;
2543
- } | undefined;
2544
- avatarUrl?: string | undefined;
2545
- id?: string | undefined;
2546
- socketId?: import("../types").SocketId | undefined;
2547
- isCurrentUser?: boolean | undefined;
2548
- isInCall?: boolean | undefined;
2549
- isSpeaking?: boolean | undefined;
2550
- isMuted?: boolean | undefined;
2551
- }>>;
392
+ fileHandle: FileSystemFileHandle | null;
393
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2552
394
  stats: {
2553
395
  open: boolean;
2554
396
  panels: number;
2555
397
  };
2556
- currentChartType: import("@excalidraw/element/types").ChartType;
2557
- pasteDialog: {
2558
- shown: false;
2559
- data: null;
2560
- } | {
2561
- shown: true;
2562
- data: import("../charts").Spreadsheet;
2563
- };
2564
- showHyperlinkPopup: false | "editor" | "info";
398
+ showHyperlinkPopup: false | "info" | "editor";
2565
399
  selectedLinearElement: LinearElementEditor | null;
2566
400
  snapLines: readonly import("../snapping").SnapLine[];
2567
401
  originSnapOffset: {
@@ -2569,215 +403,62 @@ export declare const actionChangeArrowhead: {
2569
403
  y: number;
2570
404
  } | null;
2571
405
  objectsSnapModeEnabled: boolean;
2572
- userToFollow: import("../types").UserToFollow | null;
2573
- followedBy: Set<import("../types").SocketId>;
2574
406
  isCropping: boolean;
2575
- croppingElementId: string | null;
407
+ croppingElementId: ExcalidrawElement["id"] | null;
2576
408
  searchMatches: Readonly<{
2577
- focusedId: string | null;
409
+ focusedId: ExcalidrawElement["id"] | null;
2578
410
  matches: readonly import("../types").SearchMatch[];
2579
411
  }> | null;
2580
412
  activeLockedId: string | null;
2581
413
  lockedMultiSelections: {
2582
414
  [groupId: string]: true;
2583
415
  };
2584
- stylesPanelMode: "compact" | "full";
416
+ bindMode: import("@excalidraw/element/types").BindMode;
417
+ colorTopPicks: {
418
+ elementStroke: readonly string[] | null;
419
+ elementBackground: readonly string[] | null;
420
+ bucketFill: readonly string[] | null;
421
+ stickyNoteStroke: readonly string[] | null;
422
+ stickyNoteBackground: readonly string[] | null;
423
+ };
424
+ fontTopPicks: readonly FontFamilyValues[] | null;
2585
425
  };
2586
426
  captureUpdate: "IMMEDIATELY";
2587
427
  };
2588
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
428
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2589
429
  } & {
2590
- keyTest?: undefined;
430
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
431
+ };
432
+ export declare const actionChangeFontFamily: import("./types").Action<{
433
+ currentItemFontFamily: any;
434
+ currentHoveredFontFamily: any;
435
+ }> & {
436
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
437
+ };
438
+ export declare const actionChangeTextAlign: import("./types").Action<string> & {
439
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
440
+ };
441
+ export declare const actionChangeVerticalAlign: import("./types").Action<string> & {
442
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
443
+ };
444
+ export declare const actionChangeRoundness: import("./types").Action<"round" | "sharp"> & {
445
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
446
+ };
447
+ export declare const actionChangeArrowhead: import("./types").Action<{
448
+ position: "start" | "end";
449
+ type: Arrowhead;
450
+ }> & {
451
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
2591
452
  };
2592
453
  export declare const actionChangeArrowProperties: {
2593
454
  name: "changeArrowProperties";
2594
455
  label: string;
2595
456
  trackEvent: false;
2596
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => false;
457
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => false;
2597
458
  PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2598
459
  } & {
2599
460
  keyTest?: undefined;
2600
461
  };
2601
- export declare const actionChangeArrowType: {
2602
- name: "changeArrowType";
2603
- label: string;
2604
- trackEvent: false;
2605
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2606
- elements: ExcalidrawElement[];
2607
- appState: {
2608
- currentItemArrowType: any;
2609
- contextMenu: {
2610
- items: import("../components/ContextMenu").ContextMenuItems;
2611
- top: number;
2612
- left: number;
2613
- } | null;
2614
- showWelcomeScreen: boolean;
2615
- isLoading: boolean;
2616
- errorMessage: import("react").ReactNode;
2617
- activeEmbeddable: {
2618
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2619
- state: "active" | "hover";
2620
- } | null;
2621
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2622
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2623
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2624
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2625
- isBindingEnabled: boolean;
2626
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2627
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2628
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2629
- frameRendering: {
2630
- enabled: boolean;
2631
- name: boolean;
2632
- outline: boolean;
2633
- clip: boolean;
2634
- };
2635
- editingFrame: string | null;
2636
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2637
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2638
- activeTool: {
2639
- lastActiveTool: import("../types").ActiveTool | null;
2640
- locked: boolean;
2641
- fromSelection: boolean;
2642
- } & import("../types").ActiveTool;
2643
- penMode: boolean;
2644
- penDetected: boolean;
2645
- exportBackground: boolean;
2646
- exportEmbedScene: boolean;
2647
- exportWithDarkMode: boolean;
2648
- exportScale: number;
2649
- currentItemStrokeColor: string;
2650
- currentItemBackgroundColor: string;
2651
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2652
- currentItemStrokeWidth: number;
2653
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2654
- currentItemRoughness: number;
2655
- currentItemOpacity: number;
2656
- currentItemFontFamily: number;
2657
- currentItemFontSize: number;
2658
- currentItemTextAlign: string;
2659
- currentItemStartArrowhead: Arrowhead | null;
2660
- currentItemEndArrowhead: Arrowhead | null;
2661
- currentHoveredFontFamily: number | null;
2662
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2663
- viewBackgroundColor: string;
2664
- scrollX: number;
2665
- scrollY: number;
2666
- cursorButton: "up" | "down";
2667
- scrolledOutside: boolean;
2668
- name: string | null;
2669
- isResizing: boolean;
2670
- isRotating: boolean;
2671
- zoom: Readonly<{
2672
- value: import("../types").NormalizedZoomValue;
2673
- }>;
2674
- openMenu: "canvas" | "shape" | null;
2675
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2676
- openSidebar: {
2677
- name: string;
2678
- tab?: string | undefined;
2679
- } | null;
2680
- openDialog: {
2681
- name: "imageExport" | "help" | "jsonExport";
2682
- } | {
2683
- name: "ttd";
2684
- tab: "mermaid" | "text-to-diagram";
2685
- } | {
2686
- name: "commandPalette";
2687
- } | {
2688
- name: "elementLinkSelector";
2689
- sourceElementId: string;
2690
- } | null;
2691
- defaultSidebarDockedPreference: boolean;
2692
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2693
- selectedElementIds: Readonly<{
2694
- [id: string]: true;
2695
- }>;
2696
- hoveredElementIds: Readonly<{
2697
- [id: string]: true;
2698
- }>;
2699
- previousSelectedElementIds: {
2700
- [id: string]: true;
2701
- };
2702
- selectedElementsAreBeingDragged: boolean;
2703
- shouldCacheIgnoreZoom: boolean;
2704
- toast: {
2705
- message: string;
2706
- closable?: boolean | undefined;
2707
- duration?: number | undefined;
2708
- } | null;
2709
- zenModeEnabled: boolean;
2710
- theme: import("@excalidraw/element/types").Theme;
2711
- gridSize: number;
2712
- gridStep: number;
2713
- gridModeEnabled: boolean;
2714
- viewModeEnabled: boolean;
2715
- selectedGroupIds: {
2716
- [groupId: string]: boolean;
2717
- };
2718
- editingGroupId: string | null;
2719
- width: number;
2720
- height: number;
2721
- offsetTop: number;
2722
- offsetLeft: number;
2723
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2724
- collaborators: Map<import("../types").SocketId, Readonly<{
2725
- pointer?: import("../types").CollaboratorPointer | undefined;
2726
- button?: "up" | "down" | undefined;
2727
- selectedElementIds?: Readonly<{
2728
- [id: string]: true;
2729
- }> | undefined;
2730
- username?: string | null | undefined;
2731
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2732
- color?: {
2733
- background: string;
2734
- stroke: string;
2735
- } | undefined;
2736
- avatarUrl?: string | undefined;
2737
- id?: string | undefined;
2738
- socketId?: import("../types").SocketId | undefined;
2739
- isCurrentUser?: boolean | undefined;
2740
- isInCall?: boolean | undefined;
2741
- isSpeaking?: boolean | undefined;
2742
- isMuted?: boolean | undefined;
2743
- }>>;
2744
- stats: {
2745
- open: boolean;
2746
- panels: number;
2747
- };
2748
- currentChartType: import("@excalidraw/element/types").ChartType;
2749
- pasteDialog: {
2750
- shown: false;
2751
- data: null;
2752
- } | {
2753
- shown: true;
2754
- data: import("../charts").Spreadsheet;
2755
- };
2756
- showHyperlinkPopup: false | "editor" | "info";
2757
- selectedLinearElement: LinearElementEditor | null;
2758
- snapLines: readonly import("../snapping").SnapLine[];
2759
- originSnapOffset: {
2760
- x: number;
2761
- y: number;
2762
- } | null;
2763
- objectsSnapModeEnabled: boolean;
2764
- userToFollow: import("../types").UserToFollow | null;
2765
- followedBy: Set<import("../types").SocketId>;
2766
- isCropping: boolean;
2767
- croppingElementId: string | null;
2768
- searchMatches: Readonly<{
2769
- focusedId: string | null;
2770
- matches: readonly import("../types").SearchMatch[];
2771
- }> | null;
2772
- activeLockedId: string | null;
2773
- lockedMultiSelections: {
2774
- [groupId: string]: true;
2775
- };
2776
- stylesPanelMode: "compact" | "full";
2777
- };
2778
- captureUpdate: "IMMEDIATELY";
2779
- };
2780
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2781
- } & {
2782
- keyTest?: undefined;
462
+ export declare const actionChangeArrowType: import("./types").Action<"round" | "sharp" | "elbow"> & {
463
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
2783
464
  };