@excalidraw/math 0.18.0-b16b6f8fd → 0.18.0-b1c6bfc

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 (273) 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 +37 -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/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  19. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  20. package/dist/types/element/src/binding.d.ts +67 -48
  21. package/dist/types/element/src/bounds.d.ts +8 -14
  22. package/dist/types/element/src/collision.d.ts +7 -2
  23. package/dist/types/element/src/comparisons.d.ts +7 -7
  24. package/dist/types/element/src/delta.d.ts +16 -4
  25. package/dist/types/element/src/distribute.d.ts +2 -1
  26. package/dist/types/element/src/dragElements.d.ts +3 -3
  27. package/dist/types/element/src/duplicate.d.ts +3 -3
  28. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  29. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  30. package/dist/types/element/src/frame.d.ts +6 -2
  31. package/dist/types/element/src/heading.d.ts +2 -1
  32. package/dist/types/element/src/image.d.ts +1 -11
  33. package/dist/types/element/src/index.d.ts +5 -3
  34. package/dist/types/element/src/linearElementEditor.d.ts +23 -22
  35. package/dist/types/element/src/mutateElement.d.ts +5 -1
  36. package/dist/types/element/src/newElement.d.ts +6 -6
  37. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  38. package/dist/types/element/src/renderElement.d.ts +4 -7
  39. package/dist/types/element/src/resizeElements.d.ts +10 -10
  40. package/dist/types/element/src/resizeTest.d.ts +6 -5
  41. package/dist/types/element/src/selection.d.ts +10 -10
  42. package/dist/types/element/src/shape.d.ts +9 -8
  43. package/dist/types/element/src/store.d.ts +6 -1
  44. package/dist/types/element/src/textElement.d.ts +2 -2
  45. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  46. package/dist/types/element/src/textWrapping.d.ts +26 -0
  47. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  48. package/dist/types/element/src/transformHandles.d.ts +8 -27
  49. package/dist/types/element/src/typeChecks.d.ts +4 -7
  50. package/dist/types/element/src/types.d.ts +12 -13
  51. package/dist/types/element/src/utils.d.ts +9 -4
  52. package/dist/types/element/src/zindex.d.ts +7 -1
  53. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +170 -207
  54. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  55. package/dist/types/excalidraw/actions/actionBoundText.d.ts +94 -119
  56. package/dist/types/excalidraw/actions/actionCanvas.d.ts +557 -902
  57. package/dist/types/excalidraw/actions/actionClipboard.d.ts +125 -891
  58. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +45 -58
  59. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +148 -189
  60. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  61. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  62. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  63. package/dist/types/excalidraw/actions/actionElementLink.d.ts +54 -73
  64. package/dist/types/excalidraw/actions/actionElementLock.d.ts +92 -117
  65. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +60 -73
  66. package/dist/types/excalidraw/actions/actionExport.d.ts +173 -1403
  67. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
  68. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  69. package/dist/types/excalidraw/actions/actionFrame.d.ts +265 -352
  70. package/dist/types/excalidraw/actions/actionGroup.d.ts +97 -130
  71. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +138 -189
  72. package/dist/types/excalidraw/actions/actionLink.d.ts +60 -73
  73. package/dist/types/excalidraw/actions/actionMenu.d.ts +49 -434
  74. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
  75. package/dist/types/excalidraw/actions/actionProperties.d.ts +152 -2507
  76. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -65
  77. package/dist/types/excalidraw/actions/actionStyles.d.ts +45 -57
  78. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  79. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  80. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +60 -73
  81. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  82. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +60 -73
  83. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +48 -67
  84. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  85. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +59 -72
  86. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +60 -73
  87. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +60 -73
  88. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  89. package/dist/types/excalidraw/actions/index.d.ts +5 -2
  90. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  91. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  92. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  93. package/dist/types/excalidraw/appState.d.ts +29 -21
  94. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  95. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  96. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  97. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  98. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  99. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  100. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  101. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  102. package/dist/types/excalidraw/clipboard.d.ts +57 -19
  103. package/dist/types/excalidraw/components/Actions.d.ts +22 -5
  104. package/dist/types/excalidraw/components/App.d.ts +118 -76
  105. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  106. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  107. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  108. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  109. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  110. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  111. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  112. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  113. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  114. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  115. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  116. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  117. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  118. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  119. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  121. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  122. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  123. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  124. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  125. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  126. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  127. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  128. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  129. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  130. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  131. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  132. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  133. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  134. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  135. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  136. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  137. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  138. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  139. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  140. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  141. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  142. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  143. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  144. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  145. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  146. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  147. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  148. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  149. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  150. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  151. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  152. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  153. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  154. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  155. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  156. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  157. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  158. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  159. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  160. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  161. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  162. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  163. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  164. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  165. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  166. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  167. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  168. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  169. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  171. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  172. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  173. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  174. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  175. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  176. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  177. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  178. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  179. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  180. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  181. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  182. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  183. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  184. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  185. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  186. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  187. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  188. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  189. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  190. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  191. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  192. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  193. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  194. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  202. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  204. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  205. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  206. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  207. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  208. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  209. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  210. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  211. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  212. package/dist/types/excalidraw/components/icons.d.ts +49 -21
  213. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  214. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  215. package/dist/types/excalidraw/components/shapes.d.ts +202 -1
  216. package/dist/types/excalidraw/data/blob.d.ts +329 -12
  217. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  218. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  219. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  220. package/dist/types/excalidraw/data/index.d.ts +4 -5
  221. package/dist/types/excalidraw/data/json.d.ts +171 -4
  222. package/dist/types/excalidraw/data/library.d.ts +24 -9
  223. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  224. package/dist/types/excalidraw/data/restore.d.ts +27 -7
  225. package/dist/types/excalidraw/data/types.d.ts +4 -1
  226. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  227. package/dist/types/excalidraw/errors.d.ts +14 -0
  228. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  229. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  230. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  231. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  232. package/dist/types/excalidraw/i18n.d.ts +2 -2
  233. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  234. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  235. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  236. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  237. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  238. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  239. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  240. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  241. package/dist/types/excalidraw/snapping.d.ts +5 -5
  242. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  243. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  244. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  245. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  246. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  247. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  248. package/dist/types/excalidraw/types.d.ts +130 -36
  249. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  250. package/dist/types/math/src/curve.d.ts +4 -1
  251. package/dist/types/math/src/point.d.ts +7 -2
  252. package/dist/types/math/src/polygon.d.ts +2 -2
  253. package/dist/types/math/src/range.d.ts +1 -3
  254. package/dist/types/math/src/segment.d.ts +4 -3
  255. package/dist/types/math/src/types.d.ts +25 -1
  256. package/dist/types/utils/src/bbox.d.ts +1 -1
  257. package/dist/types/utils/src/export.d.ts +5 -5
  258. package/dist/types/utils/src/shape.d.ts +6 -6
  259. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  260. package/package.json +2 -2
  261. package/dist/types/excalidraw/charts.d.ts +0 -27
  262. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  263. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  264. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  265. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  266. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  267. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  268. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  269. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  270. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  271. package/dist/types/excalidraw/data/reconcile.d.ts +0 -6
  272. package/dist/types/excalidraw/index.d.ts +0 -47
  273. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,190 +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
- activeTool: {
42
- lastActiveTool: import("../types").ActiveTool | null;
43
- locked: boolean;
44
- fromSelection: boolean;
45
- } & import("../types").ActiveTool;
46
- penMode: boolean;
47
- penDetected: boolean;
48
- exportBackground: boolean;
49
- exportEmbedScene: boolean;
50
- exportWithDarkMode: boolean;
51
- exportScale: number;
52
- currentItemStrokeColor: string;
53
- currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("../../element/src/types").FillStyle;
55
- currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
57
- currentItemRoughness: number;
58
- currentItemOpacity: number;
59
- currentItemFontFamily: number;
60
- currentItemFontSize: number;
61
- currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
64
- currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
66
- currentItemArrowType: "round" | "sharp" | "elbow";
67
- viewBackgroundColor: string;
68
- scrollX: number;
69
- scrollY: number;
70
- cursorButton: "up" | "down";
71
- scrolledOutside: boolean;
72
- name: string | null;
73
- isResizing: boolean;
74
- isRotating: boolean;
75
- zoom: Readonly<{
76
- value: import("../types").NormalizedZoomValue;
77
- }>;
78
- openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
- openSidebar: {
81
- name: string;
82
- tab?: string | undefined;
83
- } | null;
84
- openDialog: {
85
- name: "imageExport" | "help" | "jsonExport";
86
- } | {
87
- name: "ttd";
88
- tab: "mermaid" | "text-to-diagram";
89
- } | {
90
- name: "commandPalette";
91
- } | {
92
- name: "elementLinkSelector";
93
- sourceElementId: string;
94
- } | null;
95
- defaultSidebarDockedPreference: boolean;
96
- lastPointerDownWith: import("../../element/src/types").PointerType;
97
- selectedElementIds: Readonly<{
98
- [id: string]: true;
99
- }>;
100
- hoveredElementIds: Readonly<{
101
- [id: string]: true;
102
- }>;
103
- previousSelectedElementIds: {
104
- [id: string]: true;
105
- };
106
- selectedElementsAreBeingDragged: boolean;
107
- shouldCacheIgnoreZoom: boolean;
108
- toast: {
109
- message: string;
110
- closable?: boolean | undefined;
111
- duration?: number | undefined;
112
- } | null;
113
- zenModeEnabled: boolean;
114
- theme: import("../../element/src/types").Theme;
115
- gridSize: number;
116
- gridStep: number;
117
- gridModeEnabled: boolean;
118
- viewModeEnabled: boolean;
119
- selectedGroupIds: {
120
- [groupId: string]: boolean;
121
- };
122
- editingGroupId: string | null;
123
- width: number;
124
- height: number;
125
- offsetTop: number;
126
- offsetLeft: number;
127
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
128
- collaborators: Map<import("../types").SocketId, Readonly<{
129
- pointer?: import("../types").CollaboratorPointer | undefined;
130
- button?: "up" | "down" | undefined;
131
- selectedElementIds?: Readonly<{
132
- [id: string]: true;
133
- }> | undefined;
134
- username?: string | null | undefined;
135
- userState?: import("@excalidraw/common").UserIdleState | undefined;
136
- color?: {
137
- background: string;
138
- stroke: string;
139
- } | undefined;
140
- avatarUrl?: string | undefined;
141
- id?: string | undefined;
142
- socketId?: import("../types").SocketId | undefined;
143
- isCurrentUser?: boolean | undefined;
144
- isInCall?: boolean | undefined;
145
- isSpeaking?: boolean | undefined;
146
- isMuted?: boolean | undefined;
147
- }>>;
148
- stats: {
149
- open: boolean;
150
- panels: number;
151
- };
152
- currentChartType: import("../../element/src/types").ChartType;
153
- pasteDialog: {
154
- shown: false;
155
- data: null;
156
- } | {
157
- shown: true;
158
- data: import("../charts").Spreadsheet;
159
- };
160
- showHyperlinkPopup: false | "editor" | "info";
161
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
- snapLines: readonly import("../snapping").SnapLine[];
163
- originSnapOffset: {
164
- x: number;
165
- y: number;
166
- } | null;
167
- objectsSnapModeEnabled: boolean;
168
- userToFollow: import("../types").UserToFollow | null;
169
- followedBy: Set<import("../types").SocketId>;
170
- isCropping: boolean;
171
- croppingElementId: string | null;
172
- searchMatches: Readonly<{
173
- focusedId: string | null;
174
- matches: readonly import("../types").SearchMatch[];
175
- }> | null;
176
- activeLockedId: string | null;
177
- lockedMultiSelections: {
178
- [groupId: string]: true;
179
- };
180
- };
181
- } | {
182
- captureUpdate: "EVENTUALLY";
183
- appState?: undefined;
184
- }>;
185
- keyTest: undefined;
186
- } & {
187
- 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;
188
3
  };
189
4
  export declare const actionPaste: {
190
5
  name: "paste";
@@ -192,7 +7,7 @@ export declare const actionPaste: {
192
7
  trackEvent: {
193
8
  category: "element";
194
9
  };
195
- 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 | {
196
11
  captureUpdate: "EVENTUALLY";
197
12
  appState: {
198
13
  errorMessage: string;
@@ -204,17 +19,23 @@ export declare const actionPaste: {
204
19
  showWelcomeScreen: boolean;
205
20
  isLoading: boolean;
206
21
  activeEmbeddable: {
207
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
208
- state: "active" | "hover";
22
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
+ state: "hover" | "active";
209
24
  } | null;
210
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
211
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
212
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
213
- 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;
214
29
  isBindingEnabled: boolean;
215
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
216
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
217
- 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;
218
39
  frameRendering: {
219
40
  enabled: boolean;
220
41
  name: boolean;
@@ -222,13 +43,17 @@ export declare const actionPaste: {
222
43
  clip: boolean;
223
44
  };
224
45
  editingFrame: string | null;
225
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
226
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
46
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
47
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
227
48
  activeTool: {
228
49
  lastActiveTool: import("../types").ActiveTool | null;
229
50
  locked: boolean;
230
51
  fromSelection: boolean;
231
52
  } & import("../types").ActiveTool;
53
+ preferredSelectionTool: {
54
+ type: "selection" | "lasso";
55
+ initialized: boolean;
56
+ };
232
57
  penMode: boolean;
233
58
  penDetected: boolean;
234
59
  exportBackground: boolean;
@@ -237,19 +62,19 @@ export declare const actionPaste: {
237
62
  exportScale: number;
238
63
  currentItemStrokeColor: string;
239
64
  currentItemBackgroundColor: string;
240
- currentItemFillStyle: import("../../element/src/types").FillStyle;
65
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
241
66
  currentItemStrokeWidth: number;
242
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
67
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
243
68
  currentItemRoughness: number;
244
69
  currentItemOpacity: number;
245
- currentItemFontFamily: number;
70
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
246
71
  currentItemFontSize: number;
247
- currentItemTextAlign: string;
248
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
249
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
250
- currentHoveredFontFamily: number | null;
251
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
252
- 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";
253
78
  viewBackgroundColor: string;
254
79
  scrollX: number;
255
80
  scrollY: number;
@@ -258,28 +83,32 @@ export declare const actionPaste: {
258
83
  name: string | null;
259
84
  isResizing: boolean;
260
85
  isRotating: boolean;
261
- zoom: Readonly<{
262
- value: import("../types").NormalizedZoomValue;
263
- }>;
264
- openMenu: "canvas" | "shape" | null;
265
- 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;
266
89
  openSidebar: {
267
- name: string;
268
- tab?: string | undefined;
90
+ name: import("../types").SidebarName;
91
+ tab?: import("../types").SidebarTabName;
269
92
  } | null;
270
- openDialog: {
93
+ openDialog: null | {
271
94
  name: "imageExport" | "help" | "jsonExport";
272
95
  } | {
273
96
  name: "ttd";
274
- tab: "mermaid" | "text-to-diagram";
97
+ tab: "text-to-diagram" | "mermaid";
275
98
  } | {
276
99
  name: "commandPalette";
100
+ } | {
101
+ name: "settings";
277
102
  } | {
278
103
  name: "elementLinkSelector";
279
- sourceElementId: string;
280
- } | null;
104
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
105
+ } | {
106
+ name: "charts";
107
+ data: import("../charts").Spreadsheet;
108
+ rawText: string;
109
+ };
281
110
  defaultSidebarDockedPreference: boolean;
282
- lastPointerDownWith: import("../../element/src/types").PointerType;
111
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
283
112
  selectedElementIds: Readonly<{
284
113
  [id: string]: true;
285
114
  }>;
@@ -292,12 +121,12 @@ export declare const actionPaste: {
292
121
  selectedElementsAreBeingDragged: boolean;
293
122
  shouldCacheIgnoreZoom: boolean;
294
123
  toast: {
295
- message: string;
296
- closable?: boolean | undefined;
297
- duration?: number | undefined;
124
+ message: React.ReactNode;
125
+ closable?: boolean;
126
+ duration?: number;
298
127
  } | null;
299
128
  zenModeEnabled: boolean;
300
- theme: import("../../element/src/types").Theme;
129
+ theme: import("@excalidraw/element/types").Theme;
301
130
  gridSize: number;
302
131
  gridStep: number;
303
132
  gridModeEnabled: boolean;
@@ -305,45 +134,18 @@ export declare const actionPaste: {
305
134
  selectedGroupIds: {
306
135
  [groupId: string]: boolean;
307
136
  };
308
- editingGroupId: string | null;
137
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
309
138
  width: number;
310
139
  height: number;
311
140
  offsetTop: number;
312
141
  offsetLeft: number;
313
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
314
- collaborators: Map<import("../types").SocketId, Readonly<{
315
- pointer?: import("../types").CollaboratorPointer | undefined;
316
- button?: "up" | "down" | undefined;
317
- selectedElementIds?: Readonly<{
318
- [id: string]: true;
319
- }> | undefined;
320
- username?: string | null | undefined;
321
- userState?: import("@excalidraw/common").UserIdleState | undefined;
322
- color?: {
323
- background: string;
324
- stroke: string;
325
- } | undefined;
326
- avatarUrl?: string | undefined;
327
- id?: string | undefined;
328
- socketId?: import("../types").SocketId | undefined;
329
- isCurrentUser?: boolean | undefined;
330
- isInCall?: boolean | undefined;
331
- isSpeaking?: boolean | undefined;
332
- isMuted?: boolean | undefined;
333
- }>>;
142
+ fileHandle: FileSystemFileHandle | null;
143
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
334
144
  stats: {
335
145
  open: boolean;
336
146
  panels: number;
337
147
  };
338
- currentChartType: import("../../element/src/types").ChartType;
339
- pasteDialog: {
340
- shown: false;
341
- data: null;
342
- } | {
343
- shown: true;
344
- data: import("../charts").Spreadsheet;
345
- };
346
- showHyperlinkPopup: false | "editor" | "info";
148
+ showHyperlinkPopup: false | "info" | "editor";
347
149
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
348
150
  snapLines: readonly import("../snapping").SnapLine[];
349
151
  originSnapOffset: {
@@ -354,15 +156,16 @@ export declare const actionPaste: {
354
156
  userToFollow: import("../types").UserToFollow | null;
355
157
  followedBy: Set<import("../types").SocketId>;
356
158
  isCropping: boolean;
357
- croppingElementId: string | null;
159
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
358
160
  searchMatches: Readonly<{
359
- focusedId: string | null;
161
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
360
162
  matches: readonly import("../types").SearchMatch[];
361
163
  }> | null;
362
164
  activeLockedId: string | null;
363
165
  lockedMultiSelections: {
364
166
  [groupId: string]: true;
365
167
  };
168
+ bindMode: import("@excalidraw/element/types").BindMode;
366
169
  };
367
170
  } | {
368
171
  captureUpdate: "EVENTUALLY";
@@ -372,565 +175,8 @@ export declare const actionPaste: {
372
175
  } & {
373
176
  keyTest?: undefined;
374
177
  };
375
- export declare const actionCut: {
376
- name: "cut";
377
- label: string;
378
- icon: import("react/jsx-runtime").JSX.Element;
379
- trackEvent: {
380
- category: "element";
381
- };
382
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
383
- elements: import("../../element/src/types").OrderedExcalidrawElement[];
384
- appState: {
385
- selectedLinearElement: null;
386
- contextMenu: {
387
- items: import("../components/ContextMenu").ContextMenuItems;
388
- top: number;
389
- left: number;
390
- } | null;
391
- showWelcomeScreen: boolean;
392
- isLoading: boolean;
393
- errorMessage: import("react").ReactNode;
394
- activeEmbeddable: {
395
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
396
- state: "active" | "hover";
397
- } | null;
398
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
399
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
400
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
401
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
402
- isBindingEnabled: boolean;
403
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
404
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
405
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
406
- frameRendering: {
407
- enabled: boolean;
408
- name: boolean;
409
- outline: boolean;
410
- clip: boolean;
411
- };
412
- editingFrame: string | null;
413
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
414
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
415
- activeTool: {
416
- lastActiveTool: import("../types").ActiveTool | null;
417
- locked: boolean;
418
- fromSelection: boolean;
419
- } & import("../types").ActiveTool;
420
- penMode: boolean;
421
- penDetected: boolean;
422
- exportBackground: boolean;
423
- exportEmbedScene: boolean;
424
- exportWithDarkMode: boolean;
425
- exportScale: number;
426
- currentItemStrokeColor: string;
427
- currentItemBackgroundColor: string;
428
- currentItemFillStyle: import("../../element/src/types").FillStyle;
429
- currentItemStrokeWidth: number;
430
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
431
- currentItemRoughness: number;
432
- currentItemOpacity: number;
433
- currentItemFontFamily: number;
434
- currentItemFontSize: number;
435
- currentItemTextAlign: string;
436
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
437
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
438
- currentHoveredFontFamily: number | null;
439
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
440
- currentItemArrowType: "round" | "sharp" | "elbow";
441
- viewBackgroundColor: string;
442
- scrollX: number;
443
- scrollY: number;
444
- cursorButton: "up" | "down";
445
- scrolledOutside: boolean;
446
- name: string | null;
447
- isResizing: boolean;
448
- isRotating: boolean;
449
- zoom: Readonly<{
450
- value: import("../types").NormalizedZoomValue;
451
- }>;
452
- openMenu: "canvas" | "shape" | null;
453
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
454
- openSidebar: {
455
- name: string;
456
- tab?: string | undefined;
457
- } | null;
458
- openDialog: {
459
- name: "imageExport" | "help" | "jsonExport";
460
- } | {
461
- name: "ttd";
462
- tab: "mermaid" | "text-to-diagram";
463
- } | {
464
- name: "commandPalette";
465
- } | {
466
- name: "elementLinkSelector";
467
- sourceElementId: string;
468
- } | null;
469
- defaultSidebarDockedPreference: boolean;
470
- lastPointerDownWith: import("../../element/src/types").PointerType;
471
- selectedElementIds: Readonly<{
472
- [id: string]: true;
473
- }>;
474
- hoveredElementIds: Readonly<{
475
- [id: string]: true;
476
- }>;
477
- previousSelectedElementIds: {
478
- [id: string]: true;
479
- };
480
- selectedElementsAreBeingDragged: boolean;
481
- shouldCacheIgnoreZoom: boolean;
482
- toast: {
483
- message: string;
484
- closable?: boolean | undefined;
485
- duration?: number | undefined;
486
- } | null;
487
- zenModeEnabled: boolean;
488
- theme: import("../../element/src/types").Theme;
489
- gridSize: number;
490
- gridStep: number;
491
- gridModeEnabled: boolean;
492
- viewModeEnabled: boolean;
493
- selectedGroupIds: {
494
- [groupId: string]: boolean;
495
- };
496
- editingGroupId: string | null;
497
- width: number;
498
- height: number;
499
- offsetTop: number;
500
- offsetLeft: number;
501
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
502
- collaborators: Map<import("../types").SocketId, Readonly<{
503
- pointer?: import("../types").CollaboratorPointer | undefined;
504
- button?: "up" | "down" | undefined;
505
- selectedElementIds?: Readonly<{
506
- [id: string]: true;
507
- }> | undefined;
508
- username?: string | null | undefined;
509
- userState?: import("@excalidraw/common").UserIdleState | undefined;
510
- color?: {
511
- background: string;
512
- stroke: string;
513
- } | undefined;
514
- avatarUrl?: string | undefined;
515
- id?: string | undefined;
516
- socketId?: import("../types").SocketId | undefined;
517
- isCurrentUser?: boolean | undefined;
518
- isInCall?: boolean | undefined;
519
- isSpeaking?: boolean | undefined;
520
- isMuted?: boolean | undefined;
521
- }>>;
522
- stats: {
523
- open: boolean;
524
- panels: number;
525
- };
526
- currentChartType: import("../../element/src/types").ChartType;
527
- pasteDialog: {
528
- shown: false;
529
- data: null;
530
- } | {
531
- shown: true;
532
- data: import("../charts").Spreadsheet;
533
- };
534
- showHyperlinkPopup: false | "editor" | "info";
535
- snapLines: readonly import("../snapping").SnapLine[];
536
- originSnapOffset: {
537
- x: number;
538
- y: number;
539
- } | null;
540
- objectsSnapModeEnabled: boolean;
541
- userToFollow: import("../types").UserToFollow | null;
542
- followedBy: Set<import("../types").SocketId>;
543
- isCropping: boolean;
544
- croppingElementId: string | null;
545
- searchMatches: Readonly<{
546
- focusedId: string | null;
547
- matches: readonly import("../types").SearchMatch[];
548
- }> | null;
549
- activeLockedId: string | null;
550
- lockedMultiSelections: {
551
- [groupId: string]: true;
552
- };
553
- };
554
- captureUpdate: "IMMEDIATELY";
555
- } | {
556
- elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
557
- appState: {
558
- selectedLinearElement: {
559
- selectedPointsIndices: number[];
560
- startBindingElement: import("../../element/src/types").ExcalidrawBindableElement | "keep" | null;
561
- endBindingElement: import("../../element/src/types").ExcalidrawBindableElement | "keep" | null;
562
- elementId: string & {
563
- _brand: "excalidrawLinearElementId";
564
- };
565
- pointerDownState: Readonly<{
566
- prevSelectedPointsIndices: readonly number[] | null;
567
- lastClickedPoint: number;
568
- lastClickedIsEndPoint: boolean;
569
- origin: Readonly<{
570
- x: number;
571
- y: number;
572
- }> | null;
573
- segmentMidpoint: {
574
- value: import("@excalidraw/math").GlobalPoint | null;
575
- index: number | null;
576
- added: boolean;
577
- };
578
- }>;
579
- isDragging: boolean;
580
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
581
- pointerOffset: Readonly<{
582
- x: number;
583
- y: number;
584
- }>;
585
- hoverPointIndex: number;
586
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
587
- elbowed: boolean;
588
- customLineAngle: number | null;
589
- isEditing: boolean;
590
- };
591
- contextMenu: {
592
- items: import("../components/ContextMenu").ContextMenuItems;
593
- top: number;
594
- left: number;
595
- } | null;
596
- showWelcomeScreen: boolean;
597
- isLoading: boolean;
598
- errorMessage: import("react").ReactNode;
599
- activeEmbeddable: {
600
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
601
- state: "active" | "hover";
602
- } | null;
603
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
604
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
605
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
606
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
607
- isBindingEnabled: boolean;
608
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
610
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
611
- frameRendering: {
612
- enabled: boolean;
613
- name: boolean;
614
- outline: boolean;
615
- clip: boolean;
616
- };
617
- editingFrame: string | null;
618
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
619
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
620
- activeTool: {
621
- lastActiveTool: import("../types").ActiveTool | null;
622
- locked: boolean;
623
- fromSelection: boolean;
624
- } & import("../types").ActiveTool;
625
- penMode: boolean;
626
- penDetected: boolean;
627
- exportBackground: boolean;
628
- exportEmbedScene: boolean;
629
- exportWithDarkMode: boolean;
630
- exportScale: number;
631
- currentItemStrokeColor: string;
632
- currentItemBackgroundColor: string;
633
- currentItemFillStyle: import("../../element/src/types").FillStyle;
634
- currentItemStrokeWidth: number;
635
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
636
- currentItemRoughness: number;
637
- currentItemOpacity: number;
638
- currentItemFontFamily: number;
639
- currentItemFontSize: number;
640
- currentItemTextAlign: string;
641
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
642
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
643
- currentHoveredFontFamily: number | null;
644
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
645
- currentItemArrowType: "round" | "sharp" | "elbow";
646
- viewBackgroundColor: string;
647
- scrollX: number;
648
- scrollY: number;
649
- cursorButton: "up" | "down";
650
- scrolledOutside: boolean;
651
- name: string | null;
652
- isResizing: boolean;
653
- isRotating: boolean;
654
- zoom: Readonly<{
655
- value: import("../types").NormalizedZoomValue;
656
- }>;
657
- openMenu: "canvas" | "shape" | null;
658
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
659
- openSidebar: {
660
- name: string;
661
- tab?: string | undefined;
662
- } | null;
663
- openDialog: {
664
- name: "imageExport" | "help" | "jsonExport";
665
- } | {
666
- name: "ttd";
667
- tab: "mermaid" | "text-to-diagram";
668
- } | {
669
- name: "commandPalette";
670
- } | {
671
- name: "elementLinkSelector";
672
- sourceElementId: string;
673
- } | null;
674
- defaultSidebarDockedPreference: boolean;
675
- lastPointerDownWith: import("../../element/src/types").PointerType;
676
- selectedElementIds: Readonly<{
677
- [id: string]: true;
678
- }>;
679
- hoveredElementIds: Readonly<{
680
- [id: string]: true;
681
- }>;
682
- previousSelectedElementIds: {
683
- [id: string]: true;
684
- };
685
- selectedElementsAreBeingDragged: boolean;
686
- shouldCacheIgnoreZoom: boolean;
687
- toast: {
688
- message: string;
689
- closable?: boolean | undefined;
690
- duration?: number | undefined;
691
- } | null;
692
- zenModeEnabled: boolean;
693
- theme: import("../../element/src/types").Theme;
694
- gridSize: number;
695
- gridStep: number;
696
- gridModeEnabled: boolean;
697
- viewModeEnabled: boolean;
698
- selectedGroupIds: {
699
- [groupId: string]: boolean;
700
- };
701
- editingGroupId: string | null;
702
- width: number;
703
- height: number;
704
- offsetTop: number;
705
- offsetLeft: number;
706
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
707
- collaborators: Map<import("../types").SocketId, Readonly<{
708
- pointer?: import("../types").CollaboratorPointer | undefined;
709
- button?: "up" | "down" | undefined;
710
- selectedElementIds?: Readonly<{
711
- [id: string]: true;
712
- }> | undefined;
713
- username?: string | null | undefined;
714
- userState?: import("@excalidraw/common").UserIdleState | undefined;
715
- color?: {
716
- background: string;
717
- stroke: string;
718
- } | undefined;
719
- avatarUrl?: string | undefined;
720
- id?: string | undefined;
721
- socketId?: import("../types").SocketId | undefined;
722
- isCurrentUser?: boolean | undefined;
723
- isInCall?: boolean | undefined;
724
- isSpeaking?: boolean | undefined;
725
- isMuted?: boolean | undefined;
726
- }>>;
727
- stats: {
728
- open: boolean;
729
- panels: number;
730
- };
731
- currentChartType: import("../../element/src/types").ChartType;
732
- pasteDialog: {
733
- shown: false;
734
- data: null;
735
- } | {
736
- shown: true;
737
- data: import("../charts").Spreadsheet;
738
- };
739
- showHyperlinkPopup: false | "editor" | "info";
740
- snapLines: readonly import("../snapping").SnapLine[];
741
- originSnapOffset: {
742
- x: number;
743
- y: number;
744
- } | null;
745
- objectsSnapModeEnabled: boolean;
746
- userToFollow: import("../types").UserToFollow | null;
747
- followedBy: Set<import("../types").SocketId>;
748
- isCropping: boolean;
749
- croppingElementId: string | null;
750
- searchMatches: Readonly<{
751
- focusedId: string | null;
752
- matches: readonly import("../types").SearchMatch[];
753
- }> | null;
754
- activeLockedId: string | null;
755
- lockedMultiSelections: {
756
- [groupId: string]: true;
757
- };
758
- };
759
- captureUpdate: "IMMEDIATELY";
760
- } | {
761
- elements: import("../../element/src/types").ExcalidrawElement[];
762
- appState: {
763
- activeTool: {
764
- lastActiveTool: import("../types").ActiveTool | null;
765
- locked: boolean;
766
- fromSelection: boolean;
767
- } & import("../types").ActiveTool;
768
- multiElement: null;
769
- activeEmbeddable: null;
770
- selectedLinearElement: null;
771
- editingGroupId: string | null;
772
- selectedElementIds: Readonly<{
773
- [id: string]: true;
774
- }>;
775
- selectedGroupIds: {
776
- [groupId: string]: boolean;
777
- };
778
- contextMenu: {
779
- items: import("../components/ContextMenu").ContextMenuItems;
780
- top: number;
781
- left: number;
782
- } | null;
783
- showWelcomeScreen: boolean;
784
- isLoading: boolean;
785
- errorMessage: import("react").ReactNode;
786
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
787
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
788
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
789
- isBindingEnabled: boolean;
790
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
791
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
792
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
793
- frameRendering: {
794
- enabled: boolean;
795
- name: boolean;
796
- outline: boolean;
797
- clip: boolean;
798
- };
799
- editingFrame: string | null;
800
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
801
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
802
- penMode: boolean;
803
- penDetected: boolean;
804
- exportBackground: boolean;
805
- exportEmbedScene: boolean;
806
- exportWithDarkMode: boolean;
807
- exportScale: number;
808
- currentItemStrokeColor: string;
809
- currentItemBackgroundColor: string;
810
- currentItemFillStyle: import("../../element/src/types").FillStyle;
811
- currentItemStrokeWidth: number;
812
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
813
- currentItemRoughness: number;
814
- currentItemOpacity: number;
815
- currentItemFontFamily: number;
816
- currentItemFontSize: number;
817
- currentItemTextAlign: string;
818
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
819
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
820
- currentHoveredFontFamily: number | null;
821
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
822
- currentItemArrowType: "round" | "sharp" | "elbow";
823
- viewBackgroundColor: string;
824
- scrollX: number;
825
- scrollY: number;
826
- cursorButton: "up" | "down";
827
- scrolledOutside: boolean;
828
- name: string | null;
829
- isResizing: boolean;
830
- isRotating: boolean;
831
- zoom: Readonly<{
832
- value: import("../types").NormalizedZoomValue;
833
- }>;
834
- openMenu: "canvas" | "shape" | null;
835
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
836
- openSidebar: {
837
- name: string;
838
- tab?: string | undefined;
839
- } | null;
840
- openDialog: {
841
- name: "imageExport" | "help" | "jsonExport";
842
- } | {
843
- name: "ttd";
844
- tab: "mermaid" | "text-to-diagram";
845
- } | {
846
- name: "commandPalette";
847
- } | {
848
- name: "elementLinkSelector";
849
- sourceElementId: string;
850
- } | null;
851
- defaultSidebarDockedPreference: boolean;
852
- lastPointerDownWith: import("../../element/src/types").PointerType;
853
- hoveredElementIds: Readonly<{
854
- [id: string]: true;
855
- }>;
856
- previousSelectedElementIds: {
857
- [id: string]: true;
858
- };
859
- selectedElementsAreBeingDragged: boolean;
860
- shouldCacheIgnoreZoom: boolean;
861
- toast: {
862
- message: string;
863
- closable?: boolean | undefined;
864
- duration?: number | undefined;
865
- } | null;
866
- zenModeEnabled: boolean;
867
- theme: import("../../element/src/types").Theme;
868
- gridSize: number;
869
- gridStep: number;
870
- gridModeEnabled: boolean;
871
- viewModeEnabled: boolean;
872
- width: number;
873
- height: number;
874
- offsetTop: number;
875
- offsetLeft: number;
876
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
877
- collaborators: Map<import("../types").SocketId, Readonly<{
878
- pointer?: import("../types").CollaboratorPointer | undefined;
879
- button?: "up" | "down" | undefined;
880
- selectedElementIds?: Readonly<{
881
- [id: string]: true;
882
- }> | undefined;
883
- username?: string | null | undefined;
884
- userState?: import("@excalidraw/common").UserIdleState | undefined;
885
- color?: {
886
- background: string;
887
- stroke: string;
888
- } | undefined;
889
- avatarUrl?: string | undefined;
890
- id?: string | undefined;
891
- socketId?: import("../types").SocketId | undefined;
892
- isCurrentUser?: boolean | undefined;
893
- isInCall?: boolean | undefined;
894
- isSpeaking?: boolean | undefined;
895
- isMuted?: boolean | undefined;
896
- }>>;
897
- stats: {
898
- open: boolean;
899
- panels: number;
900
- };
901
- currentChartType: import("../../element/src/types").ChartType;
902
- pasteDialog: {
903
- shown: false;
904
- data: null;
905
- } | {
906
- shown: true;
907
- data: import("../charts").Spreadsheet;
908
- };
909
- showHyperlinkPopup: false | "editor" | "info";
910
- snapLines: readonly import("../snapping").SnapLine[];
911
- originSnapOffset: {
912
- x: number;
913
- y: number;
914
- } | null;
915
- objectsSnapModeEnabled: boolean;
916
- userToFollow: import("../types").UserToFollow | null;
917
- followedBy: Set<import("../types").SocketId>;
918
- isCropping: boolean;
919
- croppingElementId: string | null;
920
- searchMatches: Readonly<{
921
- focusedId: string | null;
922
- matches: readonly import("../types").SearchMatch[];
923
- }> | null;
924
- activeLockedId: string | null;
925
- lockedMultiSelections: {
926
- [groupId: string]: true;
927
- };
928
- };
929
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
930
- };
931
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
932
- } & {
933
- 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;
934
180
  };
935
181
  export declare const actionCopyAsSvg: {
936
182
  name: "copyAsSvg";
@@ -939,7 +185,7 @@ export declare const actionCopyAsSvg: {
939
185
  trackEvent: {
940
186
  category: "element";
941
187
  };
942
- 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<{
943
189
  captureUpdate: "EVENTUALLY";
944
190
  appState?: undefined;
945
191
  } | {
@@ -957,7 +203,7 @@ export declare const actionCopyAsSvg: {
957
203
  };
958
204
  captureUpdate: "EVENTUALLY";
959
205
  }>;
960
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
206
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
961
207
  keywords: string[];
962
208
  } & {
963
209
  keyTest?: undefined;
@@ -969,7 +215,7 @@ export declare const actionCopyAsPng: {
969
215
  trackEvent: {
970
216
  category: "element";
971
217
  };
972
- 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<{
973
219
  captureUpdate: "EVENTUALLY";
974
220
  appState?: undefined;
975
221
  } | {
@@ -983,17 +229,23 @@ export declare const actionCopyAsPng: {
983
229
  showWelcomeScreen: boolean;
984
230
  isLoading: boolean;
985
231
  activeEmbeddable: {
986
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
987
- state: "active" | "hover";
232
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
233
+ state: "hover" | "active";
988
234
  } | null;
989
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
990
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
991
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
992
- 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;
993
239
  isBindingEnabled: boolean;
994
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
995
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
996
- 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;
997
249
  frameRendering: {
998
250
  enabled: boolean;
999
251
  name: boolean;
@@ -1001,13 +253,17 @@ export declare const actionCopyAsPng: {
1001
253
  clip: boolean;
1002
254
  };
1003
255
  editingFrame: string | null;
1004
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
1005
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
256
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
257
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1006
258
  activeTool: {
1007
259
  lastActiveTool: import("../types").ActiveTool | null;
1008
260
  locked: boolean;
1009
261
  fromSelection: boolean;
1010
262
  } & import("../types").ActiveTool;
263
+ preferredSelectionTool: {
264
+ type: "selection" | "lasso";
265
+ initialized: boolean;
266
+ };
1011
267
  penMode: boolean;
1012
268
  penDetected: boolean;
1013
269
  exportBackground: boolean;
@@ -1016,19 +272,19 @@ export declare const actionCopyAsPng: {
1016
272
  exportScale: number;
1017
273
  currentItemStrokeColor: string;
1018
274
  currentItemBackgroundColor: string;
1019
- currentItemFillStyle: import("../../element/src/types").FillStyle;
275
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1020
276
  currentItemStrokeWidth: number;
1021
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
277
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1022
278
  currentItemRoughness: number;
1023
279
  currentItemOpacity: number;
1024
- currentItemFontFamily: number;
280
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1025
281
  currentItemFontSize: number;
1026
- currentItemTextAlign: string;
1027
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
1028
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
1029
- currentHoveredFontFamily: number | null;
1030
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
1031
- 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";
1032
288
  viewBackgroundColor: string;
1033
289
  scrollX: number;
1034
290
  scrollY: number;
@@ -1037,28 +293,32 @@ export declare const actionCopyAsPng: {
1037
293
  name: string | null;
1038
294
  isResizing: boolean;
1039
295
  isRotating: boolean;
1040
- zoom: Readonly<{
1041
- value: import("../types").NormalizedZoomValue;
1042
- }>;
1043
- openMenu: "canvas" | "shape" | null;
1044
- 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;
1045
299
  openSidebar: {
1046
- name: string;
1047
- tab?: string | undefined;
300
+ name: import("../types").SidebarName;
301
+ tab?: import("../types").SidebarTabName;
1048
302
  } | null;
1049
- openDialog: {
303
+ openDialog: null | {
1050
304
  name: "imageExport" | "help" | "jsonExport";
1051
305
  } | {
1052
306
  name: "ttd";
1053
- tab: "mermaid" | "text-to-diagram";
307
+ tab: "text-to-diagram" | "mermaid";
1054
308
  } | {
1055
309
  name: "commandPalette";
310
+ } | {
311
+ name: "settings";
1056
312
  } | {
1057
313
  name: "elementLinkSelector";
1058
- sourceElementId: string;
1059
- } | null;
314
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
315
+ } | {
316
+ name: "charts";
317
+ data: import("../charts").Spreadsheet;
318
+ rawText: string;
319
+ };
1060
320
  defaultSidebarDockedPreference: boolean;
1061
- lastPointerDownWith: import("../../element/src/types").PointerType;
321
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1062
322
  selectedElementIds: Readonly<{
1063
323
  [id: string]: true;
1064
324
  }>;
@@ -1071,12 +331,12 @@ export declare const actionCopyAsPng: {
1071
331
  selectedElementsAreBeingDragged: boolean;
1072
332
  shouldCacheIgnoreZoom: boolean;
1073
333
  toast: {
1074
- message: string;
1075
- closable?: boolean | undefined;
1076
- duration?: number | undefined;
334
+ message: React.ReactNode;
335
+ closable?: boolean;
336
+ duration?: number;
1077
337
  } | null;
1078
338
  zenModeEnabled: boolean;
1079
- theme: import("../../element/src/types").Theme;
339
+ theme: import("@excalidraw/element/types").Theme;
1080
340
  gridSize: number;
1081
341
  gridStep: number;
1082
342
  gridModeEnabled: boolean;
@@ -1084,45 +344,18 @@ export declare const actionCopyAsPng: {
1084
344
  selectedGroupIds: {
1085
345
  [groupId: string]: boolean;
1086
346
  };
1087
- editingGroupId: string | null;
347
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1088
348
  width: number;
1089
349
  height: number;
1090
350
  offsetTop: number;
1091
351
  offsetLeft: number;
1092
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1093
- collaborators: Map<import("../types").SocketId, Readonly<{
1094
- pointer?: import("../types").CollaboratorPointer | undefined;
1095
- button?: "up" | "down" | undefined;
1096
- selectedElementIds?: Readonly<{
1097
- [id: string]: true;
1098
- }> | undefined;
1099
- username?: string | null | undefined;
1100
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1101
- color?: {
1102
- background: string;
1103
- stroke: string;
1104
- } | undefined;
1105
- avatarUrl?: string | undefined;
1106
- id?: string | undefined;
1107
- socketId?: import("../types").SocketId | undefined;
1108
- isCurrentUser?: boolean | undefined;
1109
- isInCall?: boolean | undefined;
1110
- isSpeaking?: boolean | undefined;
1111
- isMuted?: boolean | undefined;
1112
- }>>;
352
+ fileHandle: FileSystemFileHandle | null;
353
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1113
354
  stats: {
1114
355
  open: boolean;
1115
356
  panels: number;
1116
357
  };
1117
- currentChartType: import("../../element/src/types").ChartType;
1118
- pasteDialog: {
1119
- shown: false;
1120
- data: null;
1121
- } | {
1122
- shown: true;
1123
- data: import("../charts").Spreadsheet;
1124
- };
1125
- showHyperlinkPopup: false | "editor" | "info";
358
+ showHyperlinkPopup: false | "info" | "editor";
1126
359
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1127
360
  snapLines: readonly import("../snapping").SnapLine[];
1128
361
  originSnapOffset: {
@@ -1133,19 +366,20 @@ export declare const actionCopyAsPng: {
1133
366
  userToFollow: import("../types").UserToFollow | null;
1134
367
  followedBy: Set<import("../types").SocketId>;
1135
368
  isCropping: boolean;
1136
- croppingElementId: string | null;
369
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1137
370
  searchMatches: Readonly<{
1138
- focusedId: string | null;
371
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1139
372
  matches: readonly import("../types").SearchMatch[];
1140
373
  }> | null;
1141
374
  activeLockedId: string | null;
1142
375
  lockedMultiSelections: {
1143
376
  [groupId: string]: true;
1144
377
  };
378
+ bindMode: import("@excalidraw/element/types").BindMode;
1145
379
  };
1146
380
  captureUpdate: "EVENTUALLY";
1147
381
  }>;
1148
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
382
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1149
383
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1150
384
  keywords: string[];
1151
385
  } & {
@@ -1157,10 +391,10 @@ export declare const copyText: {
1157
391
  trackEvent: {
1158
392
  category: "element";
1159
393
  };
1160
- 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) => {
1161
395
  captureUpdate: "EVENTUALLY";
1162
396
  };
1163
- 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;
1164
398
  keywords: string[];
1165
399
  } & {
1166
400
  keyTest?: undefined;