@zsviczian/excalidraw 0.17.1-obsidian-46 → 0.17.1-obsidian-47

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 (349) hide show
  1. package/dist/excalidraw.development.js +152 -76
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +66 -0
  4. package/dist/styles.development.css +1 -1
  5. package/dist/styles.production.css +1 -1
  6. package/package.json +3 -1
  7. package/types/excalidraw/actions/actionAddToLibrary.d.ts +575 -575
  8. package/types/excalidraw/actions/actionAlign.d.ts +108 -108
  9. package/types/excalidraw/actions/actionBoundText.d.ts +420 -420
  10. package/types/excalidraw/actions/actionCanvas.d.ts +2802 -2802
  11. package/types/excalidraw/actions/actionClipboard.d.ts +1436 -1436
  12. package/types/excalidraw/actions/actionDeleteSelected.d.ts +609 -609
  13. package/types/excalidraw/actions/actionDistribute.d.ts +34 -34
  14. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +21 -21
  15. package/types/excalidraw/actions/actionElementLock.d.ts +408 -408
  16. package/types/excalidraw/actions/actionExport.d.ts +1794 -1794
  17. package/types/excalidraw/actions/actionFinalize.d.ts +389 -389
  18. package/types/excalidraw/actions/actionFlip.d.ts +34 -34
  19. package/types/excalidraw/actions/actionFrame.d.ts +815 -815
  20. package/types/excalidraw/actions/actionGroup.d.ts +418 -418
  21. package/types/excalidraw/actions/actionHistory.d.ts +7 -7
  22. package/types/excalidraw/actions/actionLinearEditor.d.ts +205 -205
  23. package/types/excalidraw/actions/actionLink.d.ts +205 -205
  24. package/types/excalidraw/actions/actionMenu.d.ts +598 -598
  25. package/types/excalidraw/actions/actionNavigate.d.ts +394 -394
  26. package/types/excalidraw/actions/actionProperties.d.ts +3006 -3006
  27. package/types/excalidraw/actions/actionSelectAll.d.ts +204 -204
  28. package/types/excalidraw/actions/actionStyles.d.ts +218 -218
  29. package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
  30. package/types/excalidraw/actions/actionToggleGridMode.d.ts +207 -207
  31. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +205 -205
  32. package/types/excalidraw/actions/actionToggleStats.d.ts +205 -205
  33. package/types/excalidraw/actions/actionToggleViewMode.d.ts +206 -206
  34. package/types/excalidraw/actions/actionToggleZenMode.d.ts +206 -206
  35. package/types/excalidraw/actions/actionZindex.d.ts +74 -74
  36. package/types/excalidraw/actions/index.d.ts +25 -25
  37. package/types/excalidraw/actions/manager.d.ts +21 -21
  38. package/types/excalidraw/actions/register.d.ts +5 -5
  39. package/types/excalidraw/actions/shortcuts.d.ts +4 -4
  40. package/types/excalidraw/actions/types.d.ts +47 -47
  41. package/types/excalidraw/align.d.ts +6 -6
  42. package/types/excalidraw/analytics.d.ts +1 -1
  43. package/types/excalidraw/animated-trail.d.ts +33 -33
  44. package/types/excalidraw/animation-frame-handler.d.ts +16 -16
  45. package/types/excalidraw/appState.d.ts +89 -89
  46. package/types/excalidraw/binaryheap.d.ts +12 -12
  47. package/types/excalidraw/change.d.ts +191 -191
  48. package/types/excalidraw/charts.d.ts +27 -27
  49. package/types/excalidraw/clients.d.ts +14 -14
  50. package/types/excalidraw/clipboard.d.ts +44 -44
  51. package/types/excalidraw/colors.d.ts +61 -61
  52. package/types/excalidraw/components/Actions.d.ts +34 -34
  53. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -4
  54. package/types/excalidraw/components/App.d.ts +526 -527
  55. package/types/excalidraw/components/Avatar.d.ts +11 -11
  56. package/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -2
  57. package/types/excalidraw/components/Button.d.ts +17 -17
  58. package/types/excalidraw/components/ButtonIcon.d.ts +14 -14
  59. package/types/excalidraw/components/ButtonIconCycle.d.ts +10 -10
  60. package/types/excalidraw/components/ButtonIconSelect.d.ts +19 -19
  61. package/types/excalidraw/components/ButtonSelect.d.ts +9 -9
  62. package/types/excalidraw/components/ButtonSeparator.d.ts +1 -1
  63. package/types/excalidraw/components/Card.d.ts +6 -6
  64. package/types/excalidraw/components/CheckboxItem.d.ts +8 -8
  65. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +9 -9
  66. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +19 -19
  67. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -8
  68. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +8 -8
  69. package/types/excalidraw/components/ColorPicker/Picker.d.ts +18 -18
  70. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -10
  71. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -5
  72. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +8 -8
  73. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -9
  74. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  75. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
  76. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -18
  77. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -2
  78. package/types/excalidraw/components/CommandPalette/types.d.ts +25 -25
  79. package/types/excalidraw/components/ConfirmDialog.d.ts +10 -10
  80. package/types/excalidraw/components/ContextMenu.d.ts +16 -16
  81. package/types/excalidraw/components/DarkModeToggle.d.ts +7 -7
  82. package/types/excalidraw/components/DefaultSidebar.d.ts +29 -29
  83. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -4
  84. package/types/excalidraw/components/Dialog.d.ts +13 -13
  85. package/types/excalidraw/components/DialogActionButton.d.ts +10 -10
  86. package/types/excalidraw/components/ErrorDialog.d.ts +5 -5
  87. package/types/excalidraw/components/ExcalidrawLogo.d.ts +15 -15
  88. package/types/excalidraw/components/EyeDropper.d.ts +27 -27
  89. package/types/excalidraw/components/FilledButton.d.ts +18 -18
  90. package/types/excalidraw/components/FixedSideContainer.d.ts +9 -9
  91. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -10
  92. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +21 -21
  93. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +25 -25
  94. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +6 -6
  95. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -13
  96. package/types/excalidraw/components/HandButton.d.ts +10 -10
  97. package/types/excalidraw/components/HelpButton.d.ts +7 -7
  98. package/types/excalidraw/components/HelpDialog.d.ts +4 -4
  99. package/types/excalidraw/components/HintViewer.d.ts +10 -10
  100. package/types/excalidraw/components/IconPicker.d.ts +14 -14
  101. package/types/excalidraw/components/ImageExportDialog.d.ts +14 -14
  102. package/types/excalidraw/components/InitializeApp.d.ts +10 -10
  103. package/types/excalidraw/components/InlineIcon.d.ts +3 -3
  104. package/types/excalidraw/components/Island.d.ts +10 -10
  105. package/types/excalidraw/components/JSONExportDialog.d.ts +15 -15
  106. package/types/excalidraw/components/LaserPointerButton.d.ts +10 -10
  107. package/types/excalidraw/components/LayerUI.d.ts +30 -30
  108. package/types/excalidraw/components/LibraryMenu.d.ts +24 -24
  109. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -7
  110. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -9
  111. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -17
  112. package/types/excalidraw/components/LibraryMenuItems.d.ts +14 -14
  113. package/types/excalidraw/components/LibraryMenuSection.d.ts +23 -23
  114. package/types/excalidraw/components/LibraryUnit.d.ts +14 -14
  115. package/types/excalidraw/components/LoadingMessage.d.ts +5 -5
  116. package/types/excalidraw/components/LockButton.d.ts +10 -10
  117. package/types/excalidraw/components/MagicButton.d.ts +9 -9
  118. package/types/excalidraw/components/MobileMenu.d.ts +24 -24
  119. package/types/excalidraw/components/Modal.d.ts +14 -14
  120. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  121. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  122. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  123. package/types/excalidraw/components/Paragraph.d.ts +4 -4
  124. package/types/excalidraw/components/PasteChartDialog.d.ts +8 -8
  125. package/types/excalidraw/components/PenModeButton.d.ts +12 -12
  126. package/types/excalidraw/components/Popover.d.ts +15 -15
  127. package/types/excalidraw/components/ProjectName.d.ts +10 -10
  128. package/types/excalidraw/components/PropertiesPopover.d.ts +15 -15
  129. package/types/excalidraw/components/PublishLibrary.d.ts +16 -16
  130. package/types/excalidraw/components/QuickSearch.d.ts +9 -9
  131. package/types/excalidraw/components/RadioGroup.d.ts +13 -13
  132. package/types/excalidraw/components/SVGLayer.d.ts +7 -7
  133. package/types/excalidraw/components/ScrollableList.d.ts +8 -8
  134. package/types/excalidraw/components/Section.d.ts +6 -6
  135. package/types/excalidraw/components/ShareableLinkDialog.d.ts +7 -7
  136. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +76 -76
  137. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -7
  138. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -8
  139. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
  140. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
  141. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -6
  142. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -6
  143. package/types/excalidraw/components/Sidebar/common.d.ts +33 -33
  144. package/types/excalidraw/components/Spinner.d.ts +8 -8
  145. package/types/excalidraw/components/Stack.d.ts +16 -16
  146. package/types/excalidraw/components/Stats/Angle.d.ts +11 -11
  147. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -10
  148. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +10 -10
  149. package/types/excalidraw/components/Stats/Collapsible.d.ts +8 -8
  150. package/types/excalidraw/components/Stats/Dimension.d.ts +11 -11
  151. package/types/excalidraw/components/Stats/DragInput.d.ts +34 -34
  152. package/types/excalidraw/components/Stats/FontSize.d.ts +11 -11
  153. package/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -11
  154. package/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -14
  155. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -12
  156. package/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -14
  157. package/types/excalidraw/components/Stats/Position.d.ts +12 -12
  158. package/types/excalidraw/components/Stats/index.d.ts +35 -35
  159. package/types/excalidraw/components/Stats/utils.d.ts +26 -26
  160. package/types/excalidraw/components/Switch.d.ts +9 -9
  161. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +14 -14
  162. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +29 -29
  163. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -9
  164. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +7 -7
  165. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -17
  166. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -4
  167. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -1
  168. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -7
  169. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -8
  170. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -6
  171. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -11
  172. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +8 -8
  173. package/types/excalidraw/components/TTDDialog/common.d.ts +32 -32
  174. package/types/excalidraw/components/TextField.d.ts +19 -19
  175. package/types/excalidraw/components/Toast.d.ts +9 -9
  176. package/types/excalidraw/components/ToolButton.d.ts +49 -49
  177. package/types/excalidraw/components/Tooltip.d.ts +18 -18
  178. package/types/excalidraw/components/Trans.d.ts +9 -9
  179. package/types/excalidraw/components/UserList.d.ts +18 -18
  180. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +29 -29
  181. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -14
  182. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -19
  183. package/types/excalidraw/components/canvases/index.d.ts +3 -3
  184. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +86 -86
  185. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  186. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  187. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +45 -45
  188. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +7 -7
  189. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -17
  190. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -7
  191. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +15 -15
  192. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  193. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
  194. package/types/excalidraw/components/dropdownMenu/common.d.ts +6 -6
  195. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  196. package/types/excalidraw/components/footer/Footer.d.ts +12 -12
  197. package/types/excalidraw/components/footer/FooterCenter.d.ts +8 -8
  198. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -4
  199. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +18 -18
  200. package/types/excalidraw/components/hyperlink/helpers.d.ts +7 -7
  201. package/types/excalidraw/components/icons.d.ts +211 -211
  202. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +9 -9
  203. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +58 -58
  204. package/types/excalidraw/components/main-menu/MainMenu.d.ts +80 -80
  205. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +59 -59
  206. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  207. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +86 -86
  208. package/types/excalidraw/constants.d.ts +314 -314
  209. package/types/excalidraw/context/tunnels.d.ts +20 -20
  210. package/types/excalidraw/context/ui-appState.d.ts +4 -4
  211. package/types/excalidraw/cursor.d.ts +6 -6
  212. package/types/excalidraw/data/EditorLocalStorage.d.ts +8 -8
  213. package/types/excalidraw/data/ai/types.d.ts +242 -242
  214. package/types/excalidraw/data/blob.d.ts +49 -49
  215. package/types/excalidraw/data/encode.d.ts +53 -53
  216. package/types/excalidraw/data/encryption.d.ts +9 -9
  217. package/types/excalidraw/data/filesystem.d.ts +20 -20
  218. package/types/excalidraw/data/image.d.ts +15 -15
  219. package/types/excalidraw/data/index.d.ts +22 -22
  220. package/types/excalidraw/data/json.d.ts +16 -16
  221. package/types/excalidraw/data/library.d.ts +106 -106
  222. package/types/excalidraw/data/reconcile.d.ts +6 -6
  223. package/types/excalidraw/data/resave.d.ts +5 -5
  224. package/types/excalidraw/data/restore.d.ts +21 -21
  225. package/types/excalidraw/data/transform.d.ts +81 -81
  226. package/types/excalidraw/data/types.d.ts +45 -45
  227. package/types/excalidraw/data/url.d.ts +8 -8
  228. package/types/excalidraw/deburr.d.ts +1 -1
  229. package/types/excalidraw/dist/excalidraw.development.d.ts +2 -2
  230. package/types/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  231. package/types/excalidraw/distribute.d.ts +6 -6
  232. package/types/excalidraw/element/ElementCanvasButtons.d.ts +7 -7
  233. package/types/excalidraw/element/binding.d.ts +97 -97
  234. package/types/excalidraw/element/bounds.d.ts +74 -74
  235. package/types/excalidraw/element/collision.d.ts +16 -16
  236. package/types/excalidraw/element/containerCache.d.ts +11 -11
  237. package/types/excalidraw/element/dragElements.d.ts +32 -32
  238. package/types/excalidraw/element/embeddable.d.ts +211 -211
  239. package/types/excalidraw/element/flowchart.d.ts +25 -25
  240. package/types/excalidraw/element/heading.d.ts +11 -11
  241. package/types/excalidraw/element/image.d.ts +32 -32
  242. package/types/excalidraw/element/index.d.ts +26 -26
  243. package/types/excalidraw/element/linearElementEditor.d.ts +344 -344
  244. package/types/excalidraw/element/mutateElement.d.ts +11 -11
  245. package/types/excalidraw/element/newElement.d.ts +106 -106
  246. package/types/excalidraw/element/resizeElements.d.ts +17 -17
  247. package/types/excalidraw/element/resizeTest.d.ts +14 -14
  248. package/types/excalidraw/element/routing.d.ts +10 -10
  249. package/types/excalidraw/element/showSelectedShapeActions.d.ts +3 -3
  250. package/types/excalidraw/element/sizeHelpers.d.ts +40 -40
  251. package/types/excalidraw/element/sortElements.d.ts +2 -2
  252. package/types/excalidraw/element/textElement.d.ts +70 -70
  253. package/types/excalidraw/element/textWysiwyg.d.ts +22 -22
  254. package/types/excalidraw/element/transformHandles.d.ts +54 -54
  255. package/types/excalidraw/element/typeChecks.d.ts +42 -42
  256. package/types/excalidraw/element/types.d.ts +253 -253
  257. package/types/excalidraw/emitter.d.ts +16 -16
  258. package/types/excalidraw/entry.d.ts +1 -1
  259. package/types/excalidraw/env.d.cts +1 -1
  260. package/types/excalidraw/env.d.ts +1 -1
  261. package/types/excalidraw/errors.d.ts +16 -16
  262. package/types/excalidraw/fonts/ExcalidrawFont.d.ts +37 -21
  263. package/types/excalidraw/fonts/index.d.ts +83 -83
  264. package/types/excalidraw/fonts/metadata.d.ts +35 -35
  265. package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +45 -0
  266. package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +5 -0
  267. package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +2 -0
  268. package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +31 -0
  269. package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +6 -0
  270. package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +2 -0
  271. package/types/excalidraw/fractionalIndex.d.ts +48 -48
  272. package/types/excalidraw/frame.d.ts +63 -63
  273. package/types/excalidraw/ga.d.ts +63 -63
  274. package/types/excalidraw/gadirections.d.ts +8 -8
  275. package/types/excalidraw/galines.d.ts +22 -22
  276. package/types/excalidraw/gapoints.d.ts +7 -7
  277. package/types/excalidraw/gatransforms.d.ts +10 -10
  278. package/types/excalidraw/gesture.d.ts +6 -6
  279. package/types/excalidraw/groups.d.ts +33 -33
  280. package/types/excalidraw/history.d.ts +40 -40
  281. package/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -1
  282. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -5
  283. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +7 -7
  284. package/types/excalidraw/hooks/useEmitter.d.ts +2 -2
  285. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -11
  286. package/types/excalidraw/hooks/useOutsideClick.d.ts +19 -19
  287. package/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  288. package/types/excalidraw/hooks/useStable.d.ts +1 -1
  289. package/types/excalidraw/hooks/useStableCallback.d.ts +4 -4
  290. package/types/excalidraw/hooks/useTransition.d.ts +2 -2
  291. package/types/excalidraw/i18n.d.ts +24 -24
  292. package/types/excalidraw/index-node.d.ts +1 -1
  293. package/types/excalidraw/index.d.ts +61 -61
  294. package/types/excalidraw/jotai.d.ts +34 -34
  295. package/types/excalidraw/keys.d.ts +82 -82
  296. package/types/excalidraw/laser-trails.d.ts +20 -20
  297. package/types/excalidraw/main.d.ts +2 -2
  298. package/types/excalidraw/math.d.ts +79 -79
  299. package/types/excalidraw/mermaid.d.ts +2 -2
  300. package/types/excalidraw/obsidianUtils.d.ts +17 -17
  301. package/types/excalidraw/points.d.ts +7 -7
  302. package/types/excalidraw/polyfill.d.ts +2 -2
  303. package/types/excalidraw/publicPath.d.ts +1 -1
  304. package/types/excalidraw/queue.d.ts +9 -9
  305. package/types/excalidraw/random.d.ts +4 -4
  306. package/types/excalidraw/reactUtils.d.ts +14 -14
  307. package/types/excalidraw/renderer/easingFunctions.d.ts +6 -6
  308. package/types/excalidraw/renderer/helpers.d.ts +13 -13
  309. package/types/excalidraw/renderer/interactiveScene.d.ts +20 -20
  310. package/types/excalidraw/renderer/renderElement.d.ts +27 -27
  311. package/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -7
  312. package/types/excalidraw/renderer/renderSnaps.d.ts +2 -2
  313. package/types/excalidraw/renderer/roundRect.d.ts +11 -11
  314. package/types/excalidraw/renderer/staticScene.d.ts +11 -11
  315. package/types/excalidraw/renderer/staticSvgScene.d.ts +5 -5
  316. package/types/excalidraw/scene/Renderer.d.ts +28 -28
  317. package/types/excalidraw/scene/Scene.d.ts +78 -78
  318. package/types/excalidraw/scene/Shape.d.ts +17 -17
  319. package/types/excalidraw/scene/ShapeCache.d.ts +25 -25
  320. package/types/excalidraw/scene/comparisons.d.ts +11 -11
  321. package/types/excalidraw/scene/export.d.ts +29 -29
  322. package/types/excalidraw/scene/index.d.ts +4 -4
  323. package/types/excalidraw/scene/normalize.d.ts +4 -4
  324. package/types/excalidraw/scene/scroll.d.ts +17 -17
  325. package/types/excalidraw/scene/scrollbars.d.ts +12 -12
  326. package/types/excalidraw/scene/selection.d.ts +32 -32
  327. package/types/excalidraw/scene/types.d.ts +112 -112
  328. package/types/excalidraw/scene/zoom.d.ts +12 -12
  329. package/types/excalidraw/shapes.d.ts +70 -70
  330. package/types/excalidraw/snapping.d.ts +109 -109
  331. package/types/excalidraw/store.d.ts +129 -129
  332. package/types/excalidraw/types.d.ts +700 -700
  333. package/types/excalidraw/utility-types.d.ts +31 -31
  334. package/types/excalidraw/utils.d.ts +243 -243
  335. package/types/excalidraw/visualdebug.d.ts +34 -34
  336. package/types/excalidraw/webpack.dev.config.d.ts +81 -81
  337. package/types/excalidraw/webpack.prod.config.d.ts +97 -97
  338. package/types/excalidraw/zindex.d.ts +6 -6
  339. package/types/utils/bbox.d.ts +11 -11
  340. package/types/utils/collision.d.ts +4 -4
  341. package/types/utils/export.d.ts +44 -44
  342. package/types/utils/geometry/geometry.d.ts +89 -89
  343. package/types/utils/geometry/shape.d.ts +56 -56
  344. package/types/utils/index.d.ts +4 -4
  345. package/types/utils/withinBounds.d.ts +19 -19
  346. package/types/excalidraw/components/MagicSettings.d.ts +0 -8
  347. package/types/excalidraw/components/Stats.d.ts +0 -11
  348. package/types/excalidraw/data/magic.d.ts +0 -23
  349. package/types/excalidraw/scene/Fonts.d.ts +0 -19
@@ -1,1436 +1,1436 @@
1
- export declare const actionCopy: {
2
- name: "copy";
3
- label: string;
4
- icon: JSX.Element;
5
- trackEvent: {
6
- category: "element";
7
- };
8
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
9
- storeAction: "none";
10
- appState: {
11
- errorMessage: any;
12
- contextMenu: {
13
- items: import("../components/ContextMenu").ContextMenuItems;
14
- top: number;
15
- left: number;
16
- } | null;
17
- showWelcomeScreen: boolean;
18
- isLoading: boolean;
19
- activeEmbeddable: {
20
- element: import("../element/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("../element/binding").SuggestedBinding[];
30
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
31
- frameRendering: {
32
- enabled: boolean;
33
- name: boolean;
34
- outline: boolean;
35
- clip: boolean;
36
- };
37
- editingFrame: string | null;
38
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
41
- activeTool: {
42
- lastActiveTool: import("../types").ActiveTool | null;
43
- locked: boolean;
44
- } & import("../types").ActiveTool;
45
- penMode: boolean;
46
- penDetected: boolean;
47
- exportBackground: boolean;
48
- exportEmbedScene: boolean;
49
- exportWithDarkMode: boolean;
50
- exportScale: number;
51
- currentItemStrokeColor: string;
52
- currentItemBackgroundColor: string;
53
- currentItemFillStyle: import("../element/types").FillStyle;
54
- currentItemStrokeWidth: number;
55
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
56
- currentItemRoughness: number;
57
- currentItemOpacity: number;
58
- currentItemFontFamily: number;
59
- currentItemFontSize: number;
60
- currentItemTextAlign: string;
61
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
62
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
63
- currentHoveredFontFamily: number | null;
64
- currentItemRoundness: import("../element/types").StrokeRoundness;
65
- currentItemArrowType: "sharp" | "round" | "elbow";
66
- viewBackgroundColor: string;
67
- scrollX: number;
68
- scrollY: number;
69
- cursorButton: "up" | "down";
70
- scrolledOutside: boolean;
71
- name: string | null;
72
- isResizing: boolean;
73
- isRotating: boolean;
74
- zoom: Readonly<{
75
- value: import("../types").NormalizedZoomValue;
76
- }>;
77
- openMenu: "canvas" | "shape" | null;
78
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
79
- openSidebar: {
80
- name: string;
81
- tab?: string | undefined;
82
- } | null;
83
- openDialog: {
84
- name: "imageExport" | "help" | "jsonExport";
85
- } | {
86
- name: "ttd";
87
- tab: "mermaid" | "text-to-diagram";
88
- } | {
89
- name: "commandPalette";
90
- } | null;
91
- defaultSidebarDockedPreference: boolean;
92
- lastPointerDownWith: import("../element/types").PointerType;
93
- selectedElementIds: Readonly<{
94
- [id: string]: true;
95
- }>;
96
- previousSelectedElementIds: {
97
- [id: string]: true;
98
- };
99
- selectedElementsAreBeingDragged: boolean;
100
- shouldCacheIgnoreZoom: boolean;
101
- toast: {
102
- message: string;
103
- closable?: boolean | undefined;
104
- duration?: number | undefined;
105
- } | null;
106
- zenModeEnabled: boolean;
107
- theme: import("../element/types").Theme;
108
- gridSize: number;
109
- gridStep: number;
110
- gridModeEnabled: boolean;
111
- viewModeEnabled: boolean;
112
- selectedGroupIds: {
113
- [groupId: string]: boolean;
114
- };
115
- editingGroupId: string | null;
116
- width: number;
117
- height: number;
118
- offsetTop: number;
119
- offsetLeft: number;
120
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
121
- collaborators: Map<import("../types").SocketId, Readonly<{
122
- pointer?: import("../types").CollaboratorPointer | undefined;
123
- button?: "up" | "down" | undefined;
124
- selectedElementIds?: Readonly<{
125
- [id: string]: true;
126
- }> | undefined;
127
- username?: string | null | undefined;
128
- userState?: import("../types").UserIdleState | undefined;
129
- color?: {
130
- background: string;
131
- stroke: string;
132
- } | undefined;
133
- avatarUrl?: string | undefined;
134
- id?: string | undefined;
135
- socketId?: import("../types").SocketId | undefined;
136
- isCurrentUser?: boolean | undefined;
137
- isInCall?: boolean | undefined;
138
- isSpeaking?: boolean | undefined;
139
- isMuted?: boolean | undefined;
140
- }>>;
141
- stats: {
142
- open: boolean;
143
- panels: number;
144
- };
145
- currentChartType: import("../element/types").ChartType;
146
- pasteDialog: {
147
- shown: false;
148
- data: null;
149
- } | {
150
- shown: true;
151
- data: import("../charts").Spreadsheet;
152
- };
153
- pendingImageElementId: string | null;
154
- showHyperlinkPopup: false | "info" | "editor";
155
- linkOpacity: number;
156
- trayModeEnabled: boolean;
157
- colorPalette?: {
158
- canvasBackground: import("../colors").ColorPaletteCustom;
159
- elementBackground: import("../colors").ColorPaletteCustom;
160
- elementStroke: import("../colors").ColorPaletteCustom;
161
- topPicks: {
162
- canvasBackground: [string, string, string, string, string];
163
- elementStroke: [string, string, string, string, string];
164
- elementBackground: [string, string, string, string, string];
165
- };
166
- } | undefined;
167
- allowWheelZoom?: boolean | undefined;
168
- allowPinchZoom?: boolean | undefined;
169
- pinnedScripts?: string[] | undefined;
170
- customPens?: any[] | undefined;
171
- currentStrokeOptions?: any;
172
- resetCustomPen?: any;
173
- gridColor: {
174
- Bold: string;
175
- Regular: string;
176
- };
177
- highlightSearchResult: boolean;
178
- dynamicStyle: {
179
- [x: string]: string;
180
- };
181
- frameColor: {
182
- stroke: string;
183
- fill: string;
184
- nameColor: string;
185
- };
186
- invertBindingBehaviour: boolean;
187
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
188
- snapLines: readonly import("../snapping").SnapLine[];
189
- originSnapOffset: {
190
- x: number;
191
- y: number;
192
- } | null;
193
- objectsSnapModeEnabled: boolean;
194
- userToFollow: import("../types").UserToFollow | null;
195
- followedBy: Set<import("../types").SocketId>;
196
- };
197
- } | {
198
- storeAction: "none";
199
- appState?: undefined;
200
- }>;
201
- keyTest: undefined;
202
- } & {
203
- keyTest?: undefined;
204
- };
205
- export declare const actionPaste: {
206
- name: "paste";
207
- label: string;
208
- trackEvent: {
209
- category: "element";
210
- };
211
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
212
- storeAction: "none";
213
- appState: {
214
- errorMessage: string;
215
- contextMenu: {
216
- items: import("../components/ContextMenu").ContextMenuItems;
217
- top: number;
218
- left: number;
219
- } | null;
220
- showWelcomeScreen: boolean;
221
- isLoading: boolean;
222
- activeEmbeddable: {
223
- element: import("../element/types").NonDeletedExcalidrawElement;
224
- state: "active" | "hover";
225
- } | null;
226
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
227
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
228
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
229
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
230
- isBindingEnabled: boolean;
231
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
232
- suggestedBindings: import("../element/binding").SuggestedBinding[];
233
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
234
- frameRendering: {
235
- enabled: boolean;
236
- name: boolean;
237
- outline: boolean;
238
- clip: boolean;
239
- };
240
- editingFrame: string | null;
241
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
242
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
243
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
244
- activeTool: {
245
- lastActiveTool: import("../types").ActiveTool | null;
246
- locked: boolean;
247
- } & import("../types").ActiveTool;
248
- penMode: boolean;
249
- penDetected: boolean;
250
- exportBackground: boolean;
251
- exportEmbedScene: boolean;
252
- exportWithDarkMode: boolean;
253
- exportScale: number;
254
- currentItemStrokeColor: string;
255
- currentItemBackgroundColor: string;
256
- currentItemFillStyle: import("../element/types").FillStyle;
257
- currentItemStrokeWidth: number;
258
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
259
- currentItemRoughness: number;
260
- currentItemOpacity: number;
261
- currentItemFontFamily: number;
262
- currentItemFontSize: number;
263
- currentItemTextAlign: string;
264
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
265
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
266
- currentHoveredFontFamily: number | null;
267
- currentItemRoundness: import("../element/types").StrokeRoundness;
268
- currentItemArrowType: "sharp" | "round" | "elbow";
269
- viewBackgroundColor: string;
270
- scrollX: number;
271
- scrollY: number;
272
- cursorButton: "up" | "down";
273
- scrolledOutside: boolean;
274
- name: string | null;
275
- isResizing: boolean;
276
- isRotating: boolean;
277
- zoom: Readonly<{
278
- value: import("../types").NormalizedZoomValue;
279
- }>;
280
- openMenu: "canvas" | "shape" | null;
281
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
282
- openSidebar: {
283
- name: string;
284
- tab?: string | undefined;
285
- } | null;
286
- openDialog: {
287
- name: "imageExport" | "help" | "jsonExport";
288
- } | {
289
- name: "ttd";
290
- tab: "mermaid" | "text-to-diagram";
291
- } | {
292
- name: "commandPalette";
293
- } | null;
294
- defaultSidebarDockedPreference: boolean;
295
- lastPointerDownWith: import("../element/types").PointerType;
296
- selectedElementIds: Readonly<{
297
- [id: string]: true;
298
- }>;
299
- previousSelectedElementIds: {
300
- [id: string]: true;
301
- };
302
- selectedElementsAreBeingDragged: boolean;
303
- shouldCacheIgnoreZoom: boolean;
304
- toast: {
305
- message: string;
306
- closable?: boolean | undefined;
307
- duration?: number | undefined;
308
- } | null;
309
- zenModeEnabled: boolean;
310
- theme: import("../element/types").Theme;
311
- gridSize: number;
312
- gridStep: number;
313
- gridModeEnabled: boolean;
314
- viewModeEnabled: boolean;
315
- selectedGroupIds: {
316
- [groupId: string]: boolean;
317
- };
318
- editingGroupId: string | null;
319
- width: number;
320
- height: number;
321
- offsetTop: number;
322
- offsetLeft: number;
323
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
324
- collaborators: Map<import("../types").SocketId, Readonly<{
325
- pointer?: import("../types").CollaboratorPointer | undefined;
326
- button?: "up" | "down" | undefined;
327
- selectedElementIds?: Readonly<{
328
- [id: string]: true;
329
- }> | undefined;
330
- username?: string | null | undefined;
331
- userState?: import("../types").UserIdleState | undefined;
332
- color?: {
333
- background: string;
334
- stroke: string;
335
- } | undefined;
336
- avatarUrl?: string | undefined;
337
- id?: string | undefined;
338
- socketId?: import("../types").SocketId | undefined;
339
- isCurrentUser?: boolean | undefined;
340
- isInCall?: boolean | undefined;
341
- isSpeaking?: boolean | undefined;
342
- isMuted?: boolean | undefined;
343
- }>>;
344
- stats: {
345
- open: boolean;
346
- panels: number;
347
- };
348
- currentChartType: import("../element/types").ChartType;
349
- pasteDialog: {
350
- shown: false;
351
- data: null;
352
- } | {
353
- shown: true;
354
- data: import("../charts").Spreadsheet;
355
- };
356
- pendingImageElementId: string | null;
357
- showHyperlinkPopup: false | "info" | "editor";
358
- linkOpacity: number;
359
- trayModeEnabled: boolean;
360
- colorPalette?: {
361
- canvasBackground: import("../colors").ColorPaletteCustom;
362
- elementBackground: import("../colors").ColorPaletteCustom;
363
- elementStroke: import("../colors").ColorPaletteCustom;
364
- topPicks: {
365
- canvasBackground: [string, string, string, string, string];
366
- elementStroke: [string, string, string, string, string];
367
- elementBackground: [string, string, string, string, string];
368
- };
369
- } | undefined;
370
- allowWheelZoom?: boolean | undefined;
371
- allowPinchZoom?: boolean | undefined;
372
- pinnedScripts?: string[] | undefined;
373
- customPens?: any[] | undefined;
374
- currentStrokeOptions?: any;
375
- resetCustomPen?: any;
376
- gridColor: {
377
- Bold: string;
378
- Regular: string;
379
- };
380
- highlightSearchResult: boolean;
381
- dynamicStyle: {
382
- [x: string]: string;
383
- };
384
- frameColor: {
385
- stroke: string;
386
- fill: string;
387
- nameColor: string;
388
- };
389
- invertBindingBehaviour: boolean;
390
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
391
- snapLines: readonly import("../snapping").SnapLine[];
392
- originSnapOffset: {
393
- x: number;
394
- y: number;
395
- } | null;
396
- objectsSnapModeEnabled: boolean;
397
- userToFollow: import("../types").UserToFollow | null;
398
- followedBy: Set<import("../types").SocketId>;
399
- };
400
- } | {
401
- storeAction: "none";
402
- appState?: undefined;
403
- }>;
404
- keyTest: undefined;
405
- } & {
406
- keyTest?: undefined;
407
- };
408
- export declare const actionCut: {
409
- name: "cut";
410
- label: string;
411
- icon: JSX.Element;
412
- trackEvent: {
413
- category: "element";
414
- };
415
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
416
- elements: import("../element/types").OrderedExcalidrawElement[];
417
- appState: {
418
- editingLinearElement: null;
419
- contextMenu: {
420
- items: import("../components/ContextMenu").ContextMenuItems;
421
- top: number;
422
- left: number;
423
- } | null;
424
- showWelcomeScreen: boolean;
425
- isLoading: boolean;
426
- errorMessage: import("react").ReactNode;
427
- activeEmbeddable: {
428
- element: import("../element/types").NonDeletedExcalidrawElement;
429
- state: "active" | "hover";
430
- } | null;
431
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
432
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
433
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
434
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
435
- isBindingEnabled: boolean;
436
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
437
- suggestedBindings: import("../element/binding").SuggestedBinding[];
438
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
439
- frameRendering: {
440
- enabled: boolean;
441
- name: boolean;
442
- outline: boolean;
443
- clip: boolean;
444
- };
445
- editingFrame: string | null;
446
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
447
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
448
- activeTool: {
449
- lastActiveTool: import("../types").ActiveTool | null;
450
- locked: boolean;
451
- } & import("../types").ActiveTool;
452
- penMode: boolean;
453
- penDetected: boolean;
454
- exportBackground: boolean;
455
- exportEmbedScene: boolean;
456
- exportWithDarkMode: boolean;
457
- exportScale: number;
458
- currentItemStrokeColor: string;
459
- currentItemBackgroundColor: string;
460
- currentItemFillStyle: import("../element/types").FillStyle;
461
- currentItemStrokeWidth: number;
462
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
463
- currentItemRoughness: number;
464
- currentItemOpacity: number;
465
- currentItemFontFamily: number;
466
- currentItemFontSize: number;
467
- currentItemTextAlign: string;
468
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
469
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
470
- currentHoveredFontFamily: number | null;
471
- currentItemRoundness: import("../element/types").StrokeRoundness;
472
- currentItemArrowType: "sharp" | "round" | "elbow";
473
- viewBackgroundColor: string;
474
- scrollX: number;
475
- scrollY: number;
476
- cursorButton: "up" | "down";
477
- scrolledOutside: boolean;
478
- name: string | null;
479
- isResizing: boolean;
480
- isRotating: boolean;
481
- zoom: Readonly<{
482
- value: import("../types").NormalizedZoomValue;
483
- }>;
484
- openMenu: "canvas" | "shape" | null;
485
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
486
- openSidebar: {
487
- name: string;
488
- tab?: string | undefined;
489
- } | null;
490
- openDialog: {
491
- name: "imageExport" | "help" | "jsonExport";
492
- } | {
493
- name: "ttd";
494
- tab: "mermaid" | "text-to-diagram";
495
- } | {
496
- name: "commandPalette";
497
- } | null;
498
- defaultSidebarDockedPreference: boolean;
499
- lastPointerDownWith: import("../element/types").PointerType;
500
- selectedElementIds: Readonly<{
501
- [id: string]: true;
502
- }>;
503
- previousSelectedElementIds: {
504
- [id: string]: true;
505
- };
506
- selectedElementsAreBeingDragged: boolean;
507
- shouldCacheIgnoreZoom: boolean;
508
- toast: {
509
- message: string;
510
- closable?: boolean | undefined;
511
- duration?: number | undefined;
512
- } | null;
513
- zenModeEnabled: boolean;
514
- theme: import("../element/types").Theme;
515
- gridSize: number;
516
- gridStep: number;
517
- gridModeEnabled: boolean;
518
- viewModeEnabled: boolean;
519
- selectedGroupIds: {
520
- [groupId: string]: boolean;
521
- };
522
- editingGroupId: string | null;
523
- width: number;
524
- height: number;
525
- offsetTop: number;
526
- offsetLeft: number;
527
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
528
- collaborators: Map<import("../types").SocketId, Readonly<{
529
- pointer?: import("../types").CollaboratorPointer | undefined;
530
- button?: "up" | "down" | undefined;
531
- selectedElementIds?: Readonly<{
532
- [id: string]: true;
533
- }> | undefined;
534
- username?: string | null | undefined;
535
- userState?: import("../types").UserIdleState | undefined;
536
- color?: {
537
- background: string;
538
- stroke: string;
539
- } | undefined;
540
- avatarUrl?: string | undefined;
541
- id?: string | undefined;
542
- socketId?: import("../types").SocketId | undefined;
543
- isCurrentUser?: boolean | undefined;
544
- isInCall?: boolean | undefined;
545
- isSpeaking?: boolean | undefined;
546
- isMuted?: boolean | undefined;
547
- }>>;
548
- stats: {
549
- open: boolean;
550
- panels: number;
551
- };
552
- currentChartType: import("../element/types").ChartType;
553
- pasteDialog: {
554
- shown: false;
555
- data: null;
556
- } | {
557
- shown: true;
558
- data: import("../charts").Spreadsheet;
559
- };
560
- pendingImageElementId: string | null;
561
- showHyperlinkPopup: false | "info" | "editor";
562
- linkOpacity: number;
563
- trayModeEnabled: boolean;
564
- colorPalette?: {
565
- canvasBackground: import("../colors").ColorPaletteCustom;
566
- elementBackground: import("../colors").ColorPaletteCustom;
567
- elementStroke: import("../colors").ColorPaletteCustom;
568
- topPicks: {
569
- canvasBackground: [string, string, string, string, string];
570
- elementStroke: [string, string, string, string, string];
571
- elementBackground: [string, string, string, string, string];
572
- };
573
- } | undefined;
574
- allowWheelZoom?: boolean | undefined;
575
- allowPinchZoom?: boolean | undefined;
576
- pinnedScripts?: string[] | undefined;
577
- customPens?: any[] | undefined;
578
- currentStrokeOptions?: any;
579
- resetCustomPen?: any;
580
- gridColor: {
581
- Bold: string;
582
- Regular: string;
583
- };
584
- highlightSearchResult: boolean;
585
- dynamicStyle: {
586
- [x: string]: string;
587
- };
588
- frameColor: {
589
- stroke: string;
590
- fill: string;
591
- nameColor: string;
592
- };
593
- invertBindingBehaviour: boolean;
594
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
595
- snapLines: readonly import("../snapping").SnapLine[];
596
- originSnapOffset: {
597
- x: number;
598
- y: number;
599
- } | null;
600
- objectsSnapModeEnabled: boolean;
601
- userToFollow: import("../types").UserToFollow | null;
602
- followedBy: Set<import("../types").SocketId>;
603
- };
604
- storeAction: "capture";
605
- } | {
606
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
607
- appState: {
608
- editingLinearElement: {
609
- selectedPointsIndices: number[];
610
- startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
611
- endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
612
- elementId: string & {
613
- _brand: "excalidrawLinearElementId";
614
- };
615
- pointerDownState: Readonly<{
616
- prevSelectedPointsIndices: readonly number[] | null;
617
- lastClickedPoint: number;
618
- lastClickedIsEndPoint: boolean;
619
- origin: Readonly<{
620
- x: number;
621
- y: number;
622
- }> | null;
623
- segmentMidpoint: {
624
- value: readonly [number, number] | null;
625
- index: number | null;
626
- added: boolean;
627
- };
628
- }>;
629
- isDragging: boolean;
630
- lastUncommittedPoint: readonly [number, number] | null;
631
- pointerOffset: Readonly<{
632
- x: number;
633
- y: number;
634
- }>;
635
- hoverPointIndex: number;
636
- segmentMidPointHoveredCoords: readonly [number, number] | null;
637
- };
638
- contextMenu: {
639
- items: import("../components/ContextMenu").ContextMenuItems;
640
- top: number;
641
- left: number;
642
- } | null;
643
- showWelcomeScreen: boolean;
644
- isLoading: boolean;
645
- errorMessage: import("react").ReactNode;
646
- activeEmbeddable: {
647
- element: import("../element/types").NonDeletedExcalidrawElement;
648
- state: "active" | "hover";
649
- } | null;
650
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
651
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
652
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
653
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
654
- isBindingEnabled: boolean;
655
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
656
- suggestedBindings: import("../element/binding").SuggestedBinding[];
657
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
658
- frameRendering: {
659
- enabled: boolean;
660
- name: boolean;
661
- outline: boolean;
662
- clip: boolean;
663
- };
664
- editingFrame: string | null;
665
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
666
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
667
- activeTool: {
668
- lastActiveTool: import("../types").ActiveTool | null;
669
- locked: boolean;
670
- } & import("../types").ActiveTool;
671
- penMode: boolean;
672
- penDetected: boolean;
673
- exportBackground: boolean;
674
- exportEmbedScene: boolean;
675
- exportWithDarkMode: boolean;
676
- exportScale: number;
677
- currentItemStrokeColor: string;
678
- currentItemBackgroundColor: string;
679
- currentItemFillStyle: import("../element/types").FillStyle;
680
- currentItemStrokeWidth: number;
681
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
682
- currentItemRoughness: number;
683
- currentItemOpacity: number;
684
- currentItemFontFamily: number;
685
- currentItemFontSize: number;
686
- currentItemTextAlign: string;
687
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
688
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
689
- currentHoveredFontFamily: number | null;
690
- currentItemRoundness: import("../element/types").StrokeRoundness;
691
- currentItemArrowType: "sharp" | "round" | "elbow";
692
- viewBackgroundColor: string;
693
- scrollX: number;
694
- scrollY: number;
695
- cursorButton: "up" | "down";
696
- scrolledOutside: boolean;
697
- name: string | null;
698
- isResizing: boolean;
699
- isRotating: boolean;
700
- zoom: Readonly<{
701
- value: import("../types").NormalizedZoomValue;
702
- }>;
703
- openMenu: "canvas" | "shape" | null;
704
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
705
- openSidebar: {
706
- name: string;
707
- tab?: string | undefined;
708
- } | null;
709
- openDialog: {
710
- name: "imageExport" | "help" | "jsonExport";
711
- } | {
712
- name: "ttd";
713
- tab: "mermaid" | "text-to-diagram";
714
- } | {
715
- name: "commandPalette";
716
- } | null;
717
- defaultSidebarDockedPreference: boolean;
718
- lastPointerDownWith: import("../element/types").PointerType;
719
- selectedElementIds: Readonly<{
720
- [id: string]: true;
721
- }>;
722
- previousSelectedElementIds: {
723
- [id: string]: true;
724
- };
725
- selectedElementsAreBeingDragged: boolean;
726
- shouldCacheIgnoreZoom: boolean;
727
- toast: {
728
- message: string;
729
- closable?: boolean | undefined;
730
- duration?: number | undefined;
731
- } | null;
732
- zenModeEnabled: boolean;
733
- theme: import("../element/types").Theme;
734
- gridSize: number;
735
- gridStep: number;
736
- gridModeEnabled: boolean;
737
- viewModeEnabled: boolean;
738
- selectedGroupIds: {
739
- [groupId: string]: boolean;
740
- };
741
- editingGroupId: string | null;
742
- width: number;
743
- height: number;
744
- offsetTop: number;
745
- offsetLeft: number;
746
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
747
- collaborators: Map<import("../types").SocketId, Readonly<{
748
- pointer?: import("../types").CollaboratorPointer | undefined;
749
- button?: "up" | "down" | undefined;
750
- selectedElementIds?: Readonly<{
751
- [id: string]: true;
752
- }> | undefined;
753
- username?: string | null | undefined;
754
- userState?: import("../types").UserIdleState | undefined;
755
- color?: {
756
- background: string;
757
- stroke: string;
758
- } | undefined;
759
- avatarUrl?: string | undefined;
760
- id?: string | undefined;
761
- socketId?: import("../types").SocketId | undefined;
762
- isCurrentUser?: boolean | undefined;
763
- isInCall?: boolean | undefined;
764
- isSpeaking?: boolean | undefined;
765
- isMuted?: boolean | undefined;
766
- }>>;
767
- stats: {
768
- open: boolean;
769
- panels: number;
770
- };
771
- currentChartType: import("../element/types").ChartType;
772
- pasteDialog: {
773
- shown: false;
774
- data: null;
775
- } | {
776
- shown: true;
777
- data: import("../charts").Spreadsheet;
778
- };
779
- pendingImageElementId: string | null;
780
- showHyperlinkPopup: false | "info" | "editor";
781
- linkOpacity: number;
782
- trayModeEnabled: boolean;
783
- colorPalette?: {
784
- canvasBackground: import("../colors").ColorPaletteCustom;
785
- elementBackground: import("../colors").ColorPaletteCustom;
786
- elementStroke: import("../colors").ColorPaletteCustom;
787
- topPicks: {
788
- canvasBackground: [string, string, string, string, string];
789
- elementStroke: [string, string, string, string, string];
790
- elementBackground: [string, string, string, string, string];
791
- };
792
- } | undefined;
793
- allowWheelZoom?: boolean | undefined;
794
- allowPinchZoom?: boolean | undefined;
795
- pinnedScripts?: string[] | undefined;
796
- customPens?: any[] | undefined;
797
- currentStrokeOptions?: any;
798
- resetCustomPen?: any;
799
- gridColor: {
800
- Bold: string;
801
- Regular: string;
802
- };
803
- highlightSearchResult: boolean;
804
- dynamicStyle: {
805
- [x: string]: string;
806
- };
807
- frameColor: {
808
- stroke: string;
809
- fill: string;
810
- nameColor: string;
811
- };
812
- invertBindingBehaviour: boolean;
813
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
814
- snapLines: readonly import("../snapping").SnapLine[];
815
- originSnapOffset: {
816
- x: number;
817
- y: number;
818
- } | null;
819
- objectsSnapModeEnabled: boolean;
820
- userToFollow: import("../types").UserToFollow | null;
821
- followedBy: Set<import("../types").SocketId>;
822
- };
823
- storeAction: "capture";
824
- } | {
825
- elements: import("../element/types").ExcalidrawElement[];
826
- appState: {
827
- activeTool: {
828
- lastActiveTool: import("../types").ActiveTool | null;
829
- locked: boolean;
830
- } & import("../types").ActiveTool;
831
- multiElement: null;
832
- activeEmbeddable: null;
833
- selectedElementIds: {};
834
- selectedGroupIds: {};
835
- contextMenu: {
836
- items: import("../components/ContextMenu").ContextMenuItems;
837
- top: number;
838
- left: number;
839
- } | null;
840
- showWelcomeScreen: boolean;
841
- isLoading: boolean;
842
- errorMessage: import("react").ReactNode;
843
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
844
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
845
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
846
- isBindingEnabled: boolean;
847
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
848
- suggestedBindings: import("../element/binding").SuggestedBinding[];
849
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
850
- frameRendering: {
851
- enabled: boolean;
852
- name: boolean;
853
- outline: boolean;
854
- clip: boolean;
855
- };
856
- editingFrame: string | null;
857
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
858
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
859
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
860
- penMode: boolean;
861
- penDetected: boolean;
862
- exportBackground: boolean;
863
- exportEmbedScene: boolean;
864
- exportWithDarkMode: boolean;
865
- exportScale: number;
866
- currentItemStrokeColor: string;
867
- currentItemBackgroundColor: string;
868
- currentItemFillStyle: import("../element/types").FillStyle;
869
- currentItemStrokeWidth: number;
870
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
871
- currentItemRoughness: number;
872
- currentItemOpacity: number;
873
- currentItemFontFamily: number;
874
- currentItemFontSize: number;
875
- currentItemTextAlign: string;
876
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
877
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
878
- currentHoveredFontFamily: number | null;
879
- currentItemRoundness: import("../element/types").StrokeRoundness;
880
- currentItemArrowType: "sharp" | "round" | "elbow";
881
- viewBackgroundColor: string;
882
- scrollX: number;
883
- scrollY: number;
884
- cursorButton: "up" | "down";
885
- scrolledOutside: boolean;
886
- name: string | null;
887
- isResizing: boolean;
888
- isRotating: boolean;
889
- zoom: Readonly<{
890
- value: import("../types").NormalizedZoomValue;
891
- }>;
892
- openMenu: "canvas" | "shape" | null;
893
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
894
- openSidebar: {
895
- name: string;
896
- tab?: string | undefined;
897
- } | null;
898
- openDialog: {
899
- name: "imageExport" | "help" | "jsonExport";
900
- } | {
901
- name: "ttd";
902
- tab: "mermaid" | "text-to-diagram";
903
- } | {
904
- name: "commandPalette";
905
- } | null;
906
- defaultSidebarDockedPreference: boolean;
907
- lastPointerDownWith: import("../element/types").PointerType;
908
- previousSelectedElementIds: {
909
- [id: string]: true;
910
- };
911
- selectedElementsAreBeingDragged: boolean;
912
- shouldCacheIgnoreZoom: boolean;
913
- toast: {
914
- message: string;
915
- closable?: boolean | undefined;
916
- duration?: number | undefined;
917
- } | null;
918
- zenModeEnabled: boolean;
919
- theme: import("../element/types").Theme;
920
- gridSize: number;
921
- gridStep: number;
922
- gridModeEnabled: boolean;
923
- viewModeEnabled: boolean;
924
- editingGroupId: string | null;
925
- width: number;
926
- height: number;
927
- offsetTop: number;
928
- offsetLeft: number;
929
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
930
- collaborators: Map<import("../types").SocketId, Readonly<{
931
- pointer?: import("../types").CollaboratorPointer | undefined;
932
- button?: "up" | "down" | undefined;
933
- selectedElementIds?: Readonly<{
934
- [id: string]: true;
935
- }> | undefined;
936
- username?: string | null | undefined;
937
- userState?: import("../types").UserIdleState | undefined;
938
- color?: {
939
- background: string;
940
- stroke: string;
941
- } | undefined;
942
- avatarUrl?: string | undefined;
943
- id?: string | undefined;
944
- socketId?: import("../types").SocketId | undefined;
945
- isCurrentUser?: boolean | undefined;
946
- isInCall?: boolean | undefined;
947
- isSpeaking?: boolean | undefined;
948
- isMuted?: boolean | undefined;
949
- }>>;
950
- stats: {
951
- open: boolean;
952
- panels: number;
953
- };
954
- currentChartType: import("../element/types").ChartType;
955
- pasteDialog: {
956
- shown: false;
957
- data: null;
958
- } | {
959
- shown: true;
960
- data: import("../charts").Spreadsheet;
961
- };
962
- pendingImageElementId: string | null;
963
- showHyperlinkPopup: false | "info" | "editor";
964
- linkOpacity: number;
965
- trayModeEnabled: boolean;
966
- colorPalette?: {
967
- canvasBackground: import("../colors").ColorPaletteCustom;
968
- elementBackground: import("../colors").ColorPaletteCustom;
969
- elementStroke: import("../colors").ColorPaletteCustom;
970
- topPicks: {
971
- canvasBackground: [string, string, string, string, string];
972
- elementStroke: [string, string, string, string, string];
973
- elementBackground: [string, string, string, string, string];
974
- };
975
- } | undefined;
976
- allowWheelZoom?: boolean | undefined;
977
- allowPinchZoom?: boolean | undefined;
978
- pinnedScripts?: string[] | undefined;
979
- customPens?: any[] | undefined;
980
- currentStrokeOptions?: any;
981
- resetCustomPen?: any;
982
- gridColor: {
983
- Bold: string;
984
- Regular: string;
985
- };
986
- highlightSearchResult: boolean;
987
- dynamicStyle: {
988
- [x: string]: string;
989
- };
990
- frameColor: {
991
- stroke: string;
992
- fill: string;
993
- nameColor: string;
994
- };
995
- invertBindingBehaviour: boolean;
996
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
997
- snapLines: readonly import("../snapping").SnapLine[];
998
- originSnapOffset: {
999
- x: number;
1000
- y: number;
1001
- } | null;
1002
- objectsSnapModeEnabled: boolean;
1003
- userToFollow: import("../types").UserToFollow | null;
1004
- followedBy: Set<import("../types").SocketId>;
1005
- };
1006
- storeAction: "none" | "capture";
1007
- };
1008
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1009
- } & {
1010
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1011
- };
1012
- export declare const actionCopyAsSvg: {
1013
- name: "copyAsSvg";
1014
- label: string;
1015
- icon: JSX.Element;
1016
- trackEvent: {
1017
- category: "element";
1018
- };
1019
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
1020
- storeAction: "none";
1021
- appState?: undefined;
1022
- } | {
1023
- appState: {
1024
- errorMessage: any;
1025
- contextMenu: {
1026
- items: import("../components/ContextMenu").ContextMenuItems;
1027
- top: number;
1028
- left: number;
1029
- } | null;
1030
- showWelcomeScreen: boolean;
1031
- isLoading: boolean;
1032
- activeEmbeddable: {
1033
- element: import("../element/types").NonDeletedExcalidrawElement;
1034
- state: "active" | "hover";
1035
- } | null;
1036
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1037
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1038
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1039
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1040
- isBindingEnabled: boolean;
1041
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1042
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1043
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1044
- frameRendering: {
1045
- enabled: boolean;
1046
- name: boolean;
1047
- outline: boolean;
1048
- clip: boolean;
1049
- };
1050
- editingFrame: string | null;
1051
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1052
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1053
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1054
- activeTool: {
1055
- lastActiveTool: import("../types").ActiveTool | null;
1056
- locked: boolean;
1057
- } & import("../types").ActiveTool;
1058
- penMode: boolean;
1059
- penDetected: boolean;
1060
- exportBackground: boolean;
1061
- exportEmbedScene: boolean;
1062
- exportWithDarkMode: boolean;
1063
- exportScale: number;
1064
- currentItemStrokeColor: string;
1065
- currentItemBackgroundColor: string;
1066
- currentItemFillStyle: import("../element/types").FillStyle;
1067
- currentItemStrokeWidth: number;
1068
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1069
- currentItemRoughness: number;
1070
- currentItemOpacity: number;
1071
- currentItemFontFamily: number;
1072
- currentItemFontSize: number;
1073
- currentItemTextAlign: string;
1074
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1075
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1076
- currentHoveredFontFamily: number | null;
1077
- currentItemRoundness: import("../element/types").StrokeRoundness;
1078
- currentItemArrowType: "sharp" | "round" | "elbow";
1079
- viewBackgroundColor: string;
1080
- scrollX: number;
1081
- scrollY: number;
1082
- cursorButton: "up" | "down";
1083
- scrolledOutside: boolean;
1084
- name: string | null;
1085
- isResizing: boolean;
1086
- isRotating: boolean;
1087
- zoom: Readonly<{
1088
- value: import("../types").NormalizedZoomValue;
1089
- }>;
1090
- openMenu: "canvas" | "shape" | null;
1091
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1092
- openSidebar: {
1093
- name: string;
1094
- tab?: string | undefined;
1095
- } | null;
1096
- openDialog: {
1097
- name: "imageExport" | "help" | "jsonExport";
1098
- } | {
1099
- name: "ttd";
1100
- tab: "mermaid" | "text-to-diagram";
1101
- } | {
1102
- name: "commandPalette";
1103
- } | null;
1104
- defaultSidebarDockedPreference: boolean;
1105
- lastPointerDownWith: import("../element/types").PointerType;
1106
- selectedElementIds: Readonly<{
1107
- [id: string]: true;
1108
- }>;
1109
- previousSelectedElementIds: {
1110
- [id: string]: true;
1111
- };
1112
- selectedElementsAreBeingDragged: boolean;
1113
- shouldCacheIgnoreZoom: boolean;
1114
- toast: {
1115
- message: string;
1116
- closable?: boolean | undefined;
1117
- duration?: number | undefined;
1118
- } | null;
1119
- zenModeEnabled: boolean;
1120
- theme: import("../element/types").Theme;
1121
- gridSize: number;
1122
- gridStep: number;
1123
- gridModeEnabled: boolean;
1124
- viewModeEnabled: boolean;
1125
- selectedGroupIds: {
1126
- [groupId: string]: boolean;
1127
- };
1128
- editingGroupId: string | null;
1129
- width: number;
1130
- height: number;
1131
- offsetTop: number;
1132
- offsetLeft: number;
1133
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1134
- collaborators: Map<import("../types").SocketId, Readonly<{
1135
- pointer?: import("../types").CollaboratorPointer | undefined;
1136
- button?: "up" | "down" | undefined;
1137
- selectedElementIds?: Readonly<{
1138
- [id: string]: true;
1139
- }> | undefined;
1140
- username?: string | null | undefined;
1141
- userState?: import("../types").UserIdleState | undefined;
1142
- color?: {
1143
- background: string;
1144
- stroke: string;
1145
- } | undefined;
1146
- avatarUrl?: string | undefined;
1147
- id?: string | undefined;
1148
- socketId?: import("../types").SocketId | undefined;
1149
- isCurrentUser?: boolean | undefined;
1150
- isInCall?: boolean | undefined;
1151
- isSpeaking?: boolean | undefined;
1152
- isMuted?: boolean | undefined;
1153
- }>>;
1154
- stats: {
1155
- open: boolean;
1156
- panels: number;
1157
- };
1158
- currentChartType: import("../element/types").ChartType;
1159
- pasteDialog: {
1160
- shown: false;
1161
- data: null;
1162
- } | {
1163
- shown: true;
1164
- data: import("../charts").Spreadsheet;
1165
- };
1166
- pendingImageElementId: string | null;
1167
- showHyperlinkPopup: false | "info" | "editor";
1168
- linkOpacity: number;
1169
- trayModeEnabled: boolean;
1170
- colorPalette?: {
1171
- canvasBackground: import("../colors").ColorPaletteCustom;
1172
- elementBackground: import("../colors").ColorPaletteCustom;
1173
- elementStroke: import("../colors").ColorPaletteCustom;
1174
- topPicks: {
1175
- canvasBackground: [string, string, string, string, string];
1176
- elementStroke: [string, string, string, string, string];
1177
- elementBackground: [string, string, string, string, string];
1178
- };
1179
- } | undefined;
1180
- allowWheelZoom?: boolean | undefined;
1181
- allowPinchZoom?: boolean | undefined;
1182
- pinnedScripts?: string[] | undefined;
1183
- customPens?: any[] | undefined;
1184
- currentStrokeOptions?: any;
1185
- resetCustomPen?: any;
1186
- gridColor: {
1187
- Bold: string;
1188
- Regular: string;
1189
- };
1190
- highlightSearchResult: boolean;
1191
- dynamicStyle: {
1192
- [x: string]: string;
1193
- };
1194
- frameColor: {
1195
- stroke: string;
1196
- fill: string;
1197
- nameColor: string;
1198
- };
1199
- invertBindingBehaviour: boolean;
1200
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1201
- snapLines: readonly import("../snapping").SnapLine[];
1202
- originSnapOffset: {
1203
- x: number;
1204
- y: number;
1205
- } | null;
1206
- objectsSnapModeEnabled: boolean;
1207
- userToFollow: import("../types").UserToFollow | null;
1208
- followedBy: Set<import("../types").SocketId>;
1209
- };
1210
- storeAction: "none";
1211
- }>;
1212
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1213
- keywords: string[];
1214
- } & {
1215
- keyTest?: undefined;
1216
- };
1217
- export declare const actionCopyAsPng: {
1218
- name: "copyAsPng";
1219
- label: string;
1220
- icon: JSX.Element;
1221
- trackEvent: {
1222
- category: "element";
1223
- };
1224
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
1225
- storeAction: "none";
1226
- appState?: undefined;
1227
- } | {
1228
- appState: {
1229
- errorMessage: any;
1230
- contextMenu: {
1231
- items: import("../components/ContextMenu").ContextMenuItems;
1232
- top: number;
1233
- left: number;
1234
- } | null;
1235
- showWelcomeScreen: boolean;
1236
- isLoading: boolean;
1237
- activeEmbeddable: {
1238
- element: import("../element/types").NonDeletedExcalidrawElement;
1239
- state: "active" | "hover";
1240
- } | null;
1241
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1242
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1243
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1244
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1245
- isBindingEnabled: boolean;
1246
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1247
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1248
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1249
- frameRendering: {
1250
- enabled: boolean;
1251
- name: boolean;
1252
- outline: boolean;
1253
- clip: boolean;
1254
- };
1255
- editingFrame: string | null;
1256
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1257
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1258
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1259
- activeTool: {
1260
- lastActiveTool: import("../types").ActiveTool | null;
1261
- locked: boolean;
1262
- } & import("../types").ActiveTool;
1263
- penMode: boolean;
1264
- penDetected: boolean;
1265
- exportBackground: boolean;
1266
- exportEmbedScene: boolean;
1267
- exportWithDarkMode: boolean;
1268
- exportScale: number;
1269
- currentItemStrokeColor: string;
1270
- currentItemBackgroundColor: string;
1271
- currentItemFillStyle: import("../element/types").FillStyle;
1272
- currentItemStrokeWidth: number;
1273
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1274
- currentItemRoughness: number;
1275
- currentItemOpacity: number;
1276
- currentItemFontFamily: number;
1277
- currentItemFontSize: number;
1278
- currentItemTextAlign: string;
1279
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1280
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1281
- currentHoveredFontFamily: number | null;
1282
- currentItemRoundness: import("../element/types").StrokeRoundness;
1283
- currentItemArrowType: "sharp" | "round" | "elbow";
1284
- viewBackgroundColor: string;
1285
- scrollX: number;
1286
- scrollY: number;
1287
- cursorButton: "up" | "down";
1288
- scrolledOutside: boolean;
1289
- name: string | null;
1290
- isResizing: boolean;
1291
- isRotating: boolean;
1292
- zoom: Readonly<{
1293
- value: import("../types").NormalizedZoomValue;
1294
- }>;
1295
- openMenu: "canvas" | "shape" | null;
1296
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1297
- openSidebar: {
1298
- name: string;
1299
- tab?: string | undefined;
1300
- } | null;
1301
- openDialog: {
1302
- name: "imageExport" | "help" | "jsonExport";
1303
- } | {
1304
- name: "ttd";
1305
- tab: "mermaid" | "text-to-diagram";
1306
- } | {
1307
- name: "commandPalette";
1308
- } | null;
1309
- defaultSidebarDockedPreference: boolean;
1310
- lastPointerDownWith: import("../element/types").PointerType;
1311
- selectedElementIds: Readonly<{
1312
- [id: string]: true;
1313
- }>;
1314
- previousSelectedElementIds: {
1315
- [id: string]: true;
1316
- };
1317
- selectedElementsAreBeingDragged: boolean;
1318
- shouldCacheIgnoreZoom: boolean;
1319
- toast: {
1320
- message: string;
1321
- closable?: boolean | undefined;
1322
- duration?: number | undefined;
1323
- } | null;
1324
- zenModeEnabled: boolean;
1325
- theme: import("../element/types").Theme;
1326
- gridSize: number;
1327
- gridStep: number;
1328
- gridModeEnabled: boolean;
1329
- viewModeEnabled: boolean;
1330
- selectedGroupIds: {
1331
- [groupId: string]: boolean;
1332
- };
1333
- editingGroupId: string | null;
1334
- width: number;
1335
- height: number;
1336
- offsetTop: number;
1337
- offsetLeft: number;
1338
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1339
- collaborators: Map<import("../types").SocketId, Readonly<{
1340
- pointer?: import("../types").CollaboratorPointer | undefined;
1341
- button?: "up" | "down" | undefined;
1342
- selectedElementIds?: Readonly<{
1343
- [id: string]: true;
1344
- }> | undefined;
1345
- username?: string | null | undefined;
1346
- userState?: import("../types").UserIdleState | undefined;
1347
- color?: {
1348
- background: string;
1349
- stroke: string;
1350
- } | undefined;
1351
- avatarUrl?: string | undefined;
1352
- id?: string | undefined;
1353
- socketId?: import("../types").SocketId | undefined;
1354
- isCurrentUser?: boolean | undefined;
1355
- isInCall?: boolean | undefined;
1356
- isSpeaking?: boolean | undefined;
1357
- isMuted?: boolean | undefined;
1358
- }>>;
1359
- stats: {
1360
- open: boolean;
1361
- panels: number;
1362
- };
1363
- currentChartType: import("../element/types").ChartType;
1364
- pasteDialog: {
1365
- shown: false;
1366
- data: null;
1367
- } | {
1368
- shown: true;
1369
- data: import("../charts").Spreadsheet;
1370
- };
1371
- pendingImageElementId: string | null;
1372
- showHyperlinkPopup: false | "info" | "editor";
1373
- linkOpacity: number;
1374
- trayModeEnabled: boolean;
1375
- colorPalette?: {
1376
- canvasBackground: import("../colors").ColorPaletteCustom;
1377
- elementBackground: import("../colors").ColorPaletteCustom;
1378
- elementStroke: import("../colors").ColorPaletteCustom;
1379
- topPicks: {
1380
- canvasBackground: [string, string, string, string, string];
1381
- elementStroke: [string, string, string, string, string];
1382
- elementBackground: [string, string, string, string, string];
1383
- };
1384
- } | undefined;
1385
- allowWheelZoom?: boolean | undefined;
1386
- allowPinchZoom?: boolean | undefined;
1387
- pinnedScripts?: string[] | undefined;
1388
- customPens?: any[] | undefined;
1389
- currentStrokeOptions?: any;
1390
- resetCustomPen?: any;
1391
- gridColor: {
1392
- Bold: string;
1393
- Regular: string;
1394
- };
1395
- highlightSearchResult: boolean;
1396
- dynamicStyle: {
1397
- [x: string]: string;
1398
- };
1399
- frameColor: {
1400
- stroke: string;
1401
- fill: string;
1402
- nameColor: string;
1403
- };
1404
- invertBindingBehaviour: boolean;
1405
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1406
- snapLines: readonly import("../snapping").SnapLine[];
1407
- originSnapOffset: {
1408
- x: number;
1409
- y: number;
1410
- } | null;
1411
- objectsSnapModeEnabled: boolean;
1412
- userToFollow: import("../types").UserToFollow | null;
1413
- followedBy: Set<import("../types").SocketId>;
1414
- };
1415
- storeAction: "none";
1416
- }>;
1417
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1418
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1419
- keywords: string[];
1420
- } & {
1421
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1422
- };
1423
- export declare const copyText: {
1424
- name: "copyText";
1425
- label: string;
1426
- trackEvent: {
1427
- category: "element";
1428
- };
1429
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1430
- storeAction: "none";
1431
- };
1432
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1433
- keywords: string[];
1434
- } & {
1435
- keyTest?: undefined;
1436
- };
1
+ export declare const actionCopy: {
2
+ name: "copy";
3
+ label: string;
4
+ icon: JSX.Element;
5
+ trackEvent: {
6
+ category: "element";
7
+ };
8
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
9
+ storeAction: "none";
10
+ appState: {
11
+ errorMessage: any;
12
+ contextMenu: {
13
+ items: import("../components/ContextMenu").ContextMenuItems;
14
+ top: number;
15
+ left: number;
16
+ } | null;
17
+ showWelcomeScreen: boolean;
18
+ isLoading: boolean;
19
+ activeEmbeddable: {
20
+ element: import("../element/types").NonDeletedExcalidrawElement;
21
+ state: "active" | "hover";
22
+ } | null;
23
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
24
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
26
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
+ isBindingEnabled: boolean;
28
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
29
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
30
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
31
+ frameRendering: {
32
+ enabled: boolean;
33
+ name: boolean;
34
+ outline: boolean;
35
+ clip: boolean;
36
+ };
37
+ editingFrame: string | null;
38
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
39
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
40
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
41
+ activeTool: {
42
+ lastActiveTool: import("../types").ActiveTool | null;
43
+ locked: boolean;
44
+ } & import("../types").ActiveTool;
45
+ penMode: boolean;
46
+ penDetected: boolean;
47
+ exportBackground: boolean;
48
+ exportEmbedScene: boolean;
49
+ exportWithDarkMode: boolean;
50
+ exportScale: number;
51
+ currentItemStrokeColor: string;
52
+ currentItemBackgroundColor: string;
53
+ currentItemFillStyle: import("../element/types").FillStyle;
54
+ currentItemStrokeWidth: number;
55
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
56
+ currentItemRoughness: number;
57
+ currentItemOpacity: number;
58
+ currentItemFontFamily: number;
59
+ currentItemFontSize: number;
60
+ currentItemTextAlign: string;
61
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
62
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
63
+ currentHoveredFontFamily: number | null;
64
+ currentItemRoundness: import("../element/types").StrokeRoundness;
65
+ currentItemArrowType: "sharp" | "round" | "elbow";
66
+ viewBackgroundColor: string;
67
+ scrollX: number;
68
+ scrollY: number;
69
+ cursorButton: "up" | "down";
70
+ scrolledOutside: boolean;
71
+ name: string | null;
72
+ isResizing: boolean;
73
+ isRotating: boolean;
74
+ zoom: Readonly<{
75
+ value: import("../types").NormalizedZoomValue;
76
+ }>;
77
+ openMenu: "canvas" | "shape" | null;
78
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
79
+ openSidebar: {
80
+ name: string;
81
+ tab?: string | undefined;
82
+ } | null;
83
+ openDialog: {
84
+ name: "imageExport" | "help" | "jsonExport";
85
+ } | {
86
+ name: "ttd";
87
+ tab: "mermaid" | "text-to-diagram";
88
+ } | {
89
+ name: "commandPalette";
90
+ } | null;
91
+ defaultSidebarDockedPreference: boolean;
92
+ lastPointerDownWith: import("../element/types").PointerType;
93
+ selectedElementIds: Readonly<{
94
+ [id: string]: true;
95
+ }>;
96
+ previousSelectedElementIds: {
97
+ [id: string]: true;
98
+ };
99
+ selectedElementsAreBeingDragged: boolean;
100
+ shouldCacheIgnoreZoom: boolean;
101
+ toast: {
102
+ message: string;
103
+ closable?: boolean | undefined;
104
+ duration?: number | undefined;
105
+ } | null;
106
+ zenModeEnabled: boolean;
107
+ theme: import("../element/types").Theme;
108
+ gridSize: number;
109
+ gridStep: number;
110
+ gridModeEnabled: boolean;
111
+ viewModeEnabled: boolean;
112
+ selectedGroupIds: {
113
+ [groupId: string]: boolean;
114
+ };
115
+ editingGroupId: string | null;
116
+ width: number;
117
+ height: number;
118
+ offsetTop: number;
119
+ offsetLeft: number;
120
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
121
+ collaborators: Map<import("../types").SocketId, Readonly<{
122
+ pointer?: import("../types").CollaboratorPointer | undefined;
123
+ button?: "up" | "down" | undefined;
124
+ selectedElementIds?: Readonly<{
125
+ [id: string]: true;
126
+ }> | undefined;
127
+ username?: string | null | undefined;
128
+ userState?: import("../types").UserIdleState | undefined;
129
+ color?: {
130
+ background: string;
131
+ stroke: string;
132
+ } | undefined;
133
+ avatarUrl?: string | undefined;
134
+ id?: string | undefined;
135
+ socketId?: import("../types").SocketId | undefined;
136
+ isCurrentUser?: boolean | undefined;
137
+ isInCall?: boolean | undefined;
138
+ isSpeaking?: boolean | undefined;
139
+ isMuted?: boolean | undefined;
140
+ }>>;
141
+ stats: {
142
+ open: boolean;
143
+ panels: number;
144
+ };
145
+ currentChartType: import("../element/types").ChartType;
146
+ pasteDialog: {
147
+ shown: false;
148
+ data: null;
149
+ } | {
150
+ shown: true;
151
+ data: import("../charts").Spreadsheet;
152
+ };
153
+ pendingImageElementId: string | null;
154
+ showHyperlinkPopup: false | "info" | "editor";
155
+ linkOpacity: number;
156
+ trayModeEnabled: boolean;
157
+ colorPalette?: {
158
+ canvasBackground: import("../colors").ColorPaletteCustom;
159
+ elementBackground: import("../colors").ColorPaletteCustom;
160
+ elementStroke: import("../colors").ColorPaletteCustom;
161
+ topPicks: {
162
+ canvasBackground: [string, string, string, string, string];
163
+ elementStroke: [string, string, string, string, string];
164
+ elementBackground: [string, string, string, string, string];
165
+ };
166
+ } | undefined;
167
+ allowWheelZoom?: boolean | undefined;
168
+ allowPinchZoom?: boolean | undefined;
169
+ pinnedScripts?: string[] | undefined;
170
+ customPens?: any[] | undefined;
171
+ currentStrokeOptions?: any;
172
+ resetCustomPen?: any;
173
+ gridColor: {
174
+ Bold: string;
175
+ Regular: string;
176
+ };
177
+ highlightSearchResult: boolean;
178
+ dynamicStyle: {
179
+ [x: string]: string;
180
+ };
181
+ frameColor: {
182
+ stroke: string;
183
+ fill: string;
184
+ nameColor: string;
185
+ };
186
+ invertBindingBehaviour: boolean;
187
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
188
+ snapLines: readonly import("../snapping").SnapLine[];
189
+ originSnapOffset: {
190
+ x: number;
191
+ y: number;
192
+ } | null;
193
+ objectsSnapModeEnabled: boolean;
194
+ userToFollow: import("../types").UserToFollow | null;
195
+ followedBy: Set<import("../types").SocketId>;
196
+ };
197
+ } | {
198
+ storeAction: "none";
199
+ appState?: undefined;
200
+ }>;
201
+ keyTest: undefined;
202
+ } & {
203
+ keyTest?: undefined;
204
+ };
205
+ export declare const actionPaste: {
206
+ name: "paste";
207
+ label: string;
208
+ trackEvent: {
209
+ category: "element";
210
+ };
211
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
212
+ storeAction: "none";
213
+ appState: {
214
+ errorMessage: string;
215
+ contextMenu: {
216
+ items: import("../components/ContextMenu").ContextMenuItems;
217
+ top: number;
218
+ left: number;
219
+ } | null;
220
+ showWelcomeScreen: boolean;
221
+ isLoading: boolean;
222
+ activeEmbeddable: {
223
+ element: import("../element/types").NonDeletedExcalidrawElement;
224
+ state: "active" | "hover";
225
+ } | null;
226
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
227
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
228
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
229
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
230
+ isBindingEnabled: boolean;
231
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
232
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
233
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
234
+ frameRendering: {
235
+ enabled: boolean;
236
+ name: boolean;
237
+ outline: boolean;
238
+ clip: boolean;
239
+ };
240
+ editingFrame: string | null;
241
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
242
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
243
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
244
+ activeTool: {
245
+ lastActiveTool: import("../types").ActiveTool | null;
246
+ locked: boolean;
247
+ } & import("../types").ActiveTool;
248
+ penMode: boolean;
249
+ penDetected: boolean;
250
+ exportBackground: boolean;
251
+ exportEmbedScene: boolean;
252
+ exportWithDarkMode: boolean;
253
+ exportScale: number;
254
+ currentItemStrokeColor: string;
255
+ currentItemBackgroundColor: string;
256
+ currentItemFillStyle: import("../element/types").FillStyle;
257
+ currentItemStrokeWidth: number;
258
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
259
+ currentItemRoughness: number;
260
+ currentItemOpacity: number;
261
+ currentItemFontFamily: number;
262
+ currentItemFontSize: number;
263
+ currentItemTextAlign: string;
264
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
265
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
266
+ currentHoveredFontFamily: number | null;
267
+ currentItemRoundness: import("../element/types").StrokeRoundness;
268
+ currentItemArrowType: "sharp" | "round" | "elbow";
269
+ viewBackgroundColor: string;
270
+ scrollX: number;
271
+ scrollY: number;
272
+ cursorButton: "up" | "down";
273
+ scrolledOutside: boolean;
274
+ name: string | null;
275
+ isResizing: boolean;
276
+ isRotating: boolean;
277
+ zoom: Readonly<{
278
+ value: import("../types").NormalizedZoomValue;
279
+ }>;
280
+ openMenu: "canvas" | "shape" | null;
281
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
282
+ openSidebar: {
283
+ name: string;
284
+ tab?: string | undefined;
285
+ } | null;
286
+ openDialog: {
287
+ name: "imageExport" | "help" | "jsonExport";
288
+ } | {
289
+ name: "ttd";
290
+ tab: "mermaid" | "text-to-diagram";
291
+ } | {
292
+ name: "commandPalette";
293
+ } | null;
294
+ defaultSidebarDockedPreference: boolean;
295
+ lastPointerDownWith: import("../element/types").PointerType;
296
+ selectedElementIds: Readonly<{
297
+ [id: string]: true;
298
+ }>;
299
+ previousSelectedElementIds: {
300
+ [id: string]: true;
301
+ };
302
+ selectedElementsAreBeingDragged: boolean;
303
+ shouldCacheIgnoreZoom: boolean;
304
+ toast: {
305
+ message: string;
306
+ closable?: boolean | undefined;
307
+ duration?: number | undefined;
308
+ } | null;
309
+ zenModeEnabled: boolean;
310
+ theme: import("../element/types").Theme;
311
+ gridSize: number;
312
+ gridStep: number;
313
+ gridModeEnabled: boolean;
314
+ viewModeEnabled: boolean;
315
+ selectedGroupIds: {
316
+ [groupId: string]: boolean;
317
+ };
318
+ editingGroupId: string | null;
319
+ width: number;
320
+ height: number;
321
+ offsetTop: number;
322
+ offsetLeft: number;
323
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
324
+ collaborators: Map<import("../types").SocketId, Readonly<{
325
+ pointer?: import("../types").CollaboratorPointer | undefined;
326
+ button?: "up" | "down" | undefined;
327
+ selectedElementIds?: Readonly<{
328
+ [id: string]: true;
329
+ }> | undefined;
330
+ username?: string | null | undefined;
331
+ userState?: import("../types").UserIdleState | undefined;
332
+ color?: {
333
+ background: string;
334
+ stroke: string;
335
+ } | undefined;
336
+ avatarUrl?: string | undefined;
337
+ id?: string | undefined;
338
+ socketId?: import("../types").SocketId | undefined;
339
+ isCurrentUser?: boolean | undefined;
340
+ isInCall?: boolean | undefined;
341
+ isSpeaking?: boolean | undefined;
342
+ isMuted?: boolean | undefined;
343
+ }>>;
344
+ stats: {
345
+ open: boolean;
346
+ panels: number;
347
+ };
348
+ currentChartType: import("../element/types").ChartType;
349
+ pasteDialog: {
350
+ shown: false;
351
+ data: null;
352
+ } | {
353
+ shown: true;
354
+ data: import("../charts").Spreadsheet;
355
+ };
356
+ pendingImageElementId: string | null;
357
+ showHyperlinkPopup: false | "info" | "editor";
358
+ linkOpacity: number;
359
+ trayModeEnabled: boolean;
360
+ colorPalette?: {
361
+ canvasBackground: import("../colors").ColorPaletteCustom;
362
+ elementBackground: import("../colors").ColorPaletteCustom;
363
+ elementStroke: import("../colors").ColorPaletteCustom;
364
+ topPicks: {
365
+ canvasBackground: [string, string, string, string, string];
366
+ elementStroke: [string, string, string, string, string];
367
+ elementBackground: [string, string, string, string, string];
368
+ };
369
+ } | undefined;
370
+ allowWheelZoom?: boolean | undefined;
371
+ allowPinchZoom?: boolean | undefined;
372
+ pinnedScripts?: string[] | undefined;
373
+ customPens?: any[] | undefined;
374
+ currentStrokeOptions?: any;
375
+ resetCustomPen?: any;
376
+ gridColor: {
377
+ Bold: string;
378
+ Regular: string;
379
+ };
380
+ highlightSearchResult: boolean;
381
+ dynamicStyle: {
382
+ [x: string]: string;
383
+ };
384
+ frameColor: {
385
+ stroke: string;
386
+ fill: string;
387
+ nameColor: string;
388
+ };
389
+ invertBindingBehaviour: boolean;
390
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
391
+ snapLines: readonly import("../snapping").SnapLine[];
392
+ originSnapOffset: {
393
+ x: number;
394
+ y: number;
395
+ } | null;
396
+ objectsSnapModeEnabled: boolean;
397
+ userToFollow: import("../types").UserToFollow | null;
398
+ followedBy: Set<import("../types").SocketId>;
399
+ };
400
+ } | {
401
+ storeAction: "none";
402
+ appState?: undefined;
403
+ }>;
404
+ keyTest: undefined;
405
+ } & {
406
+ keyTest?: undefined;
407
+ };
408
+ export declare const actionCut: {
409
+ name: "cut";
410
+ label: string;
411
+ icon: JSX.Element;
412
+ trackEvent: {
413
+ category: "element";
414
+ };
415
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
416
+ elements: import("../element/types").OrderedExcalidrawElement[];
417
+ appState: {
418
+ editingLinearElement: null;
419
+ contextMenu: {
420
+ items: import("../components/ContextMenu").ContextMenuItems;
421
+ top: number;
422
+ left: number;
423
+ } | null;
424
+ showWelcomeScreen: boolean;
425
+ isLoading: boolean;
426
+ errorMessage: import("react").ReactNode;
427
+ activeEmbeddable: {
428
+ element: import("../element/types").NonDeletedExcalidrawElement;
429
+ state: "active" | "hover";
430
+ } | null;
431
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
432
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
433
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
434
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
435
+ isBindingEnabled: boolean;
436
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
437
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
438
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
439
+ frameRendering: {
440
+ enabled: boolean;
441
+ name: boolean;
442
+ outline: boolean;
443
+ clip: boolean;
444
+ };
445
+ editingFrame: string | null;
446
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
447
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
448
+ activeTool: {
449
+ lastActiveTool: import("../types").ActiveTool | null;
450
+ locked: boolean;
451
+ } & import("../types").ActiveTool;
452
+ penMode: boolean;
453
+ penDetected: boolean;
454
+ exportBackground: boolean;
455
+ exportEmbedScene: boolean;
456
+ exportWithDarkMode: boolean;
457
+ exportScale: number;
458
+ currentItemStrokeColor: string;
459
+ currentItemBackgroundColor: string;
460
+ currentItemFillStyle: import("../element/types").FillStyle;
461
+ currentItemStrokeWidth: number;
462
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
463
+ currentItemRoughness: number;
464
+ currentItemOpacity: number;
465
+ currentItemFontFamily: number;
466
+ currentItemFontSize: number;
467
+ currentItemTextAlign: string;
468
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
469
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
470
+ currentHoveredFontFamily: number | null;
471
+ currentItemRoundness: import("../element/types").StrokeRoundness;
472
+ currentItemArrowType: "sharp" | "round" | "elbow";
473
+ viewBackgroundColor: string;
474
+ scrollX: number;
475
+ scrollY: number;
476
+ cursorButton: "up" | "down";
477
+ scrolledOutside: boolean;
478
+ name: string | null;
479
+ isResizing: boolean;
480
+ isRotating: boolean;
481
+ zoom: Readonly<{
482
+ value: import("../types").NormalizedZoomValue;
483
+ }>;
484
+ openMenu: "canvas" | "shape" | null;
485
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
486
+ openSidebar: {
487
+ name: string;
488
+ tab?: string | undefined;
489
+ } | null;
490
+ openDialog: {
491
+ name: "imageExport" | "help" | "jsonExport";
492
+ } | {
493
+ name: "ttd";
494
+ tab: "mermaid" | "text-to-diagram";
495
+ } | {
496
+ name: "commandPalette";
497
+ } | null;
498
+ defaultSidebarDockedPreference: boolean;
499
+ lastPointerDownWith: import("../element/types").PointerType;
500
+ selectedElementIds: Readonly<{
501
+ [id: string]: true;
502
+ }>;
503
+ previousSelectedElementIds: {
504
+ [id: string]: true;
505
+ };
506
+ selectedElementsAreBeingDragged: boolean;
507
+ shouldCacheIgnoreZoom: boolean;
508
+ toast: {
509
+ message: string;
510
+ closable?: boolean | undefined;
511
+ duration?: number | undefined;
512
+ } | null;
513
+ zenModeEnabled: boolean;
514
+ theme: import("../element/types").Theme;
515
+ gridSize: number;
516
+ gridStep: number;
517
+ gridModeEnabled: boolean;
518
+ viewModeEnabled: boolean;
519
+ selectedGroupIds: {
520
+ [groupId: string]: boolean;
521
+ };
522
+ editingGroupId: string | null;
523
+ width: number;
524
+ height: number;
525
+ offsetTop: number;
526
+ offsetLeft: number;
527
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
528
+ collaborators: Map<import("../types").SocketId, Readonly<{
529
+ pointer?: import("../types").CollaboratorPointer | undefined;
530
+ button?: "up" | "down" | undefined;
531
+ selectedElementIds?: Readonly<{
532
+ [id: string]: true;
533
+ }> | undefined;
534
+ username?: string | null | undefined;
535
+ userState?: import("../types").UserIdleState | undefined;
536
+ color?: {
537
+ background: string;
538
+ stroke: string;
539
+ } | undefined;
540
+ avatarUrl?: string | undefined;
541
+ id?: string | undefined;
542
+ socketId?: import("../types").SocketId | undefined;
543
+ isCurrentUser?: boolean | undefined;
544
+ isInCall?: boolean | undefined;
545
+ isSpeaking?: boolean | undefined;
546
+ isMuted?: boolean | undefined;
547
+ }>>;
548
+ stats: {
549
+ open: boolean;
550
+ panels: number;
551
+ };
552
+ currentChartType: import("../element/types").ChartType;
553
+ pasteDialog: {
554
+ shown: false;
555
+ data: null;
556
+ } | {
557
+ shown: true;
558
+ data: import("../charts").Spreadsheet;
559
+ };
560
+ pendingImageElementId: string | null;
561
+ showHyperlinkPopup: false | "info" | "editor";
562
+ linkOpacity: number;
563
+ trayModeEnabled: boolean;
564
+ colorPalette?: {
565
+ canvasBackground: import("../colors").ColorPaletteCustom;
566
+ elementBackground: import("../colors").ColorPaletteCustom;
567
+ elementStroke: import("../colors").ColorPaletteCustom;
568
+ topPicks: {
569
+ canvasBackground: [string, string, string, string, string];
570
+ elementStroke: [string, string, string, string, string];
571
+ elementBackground: [string, string, string, string, string];
572
+ };
573
+ } | undefined;
574
+ allowWheelZoom?: boolean | undefined;
575
+ allowPinchZoom?: boolean | undefined;
576
+ pinnedScripts?: string[] | undefined;
577
+ customPens?: any[] | undefined;
578
+ currentStrokeOptions?: any;
579
+ resetCustomPen?: any;
580
+ gridColor: {
581
+ Bold: string;
582
+ Regular: string;
583
+ };
584
+ highlightSearchResult: boolean;
585
+ dynamicStyle: {
586
+ [x: string]: string;
587
+ };
588
+ frameColor: {
589
+ stroke: string;
590
+ fill: string;
591
+ nameColor: string;
592
+ };
593
+ invertBindingBehaviour: boolean;
594
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
595
+ snapLines: readonly import("../snapping").SnapLine[];
596
+ originSnapOffset: {
597
+ x: number;
598
+ y: number;
599
+ } | null;
600
+ objectsSnapModeEnabled: boolean;
601
+ userToFollow: import("../types").UserToFollow | null;
602
+ followedBy: Set<import("../types").SocketId>;
603
+ };
604
+ storeAction: "capture";
605
+ } | {
606
+ elements: readonly import("../element/types").OrderedExcalidrawElement[];
607
+ appState: {
608
+ editingLinearElement: {
609
+ selectedPointsIndices: number[];
610
+ startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
611
+ endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
612
+ elementId: string & {
613
+ _brand: "excalidrawLinearElementId";
614
+ };
615
+ pointerDownState: Readonly<{
616
+ prevSelectedPointsIndices: readonly number[] | null;
617
+ lastClickedPoint: number;
618
+ lastClickedIsEndPoint: boolean;
619
+ origin: Readonly<{
620
+ x: number;
621
+ y: number;
622
+ }> | null;
623
+ segmentMidpoint: {
624
+ value: readonly [number, number] | null;
625
+ index: number | null;
626
+ added: boolean;
627
+ };
628
+ }>;
629
+ isDragging: boolean;
630
+ lastUncommittedPoint: readonly [number, number] | null;
631
+ pointerOffset: Readonly<{
632
+ x: number;
633
+ y: number;
634
+ }>;
635
+ hoverPointIndex: number;
636
+ segmentMidPointHoveredCoords: readonly [number, number] | null;
637
+ };
638
+ contextMenu: {
639
+ items: import("../components/ContextMenu").ContextMenuItems;
640
+ top: number;
641
+ left: number;
642
+ } | null;
643
+ showWelcomeScreen: boolean;
644
+ isLoading: boolean;
645
+ errorMessage: import("react").ReactNode;
646
+ activeEmbeddable: {
647
+ element: import("../element/types").NonDeletedExcalidrawElement;
648
+ state: "active" | "hover";
649
+ } | null;
650
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
651
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
652
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
653
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
654
+ isBindingEnabled: boolean;
655
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
656
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
657
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
658
+ frameRendering: {
659
+ enabled: boolean;
660
+ name: boolean;
661
+ outline: boolean;
662
+ clip: boolean;
663
+ };
664
+ editingFrame: string | null;
665
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
666
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
667
+ activeTool: {
668
+ lastActiveTool: import("../types").ActiveTool | null;
669
+ locked: boolean;
670
+ } & import("../types").ActiveTool;
671
+ penMode: boolean;
672
+ penDetected: boolean;
673
+ exportBackground: boolean;
674
+ exportEmbedScene: boolean;
675
+ exportWithDarkMode: boolean;
676
+ exportScale: number;
677
+ currentItemStrokeColor: string;
678
+ currentItemBackgroundColor: string;
679
+ currentItemFillStyle: import("../element/types").FillStyle;
680
+ currentItemStrokeWidth: number;
681
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
682
+ currentItemRoughness: number;
683
+ currentItemOpacity: number;
684
+ currentItemFontFamily: number;
685
+ currentItemFontSize: number;
686
+ currentItemTextAlign: string;
687
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
688
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
689
+ currentHoveredFontFamily: number | null;
690
+ currentItemRoundness: import("../element/types").StrokeRoundness;
691
+ currentItemArrowType: "sharp" | "round" | "elbow";
692
+ viewBackgroundColor: string;
693
+ scrollX: number;
694
+ scrollY: number;
695
+ cursorButton: "up" | "down";
696
+ scrolledOutside: boolean;
697
+ name: string | null;
698
+ isResizing: boolean;
699
+ isRotating: boolean;
700
+ zoom: Readonly<{
701
+ value: import("../types").NormalizedZoomValue;
702
+ }>;
703
+ openMenu: "canvas" | "shape" | null;
704
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
705
+ openSidebar: {
706
+ name: string;
707
+ tab?: string | undefined;
708
+ } | null;
709
+ openDialog: {
710
+ name: "imageExport" | "help" | "jsonExport";
711
+ } | {
712
+ name: "ttd";
713
+ tab: "mermaid" | "text-to-diagram";
714
+ } | {
715
+ name: "commandPalette";
716
+ } | null;
717
+ defaultSidebarDockedPreference: boolean;
718
+ lastPointerDownWith: import("../element/types").PointerType;
719
+ selectedElementIds: Readonly<{
720
+ [id: string]: true;
721
+ }>;
722
+ previousSelectedElementIds: {
723
+ [id: string]: true;
724
+ };
725
+ selectedElementsAreBeingDragged: boolean;
726
+ shouldCacheIgnoreZoom: boolean;
727
+ toast: {
728
+ message: string;
729
+ closable?: boolean | undefined;
730
+ duration?: number | undefined;
731
+ } | null;
732
+ zenModeEnabled: boolean;
733
+ theme: import("../element/types").Theme;
734
+ gridSize: number;
735
+ gridStep: number;
736
+ gridModeEnabled: boolean;
737
+ viewModeEnabled: boolean;
738
+ selectedGroupIds: {
739
+ [groupId: string]: boolean;
740
+ };
741
+ editingGroupId: string | null;
742
+ width: number;
743
+ height: number;
744
+ offsetTop: number;
745
+ offsetLeft: number;
746
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
747
+ collaborators: Map<import("../types").SocketId, Readonly<{
748
+ pointer?: import("../types").CollaboratorPointer | undefined;
749
+ button?: "up" | "down" | undefined;
750
+ selectedElementIds?: Readonly<{
751
+ [id: string]: true;
752
+ }> | undefined;
753
+ username?: string | null | undefined;
754
+ userState?: import("../types").UserIdleState | undefined;
755
+ color?: {
756
+ background: string;
757
+ stroke: string;
758
+ } | undefined;
759
+ avatarUrl?: string | undefined;
760
+ id?: string | undefined;
761
+ socketId?: import("../types").SocketId | undefined;
762
+ isCurrentUser?: boolean | undefined;
763
+ isInCall?: boolean | undefined;
764
+ isSpeaking?: boolean | undefined;
765
+ isMuted?: boolean | undefined;
766
+ }>>;
767
+ stats: {
768
+ open: boolean;
769
+ panels: number;
770
+ };
771
+ currentChartType: import("../element/types").ChartType;
772
+ pasteDialog: {
773
+ shown: false;
774
+ data: null;
775
+ } | {
776
+ shown: true;
777
+ data: import("../charts").Spreadsheet;
778
+ };
779
+ pendingImageElementId: string | null;
780
+ showHyperlinkPopup: false | "info" | "editor";
781
+ linkOpacity: number;
782
+ trayModeEnabled: boolean;
783
+ colorPalette?: {
784
+ canvasBackground: import("../colors").ColorPaletteCustom;
785
+ elementBackground: import("../colors").ColorPaletteCustom;
786
+ elementStroke: import("../colors").ColorPaletteCustom;
787
+ topPicks: {
788
+ canvasBackground: [string, string, string, string, string];
789
+ elementStroke: [string, string, string, string, string];
790
+ elementBackground: [string, string, string, string, string];
791
+ };
792
+ } | undefined;
793
+ allowWheelZoom?: boolean | undefined;
794
+ allowPinchZoom?: boolean | undefined;
795
+ pinnedScripts?: string[] | undefined;
796
+ customPens?: any[] | undefined;
797
+ currentStrokeOptions?: any;
798
+ resetCustomPen?: any;
799
+ gridColor: {
800
+ Bold: string;
801
+ Regular: string;
802
+ };
803
+ highlightSearchResult: boolean;
804
+ dynamicStyle: {
805
+ [x: string]: string;
806
+ };
807
+ frameColor: {
808
+ stroke: string;
809
+ fill: string;
810
+ nameColor: string;
811
+ };
812
+ invertBindingBehaviour: boolean;
813
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
814
+ snapLines: readonly import("../snapping").SnapLine[];
815
+ originSnapOffset: {
816
+ x: number;
817
+ y: number;
818
+ } | null;
819
+ objectsSnapModeEnabled: boolean;
820
+ userToFollow: import("../types").UserToFollow | null;
821
+ followedBy: Set<import("../types").SocketId>;
822
+ };
823
+ storeAction: "capture";
824
+ } | {
825
+ elements: import("../element/types").ExcalidrawElement[];
826
+ appState: {
827
+ activeTool: {
828
+ lastActiveTool: import("../types").ActiveTool | null;
829
+ locked: boolean;
830
+ } & import("../types").ActiveTool;
831
+ multiElement: null;
832
+ activeEmbeddable: null;
833
+ selectedElementIds: {};
834
+ selectedGroupIds: {};
835
+ contextMenu: {
836
+ items: import("../components/ContextMenu").ContextMenuItems;
837
+ top: number;
838
+ left: number;
839
+ } | null;
840
+ showWelcomeScreen: boolean;
841
+ isLoading: boolean;
842
+ errorMessage: import("react").ReactNode;
843
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
844
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
845
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
846
+ isBindingEnabled: boolean;
847
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
848
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
849
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
850
+ frameRendering: {
851
+ enabled: boolean;
852
+ name: boolean;
853
+ outline: boolean;
854
+ clip: boolean;
855
+ };
856
+ editingFrame: string | null;
857
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
858
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
859
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
860
+ penMode: boolean;
861
+ penDetected: boolean;
862
+ exportBackground: boolean;
863
+ exportEmbedScene: boolean;
864
+ exportWithDarkMode: boolean;
865
+ exportScale: number;
866
+ currentItemStrokeColor: string;
867
+ currentItemBackgroundColor: string;
868
+ currentItemFillStyle: import("../element/types").FillStyle;
869
+ currentItemStrokeWidth: number;
870
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
871
+ currentItemRoughness: number;
872
+ currentItemOpacity: number;
873
+ currentItemFontFamily: number;
874
+ currentItemFontSize: number;
875
+ currentItemTextAlign: string;
876
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
877
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
878
+ currentHoveredFontFamily: number | null;
879
+ currentItemRoundness: import("../element/types").StrokeRoundness;
880
+ currentItemArrowType: "sharp" | "round" | "elbow";
881
+ viewBackgroundColor: string;
882
+ scrollX: number;
883
+ scrollY: number;
884
+ cursorButton: "up" | "down";
885
+ scrolledOutside: boolean;
886
+ name: string | null;
887
+ isResizing: boolean;
888
+ isRotating: boolean;
889
+ zoom: Readonly<{
890
+ value: import("../types").NormalizedZoomValue;
891
+ }>;
892
+ openMenu: "canvas" | "shape" | null;
893
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
894
+ openSidebar: {
895
+ name: string;
896
+ tab?: string | undefined;
897
+ } | null;
898
+ openDialog: {
899
+ name: "imageExport" | "help" | "jsonExport";
900
+ } | {
901
+ name: "ttd";
902
+ tab: "mermaid" | "text-to-diagram";
903
+ } | {
904
+ name: "commandPalette";
905
+ } | null;
906
+ defaultSidebarDockedPreference: boolean;
907
+ lastPointerDownWith: import("../element/types").PointerType;
908
+ previousSelectedElementIds: {
909
+ [id: string]: true;
910
+ };
911
+ selectedElementsAreBeingDragged: boolean;
912
+ shouldCacheIgnoreZoom: boolean;
913
+ toast: {
914
+ message: string;
915
+ closable?: boolean | undefined;
916
+ duration?: number | undefined;
917
+ } | null;
918
+ zenModeEnabled: boolean;
919
+ theme: import("../element/types").Theme;
920
+ gridSize: number;
921
+ gridStep: number;
922
+ gridModeEnabled: boolean;
923
+ viewModeEnabled: boolean;
924
+ editingGroupId: string | null;
925
+ width: number;
926
+ height: number;
927
+ offsetTop: number;
928
+ offsetLeft: number;
929
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
930
+ collaborators: Map<import("../types").SocketId, Readonly<{
931
+ pointer?: import("../types").CollaboratorPointer | undefined;
932
+ button?: "up" | "down" | undefined;
933
+ selectedElementIds?: Readonly<{
934
+ [id: string]: true;
935
+ }> | undefined;
936
+ username?: string | null | undefined;
937
+ userState?: import("../types").UserIdleState | undefined;
938
+ color?: {
939
+ background: string;
940
+ stroke: string;
941
+ } | undefined;
942
+ avatarUrl?: string | undefined;
943
+ id?: string | undefined;
944
+ socketId?: import("../types").SocketId | undefined;
945
+ isCurrentUser?: boolean | undefined;
946
+ isInCall?: boolean | undefined;
947
+ isSpeaking?: boolean | undefined;
948
+ isMuted?: boolean | undefined;
949
+ }>>;
950
+ stats: {
951
+ open: boolean;
952
+ panels: number;
953
+ };
954
+ currentChartType: import("../element/types").ChartType;
955
+ pasteDialog: {
956
+ shown: false;
957
+ data: null;
958
+ } | {
959
+ shown: true;
960
+ data: import("../charts").Spreadsheet;
961
+ };
962
+ pendingImageElementId: string | null;
963
+ showHyperlinkPopup: false | "info" | "editor";
964
+ linkOpacity: number;
965
+ trayModeEnabled: boolean;
966
+ colorPalette?: {
967
+ canvasBackground: import("../colors").ColorPaletteCustom;
968
+ elementBackground: import("../colors").ColorPaletteCustom;
969
+ elementStroke: import("../colors").ColorPaletteCustom;
970
+ topPicks: {
971
+ canvasBackground: [string, string, string, string, string];
972
+ elementStroke: [string, string, string, string, string];
973
+ elementBackground: [string, string, string, string, string];
974
+ };
975
+ } | undefined;
976
+ allowWheelZoom?: boolean | undefined;
977
+ allowPinchZoom?: boolean | undefined;
978
+ pinnedScripts?: string[] | undefined;
979
+ customPens?: any[] | undefined;
980
+ currentStrokeOptions?: any;
981
+ resetCustomPen?: any;
982
+ gridColor: {
983
+ Bold: string;
984
+ Regular: string;
985
+ };
986
+ highlightSearchResult: boolean;
987
+ dynamicStyle: {
988
+ [x: string]: string;
989
+ };
990
+ frameColor: {
991
+ stroke: string;
992
+ fill: string;
993
+ nameColor: string;
994
+ };
995
+ invertBindingBehaviour: boolean;
996
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
997
+ snapLines: readonly import("../snapping").SnapLine[];
998
+ originSnapOffset: {
999
+ x: number;
1000
+ y: number;
1001
+ } | null;
1002
+ objectsSnapModeEnabled: boolean;
1003
+ userToFollow: import("../types").UserToFollow | null;
1004
+ followedBy: Set<import("../types").SocketId>;
1005
+ };
1006
+ storeAction: "none" | "capture";
1007
+ };
1008
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1009
+ } & {
1010
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1011
+ };
1012
+ export declare const actionCopyAsSvg: {
1013
+ name: "copyAsSvg";
1014
+ label: string;
1015
+ icon: JSX.Element;
1016
+ trackEvent: {
1017
+ category: "element";
1018
+ };
1019
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
1020
+ storeAction: "none";
1021
+ appState?: undefined;
1022
+ } | {
1023
+ appState: {
1024
+ errorMessage: any;
1025
+ contextMenu: {
1026
+ items: import("../components/ContextMenu").ContextMenuItems;
1027
+ top: number;
1028
+ left: number;
1029
+ } | null;
1030
+ showWelcomeScreen: boolean;
1031
+ isLoading: boolean;
1032
+ activeEmbeddable: {
1033
+ element: import("../element/types").NonDeletedExcalidrawElement;
1034
+ state: "active" | "hover";
1035
+ } | null;
1036
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1037
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1038
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1039
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1040
+ isBindingEnabled: boolean;
1041
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1042
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1043
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1044
+ frameRendering: {
1045
+ enabled: boolean;
1046
+ name: boolean;
1047
+ outline: boolean;
1048
+ clip: boolean;
1049
+ };
1050
+ editingFrame: string | null;
1051
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1052
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1053
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1054
+ activeTool: {
1055
+ lastActiveTool: import("../types").ActiveTool | null;
1056
+ locked: boolean;
1057
+ } & import("../types").ActiveTool;
1058
+ penMode: boolean;
1059
+ penDetected: boolean;
1060
+ exportBackground: boolean;
1061
+ exportEmbedScene: boolean;
1062
+ exportWithDarkMode: boolean;
1063
+ exportScale: number;
1064
+ currentItemStrokeColor: string;
1065
+ currentItemBackgroundColor: string;
1066
+ currentItemFillStyle: import("../element/types").FillStyle;
1067
+ currentItemStrokeWidth: number;
1068
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1069
+ currentItemRoughness: number;
1070
+ currentItemOpacity: number;
1071
+ currentItemFontFamily: number;
1072
+ currentItemFontSize: number;
1073
+ currentItemTextAlign: string;
1074
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1075
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1076
+ currentHoveredFontFamily: number | null;
1077
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1078
+ currentItemArrowType: "sharp" | "round" | "elbow";
1079
+ viewBackgroundColor: string;
1080
+ scrollX: number;
1081
+ scrollY: number;
1082
+ cursorButton: "up" | "down";
1083
+ scrolledOutside: boolean;
1084
+ name: string | null;
1085
+ isResizing: boolean;
1086
+ isRotating: boolean;
1087
+ zoom: Readonly<{
1088
+ value: import("../types").NormalizedZoomValue;
1089
+ }>;
1090
+ openMenu: "canvas" | "shape" | null;
1091
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1092
+ openSidebar: {
1093
+ name: string;
1094
+ tab?: string | undefined;
1095
+ } | null;
1096
+ openDialog: {
1097
+ name: "imageExport" | "help" | "jsonExport";
1098
+ } | {
1099
+ name: "ttd";
1100
+ tab: "mermaid" | "text-to-diagram";
1101
+ } | {
1102
+ name: "commandPalette";
1103
+ } | null;
1104
+ defaultSidebarDockedPreference: boolean;
1105
+ lastPointerDownWith: import("../element/types").PointerType;
1106
+ selectedElementIds: Readonly<{
1107
+ [id: string]: true;
1108
+ }>;
1109
+ previousSelectedElementIds: {
1110
+ [id: string]: true;
1111
+ };
1112
+ selectedElementsAreBeingDragged: boolean;
1113
+ shouldCacheIgnoreZoom: boolean;
1114
+ toast: {
1115
+ message: string;
1116
+ closable?: boolean | undefined;
1117
+ duration?: number | undefined;
1118
+ } | null;
1119
+ zenModeEnabled: boolean;
1120
+ theme: import("../element/types").Theme;
1121
+ gridSize: number;
1122
+ gridStep: number;
1123
+ gridModeEnabled: boolean;
1124
+ viewModeEnabled: boolean;
1125
+ selectedGroupIds: {
1126
+ [groupId: string]: boolean;
1127
+ };
1128
+ editingGroupId: string | null;
1129
+ width: number;
1130
+ height: number;
1131
+ offsetTop: number;
1132
+ offsetLeft: number;
1133
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1134
+ collaborators: Map<import("../types").SocketId, Readonly<{
1135
+ pointer?: import("../types").CollaboratorPointer | undefined;
1136
+ button?: "up" | "down" | undefined;
1137
+ selectedElementIds?: Readonly<{
1138
+ [id: string]: true;
1139
+ }> | undefined;
1140
+ username?: string | null | undefined;
1141
+ userState?: import("../types").UserIdleState | undefined;
1142
+ color?: {
1143
+ background: string;
1144
+ stroke: string;
1145
+ } | undefined;
1146
+ avatarUrl?: string | undefined;
1147
+ id?: string | undefined;
1148
+ socketId?: import("../types").SocketId | undefined;
1149
+ isCurrentUser?: boolean | undefined;
1150
+ isInCall?: boolean | undefined;
1151
+ isSpeaking?: boolean | undefined;
1152
+ isMuted?: boolean | undefined;
1153
+ }>>;
1154
+ stats: {
1155
+ open: boolean;
1156
+ panels: number;
1157
+ };
1158
+ currentChartType: import("../element/types").ChartType;
1159
+ pasteDialog: {
1160
+ shown: false;
1161
+ data: null;
1162
+ } | {
1163
+ shown: true;
1164
+ data: import("../charts").Spreadsheet;
1165
+ };
1166
+ pendingImageElementId: string | null;
1167
+ showHyperlinkPopup: false | "info" | "editor";
1168
+ linkOpacity: number;
1169
+ trayModeEnabled: boolean;
1170
+ colorPalette?: {
1171
+ canvasBackground: import("../colors").ColorPaletteCustom;
1172
+ elementBackground: import("../colors").ColorPaletteCustom;
1173
+ elementStroke: import("../colors").ColorPaletteCustom;
1174
+ topPicks: {
1175
+ canvasBackground: [string, string, string, string, string];
1176
+ elementStroke: [string, string, string, string, string];
1177
+ elementBackground: [string, string, string, string, string];
1178
+ };
1179
+ } | undefined;
1180
+ allowWheelZoom?: boolean | undefined;
1181
+ allowPinchZoom?: boolean | undefined;
1182
+ pinnedScripts?: string[] | undefined;
1183
+ customPens?: any[] | undefined;
1184
+ currentStrokeOptions?: any;
1185
+ resetCustomPen?: any;
1186
+ gridColor: {
1187
+ Bold: string;
1188
+ Regular: string;
1189
+ };
1190
+ highlightSearchResult: boolean;
1191
+ dynamicStyle: {
1192
+ [x: string]: string;
1193
+ };
1194
+ frameColor: {
1195
+ stroke: string;
1196
+ fill: string;
1197
+ nameColor: string;
1198
+ };
1199
+ invertBindingBehaviour: boolean;
1200
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1201
+ snapLines: readonly import("../snapping").SnapLine[];
1202
+ originSnapOffset: {
1203
+ x: number;
1204
+ y: number;
1205
+ } | null;
1206
+ objectsSnapModeEnabled: boolean;
1207
+ userToFollow: import("../types").UserToFollow | null;
1208
+ followedBy: Set<import("../types").SocketId>;
1209
+ };
1210
+ storeAction: "none";
1211
+ }>;
1212
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1213
+ keywords: string[];
1214
+ } & {
1215
+ keyTest?: undefined;
1216
+ };
1217
+ export declare const actionCopyAsPng: {
1218
+ name: "copyAsPng";
1219
+ label: string;
1220
+ icon: JSX.Element;
1221
+ trackEvent: {
1222
+ category: "element";
1223
+ };
1224
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
1225
+ storeAction: "none";
1226
+ appState?: undefined;
1227
+ } | {
1228
+ appState: {
1229
+ errorMessage: any;
1230
+ contextMenu: {
1231
+ items: import("../components/ContextMenu").ContextMenuItems;
1232
+ top: number;
1233
+ left: number;
1234
+ } | null;
1235
+ showWelcomeScreen: boolean;
1236
+ isLoading: boolean;
1237
+ activeEmbeddable: {
1238
+ element: import("../element/types").NonDeletedExcalidrawElement;
1239
+ state: "active" | "hover";
1240
+ } | null;
1241
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1242
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1243
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1244
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1245
+ isBindingEnabled: boolean;
1246
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1247
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1248
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1249
+ frameRendering: {
1250
+ enabled: boolean;
1251
+ name: boolean;
1252
+ outline: boolean;
1253
+ clip: boolean;
1254
+ };
1255
+ editingFrame: string | null;
1256
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1257
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1258
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1259
+ activeTool: {
1260
+ lastActiveTool: import("../types").ActiveTool | null;
1261
+ locked: boolean;
1262
+ } & import("../types").ActiveTool;
1263
+ penMode: boolean;
1264
+ penDetected: boolean;
1265
+ exportBackground: boolean;
1266
+ exportEmbedScene: boolean;
1267
+ exportWithDarkMode: boolean;
1268
+ exportScale: number;
1269
+ currentItemStrokeColor: string;
1270
+ currentItemBackgroundColor: string;
1271
+ currentItemFillStyle: import("../element/types").FillStyle;
1272
+ currentItemStrokeWidth: number;
1273
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1274
+ currentItemRoughness: number;
1275
+ currentItemOpacity: number;
1276
+ currentItemFontFamily: number;
1277
+ currentItemFontSize: number;
1278
+ currentItemTextAlign: string;
1279
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1280
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1281
+ currentHoveredFontFamily: number | null;
1282
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1283
+ currentItemArrowType: "sharp" | "round" | "elbow";
1284
+ viewBackgroundColor: string;
1285
+ scrollX: number;
1286
+ scrollY: number;
1287
+ cursorButton: "up" | "down";
1288
+ scrolledOutside: boolean;
1289
+ name: string | null;
1290
+ isResizing: boolean;
1291
+ isRotating: boolean;
1292
+ zoom: Readonly<{
1293
+ value: import("../types").NormalizedZoomValue;
1294
+ }>;
1295
+ openMenu: "canvas" | "shape" | null;
1296
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1297
+ openSidebar: {
1298
+ name: string;
1299
+ tab?: string | undefined;
1300
+ } | null;
1301
+ openDialog: {
1302
+ name: "imageExport" | "help" | "jsonExport";
1303
+ } | {
1304
+ name: "ttd";
1305
+ tab: "mermaid" | "text-to-diagram";
1306
+ } | {
1307
+ name: "commandPalette";
1308
+ } | null;
1309
+ defaultSidebarDockedPreference: boolean;
1310
+ lastPointerDownWith: import("../element/types").PointerType;
1311
+ selectedElementIds: Readonly<{
1312
+ [id: string]: true;
1313
+ }>;
1314
+ previousSelectedElementIds: {
1315
+ [id: string]: true;
1316
+ };
1317
+ selectedElementsAreBeingDragged: boolean;
1318
+ shouldCacheIgnoreZoom: boolean;
1319
+ toast: {
1320
+ message: string;
1321
+ closable?: boolean | undefined;
1322
+ duration?: number | undefined;
1323
+ } | null;
1324
+ zenModeEnabled: boolean;
1325
+ theme: import("../element/types").Theme;
1326
+ gridSize: number;
1327
+ gridStep: number;
1328
+ gridModeEnabled: boolean;
1329
+ viewModeEnabled: boolean;
1330
+ selectedGroupIds: {
1331
+ [groupId: string]: boolean;
1332
+ };
1333
+ editingGroupId: string | null;
1334
+ width: number;
1335
+ height: number;
1336
+ offsetTop: number;
1337
+ offsetLeft: number;
1338
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1339
+ collaborators: Map<import("../types").SocketId, Readonly<{
1340
+ pointer?: import("../types").CollaboratorPointer | undefined;
1341
+ button?: "up" | "down" | undefined;
1342
+ selectedElementIds?: Readonly<{
1343
+ [id: string]: true;
1344
+ }> | undefined;
1345
+ username?: string | null | undefined;
1346
+ userState?: import("../types").UserIdleState | undefined;
1347
+ color?: {
1348
+ background: string;
1349
+ stroke: string;
1350
+ } | undefined;
1351
+ avatarUrl?: string | undefined;
1352
+ id?: string | undefined;
1353
+ socketId?: import("../types").SocketId | undefined;
1354
+ isCurrentUser?: boolean | undefined;
1355
+ isInCall?: boolean | undefined;
1356
+ isSpeaking?: boolean | undefined;
1357
+ isMuted?: boolean | undefined;
1358
+ }>>;
1359
+ stats: {
1360
+ open: boolean;
1361
+ panels: number;
1362
+ };
1363
+ currentChartType: import("../element/types").ChartType;
1364
+ pasteDialog: {
1365
+ shown: false;
1366
+ data: null;
1367
+ } | {
1368
+ shown: true;
1369
+ data: import("../charts").Spreadsheet;
1370
+ };
1371
+ pendingImageElementId: string | null;
1372
+ showHyperlinkPopup: false | "info" | "editor";
1373
+ linkOpacity: number;
1374
+ trayModeEnabled: boolean;
1375
+ colorPalette?: {
1376
+ canvasBackground: import("../colors").ColorPaletteCustom;
1377
+ elementBackground: import("../colors").ColorPaletteCustom;
1378
+ elementStroke: import("../colors").ColorPaletteCustom;
1379
+ topPicks: {
1380
+ canvasBackground: [string, string, string, string, string];
1381
+ elementStroke: [string, string, string, string, string];
1382
+ elementBackground: [string, string, string, string, string];
1383
+ };
1384
+ } | undefined;
1385
+ allowWheelZoom?: boolean | undefined;
1386
+ allowPinchZoom?: boolean | undefined;
1387
+ pinnedScripts?: string[] | undefined;
1388
+ customPens?: any[] | undefined;
1389
+ currentStrokeOptions?: any;
1390
+ resetCustomPen?: any;
1391
+ gridColor: {
1392
+ Bold: string;
1393
+ Regular: string;
1394
+ };
1395
+ highlightSearchResult: boolean;
1396
+ dynamicStyle: {
1397
+ [x: string]: string;
1398
+ };
1399
+ frameColor: {
1400
+ stroke: string;
1401
+ fill: string;
1402
+ nameColor: string;
1403
+ };
1404
+ invertBindingBehaviour: boolean;
1405
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1406
+ snapLines: readonly import("../snapping").SnapLine[];
1407
+ originSnapOffset: {
1408
+ x: number;
1409
+ y: number;
1410
+ } | null;
1411
+ objectsSnapModeEnabled: boolean;
1412
+ userToFollow: import("../types").UserToFollow | null;
1413
+ followedBy: Set<import("../types").SocketId>;
1414
+ };
1415
+ storeAction: "none";
1416
+ }>;
1417
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1418
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1419
+ keywords: string[];
1420
+ } & {
1421
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1422
+ };
1423
+ export declare const copyText: {
1424
+ name: "copyText";
1425
+ label: string;
1426
+ trackEvent: {
1427
+ category: "element";
1428
+ };
1429
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1430
+ storeAction: "none";
1431
+ };
1432
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1433
+ keywords: string[];
1434
+ } & {
1435
+ keyTest?: undefined;
1436
+ };