@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,595 +1,16 @@
1
- /// <reference types="react" />
2
- export declare const actionCopy: {
3
- name: "copy";
4
- label: string;
5
- icon: import("react/jsx-runtime").JSX.Element;
6
- trackEvent: {
7
- category: "element";
8
- };
9
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
10
- captureUpdate: "EVENTUALLY";
11
- appState: {
12
- errorMessage: any;
13
- contextMenu: {
14
- items: import("../components/ContextMenu").ContextMenuItems;
15
- top: number;
16
- left: number;
17
- } | null;
18
- showWelcomeScreen: boolean;
19
- isLoading: boolean;
20
- activeEmbeddable: {
21
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
- state: "active" | "hover";
23
- } | null;
24
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
- isBindingEnabled: boolean;
29
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
- frameRendering: {
33
- enabled: boolean;
34
- name: boolean;
35
- outline: boolean;
36
- clip: boolean;
37
- };
38
- editingFrame: string | null;
39
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
42
- activeTool: {
43
- lastActiveTool: import("../types").ActiveTool | null;
44
- locked: boolean;
45
- fromSelection: boolean;
46
- } & import("../types").ActiveTool;
47
- penMode: boolean;
48
- penDetected: boolean;
49
- exportBackground: boolean;
50
- exportEmbedScene: boolean;
51
- exportWithDarkMode: boolean;
52
- exportScale: number;
53
- currentItemStrokeColor: string;
54
- currentItemBackgroundColor: string;
55
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
56
- currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
58
- currentItemRoughness: number;
59
- currentItemOpacity: number;
60
- currentItemFontFamily: number;
61
- currentItemFontSize: number;
62
- currentItemTextAlign: string;
63
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
- currentHoveredFontFamily: number | null;
66
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
- currentItemArrowType: "round" | "sharp" | "elbow";
68
- viewBackgroundColor: string;
69
- scrollX: number;
70
- scrollY: number;
71
- cursorButton: "up" | "down";
72
- scrolledOutside: boolean;
73
- name: string | null;
74
- isResizing: boolean;
75
- isRotating: boolean;
76
- zoom: Readonly<{
77
- value: import("../types").NormalizedZoomValue;
78
- }>;
79
- openMenu: "canvas" | "shape" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
- openSidebar: {
82
- name: string;
83
- tab?: string | undefined;
84
- } | null;
85
- openDialog: {
86
- name: "imageExport" | "help" | "jsonExport";
87
- } | {
88
- name: "ttd";
89
- tab: "mermaid" | "text-to-diagram";
90
- } | {
91
- name: "commandPalette";
92
- } | {
93
- name: "elementLinkSelector";
94
- sourceElementId: string;
95
- } | null;
96
- defaultSidebarDockedPreference: boolean;
97
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
- selectedElementIds: Readonly<{
99
- [id: string]: true;
100
- }>;
101
- hoveredElementIds: Readonly<{
102
- [id: string]: true;
103
- }>;
104
- previousSelectedElementIds: {
105
- [id: string]: true;
106
- };
107
- selectedElementsAreBeingDragged: boolean;
108
- shouldCacheIgnoreZoom: boolean;
109
- toast: {
110
- message: string;
111
- closable?: boolean | undefined;
112
- duration?: number | undefined;
113
- } | null;
114
- zenModeEnabled: boolean;
115
- theme: import("@excalidraw/element/types").Theme;
116
- gridSize: number;
117
- gridStep: number;
118
- gridModeEnabled: boolean;
119
- viewModeEnabled: boolean;
120
- selectedGroupIds: {
121
- [groupId: string]: boolean;
122
- };
123
- editingGroupId: string | null;
124
- width: number;
125
- height: number;
126
- offsetTop: number;
127
- offsetLeft: number;
128
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
129
- collaborators: Map<import("../types").SocketId, Readonly<{
130
- pointer?: import("../types").CollaboratorPointer | undefined;
131
- button?: "up" | "down" | undefined;
132
- selectedElementIds?: Readonly<{
133
- [id: string]: true;
134
- }> | undefined;
135
- username?: string | null | undefined;
136
- userState?: import("@excalidraw/common").UserIdleState | undefined;
137
- color?: {
138
- background: string;
139
- stroke: string;
140
- } | undefined;
141
- avatarUrl?: string | undefined;
142
- id?: string | undefined;
143
- socketId?: import("../types").SocketId | undefined;
144
- isCurrentUser?: boolean | undefined;
145
- isInCall?: boolean | undefined;
146
- isSpeaking?: boolean | undefined;
147
- isMuted?: boolean | undefined;
148
- }>>;
149
- stats: {
150
- open: boolean;
151
- panels: number;
152
- };
153
- currentChartType: import("@excalidraw/element/types").ChartType;
154
- pasteDialog: {
155
- shown: false;
156
- data: null;
157
- } | {
158
- shown: true;
159
- data: import("../charts").Spreadsheet;
160
- };
161
- showHyperlinkPopup: false | "editor" | "info";
162
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
- snapLines: readonly import("../snapping").SnapLine[];
164
- originSnapOffset: {
165
- x: number;
166
- y: number;
167
- } | null;
168
- objectsSnapModeEnabled: boolean;
169
- userToFollow: import("../types").UserToFollow | null;
170
- followedBy: Set<import("../types").SocketId>;
171
- isCropping: boolean;
172
- croppingElementId: string | null;
173
- searchMatches: Readonly<{
174
- focusedId: string | null;
175
- matches: readonly import("../types").SearchMatch[];
176
- }> | null;
177
- activeLockedId: string | null;
178
- lockedMultiSelections: {
179
- [groupId: string]: true;
180
- };
181
- };
182
- } | {
183
- captureUpdate: "EVENTUALLY";
184
- appState?: undefined;
185
- }>;
186
- keyTest: undefined;
187
- } & {
188
- keyTest?: undefined;
189
- };
190
- export declare const actionPaste: {
191
- name: "paste";
192
- label: string;
193
- trackEvent: {
194
- category: "element";
195
- };
196
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
197
- captureUpdate: "EVENTUALLY";
198
- appState: {
199
- errorMessage: string;
200
- contextMenu: {
201
- items: import("../components/ContextMenu").ContextMenuItems;
202
- top: number;
203
- left: number;
204
- } | null;
205
- showWelcomeScreen: boolean;
206
- isLoading: boolean;
207
- activeEmbeddable: {
208
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
209
- state: "active" | "hover";
210
- } | null;
211
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
212
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
213
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
214
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
215
- isBindingEnabled: boolean;
216
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
217
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
218
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
219
- frameRendering: {
220
- enabled: boolean;
221
- name: boolean;
222
- outline: boolean;
223
- clip: boolean;
224
- };
225
- editingFrame: string | null;
226
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
227
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
228
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
229
- activeTool: {
230
- lastActiveTool: import("../types").ActiveTool | null;
231
- locked: boolean;
232
- fromSelection: boolean;
233
- } & import("../types").ActiveTool;
234
- penMode: boolean;
235
- penDetected: boolean;
236
- exportBackground: boolean;
237
- exportEmbedScene: boolean;
238
- exportWithDarkMode: boolean;
239
- exportScale: number;
240
- currentItemStrokeColor: string;
241
- currentItemBackgroundColor: string;
242
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
243
- currentItemStrokeWidth: number;
244
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
245
- currentItemRoughness: number;
246
- currentItemOpacity: number;
247
- currentItemFontFamily: number;
248
- currentItemFontSize: number;
249
- currentItemTextAlign: string;
250
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
251
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
252
- currentHoveredFontFamily: number | null;
253
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
254
- currentItemArrowType: "round" | "sharp" | "elbow";
255
- viewBackgroundColor: string;
256
- scrollX: number;
257
- scrollY: number;
258
- cursorButton: "up" | "down";
259
- scrolledOutside: boolean;
260
- name: string | null;
261
- isResizing: boolean;
262
- isRotating: boolean;
263
- zoom: Readonly<{
264
- value: import("../types").NormalizedZoomValue;
265
- }>;
266
- openMenu: "canvas" | "shape" | null;
267
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
268
- openSidebar: {
269
- name: string;
270
- tab?: string | undefined;
271
- } | null;
272
- openDialog: {
273
- name: "imageExport" | "help" | "jsonExport";
274
- } | {
275
- name: "ttd";
276
- tab: "mermaid" | "text-to-diagram";
277
- } | {
278
- name: "commandPalette";
279
- } | {
280
- name: "elementLinkSelector";
281
- sourceElementId: string;
282
- } | null;
283
- defaultSidebarDockedPreference: boolean;
284
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
285
- selectedElementIds: Readonly<{
286
- [id: string]: true;
287
- }>;
288
- hoveredElementIds: Readonly<{
289
- [id: string]: true;
290
- }>;
291
- previousSelectedElementIds: {
292
- [id: string]: true;
293
- };
294
- selectedElementsAreBeingDragged: boolean;
295
- shouldCacheIgnoreZoom: boolean;
296
- toast: {
297
- message: string;
298
- closable?: boolean | undefined;
299
- duration?: number | undefined;
300
- } | null;
301
- zenModeEnabled: boolean;
302
- theme: import("@excalidraw/element/types").Theme;
303
- gridSize: number;
304
- gridStep: number;
305
- gridModeEnabled: boolean;
306
- viewModeEnabled: boolean;
307
- selectedGroupIds: {
308
- [groupId: string]: boolean;
309
- };
310
- editingGroupId: string | null;
311
- width: number;
312
- height: number;
313
- offsetTop: number;
314
- offsetLeft: number;
315
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
316
- collaborators: Map<import("../types").SocketId, Readonly<{
317
- pointer?: import("../types").CollaboratorPointer | undefined;
318
- button?: "up" | "down" | undefined;
319
- selectedElementIds?: Readonly<{
320
- [id: string]: true;
321
- }> | undefined;
322
- username?: string | null | undefined;
323
- userState?: import("@excalidraw/common").UserIdleState | undefined;
324
- color?: {
325
- background: string;
326
- stroke: string;
327
- } | undefined;
328
- avatarUrl?: string | undefined;
329
- id?: string | undefined;
330
- socketId?: import("../types").SocketId | undefined;
331
- isCurrentUser?: boolean | undefined;
332
- isInCall?: boolean | undefined;
333
- isSpeaking?: boolean | undefined;
334
- isMuted?: boolean | undefined;
335
- }>>;
336
- stats: {
337
- open: boolean;
338
- panels: number;
339
- };
340
- currentChartType: import("@excalidraw/element/types").ChartType;
341
- pasteDialog: {
342
- shown: false;
343
- data: null;
344
- } | {
345
- shown: true;
346
- data: import("../charts").Spreadsheet;
347
- };
348
- showHyperlinkPopup: false | "editor" | "info";
349
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
350
- snapLines: readonly import("../snapping").SnapLine[];
351
- originSnapOffset: {
352
- x: number;
353
- y: number;
354
- } | null;
355
- objectsSnapModeEnabled: boolean;
356
- userToFollow: import("../types").UserToFollow | null;
357
- followedBy: Set<import("../types").SocketId>;
358
- isCropping: boolean;
359
- croppingElementId: string | null;
360
- searchMatches: Readonly<{
361
- focusedId: string | null;
362
- matches: readonly import("../types").SearchMatch[];
363
- }> | null;
364
- activeLockedId: string | null;
365
- lockedMultiSelections: {
366
- [groupId: string]: true;
367
- };
368
- };
369
- } | {
370
- captureUpdate: "EVENTUALLY";
371
- appState?: undefined;
372
- }>;
373
- keyTest: undefined;
374
- } & {
375
- keyTest?: undefined;
376
- };
377
- export declare const actionCut: {
378
- name: "cut";
379
- label: string;
380
- icon: import("react/jsx-runtime").JSX.Element;
381
- trackEvent: {
382
- category: "element";
383
- };
384
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
385
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
386
- appState: {
387
- editingLinearElement: null;
388
- contextMenu: {
389
- items: import("../components/ContextMenu").ContextMenuItems;
390
- top: number;
391
- left: number;
392
- } | null;
393
- showWelcomeScreen: boolean;
394
- isLoading: boolean;
395
- errorMessage: import("react").ReactNode;
396
- activeEmbeddable: {
397
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
398
- state: "active" | "hover";
399
- } | null;
400
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
401
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
402
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
403
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
404
- isBindingEnabled: boolean;
405
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
406
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
407
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
408
- frameRendering: {
409
- enabled: boolean;
410
- name: boolean;
411
- outline: boolean;
412
- clip: boolean;
413
- };
414
- editingFrame: string | null;
415
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
416
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
417
- activeTool: {
418
- lastActiveTool: import("../types").ActiveTool | null;
419
- locked: boolean;
420
- fromSelection: boolean;
421
- } & import("../types").ActiveTool;
422
- penMode: boolean;
423
- penDetected: boolean;
424
- exportBackground: boolean;
425
- exportEmbedScene: boolean;
426
- exportWithDarkMode: boolean;
427
- exportScale: number;
428
- currentItemStrokeColor: string;
429
- currentItemBackgroundColor: string;
430
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
431
- currentItemStrokeWidth: number;
432
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
433
- currentItemRoughness: number;
434
- currentItemOpacity: number;
435
- currentItemFontFamily: number;
436
- currentItemFontSize: number;
437
- currentItemTextAlign: string;
438
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
439
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
440
- currentHoveredFontFamily: number | null;
441
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
442
- currentItemArrowType: "round" | "sharp" | "elbow";
443
- viewBackgroundColor: string;
444
- scrollX: number;
445
- scrollY: number;
446
- cursorButton: "up" | "down";
447
- scrolledOutside: boolean;
448
- name: string | null;
449
- isResizing: boolean;
450
- isRotating: boolean;
451
- zoom: Readonly<{
452
- value: import("../types").NormalizedZoomValue;
453
- }>;
454
- openMenu: "canvas" | "shape" | null;
455
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
456
- openSidebar: {
457
- name: string;
458
- tab?: string | undefined;
459
- } | null;
460
- openDialog: {
461
- name: "imageExport" | "help" | "jsonExport";
462
- } | {
463
- name: "ttd";
464
- tab: "mermaid" | "text-to-diagram";
465
- } | {
466
- name: "commandPalette";
467
- } | {
468
- name: "elementLinkSelector";
469
- sourceElementId: string;
470
- } | null;
471
- defaultSidebarDockedPreference: boolean;
472
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
473
- selectedElementIds: Readonly<{
474
- [id: string]: true;
475
- }>;
476
- hoveredElementIds: Readonly<{
477
- [id: string]: true;
478
- }>;
479
- previousSelectedElementIds: {
480
- [id: string]: true;
481
- };
482
- selectedElementsAreBeingDragged: boolean;
483
- shouldCacheIgnoreZoom: boolean;
484
- toast: {
485
- message: string;
486
- closable?: boolean | undefined;
487
- duration?: number | undefined;
488
- } | null;
489
- zenModeEnabled: boolean;
490
- theme: import("@excalidraw/element/types").Theme;
491
- gridSize: number;
492
- gridStep: number;
493
- gridModeEnabled: boolean;
494
- viewModeEnabled: boolean;
495
- selectedGroupIds: {
496
- [groupId: string]: boolean;
497
- };
498
- editingGroupId: string | null;
499
- width: number;
500
- height: number;
501
- offsetTop: number;
502
- offsetLeft: number;
503
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
504
- collaborators: Map<import("../types").SocketId, Readonly<{
505
- pointer?: import("../types").CollaboratorPointer | undefined;
506
- button?: "up" | "down" | undefined;
507
- selectedElementIds?: Readonly<{
508
- [id: string]: true;
509
- }> | undefined;
510
- username?: string | null | undefined;
511
- userState?: import("@excalidraw/common").UserIdleState | undefined;
512
- color?: {
513
- background: string;
514
- stroke: string;
515
- } | undefined;
516
- avatarUrl?: string | undefined;
517
- id?: string | undefined;
518
- socketId?: import("../types").SocketId | undefined;
519
- isCurrentUser?: boolean | undefined;
520
- isInCall?: boolean | undefined;
521
- isSpeaking?: boolean | undefined;
522
- isMuted?: boolean | undefined;
523
- }>>;
524
- stats: {
525
- open: boolean;
526
- panels: number;
527
- };
528
- currentChartType: import("@excalidraw/element/types").ChartType;
529
- pasteDialog: {
530
- shown: false;
531
- data: null;
532
- } | {
533
- shown: true;
534
- data: import("../charts").Spreadsheet;
535
- };
536
- showHyperlinkPopup: false | "editor" | "info";
537
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
538
- snapLines: readonly import("../snapping").SnapLine[];
539
- originSnapOffset: {
540
- x: number;
541
- y: number;
542
- } | null;
543
- objectsSnapModeEnabled: boolean;
544
- userToFollow: import("../types").UserToFollow | null;
545
- followedBy: Set<import("../types").SocketId>;
546
- isCropping: boolean;
547
- croppingElementId: string | null;
548
- searchMatches: Readonly<{
549
- focusedId: string | null;
550
- matches: readonly import("../types").SearchMatch[];
551
- }> | null;
552
- activeLockedId: string | null;
553
- lockedMultiSelections: {
554
- [groupId: string]: true;
555
- };
556
- };
557
- captureUpdate: "IMMEDIATELY";
558
- } | {
559
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
1
+ export declare const actionCopy: import("./types").Action<ClipboardEvent | null> & {
2
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
3
+ };
4
+ export declare const actionPaste: {
5
+ name: "paste";
6
+ label: string;
7
+ trackEvent: {
8
+ category: "element";
9
+ };
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: unknown, app: import("../types").AppClassProperties) => Promise<false | {
11
+ captureUpdate: "EVENTUALLY";
560
12
  appState: {
561
- editingLinearElement: {
562
- selectedPointsIndices: number[];
563
- startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
564
- endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
565
- elementId: string & {
566
- _brand: "excalidrawLinearElementId";
567
- };
568
- pointerDownState: Readonly<{
569
- prevSelectedPointsIndices: readonly number[] | null;
570
- lastClickedPoint: number;
571
- lastClickedIsEndPoint: boolean;
572
- origin: Readonly<{
573
- x: number;
574
- y: number;
575
- }> | null;
576
- segmentMidpoint: {
577
- value: import("../../math/src").GlobalPoint | null;
578
- index: number | null;
579
- added: boolean;
580
- };
581
- }>;
582
- isDragging: boolean;
583
- lastUncommittedPoint: import("../../math/src").LocalPoint | null;
584
- pointerOffset: Readonly<{
585
- x: number;
586
- y: number;
587
- }>;
588
- hoverPointIndex: number;
589
- segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
590
- elbowed: boolean;
591
- customLineAngle: number | null;
592
- };
13
+ errorMessage: string;
593
14
  contextMenu: {
594
15
  items: import("../components/ContextMenu").ContextMenuItems;
595
16
  top: number;
@@ -597,18 +18,23 @@ export declare const actionCut: {
597
18
  } | null;
598
19
  showWelcomeScreen: boolean;
599
20
  isLoading: boolean;
600
- errorMessage: import("react").ReactNode;
601
21
  activeEmbeddable: {
602
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
603
- state: "active" | "hover";
23
+ state: "hover" | "active";
604
24
  } | null;
605
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
606
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
608
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
609
29
  isBindingEnabled: boolean;
30
+ boxSelectionMode: import("../types").BoxSelectionMode;
31
+ bindingPreference: "enabled" | "disabled";
32
+ isMidpointSnappingEnabled: boolean;
610
33
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
611
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
34
+ suggestedBinding: {
35
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
+ midPoint?: import("@excalidraw/math").GlobalPoint;
37
+ } | null;
612
38
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
613
39
  frameRendering: {
614
40
  enabled: boolean;
@@ -618,12 +44,16 @@ export declare const actionCut: {
618
44
  };
619
45
  editingFrame: string | null;
620
46
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
621
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
47
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
622
48
  activeTool: {
623
49
  lastActiveTool: import("../types").ActiveTool | null;
624
50
  locked: boolean;
625
51
  fromSelection: boolean;
626
52
  } & import("../types").ActiveTool;
53
+ preferredSelectionTool: {
54
+ type: "selection" | "lasso";
55
+ initialized: boolean;
56
+ };
627
57
  penMode: boolean;
628
58
  penDetected: boolean;
629
59
  exportBackground: boolean;
@@ -632,19 +62,19 @@ export declare const actionCut: {
632
62
  exportScale: number;
633
63
  currentItemStrokeColor: string;
634
64
  currentItemBackgroundColor: string;
635
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
65
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
636
66
  currentItemStrokeWidth: number;
637
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
67
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
638
68
  currentItemRoughness: number;
639
69
  currentItemOpacity: number;
640
- currentItemFontFamily: number;
70
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
641
71
  currentItemFontSize: number;
642
- currentItemTextAlign: string;
72
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
643
73
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
644
74
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
645
- currentHoveredFontFamily: number | null;
75
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
646
76
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
647
- currentItemArrowType: "round" | "sharp" | "elbow";
77
+ currentItemArrowType: "sharp" | "round" | "elbow";
648
78
  viewBackgroundColor: string;
649
79
  scrollX: number;
650
80
  scrollY: number;
@@ -653,26 +83,30 @@ export declare const actionCut: {
653
83
  name: string | null;
654
84
  isResizing: boolean;
655
85
  isRotating: boolean;
656
- zoom: Readonly<{
657
- value: import("../types").NormalizedZoomValue;
658
- }>;
659
- openMenu: "canvas" | "shape" | null;
660
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
86
+ zoom: import("../types").Zoom;
87
+ openMenu: "canvas" | null;
88
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
661
89
  openSidebar: {
662
- name: string;
663
- tab?: string | undefined;
90
+ name: import("../types").SidebarName;
91
+ tab?: import("../types").SidebarTabName;
664
92
  } | null;
665
- openDialog: {
93
+ openDialog: null | {
666
94
  name: "imageExport" | "help" | "jsonExport";
667
95
  } | {
668
96
  name: "ttd";
669
- tab: "mermaid" | "text-to-diagram";
97
+ tab: "text-to-diagram" | "mermaid";
670
98
  } | {
671
99
  name: "commandPalette";
100
+ } | {
101
+ name: "settings";
672
102
  } | {
673
103
  name: "elementLinkSelector";
674
- sourceElementId: string;
675
- } | null;
104
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
105
+ } | {
106
+ name: "charts";
107
+ data: import("../charts").Spreadsheet;
108
+ rawText: string;
109
+ };
676
110
  defaultSidebarDockedPreference: boolean;
677
111
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
678
112
  selectedElementIds: Readonly<{
@@ -687,9 +121,9 @@ export declare const actionCut: {
687
121
  selectedElementsAreBeingDragged: boolean;
688
122
  shouldCacheIgnoreZoom: boolean;
689
123
  toast: {
690
- message: string;
691
- closable?: boolean | undefined;
692
- duration?: number | undefined;
124
+ message: React.ReactNode;
125
+ closable?: boolean;
126
+ duration?: number;
693
127
  } | null;
694
128
  zenModeEnabled: boolean;
695
129
  theme: import("@excalidraw/element/types").Theme;
@@ -700,45 +134,18 @@ export declare const actionCut: {
700
134
  selectedGroupIds: {
701
135
  [groupId: string]: boolean;
702
136
  };
703
- editingGroupId: string | null;
137
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
704
138
  width: number;
705
139
  height: number;
706
140
  offsetTop: number;
707
141
  offsetLeft: number;
708
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
709
- collaborators: Map<import("../types").SocketId, Readonly<{
710
- pointer?: import("../types").CollaboratorPointer | undefined;
711
- button?: "up" | "down" | undefined;
712
- selectedElementIds?: Readonly<{
713
- [id: string]: true;
714
- }> | undefined;
715
- username?: string | null | undefined;
716
- userState?: import("@excalidraw/common").UserIdleState | undefined;
717
- color?: {
718
- background: string;
719
- stroke: string;
720
- } | undefined;
721
- avatarUrl?: string | undefined;
722
- id?: string | undefined;
723
- socketId?: import("../types").SocketId | undefined;
724
- isCurrentUser?: boolean | undefined;
725
- isInCall?: boolean | undefined;
726
- isSpeaking?: boolean | undefined;
727
- isMuted?: boolean | undefined;
728
- }>>;
142
+ fileHandle: FileSystemFileHandle | null;
143
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
729
144
  stats: {
730
145
  open: boolean;
731
146
  panels: number;
732
147
  };
733
- currentChartType: import("@excalidraw/element/types").ChartType;
734
- pasteDialog: {
735
- shown: false;
736
- data: null;
737
- } | {
738
- shown: true;
739
- data: import("../charts").Spreadsheet;
740
- };
741
- showHyperlinkPopup: false | "editor" | "info";
148
+ showHyperlinkPopup: false | "info" | "editor";
742
149
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
743
150
  snapLines: readonly import("../snapping").SnapLine[];
744
151
  originSnapOffset: {
@@ -749,192 +156,27 @@ export declare const actionCut: {
749
156
  userToFollow: import("../types").UserToFollow | null;
750
157
  followedBy: Set<import("../types").SocketId>;
751
158
  isCropping: boolean;
752
- croppingElementId: string | null;
159
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
753
160
  searchMatches: Readonly<{
754
- focusedId: string | null;
161
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
755
162
  matches: readonly import("../types").SearchMatch[];
756
163
  }> | null;
757
164
  activeLockedId: string | null;
758
165
  lockedMultiSelections: {
759
166
  [groupId: string]: true;
760
167
  };
168
+ bindMode: import("@excalidraw/element/types").BindMode;
761
169
  };
762
- captureUpdate: "IMMEDIATELY";
763
170
  } | {
764
- elements: import("@excalidraw/element/types").ExcalidrawElement[];
765
- appState: {
766
- activeTool: {
767
- lastActiveTool: import("../types").ActiveTool | null;
768
- locked: boolean;
769
- fromSelection: boolean;
770
- } & import("../types").ActiveTool;
771
- multiElement: null;
772
- activeEmbeddable: null;
773
- selectedLinearElement: null;
774
- editingGroupId: string | null;
775
- selectedElementIds: Readonly<{
776
- [id: string]: true;
777
- }>;
778
- selectedGroupIds: {
779
- [groupId: string]: boolean;
780
- };
781
- contextMenu: {
782
- items: import("../components/ContextMenu").ContextMenuItems;
783
- top: number;
784
- left: number;
785
- } | null;
786
- showWelcomeScreen: boolean;
787
- isLoading: boolean;
788
- errorMessage: import("react").ReactNode;
789
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
790
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
791
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
792
- isBindingEnabled: boolean;
793
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
794
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
795
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
796
- frameRendering: {
797
- enabled: boolean;
798
- name: boolean;
799
- outline: boolean;
800
- clip: boolean;
801
- };
802
- editingFrame: string | null;
803
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
804
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
805
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
806
- penMode: boolean;
807
- penDetected: boolean;
808
- exportBackground: boolean;
809
- exportEmbedScene: boolean;
810
- exportWithDarkMode: boolean;
811
- exportScale: number;
812
- currentItemStrokeColor: string;
813
- currentItemBackgroundColor: string;
814
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
815
- currentItemStrokeWidth: number;
816
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
817
- currentItemRoughness: number;
818
- currentItemOpacity: number;
819
- currentItemFontFamily: number;
820
- currentItemFontSize: number;
821
- currentItemTextAlign: string;
822
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
823
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
824
- currentHoveredFontFamily: number | null;
825
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
826
- currentItemArrowType: "round" | "sharp" | "elbow";
827
- viewBackgroundColor: string;
828
- scrollX: number;
829
- scrollY: number;
830
- cursorButton: "up" | "down";
831
- scrolledOutside: boolean;
832
- name: string | null;
833
- isResizing: boolean;
834
- isRotating: boolean;
835
- zoom: Readonly<{
836
- value: import("../types").NormalizedZoomValue;
837
- }>;
838
- openMenu: "canvas" | "shape" | null;
839
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
840
- openSidebar: {
841
- name: string;
842
- tab?: string | undefined;
843
- } | null;
844
- openDialog: {
845
- name: "imageExport" | "help" | "jsonExport";
846
- } | {
847
- name: "ttd";
848
- tab: "mermaid" | "text-to-diagram";
849
- } | {
850
- name: "commandPalette";
851
- } | {
852
- name: "elementLinkSelector";
853
- sourceElementId: string;
854
- } | null;
855
- defaultSidebarDockedPreference: boolean;
856
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
857
- hoveredElementIds: Readonly<{
858
- [id: string]: true;
859
- }>;
860
- previousSelectedElementIds: {
861
- [id: string]: true;
862
- };
863
- selectedElementsAreBeingDragged: boolean;
864
- shouldCacheIgnoreZoom: boolean;
865
- toast: {
866
- message: string;
867
- closable?: boolean | undefined;
868
- duration?: number | undefined;
869
- } | null;
870
- zenModeEnabled: boolean;
871
- theme: import("@excalidraw/element/types").Theme;
872
- gridSize: number;
873
- gridStep: number;
874
- gridModeEnabled: boolean;
875
- viewModeEnabled: boolean;
876
- width: number;
877
- height: number;
878
- offsetTop: number;
879
- offsetLeft: number;
880
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
881
- collaborators: Map<import("../types").SocketId, Readonly<{
882
- pointer?: import("../types").CollaboratorPointer | undefined;
883
- button?: "up" | "down" | undefined;
884
- selectedElementIds?: Readonly<{
885
- [id: string]: true;
886
- }> | undefined;
887
- username?: string | null | undefined;
888
- userState?: import("@excalidraw/common").UserIdleState | undefined;
889
- color?: {
890
- background: string;
891
- stroke: string;
892
- } | undefined;
893
- avatarUrl?: string | undefined;
894
- id?: string | undefined;
895
- socketId?: import("../types").SocketId | undefined;
896
- isCurrentUser?: boolean | undefined;
897
- isInCall?: boolean | undefined;
898
- isSpeaking?: boolean | undefined;
899
- isMuted?: boolean | undefined;
900
- }>>;
901
- stats: {
902
- open: boolean;
903
- panels: number;
904
- };
905
- currentChartType: import("@excalidraw/element/types").ChartType;
906
- pasteDialog: {
907
- shown: false;
908
- data: null;
909
- } | {
910
- shown: true;
911
- data: import("../charts").Spreadsheet;
912
- };
913
- showHyperlinkPopup: false | "editor" | "info";
914
- snapLines: readonly import("../snapping").SnapLine[];
915
- originSnapOffset: {
916
- x: number;
917
- y: number;
918
- } | null;
919
- objectsSnapModeEnabled: boolean;
920
- userToFollow: import("../types").UserToFollow | null;
921
- followedBy: Set<import("../types").SocketId>;
922
- isCropping: boolean;
923
- croppingElementId: string | null;
924
- searchMatches: Readonly<{
925
- focusedId: string | null;
926
- matches: readonly import("../types").SearchMatch[];
927
- }> | null;
928
- activeLockedId: string | null;
929
- lockedMultiSelections: {
930
- [groupId: string]: true;
931
- };
932
- };
933
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
934
- };
935
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
171
+ captureUpdate: "EVENTUALLY";
172
+ appState?: undefined;
173
+ }>;
174
+ keyTest: undefined;
936
175
  } & {
937
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
176
+ keyTest?: undefined;
177
+ };
178
+ export declare const actionCut: import("./types").Action<ClipboardEvent | null> & {
179
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
938
180
  };
939
181
  export declare const actionCopyAsSvg: {
940
182
  name: "copyAsSvg";
@@ -943,7 +185,7 @@ export declare const actionCopyAsSvg: {
943
185
  trackEvent: {
944
186
  category: "element";
945
187
  };
946
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
188
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
947
189
  captureUpdate: "EVENTUALLY";
948
190
  appState?: undefined;
949
191
  } | {
@@ -973,7 +215,7 @@ export declare const actionCopyAsPng: {
973
215
  trackEvent: {
974
216
  category: "element";
975
217
  };
976
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
218
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
977
219
  captureUpdate: "EVENTUALLY";
978
220
  appState?: undefined;
979
221
  } | {
@@ -988,15 +230,21 @@ export declare const actionCopyAsPng: {
988
230
  isLoading: boolean;
989
231
  activeEmbeddable: {
990
232
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
991
- state: "active" | "hover";
233
+ state: "hover" | "active";
992
234
  } | null;
993
235
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
994
236
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
995
237
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
996
238
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
997
239
  isBindingEnabled: boolean;
240
+ boxSelectionMode: import("../types").BoxSelectionMode;
241
+ bindingPreference: "enabled" | "disabled";
242
+ isMidpointSnappingEnabled: boolean;
998
243
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
999
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
244
+ suggestedBinding: {
245
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
246
+ midPoint?: import("@excalidraw/math").GlobalPoint;
247
+ } | null;
1000
248
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1001
249
  frameRendering: {
1002
250
  enabled: boolean;
@@ -1006,13 +254,16 @@ export declare const actionCopyAsPng: {
1006
254
  };
1007
255
  editingFrame: string | null;
1008
256
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1009
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1010
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
257
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1011
258
  activeTool: {
1012
259
  lastActiveTool: import("../types").ActiveTool | null;
1013
260
  locked: boolean;
1014
261
  fromSelection: boolean;
1015
262
  } & import("../types").ActiveTool;
263
+ preferredSelectionTool: {
264
+ type: "selection" | "lasso";
265
+ initialized: boolean;
266
+ };
1016
267
  penMode: boolean;
1017
268
  penDetected: boolean;
1018
269
  exportBackground: boolean;
@@ -1021,19 +272,19 @@ export declare const actionCopyAsPng: {
1021
272
  exportScale: number;
1022
273
  currentItemStrokeColor: string;
1023
274
  currentItemBackgroundColor: string;
1024
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
275
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1025
276
  currentItemStrokeWidth: number;
1026
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
277
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1027
278
  currentItemRoughness: number;
1028
279
  currentItemOpacity: number;
1029
- currentItemFontFamily: number;
280
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1030
281
  currentItemFontSize: number;
1031
- currentItemTextAlign: string;
282
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1032
283
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1033
284
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1034
- currentHoveredFontFamily: number | null;
285
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1035
286
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1036
- currentItemArrowType: "round" | "sharp" | "elbow";
287
+ currentItemArrowType: "sharp" | "round" | "elbow";
1037
288
  viewBackgroundColor: string;
1038
289
  scrollX: number;
1039
290
  scrollY: number;
@@ -1042,26 +293,30 @@ export declare const actionCopyAsPng: {
1042
293
  name: string | null;
1043
294
  isResizing: boolean;
1044
295
  isRotating: boolean;
1045
- zoom: Readonly<{
1046
- value: import("../types").NormalizedZoomValue;
1047
- }>;
1048
- openMenu: "canvas" | "shape" | null;
1049
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
296
+ zoom: import("../types").Zoom;
297
+ openMenu: "canvas" | null;
298
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1050
299
  openSidebar: {
1051
- name: string;
1052
- tab?: string | undefined;
300
+ name: import("../types").SidebarName;
301
+ tab?: import("../types").SidebarTabName;
1053
302
  } | null;
1054
- openDialog: {
303
+ openDialog: null | {
1055
304
  name: "imageExport" | "help" | "jsonExport";
1056
305
  } | {
1057
306
  name: "ttd";
1058
- tab: "mermaid" | "text-to-diagram";
307
+ tab: "text-to-diagram" | "mermaid";
1059
308
  } | {
1060
309
  name: "commandPalette";
310
+ } | {
311
+ name: "settings";
1061
312
  } | {
1062
313
  name: "elementLinkSelector";
1063
- sourceElementId: string;
1064
- } | null;
314
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
315
+ } | {
316
+ name: "charts";
317
+ data: import("../charts").Spreadsheet;
318
+ rawText: string;
319
+ };
1065
320
  defaultSidebarDockedPreference: boolean;
1066
321
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1067
322
  selectedElementIds: Readonly<{
@@ -1076,9 +331,9 @@ export declare const actionCopyAsPng: {
1076
331
  selectedElementsAreBeingDragged: boolean;
1077
332
  shouldCacheIgnoreZoom: boolean;
1078
333
  toast: {
1079
- message: string;
1080
- closable?: boolean | undefined;
1081
- duration?: number | undefined;
334
+ message: React.ReactNode;
335
+ closable?: boolean;
336
+ duration?: number;
1082
337
  } | null;
1083
338
  zenModeEnabled: boolean;
1084
339
  theme: import("@excalidraw/element/types").Theme;
@@ -1089,45 +344,18 @@ export declare const actionCopyAsPng: {
1089
344
  selectedGroupIds: {
1090
345
  [groupId: string]: boolean;
1091
346
  };
1092
- editingGroupId: string | null;
347
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1093
348
  width: number;
1094
349
  height: number;
1095
350
  offsetTop: number;
1096
351
  offsetLeft: number;
1097
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1098
- collaborators: Map<import("../types").SocketId, Readonly<{
1099
- pointer?: import("../types").CollaboratorPointer | undefined;
1100
- button?: "up" | "down" | undefined;
1101
- selectedElementIds?: Readonly<{
1102
- [id: string]: true;
1103
- }> | undefined;
1104
- username?: string | null | undefined;
1105
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1106
- color?: {
1107
- background: string;
1108
- stroke: string;
1109
- } | undefined;
1110
- avatarUrl?: string | undefined;
1111
- id?: string | undefined;
1112
- socketId?: import("../types").SocketId | undefined;
1113
- isCurrentUser?: boolean | undefined;
1114
- isInCall?: boolean | undefined;
1115
- isSpeaking?: boolean | undefined;
1116
- isMuted?: boolean | undefined;
1117
- }>>;
352
+ fileHandle: FileSystemFileHandle | null;
353
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1118
354
  stats: {
1119
355
  open: boolean;
1120
356
  panels: number;
1121
357
  };
1122
- currentChartType: import("@excalidraw/element/types").ChartType;
1123
- pasteDialog: {
1124
- shown: false;
1125
- data: null;
1126
- } | {
1127
- shown: true;
1128
- data: import("../charts").Spreadsheet;
1129
- };
1130
- showHyperlinkPopup: false | "editor" | "info";
358
+ showHyperlinkPopup: false | "info" | "editor";
1131
359
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1132
360
  snapLines: readonly import("../snapping").SnapLine[];
1133
361
  originSnapOffset: {
@@ -1138,15 +366,16 @@ export declare const actionCopyAsPng: {
1138
366
  userToFollow: import("../types").UserToFollow | null;
1139
367
  followedBy: Set<import("../types").SocketId>;
1140
368
  isCropping: boolean;
1141
- croppingElementId: string | null;
369
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1142
370
  searchMatches: Readonly<{
1143
- focusedId: string | null;
371
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1144
372
  matches: readonly import("../types").SearchMatch[];
1145
373
  }> | null;
1146
374
  activeLockedId: string | null;
1147
375
  lockedMultiSelections: {
1148
376
  [groupId: string]: true;
1149
377
  };
378
+ bindMode: import("@excalidraw/element/types").BindMode;
1150
379
  };
1151
380
  captureUpdate: "EVENTUALLY";
1152
381
  }>;
@@ -1162,7 +391,7 @@ export declare const copyText: {
1162
391
  trackEvent: {
1163
392
  category: "element";
1164
393
  };
1165
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
394
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1166
395
  captureUpdate: "EVENTUALLY";
1167
396
  };
1168
397
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;