@zsviczian/excalidraw 0.17.6-2 → 0.17.6-20

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