@excalidraw/element 0.18.0-d2463f87d → 0.18.0-d9e8a33

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