@excalidraw/math 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 (276) hide show
  1. package/dist/dev/index.js +92 -65
  2. package/dist/dev/index.js.map +3 -3
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +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/zindex.d.ts +7 -1
  55. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +170 -210
  56. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  57. package/dist/types/excalidraw/actions/actionBoundText.d.ts +94 -121
  58. package/dist/types/excalidraw/actions/actionCanvas.d.ts +557 -902
  59. package/dist/types/excalidraw/actions/actionClipboard.d.ts +125 -896
  60. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +45 -59
  61. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +151 -195
  62. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  63. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  64. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  65. package/dist/types/excalidraw/actions/actionElementLink.d.ts +54 -74
  66. package/dist/types/excalidraw/actions/actionElementLock.d.ts +92 -119
  67. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +60 -74
  68. package/dist/types/excalidraw/actions/actionExport.d.ts +173 -1412
  69. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -395
  70. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  71. package/dist/types/excalidraw/actions/actionFrame.d.ts +265 -356
  72. package/dist/types/excalidraw/actions/actionGroup.d.ts +97 -132
  73. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +162 -183
  74. package/dist/types/excalidraw/actions/actionLink.d.ts +60 -74
  75. package/dist/types/excalidraw/actions/actionMenu.d.ts +49 -437
  76. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  77. package/dist/types/excalidraw/actions/actionProperties.d.ts +152 -2522
  78. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -66
  79. package/dist/types/excalidraw/actions/actionStyles.d.ts +45 -58
  80. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  81. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  82. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +60 -74
  83. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  84. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +60 -74
  85. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +48 -68
  86. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  87. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +59 -73
  88. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +60 -74
  89. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +60 -74
  90. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  91. package/dist/types/excalidraw/actions/index.d.ts +5 -2
  92. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  93. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  94. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  95. package/dist/types/excalidraw/appState.d.ts +29 -21
  96. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  97. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  98. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  99. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  100. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  101. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  102. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  103. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  104. package/dist/types/excalidraw/clipboard.d.ts +57 -19
  105. package/dist/types/excalidraw/components/Actions.d.ts +21 -8
  106. package/dist/types/excalidraw/components/App.d.ts +118 -75
  107. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  108. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  109. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  110. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  111. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  112. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  113. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  114. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  115. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  116. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  117. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  118. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  119. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  120. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  121. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Ellipsify.d.ts +3 -0
  123. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  124. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  125. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  126. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  127. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  128. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  129. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  130. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  131. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  132. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  133. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  134. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  135. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  136. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  137. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  138. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  139. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  140. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  141. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  142. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  143. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  144. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  145. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  146. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  147. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  148. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  149. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  150. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  151. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  152. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  153. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  154. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  155. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  156. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  157. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  158. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  159. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  160. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  161. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  162. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  163. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  164. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  165. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  166. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  167. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  168. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  169. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  170. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  171. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  172. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  173. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  174. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  175. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  176. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  177. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  178. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  179. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  180. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  181. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  182. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  183. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  184. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  185. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  186. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  187. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  188. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  189. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  190. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  191. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  192. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  193. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  194. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  195. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  196. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  202. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  204. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  205. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  206. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  207. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  208. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  209. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  210. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  211. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  212. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  213. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  214. package/dist/types/excalidraw/components/icons.d.ts +49 -21
  215. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  216. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  217. package/dist/types/excalidraw/components/shapes.d.ts +202 -1
  218. package/dist/types/excalidraw/data/blob.d.ts +329 -12
  219. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  220. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  221. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  222. package/dist/types/excalidraw/data/index.d.ts +4 -5
  223. package/dist/types/excalidraw/data/json.d.ts +171 -4
  224. package/dist/types/excalidraw/data/library.d.ts +24 -9
  225. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  226. package/dist/types/excalidraw/data/restore.d.ts +27 -7
  227. package/dist/types/excalidraw/data/types.d.ts +4 -1
  228. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  229. package/dist/types/excalidraw/errors.d.ts +14 -0
  230. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  231. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  232. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  233. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  234. package/dist/types/excalidraw/i18n.d.ts +2 -2
  235. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  236. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  237. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  238. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  239. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  240. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  241. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  242. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  243. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  244. package/dist/types/excalidraw/snapping.d.ts +5 -5
  245. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  246. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  247. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  248. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  249. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  250. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  251. package/dist/types/excalidraw/types.d.ts +130 -38
  252. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  253. package/dist/types/math/src/curve.d.ts +4 -1
  254. package/dist/types/math/src/point.d.ts +7 -2
  255. package/dist/types/math/src/polygon.d.ts +2 -2
  256. package/dist/types/math/src/range.d.ts +1 -3
  257. package/dist/types/math/src/segment.d.ts +4 -3
  258. package/dist/types/math/src/types.d.ts +25 -1
  259. package/dist/types/utils/src/bbox.d.ts +1 -1
  260. package/dist/types/utils/src/export.d.ts +5 -5
  261. package/dist/types/utils/src/shape.d.ts +6 -6
  262. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  263. package/package.json +2 -2
  264. package/dist/types/excalidraw/charts.d.ts +0 -27
  265. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  266. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  267. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  268. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  269. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  270. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  271. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  272. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  273. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  274. package/dist/types/excalidraw/data/reconcile.d.ts +0 -6
  275. package/dist/types/excalidraw/index.d.ts +0 -46
  276. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,191 +1,5 @@
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("../../element/src/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("../../element/src/types").NonDeletedExcalidrawElement;
22
- state: "active" | "hover";
23
- } | null;
24
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
25
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
26
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
27
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
28
- isBindingEnabled: boolean;
29
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/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("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
40
- editingTextElement: import("../../element/src/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("../../element/src/types").FillStyle;
56
- currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
58
- currentItemRoughness: number;
59
- currentItemOpacity: number;
60
- currentItemFontFamily: number;
61
- currentItemFontSize: number;
62
- currentItemTextAlign: string;
63
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
64
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
65
- currentHoveredFontFamily: number | null;
66
- currentItemRoundness: import("../../element/src/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("../../element/src/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("../../element/src/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("../../element/src/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;
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;
189
3
  };
190
4
  export declare const actionPaste: {
191
5
  name: "paste";
@@ -193,7 +7,7 @@ export declare const actionPaste: {
193
7
  trackEvent: {
194
8
  category: "element";
195
9
  };
196
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: unknown, app: import("../types").AppClassProperties) => Promise<false | {
197
11
  captureUpdate: "EVENTUALLY";
198
12
  appState: {
199
13
  errorMessage: string;
@@ -205,17 +19,23 @@ export declare const actionPaste: {
205
19
  showWelcomeScreen: boolean;
206
20
  isLoading: boolean;
207
21
  activeEmbeddable: {
208
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
209
- state: "active" | "hover";
22
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
+ state: "hover" | "active";
210
24
  } | null;
211
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
212
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
213
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
214
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
25
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
215
29
  isBindingEnabled: boolean;
216
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
217
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
218
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
30
+ boxSelectionMode: import("../types").BoxSelectionMode;
31
+ bindingPreference: "enabled" | "disabled";
32
+ isMidpointSnappingEnabled: boolean;
33
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
+ suggestedBinding: {
35
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
+ midPoint?: import("@excalidraw/math").GlobalPoint;
37
+ } | null;
38
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
219
39
  frameRendering: {
220
40
  enabled: boolean;
221
41
  name: boolean;
@@ -223,14 +43,17 @@ export declare const actionPaste: {
223
43
  clip: boolean;
224
44
  };
225
45
  editingFrame: string | null;
226
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
227
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
228
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
46
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
47
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
229
48
  activeTool: {
230
49
  lastActiveTool: import("../types").ActiveTool | null;
231
50
  locked: boolean;
232
51
  fromSelection: boolean;
233
52
  } & import("../types").ActiveTool;
53
+ preferredSelectionTool: {
54
+ type: "selection" | "lasso";
55
+ initialized: boolean;
56
+ };
234
57
  penMode: boolean;
235
58
  penDetected: boolean;
236
59
  exportBackground: boolean;
@@ -239,19 +62,19 @@ export declare const actionPaste: {
239
62
  exportScale: number;
240
63
  currentItemStrokeColor: string;
241
64
  currentItemBackgroundColor: string;
242
- currentItemFillStyle: import("../../element/src/types").FillStyle;
65
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
243
66
  currentItemStrokeWidth: number;
244
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
67
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
245
68
  currentItemRoughness: number;
246
69
  currentItemOpacity: number;
247
- currentItemFontFamily: number;
70
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
248
71
  currentItemFontSize: number;
249
- currentItemTextAlign: string;
250
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
251
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
252
- currentHoveredFontFamily: number | null;
253
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
254
- currentItemArrowType: "round" | "sharp" | "elbow";
72
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
73
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
74
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
75
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
76
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
77
+ currentItemArrowType: "sharp" | "round" | "elbow";
255
78
  viewBackgroundColor: string;
256
79
  scrollX: number;
257
80
  scrollY: number;
@@ -260,28 +83,32 @@ export declare const actionPaste: {
260
83
  name: string | null;
261
84
  isResizing: boolean;
262
85
  isRotating: boolean;
263
- zoom: Readonly<{
264
- value: import("../types").NormalizedZoomValue;
265
- }>;
266
- openMenu: "canvas" | "shape" | null;
267
- 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;
268
89
  openSidebar: {
269
- name: string;
270
- tab?: string | undefined;
90
+ name: import("../types").SidebarName;
91
+ tab?: import("../types").SidebarTabName;
271
92
  } | null;
272
- openDialog: {
93
+ openDialog: null | {
273
94
  name: "imageExport" | "help" | "jsonExport";
274
95
  } | {
275
96
  name: "ttd";
276
- tab: "mermaid" | "text-to-diagram";
97
+ tab: "text-to-diagram" | "mermaid";
277
98
  } | {
278
99
  name: "commandPalette";
100
+ } | {
101
+ name: "settings";
279
102
  } | {
280
103
  name: "elementLinkSelector";
281
- sourceElementId: string;
282
- } | null;
104
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
105
+ } | {
106
+ name: "charts";
107
+ data: import("../charts").Spreadsheet;
108
+ rawText: string;
109
+ };
283
110
  defaultSidebarDockedPreference: boolean;
284
- lastPointerDownWith: import("../../element/src/types").PointerType;
111
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
285
112
  selectedElementIds: Readonly<{
286
113
  [id: string]: true;
287
114
  }>;
@@ -294,12 +121,12 @@ export declare const actionPaste: {
294
121
  selectedElementsAreBeingDragged: boolean;
295
122
  shouldCacheIgnoreZoom: boolean;
296
123
  toast: {
297
- message: string;
298
- closable?: boolean | undefined;
299
- duration?: number | undefined;
124
+ message: React.ReactNode;
125
+ closable?: boolean;
126
+ duration?: number;
300
127
  } | null;
301
128
  zenModeEnabled: boolean;
302
- theme: import("../../element/src/types").Theme;
129
+ theme: import("@excalidraw/element/types").Theme;
303
130
  gridSize: number;
304
131
  gridStep: number;
305
132
  gridModeEnabled: boolean;
@@ -307,45 +134,18 @@ export declare const actionPaste: {
307
134
  selectedGroupIds: {
308
135
  [groupId: string]: boolean;
309
136
  };
310
- editingGroupId: string | null;
137
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
311
138
  width: number;
312
139
  height: number;
313
140
  offsetTop: number;
314
141
  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
- }>>;
142
+ fileHandle: FileSystemFileHandle | null;
143
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
336
144
  stats: {
337
145
  open: boolean;
338
146
  panels: number;
339
147
  };
340
- currentChartType: import("../../element/src/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";
148
+ showHyperlinkPopup: false | "info" | "editor";
349
149
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
350
150
  snapLines: readonly import("../snapping").SnapLine[];
351
151
  originSnapOffset: {
@@ -356,15 +156,16 @@ export declare const actionPaste: {
356
156
  userToFollow: import("../types").UserToFollow | null;
357
157
  followedBy: Set<import("../types").SocketId>;
358
158
  isCropping: boolean;
359
- croppingElementId: string | null;
159
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
360
160
  searchMatches: Readonly<{
361
- focusedId: string | null;
161
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
362
162
  matches: readonly import("../types").SearchMatch[];
363
163
  }> | null;
364
164
  activeLockedId: string | null;
365
165
  lockedMultiSelections: {
366
166
  [groupId: string]: true;
367
167
  };
168
+ bindMode: import("@excalidraw/element/types").BindMode;
368
169
  };
369
170
  } | {
370
171
  captureUpdate: "EVENTUALLY";
@@ -374,567 +175,8 @@ export declare const actionPaste: {
374
175
  } & {
375
176
  keyTest?: undefined;
376
177
  };
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("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
385
- elements: import("../../element/src/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("../../element/src/types").NonDeletedExcalidrawElement;
398
- state: "active" | "hover";
399
- } | null;
400
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
401
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
402
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
403
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
404
- isBindingEnabled: boolean;
405
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
406
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
407
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/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("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
416
- editingTextElement: import("../../element/src/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("../../element/src/types").FillStyle;
431
- currentItemStrokeWidth: number;
432
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
433
- currentItemRoughness: number;
434
- currentItemOpacity: number;
435
- currentItemFontFamily: number;
436
- currentItemFontSize: number;
437
- currentItemTextAlign: string;
438
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
439
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
440
- currentHoveredFontFamily: number | null;
441
- currentItemRoundness: import("../../element/src/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("../../element/src/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("../../element/src/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("../../element/src/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("../../element/src/types").OrderedExcalidrawElement[];
560
- appState: {
561
- editingLinearElement: {
562
- selectedPointsIndices: number[];
563
- startBindingElement: import("../../element/src/types").ExcalidrawBindableElement | "keep" | null;
564
- endBindingElement: import("../../element/src/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("@excalidraw/math").GlobalPoint | null;
578
- index: number | null;
579
- added: boolean;
580
- };
581
- }>;
582
- isDragging: boolean;
583
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
584
- pointerOffset: Readonly<{
585
- x: number;
586
- y: number;
587
- }>;
588
- hoverPointIndex: number;
589
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
590
- elbowed: boolean;
591
- customLineAngle: number | null;
592
- };
593
- contextMenu: {
594
- items: import("../components/ContextMenu").ContextMenuItems;
595
- top: number;
596
- left: number;
597
- } | null;
598
- showWelcomeScreen: boolean;
599
- isLoading: boolean;
600
- errorMessage: import("react").ReactNode;
601
- activeEmbeddable: {
602
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
603
- state: "active" | "hover";
604
- } | null;
605
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
606
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
607
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
608
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
609
- isBindingEnabled: boolean;
610
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
611
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
612
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
613
- frameRendering: {
614
- enabled: boolean;
615
- name: boolean;
616
- outline: boolean;
617
- clip: boolean;
618
- };
619
- editingFrame: string | null;
620
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
621
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
622
- activeTool: {
623
- lastActiveTool: import("../types").ActiveTool | null;
624
- locked: boolean;
625
- fromSelection: boolean;
626
- } & import("../types").ActiveTool;
627
- penMode: boolean;
628
- penDetected: boolean;
629
- exportBackground: boolean;
630
- exportEmbedScene: boolean;
631
- exportWithDarkMode: boolean;
632
- exportScale: number;
633
- currentItemStrokeColor: string;
634
- currentItemBackgroundColor: string;
635
- currentItemFillStyle: import("../../element/src/types").FillStyle;
636
- currentItemStrokeWidth: number;
637
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
638
- currentItemRoughness: number;
639
- currentItemOpacity: number;
640
- currentItemFontFamily: number;
641
- currentItemFontSize: number;
642
- currentItemTextAlign: string;
643
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
644
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
645
- currentHoveredFontFamily: number | null;
646
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
647
- currentItemArrowType: "round" | "sharp" | "elbow";
648
- viewBackgroundColor: string;
649
- scrollX: number;
650
- scrollY: number;
651
- cursorButton: "up" | "down";
652
- scrolledOutside: boolean;
653
- name: string | null;
654
- isResizing: boolean;
655
- isRotating: boolean;
656
- zoom: Readonly<{
657
- value: import("../types").NormalizedZoomValue;
658
- }>;
659
- openMenu: "canvas" | "shape" | null;
660
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
661
- openSidebar: {
662
- name: string;
663
- tab?: string | undefined;
664
- } | null;
665
- openDialog: {
666
- name: "imageExport" | "help" | "jsonExport";
667
- } | {
668
- name: "ttd";
669
- tab: "mermaid" | "text-to-diagram";
670
- } | {
671
- name: "commandPalette";
672
- } | {
673
- name: "elementLinkSelector";
674
- sourceElementId: string;
675
- } | null;
676
- defaultSidebarDockedPreference: boolean;
677
- lastPointerDownWith: import("../../element/src/types").PointerType;
678
- selectedElementIds: Readonly<{
679
- [id: string]: true;
680
- }>;
681
- hoveredElementIds: Readonly<{
682
- [id: string]: true;
683
- }>;
684
- previousSelectedElementIds: {
685
- [id: string]: true;
686
- };
687
- selectedElementsAreBeingDragged: boolean;
688
- shouldCacheIgnoreZoom: boolean;
689
- toast: {
690
- message: string;
691
- closable?: boolean | undefined;
692
- duration?: number | undefined;
693
- } | null;
694
- zenModeEnabled: boolean;
695
- theme: import("../../element/src/types").Theme;
696
- gridSize: number;
697
- gridStep: number;
698
- gridModeEnabled: boolean;
699
- viewModeEnabled: boolean;
700
- selectedGroupIds: {
701
- [groupId: string]: boolean;
702
- };
703
- editingGroupId: string | null;
704
- width: number;
705
- height: number;
706
- offsetTop: number;
707
- 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
- }>>;
729
- stats: {
730
- open: boolean;
731
- panels: number;
732
- };
733
- currentChartType: import("../../element/src/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";
742
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
743
- snapLines: readonly import("../snapping").SnapLine[];
744
- originSnapOffset: {
745
- x: number;
746
- y: number;
747
- } | null;
748
- objectsSnapModeEnabled: boolean;
749
- userToFollow: import("../types").UserToFollow | null;
750
- followedBy: Set<import("../types").SocketId>;
751
- isCropping: boolean;
752
- croppingElementId: string | null;
753
- searchMatches: Readonly<{
754
- focusedId: string | null;
755
- matches: readonly import("../types").SearchMatch[];
756
- }> | null;
757
- activeLockedId: string | null;
758
- lockedMultiSelections: {
759
- [groupId: string]: true;
760
- };
761
- };
762
- captureUpdate: "IMMEDIATELY";
763
- } | {
764
- elements: import("../../element/src/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("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
790
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
791
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
792
- isBindingEnabled: boolean;
793
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
794
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
795
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/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("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
804
- editingTextElement: import("../../element/src/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("../../element/src/types").FillStyle;
815
- currentItemStrokeWidth: number;
816
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
817
- currentItemRoughness: number;
818
- currentItemOpacity: number;
819
- currentItemFontFamily: number;
820
- currentItemFontSize: number;
821
- currentItemTextAlign: string;
822
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
823
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
824
- currentHoveredFontFamily: number | null;
825
- currentItemRoundness: import("../../element/src/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("../../element/src/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("../../element/src/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("../../element/src/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;
936
- } & {
937
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
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("../../element/src/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
  } | {
@@ -961,7 +203,7 @@ export declare const actionCopyAsSvg: {
961
203
  };
962
204
  captureUpdate: "EVENTUALLY";
963
205
  }>;
964
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
206
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
965
207
  keywords: string[];
966
208
  } & {
967
209
  keyTest?: undefined;
@@ -973,7 +215,7 @@ export declare const actionCopyAsPng: {
973
215
  trackEvent: {
974
216
  category: "element";
975
217
  };
976
- perform: (elements: readonly import("../../element/src/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
  } | {
@@ -987,17 +229,23 @@ export declare const actionCopyAsPng: {
987
229
  showWelcomeScreen: boolean;
988
230
  isLoading: boolean;
989
231
  activeEmbeddable: {
990
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
991
- state: "active" | "hover";
232
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
233
+ state: "hover" | "active";
992
234
  } | null;
993
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
994
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
995
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
996
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
235
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
236
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
238
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
997
239
  isBindingEnabled: boolean;
998
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
999
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1000
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
240
+ boxSelectionMode: import("../types").BoxSelectionMode;
241
+ bindingPreference: "enabled" | "disabled";
242
+ isMidpointSnappingEnabled: boolean;
243
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
244
+ suggestedBinding: {
245
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
246
+ midPoint?: import("@excalidraw/math").GlobalPoint;
247
+ } | null;
248
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1001
249
  frameRendering: {
1002
250
  enabled: boolean;
1003
251
  name: boolean;
@@ -1005,14 +253,17 @@ export declare const actionCopyAsPng: {
1005
253
  clip: boolean;
1006
254
  };
1007
255
  editingFrame: string | null;
1008
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
1009
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
1010
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
256
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | 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("../../element/src/types").FillStyle;
275
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1025
276
  currentItemStrokeWidth: number;
1026
- currentItemStrokeStyle: import("../../element/src/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;
1032
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
1033
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
1034
- currentHoveredFontFamily: number | null;
1035
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
1036
- currentItemArrowType: "round" | "sharp" | "elbow";
282
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
283
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
284
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
285
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
286
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
287
+ currentItemArrowType: "sharp" | "round" | "elbow";
1037
288
  viewBackgroundColor: string;
1038
289
  scrollX: number;
1039
290
  scrollY: number;
@@ -1042,28 +293,32 @@ 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
- lastPointerDownWith: import("../../element/src/types").PointerType;
321
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1067
322
  selectedElementIds: Readonly<{
1068
323
  [id: string]: true;
1069
324
  }>;
@@ -1076,12 +331,12 @@ 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
- theme: import("../../element/src/types").Theme;
339
+ theme: import("@excalidraw/element/types").Theme;
1085
340
  gridSize: number;
1086
341
  gridStep: number;
1087
342
  gridModeEnabled: boolean;
@@ -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("../../element/src/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,19 +366,20 @@ 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
  }>;
1153
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
382
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1154
383
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1155
384
  keywords: string[];
1156
385
  } & {
@@ -1162,10 +391,10 @@ export declare const copyText: {
1162
391
  trackEvent: {
1163
392
  category: "element";
1164
393
  };
1165
- perform: (elements: readonly import("../../element/src/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
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
397
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1169
398
  keywords: string[];
1170
399
  } & {
1171
400
  keyTest?: undefined;