@zsviczian/excalidraw 0.17.1-obsidian-54 → 0.17.1-obsidian-56

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 (367) hide show
  1. package/dist/excalidraw.development.js +86 -86
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/excalidraw/actions/actionAddToLibrary.d.ts +605 -605
  5. package/types/excalidraw/actions/actionAlign.d.ts +108 -108
  6. package/types/excalidraw/actions/actionBoundText.d.ts +440 -440
  7. package/types/excalidraw/actions/actionCanvas.d.ts +2958 -2958
  8. package/types/excalidraw/actions/actionClipboard.d.ts +1507 -1507
  9. package/types/excalidraw/actions/actionDeleteSelected.d.ts +640 -640
  10. package/types/excalidraw/actions/actionDistribute.d.ts +34 -34
  11. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +21 -21
  12. package/types/excalidraw/actions/actionElementLock.d.ts +428 -428
  13. package/types/excalidraw/actions/actionExport.d.ts +1884 -1884
  14. package/types/excalidraw/actions/actionFinalize.d.ts +409 -409
  15. package/types/excalidraw/actions/actionFlip.d.ts +34 -34
  16. package/types/excalidraw/actions/actionFrame.d.ts +855 -855
  17. package/types/excalidraw/actions/actionGroup.d.ts +438 -438
  18. package/types/excalidraw/actions/actionHistory.d.ts +7 -7
  19. package/types/excalidraw/actions/actionLinearEditor.d.ts +215 -215
  20. package/types/excalidraw/actions/actionLink.d.ts +215 -215
  21. package/types/excalidraw/actions/actionMenu.d.ts +628 -628
  22. package/types/excalidraw/actions/actionNavigate.d.ts +414 -414
  23. package/types/excalidraw/actions/actionProperties.d.ts +3156 -3156
  24. package/types/excalidraw/actions/actionSelectAll.d.ts +214 -214
  25. package/types/excalidraw/actions/actionStyles.d.ts +228 -228
  26. package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
  27. package/types/excalidraw/actions/actionToggleGridMode.d.ts +217 -217
  28. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +215 -215
  29. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +407 -407
  30. package/types/excalidraw/actions/actionToggleStats.d.ts +215 -215
  31. package/types/excalidraw/actions/actionToggleViewMode.d.ts +216 -216
  32. package/types/excalidraw/actions/actionToggleZenMode.d.ts +216 -216
  33. package/types/excalidraw/actions/actionZindex.d.ts +74 -74
  34. package/types/excalidraw/actions/index.d.ts +26 -26
  35. package/types/excalidraw/actions/manager.d.ts +21 -21
  36. package/types/excalidraw/actions/register.d.ts +5 -5
  37. package/types/excalidraw/actions/shortcuts.d.ts +4 -4
  38. package/types/excalidraw/actions/types.d.ts +47 -47
  39. package/types/excalidraw/align.d.ts +6 -6
  40. package/types/excalidraw/analytics.d.ts +1 -1
  41. package/types/excalidraw/animated-trail.d.ts +33 -33
  42. package/types/excalidraw/animation-frame-handler.d.ts +16 -16
  43. package/types/excalidraw/appState.d.ts +89 -89
  44. package/types/excalidraw/binaryheap.d.ts +12 -12
  45. package/types/excalidraw/change.d.ts +191 -191
  46. package/types/excalidraw/charts.d.ts +27 -27
  47. package/types/excalidraw/clients.d.ts +14 -14
  48. package/types/excalidraw/clipboard.d.ts +44 -44
  49. package/types/excalidraw/colors.d.ts +61 -61
  50. package/types/excalidraw/components/Actions.d.ts +34 -34
  51. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -4
  52. package/types/excalidraw/components/App.d.ts +535 -535
  53. package/types/excalidraw/components/Avatar.d.ts +11 -11
  54. package/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -2
  55. package/types/excalidraw/components/Button.d.ts +17 -17
  56. package/types/excalidraw/components/ButtonIcon.d.ts +14 -14
  57. package/types/excalidraw/components/ButtonIconCycle.d.ts +10 -10
  58. package/types/excalidraw/components/ButtonIconSelect.d.ts +19 -19
  59. package/types/excalidraw/components/ButtonSelect.d.ts +9 -9
  60. package/types/excalidraw/components/ButtonSeparator.d.ts +1 -1
  61. package/types/excalidraw/components/Card.d.ts +6 -6
  62. package/types/excalidraw/components/CheckboxItem.d.ts +8 -8
  63. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +9 -9
  64. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +19 -19
  65. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -8
  66. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +8 -8
  67. package/types/excalidraw/components/ColorPicker/Picker.d.ts +18 -18
  68. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -10
  69. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -5
  70. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +8 -8
  71. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -9
  72. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  73. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
  74. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -18
  75. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -2
  76. package/types/excalidraw/components/CommandPalette/types.d.ts +25 -25
  77. package/types/excalidraw/components/ConfirmDialog.d.ts +10 -10
  78. package/types/excalidraw/components/ContextMenu.d.ts +16 -16
  79. package/types/excalidraw/components/DarkModeToggle.d.ts +7 -7
  80. package/types/excalidraw/components/DefaultSidebar.d.ts +30 -30
  81. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -4
  82. package/types/excalidraw/components/Dialog.d.ts +13 -13
  83. package/types/excalidraw/components/DialogActionButton.d.ts +10 -10
  84. package/types/excalidraw/components/ErrorDialog.d.ts +5 -5
  85. package/types/excalidraw/components/ExcalidrawLogo.d.ts +15 -15
  86. package/types/excalidraw/components/EyeDropper.d.ts +27 -27
  87. package/types/excalidraw/components/FilledButton.d.ts +18 -18
  88. package/types/excalidraw/components/FixedSideContainer.d.ts +9 -9
  89. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -10
  90. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +21 -21
  91. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +25 -25
  92. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +6 -6
  93. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -13
  94. package/types/excalidraw/components/HandButton.d.ts +10 -10
  95. package/types/excalidraw/components/HelpButton.d.ts +7 -7
  96. package/types/excalidraw/components/HelpDialog.d.ts +4 -4
  97. package/types/excalidraw/components/HintViewer.d.ts +10 -10
  98. package/types/excalidraw/components/IconPicker.d.ts +14 -14
  99. package/types/excalidraw/components/ImageExportDialog.d.ts +14 -14
  100. package/types/excalidraw/components/InitializeApp.d.ts +10 -10
  101. package/types/excalidraw/components/InlineIcon.d.ts +3 -3
  102. package/types/excalidraw/components/Island.d.ts +10 -10
  103. package/types/excalidraw/components/JSONExportDialog.d.ts +15 -15
  104. package/types/excalidraw/components/LaserPointerButton.d.ts +10 -10
  105. package/types/excalidraw/components/LayerUI.d.ts +30 -30
  106. package/types/excalidraw/components/LibraryMenu.d.ts +24 -24
  107. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -7
  108. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -9
  109. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -17
  110. package/types/excalidraw/components/LibraryMenuItems.d.ts +14 -14
  111. package/types/excalidraw/components/LibraryMenuSection.d.ts +23 -23
  112. package/types/excalidraw/components/LibraryUnit.d.ts +14 -14
  113. package/types/excalidraw/components/LoadingMessage.d.ts +5 -5
  114. package/types/excalidraw/components/LockButton.d.ts +10 -10
  115. package/types/excalidraw/components/MagicButton.d.ts +9 -9
  116. package/types/excalidraw/components/MagicSettings.d.ts +8 -0
  117. package/types/excalidraw/components/MobileMenu.d.ts +24 -24
  118. package/types/excalidraw/components/Modal.d.ts +14 -14
  119. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  120. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  121. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  122. package/types/excalidraw/components/Paragraph.d.ts +4 -4
  123. package/types/excalidraw/components/PasteChartDialog.d.ts +8 -8
  124. package/types/excalidraw/components/PenModeButton.d.ts +12 -12
  125. package/types/excalidraw/components/Popover.d.ts +15 -15
  126. package/types/excalidraw/components/ProjectName.d.ts +10 -10
  127. package/types/excalidraw/components/PropertiesPopover.d.ts +15 -15
  128. package/types/excalidraw/components/PublishLibrary.d.ts +16 -16
  129. package/types/excalidraw/components/QuickSearch.d.ts +9 -9
  130. package/types/excalidraw/components/RadioGroup.d.ts +13 -13
  131. package/types/excalidraw/components/SVGLayer.d.ts +7 -7
  132. package/types/excalidraw/components/ScrollableList.d.ts +8 -8
  133. package/types/excalidraw/components/SearchMenu.d.ts +5 -5
  134. package/types/excalidraw/components/Section.d.ts +6 -6
  135. package/types/excalidraw/components/ShareableLinkDialog.d.ts +7 -7
  136. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +76 -76
  137. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -7
  138. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -8
  139. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
  140. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
  141. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -6
  142. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -6
  143. package/types/excalidraw/components/Sidebar/common.d.ts +33 -33
  144. package/types/excalidraw/components/Spinner.d.ts +8 -8
  145. package/types/excalidraw/components/Stack.d.ts +16 -16
  146. package/types/excalidraw/components/Stats/Angle.d.ts +11 -11
  147. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -10
  148. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +10 -10
  149. package/types/excalidraw/components/Stats/Collapsible.d.ts +8 -8
  150. package/types/excalidraw/components/Stats/Dimension.d.ts +11 -11
  151. package/types/excalidraw/components/Stats/DragInput.d.ts +34 -34
  152. package/types/excalidraw/components/Stats/FontSize.d.ts +11 -11
  153. package/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -11
  154. package/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -14
  155. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -12
  156. package/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -14
  157. package/types/excalidraw/components/Stats/Position.d.ts +12 -12
  158. package/types/excalidraw/components/Stats/index.d.ts +35 -35
  159. package/types/excalidraw/components/Stats/utils.d.ts +26 -26
  160. package/types/excalidraw/components/Stats.d.ts +11 -0
  161. package/types/excalidraw/components/Switch.d.ts +9 -9
  162. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +14 -14
  163. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +29 -29
  164. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -9
  165. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +7 -7
  166. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -17
  167. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -4
  168. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -1
  169. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -7
  170. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -8
  171. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -6
  172. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -11
  173. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +8 -8
  174. package/types/excalidraw/components/TTDDialog/common.d.ts +32 -32
  175. package/types/excalidraw/components/TextField.d.ts +21 -21
  176. package/types/excalidraw/components/Toast.d.ts +9 -9
  177. package/types/excalidraw/components/ToolButton.d.ts +49 -49
  178. package/types/excalidraw/components/Tooltip.d.ts +18 -18
  179. package/types/excalidraw/components/Trans.d.ts +9 -9
  180. package/types/excalidraw/components/UserList.d.ts +18 -18
  181. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +29 -29
  182. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -14
  183. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -19
  184. package/types/excalidraw/components/canvases/index.d.ts +3 -3
  185. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +86 -86
  186. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  187. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  188. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +45 -45
  189. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +7 -7
  190. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -17
  191. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -7
  192. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +15 -15
  193. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  194. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
  195. package/types/excalidraw/components/dropdownMenu/common.d.ts +6 -6
  196. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  197. package/types/excalidraw/components/footer/Footer.d.ts +12 -12
  198. package/types/excalidraw/components/footer/FooterCenter.d.ts +8 -8
  199. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -4
  200. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +18 -18
  201. package/types/excalidraw/components/hyperlink/helpers.d.ts +8 -8
  202. package/types/excalidraw/components/icons.d.ts +212 -212
  203. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +9 -9
  204. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -64
  205. package/types/excalidraw/components/main-menu/MainMenu.d.ts +80 -80
  206. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +59 -59
  207. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  208. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +86 -86
  209. package/types/excalidraw/constants.d.ts +316 -316
  210. package/types/excalidraw/context/tunnels.d.ts +20 -20
  211. package/types/excalidraw/context/ui-appState.d.ts +4 -4
  212. package/types/excalidraw/cursor.d.ts +6 -6
  213. package/types/excalidraw/data/EditorLocalStorage.d.ts +8 -8
  214. package/types/excalidraw/data/ai/types.d.ts +242 -242
  215. package/types/excalidraw/data/blob.d.ts +49 -49
  216. package/types/excalidraw/data/encode.d.ts +54 -54
  217. package/types/excalidraw/data/encryption.d.ts +9 -9
  218. package/types/excalidraw/data/filesystem.d.ts +20 -20
  219. package/types/excalidraw/data/image.d.ts +15 -15
  220. package/types/excalidraw/data/index.d.ts +22 -22
  221. package/types/excalidraw/data/json.d.ts +16 -16
  222. package/types/excalidraw/data/library.d.ts +106 -106
  223. package/types/excalidraw/data/magic.d.ts +23 -0
  224. package/types/excalidraw/data/reconcile.d.ts +6 -6
  225. package/types/excalidraw/data/resave.d.ts +5 -5
  226. package/types/excalidraw/data/restore.d.ts +21 -21
  227. package/types/excalidraw/data/transform.d.ts +81 -81
  228. package/types/excalidraw/data/types.d.ts +45 -45
  229. package/types/excalidraw/data/url.d.ts +8 -8
  230. package/types/excalidraw/deburr.d.ts +1 -1
  231. package/types/excalidraw/dist/excalidraw.development.d.ts +2 -2
  232. package/types/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  233. package/types/excalidraw/distribute.d.ts +6 -6
  234. package/types/excalidraw/element/ElementCanvasButtons.d.ts +7 -7
  235. package/types/excalidraw/element/binding.d.ts +99 -99
  236. package/types/excalidraw/element/bounds.d.ts +76 -76
  237. package/types/excalidraw/element/collision.d.ts +17 -17
  238. package/types/excalidraw/element/containerCache.d.ts +11 -11
  239. package/types/excalidraw/element/dragElements.d.ts +32 -32
  240. package/types/excalidraw/element/embeddable.d.ts +221 -221
  241. package/types/excalidraw/element/flowchart.d.ts +25 -25
  242. package/types/excalidraw/element/heading.d.ts +12 -12
  243. package/types/excalidraw/element/image.d.ts +32 -32
  244. package/types/excalidraw/element/index.d.ts +26 -26
  245. package/types/excalidraw/element/linearElementEditor.d.ts +128 -128
  246. package/types/excalidraw/element/mutateElement.d.ts +11 -11
  247. package/types/excalidraw/element/newElement.d.ts +105 -105
  248. package/types/excalidraw/element/resizeElements.d.ts +16 -16
  249. package/types/excalidraw/element/resizeTest.d.ts +15 -15
  250. package/types/excalidraw/element/routing.d.ts +12 -12
  251. package/types/excalidraw/element/showSelectedShapeActions.d.ts +3 -3
  252. package/types/excalidraw/element/sizeHelpers.d.ts +35 -35
  253. package/types/excalidraw/element/sortElements.d.ts +2 -2
  254. package/types/excalidraw/element/textElement.d.ts +70 -70
  255. package/types/excalidraw/element/textWysiwyg.d.ts +22 -22
  256. package/types/excalidraw/element/transformHandles.d.ts +55 -55
  257. package/types/excalidraw/element/typeChecks.d.ts +39 -39
  258. package/types/excalidraw/element/types.d.ts +253 -253
  259. package/types/excalidraw/emitter.d.ts +16 -16
  260. package/types/excalidraw/entry.d.ts +1 -1
  261. package/types/excalidraw/env.d.cts +1 -1
  262. package/types/excalidraw/env.d.ts +1 -1
  263. package/types/excalidraw/errors.d.ts +16 -16
  264. package/types/excalidraw/fonts/ExcalidrawFont.d.ts +37 -37
  265. package/types/excalidraw/fonts/index.d.ts +83 -83
  266. package/types/excalidraw/fonts/metadata.d.ts +35 -35
  267. package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +45 -45
  268. package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +5 -5
  269. package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +2 -2
  270. package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +31 -31
  271. package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +6 -6
  272. package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +2 -2
  273. package/types/excalidraw/fractionalIndex.d.ts +48 -48
  274. package/types/excalidraw/frame.d.ts +63 -63
  275. package/types/excalidraw/ga.d.ts +63 -63
  276. package/types/excalidraw/gadirections.d.ts +8 -8
  277. package/types/excalidraw/galines.d.ts +22 -22
  278. package/types/excalidraw/gapoints.d.ts +7 -7
  279. package/types/excalidraw/gatransforms.d.ts +10 -10
  280. package/types/excalidraw/gesture.d.ts +6 -6
  281. package/types/excalidraw/groups.d.ts +33 -33
  282. package/types/excalidraw/history.d.ts +40 -40
  283. package/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -1
  284. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -5
  285. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +7 -7
  286. package/types/excalidraw/hooks/useEmitter.d.ts +2 -2
  287. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -11
  288. package/types/excalidraw/hooks/useOutsideClick.d.ts +19 -19
  289. package/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  290. package/types/excalidraw/hooks/useStable.d.ts +1 -1
  291. package/types/excalidraw/hooks/useStableCallback.d.ts +4 -4
  292. package/types/excalidraw/hooks/useTransition.d.ts +2 -2
  293. package/types/excalidraw/i18n.d.ts +24 -24
  294. package/types/excalidraw/index-node.d.ts +1 -1
  295. package/types/excalidraw/index.d.ts +61 -61
  296. package/types/excalidraw/jotai.d.ts +34 -34
  297. package/types/excalidraw/keys.d.ts +82 -82
  298. package/types/excalidraw/laser-trails.d.ts +20 -20
  299. package/types/excalidraw/main.d.ts +2 -2
  300. package/types/excalidraw/math.d.ts +79 -79
  301. package/types/excalidraw/mermaid.d.ts +2 -2
  302. package/types/excalidraw/obsidianUtils.d.ts +18 -17
  303. package/types/excalidraw/points.d.ts +7 -7
  304. package/types/excalidraw/polyfill.d.ts +2 -2
  305. package/types/excalidraw/publicPath.d.ts +1 -1
  306. package/types/excalidraw/queue.d.ts +9 -9
  307. package/types/excalidraw/random.d.ts +4 -4
  308. package/types/excalidraw/reactUtils.d.ts +14 -14
  309. package/types/excalidraw/renderer/easingFunctions.d.ts +6 -6
  310. package/types/excalidraw/renderer/helpers.d.ts +13 -13
  311. package/types/excalidraw/renderer/interactiveScene.d.ts +20 -20
  312. package/types/excalidraw/renderer/renderElement.d.ts +27 -27
  313. package/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -7
  314. package/types/excalidraw/renderer/renderSnaps.d.ts +2 -2
  315. package/types/excalidraw/renderer/roundRect.d.ts +11 -11
  316. package/types/excalidraw/renderer/staticScene.d.ts +11 -11
  317. package/types/excalidraw/renderer/staticSvgScene.d.ts +5 -5
  318. package/types/excalidraw/scene/Fonts.d.ts +19 -0
  319. package/types/excalidraw/scene/Renderer.d.ts +28 -28
  320. package/types/excalidraw/scene/Scene.d.ts +78 -78
  321. package/types/excalidraw/scene/Shape.d.ts +17 -17
  322. package/types/excalidraw/scene/ShapeCache.d.ts +25 -25
  323. package/types/excalidraw/scene/comparisons.d.ts +487 -487
  324. package/types/excalidraw/scene/export.d.ts +29 -29
  325. package/types/excalidraw/scene/index.d.ts +4 -4
  326. package/types/excalidraw/scene/normalize.d.ts +4 -4
  327. package/types/excalidraw/scene/scroll.d.ts +23 -23
  328. package/types/excalidraw/scene/scrollbars.d.ts +12 -12
  329. package/types/excalidraw/scene/selection.d.ts +32 -32
  330. package/types/excalidraw/scene/types.d.ts +112 -112
  331. package/types/excalidraw/scene/zoom.d.ts +12 -12
  332. package/types/excalidraw/shapes.d.ts +85 -85
  333. package/types/excalidraw/snapping.d.ts +112 -112
  334. package/types/excalidraw/store.d.ts +129 -129
  335. package/types/excalidraw/types.d.ts +719 -719
  336. package/types/excalidraw/utility-types.d.ts +31 -31
  337. package/types/excalidraw/utils.d.ts +242 -242
  338. package/types/excalidraw/visualdebug.d.ts +35 -35
  339. package/types/excalidraw/webpack.dev.config.d.ts +81 -81
  340. package/types/excalidraw/webpack.prod.config.d.ts +97 -97
  341. package/types/excalidraw/zindex.d.ts +6 -6
  342. package/types/math/angle.d.ts +17 -17
  343. package/types/math/arc.d.ts +6 -6
  344. package/types/math/curve.d.ts +32 -32
  345. package/types/math/ga/ga.d.ts +63 -63
  346. package/types/math/ga/gadirections.d.ts +8 -8
  347. package/types/math/ga/galines.d.ts +22 -22
  348. package/types/math/ga/gapoints.d.ts +7 -7
  349. package/types/math/ga/gatransforms.d.ts +10 -10
  350. package/types/math/index.d.ts +12 -12
  351. package/types/math/line.d.ts +26 -26
  352. package/types/math/point.d.ts +140 -140
  353. package/types/math/polygon.d.ts +5 -5
  354. package/types/math/range.d.ts +44 -44
  355. package/types/math/segment.d.ts +32 -32
  356. package/types/math/triangle.d.ts +11 -11
  357. package/types/math/types.d.ts +96 -96
  358. package/types/math/utils.d.ts +6 -6
  359. package/types/math/vector.d.ts +88 -88
  360. package/types/utils/bbox.d.ts +9 -9
  361. package/types/utils/collision.d.ts +9 -9
  362. package/types/utils/export.d.ts +44 -44
  363. package/types/utils/geometry/geometry.d.ts +89 -89
  364. package/types/utils/geometry/shape.d.ts +71 -71
  365. package/types/utils/index.d.ts +4 -4
  366. package/types/utils/withinBounds.d.ts +19 -19
  367. package/types/excalidraw/components/SearchSidebar.d.ts +0 -1
@@ -1,1507 +1,1507 @@
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
- errorMessage: any;
1076
- contextMenu: {
1077
- items: import("../components/ContextMenu").ContextMenuItems;
1078
- top: number;
1079
- left: number;
1080
- } | null;
1081
- showWelcomeScreen: boolean;
1082
- isLoading: boolean;
1083
- activeEmbeddable: {
1084
- element: import("../element/types").NonDeletedExcalidrawElement;
1085
- state: "active" | "hover";
1086
- } | null;
1087
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1088
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1089
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1090
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1091
- isBindingEnabled: boolean;
1092
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1093
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1094
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1095
- frameRendering: {
1096
- enabled: boolean;
1097
- name: boolean;
1098
- outline: boolean;
1099
- clip: boolean;
1100
- };
1101
- editingFrame: string | null;
1102
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1103
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1104
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1105
- activeTool: {
1106
- lastActiveTool: import("../types").ActiveTool | null;
1107
- locked: boolean;
1108
- } & import("../types").ActiveTool;
1109
- penMode: boolean;
1110
- penDetected: boolean;
1111
- exportBackground: boolean;
1112
- exportEmbedScene: boolean;
1113
- exportWithDarkMode: boolean;
1114
- exportScale: number;
1115
- currentItemStrokeColor: string;
1116
- currentItemBackgroundColor: string;
1117
- currentItemFillStyle: import("../element/types").FillStyle;
1118
- currentItemStrokeWidth: number;
1119
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1120
- currentItemRoughness: number;
1121
- currentItemOpacity: number;
1122
- currentItemFontFamily: number;
1123
- currentItemFontSize: number;
1124
- currentItemTextAlign: string;
1125
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1126
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1127
- currentHoveredFontFamily: number | null;
1128
- currentItemRoundness: import("../element/types").StrokeRoundness;
1129
- currentItemArrowType: "round" | "sharp" | "elbow";
1130
- viewBackgroundColor: string;
1131
- scrollX: number;
1132
- scrollY: number;
1133
- cursorButton: "up" | "down";
1134
- scrolledOutside: boolean;
1135
- name: string | null;
1136
- isResizing: boolean;
1137
- isRotating: boolean;
1138
- zoom: Readonly<{
1139
- value: import("../types").NormalizedZoomValue;
1140
- }>;
1141
- openMenu: "canvas" | "shape" | null;
1142
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1143
- openSidebar: {
1144
- name: string;
1145
- tab?: string | undefined;
1146
- } | null;
1147
- openDialog: {
1148
- name: "imageExport" | "help" | "jsonExport";
1149
- } | {
1150
- name: "ttd";
1151
- tab: "mermaid" | "text-to-diagram";
1152
- } | {
1153
- name: "commandPalette";
1154
- } | null;
1155
- defaultSidebarDockedPreference: boolean;
1156
- lastPointerDownWith: import("../element/types").PointerType;
1157
- selectedElementIds: Readonly<{
1158
- [id: string]: true;
1159
- }>;
1160
- previousSelectedElementIds: {
1161
- [id: string]: true;
1162
- };
1163
- selectedElementsAreBeingDragged: boolean;
1164
- shouldCacheIgnoreZoom: boolean;
1165
- toast: {
1166
- message: string;
1167
- closable?: boolean | undefined;
1168
- duration?: number | undefined;
1169
- } | null;
1170
- zenModeEnabled: boolean;
1171
- theme: import("../element/types").Theme;
1172
- gridSize: number;
1173
- gridStep: number;
1174
- gridModeEnabled: boolean;
1175
- viewModeEnabled: boolean;
1176
- selectedGroupIds: {
1177
- [groupId: string]: boolean;
1178
- };
1179
- editingGroupId: string | null;
1180
- width: number;
1181
- height: number;
1182
- offsetTop: number;
1183
- offsetLeft: number;
1184
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1185
- collaborators: Map<import("../types").SocketId, Readonly<{
1186
- pointer?: import("../types").CollaboratorPointer | undefined;
1187
- button?: "up" | "down" | undefined;
1188
- selectedElementIds?: Readonly<{
1189
- [id: string]: true;
1190
- }> | undefined;
1191
- username?: string | null | undefined;
1192
- userState?: import("../types").UserIdleState | undefined;
1193
- color?: {
1194
- background: string;
1195
- stroke: string;
1196
- } | undefined;
1197
- avatarUrl?: string | undefined;
1198
- id?: string | undefined;
1199
- socketId?: import("../types").SocketId | undefined;
1200
- isCurrentUser?: boolean | undefined;
1201
- isInCall?: boolean | undefined;
1202
- isSpeaking?: boolean | undefined;
1203
- isMuted?: boolean | undefined;
1204
- }>>;
1205
- stats: {
1206
- open: boolean;
1207
- panels: number;
1208
- };
1209
- currentChartType: import("../element/types").ChartType;
1210
- pasteDialog: {
1211
- shown: false;
1212
- data: null;
1213
- } | {
1214
- shown: true;
1215
- data: import("../charts").Spreadsheet;
1216
- };
1217
- pendingImageElementId: string | null;
1218
- showHyperlinkPopup: false | "info" | "editor";
1219
- linkOpacity: number;
1220
- trayModeEnabled: boolean;
1221
- colorPalette?: {
1222
- canvasBackground: import("../colors").ColorPaletteCustom;
1223
- elementBackground: import("../colors").ColorPaletteCustom;
1224
- elementStroke: import("../colors").ColorPaletteCustom;
1225
- topPicks: {
1226
- canvasBackground: [string, string, string, string, string];
1227
- elementStroke: [string, string, string, string, string];
1228
- elementBackground: [string, string, string, string, string];
1229
- };
1230
- } | undefined;
1231
- allowWheelZoom?: boolean | undefined;
1232
- allowPinchZoom?: boolean | undefined;
1233
- pinnedScripts?: string[] | undefined;
1234
- customPens?: any[] | undefined;
1235
- currentStrokeOptions?: any;
1236
- resetCustomPen?: any;
1237
- gridColor: {
1238
- Bold: string;
1239
- Regular: string;
1240
- };
1241
- highlightSearchResult: boolean;
1242
- dynamicStyle: {
1243
- [x: string]: string;
1244
- };
1245
- frameColor: {
1246
- stroke: string;
1247
- fill: string;
1248
- nameColor: string;
1249
- };
1250
- invertBindingBehaviour: boolean;
1251
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1252
- snapLines: readonly import("../snapping").SnapLine[];
1253
- originSnapOffset: {
1254
- x: number;
1255
- y: number;
1256
- } | null;
1257
- objectsSnapModeEnabled: boolean;
1258
- userToFollow: import("../types").UserToFollow | null;
1259
- followedBy: Set<import("../types").SocketId>;
1260
- searchMatches: readonly {
1261
- id: string;
1262
- focus: boolean;
1263
- matchedLines: {
1264
- offsetX: number;
1265
- offsetY: number;
1266
- width: number;
1267
- height: number;
1268
- }[];
1269
- }[];
1270
- };
1271
- storeAction: "none";
1272
- }>;
1273
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1274
- keywords: string[];
1275
- } & {
1276
- keyTest?: undefined;
1277
- };
1278
- export declare const actionCopyAsPng: {
1279
- name: "copyAsPng";
1280
- label: string;
1281
- icon: JSX.Element;
1282
- trackEvent: {
1283
- category: "element";
1284
- };
1285
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
1286
- storeAction: "none";
1287
- appState?: undefined;
1288
- } | {
1289
- appState: {
1290
- errorMessage: any;
1291
- contextMenu: {
1292
- items: import("../components/ContextMenu").ContextMenuItems;
1293
- top: number;
1294
- left: number;
1295
- } | null;
1296
- showWelcomeScreen: boolean;
1297
- isLoading: boolean;
1298
- activeEmbeddable: {
1299
- element: import("../element/types").NonDeletedExcalidrawElement;
1300
- state: "active" | "hover";
1301
- } | null;
1302
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1303
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1304
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1305
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1306
- isBindingEnabled: boolean;
1307
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1308
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1309
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1310
- frameRendering: {
1311
- enabled: boolean;
1312
- name: boolean;
1313
- outline: boolean;
1314
- clip: boolean;
1315
- };
1316
- editingFrame: string | null;
1317
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1318
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1319
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1320
- activeTool: {
1321
- lastActiveTool: import("../types").ActiveTool | null;
1322
- locked: boolean;
1323
- } & import("../types").ActiveTool;
1324
- penMode: boolean;
1325
- penDetected: boolean;
1326
- exportBackground: boolean;
1327
- exportEmbedScene: boolean;
1328
- exportWithDarkMode: boolean;
1329
- exportScale: number;
1330
- currentItemStrokeColor: string;
1331
- currentItemBackgroundColor: string;
1332
- currentItemFillStyle: import("../element/types").FillStyle;
1333
- currentItemStrokeWidth: number;
1334
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1335
- currentItemRoughness: number;
1336
- currentItemOpacity: number;
1337
- currentItemFontFamily: number;
1338
- currentItemFontSize: number;
1339
- currentItemTextAlign: string;
1340
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1341
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1342
- currentHoveredFontFamily: number | null;
1343
- currentItemRoundness: import("../element/types").StrokeRoundness;
1344
- currentItemArrowType: "round" | "sharp" | "elbow";
1345
- viewBackgroundColor: string;
1346
- scrollX: number;
1347
- scrollY: number;
1348
- cursorButton: "up" | "down";
1349
- scrolledOutside: boolean;
1350
- name: string | null;
1351
- isResizing: boolean;
1352
- isRotating: boolean;
1353
- zoom: Readonly<{
1354
- value: import("../types").NormalizedZoomValue;
1355
- }>;
1356
- openMenu: "canvas" | "shape" | null;
1357
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1358
- openSidebar: {
1359
- name: string;
1360
- tab?: string | undefined;
1361
- } | null;
1362
- openDialog: {
1363
- name: "imageExport" | "help" | "jsonExport";
1364
- } | {
1365
- name: "ttd";
1366
- tab: "mermaid" | "text-to-diagram";
1367
- } | {
1368
- name: "commandPalette";
1369
- } | null;
1370
- defaultSidebarDockedPreference: boolean;
1371
- lastPointerDownWith: import("../element/types").PointerType;
1372
- selectedElementIds: Readonly<{
1373
- [id: string]: true;
1374
- }>;
1375
- previousSelectedElementIds: {
1376
- [id: string]: true;
1377
- };
1378
- selectedElementsAreBeingDragged: boolean;
1379
- shouldCacheIgnoreZoom: boolean;
1380
- toast: {
1381
- message: string;
1382
- closable?: boolean | undefined;
1383
- duration?: number | undefined;
1384
- } | null;
1385
- zenModeEnabled: boolean;
1386
- theme: import("../element/types").Theme;
1387
- gridSize: number;
1388
- gridStep: number;
1389
- gridModeEnabled: boolean;
1390
- viewModeEnabled: boolean;
1391
- selectedGroupIds: {
1392
- [groupId: string]: boolean;
1393
- };
1394
- editingGroupId: string | null;
1395
- width: number;
1396
- height: number;
1397
- offsetTop: number;
1398
- offsetLeft: number;
1399
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1400
- collaborators: Map<import("../types").SocketId, Readonly<{
1401
- pointer?: import("../types").CollaboratorPointer | undefined;
1402
- button?: "up" | "down" | undefined;
1403
- selectedElementIds?: Readonly<{
1404
- [id: string]: true;
1405
- }> | undefined;
1406
- username?: string | null | undefined;
1407
- userState?: import("../types").UserIdleState | undefined;
1408
- color?: {
1409
- background: string;
1410
- stroke: string;
1411
- } | undefined;
1412
- avatarUrl?: string | undefined;
1413
- id?: string | undefined;
1414
- socketId?: import("../types").SocketId | undefined;
1415
- isCurrentUser?: boolean | undefined;
1416
- isInCall?: boolean | undefined;
1417
- isSpeaking?: boolean | undefined;
1418
- isMuted?: boolean | undefined;
1419
- }>>;
1420
- stats: {
1421
- open: boolean;
1422
- panels: number;
1423
- };
1424
- currentChartType: import("../element/types").ChartType;
1425
- pasteDialog: {
1426
- shown: false;
1427
- data: null;
1428
- } | {
1429
- shown: true;
1430
- data: import("../charts").Spreadsheet;
1431
- };
1432
- pendingImageElementId: string | null;
1433
- showHyperlinkPopup: false | "info" | "editor";
1434
- linkOpacity: number;
1435
- trayModeEnabled: boolean;
1436
- colorPalette?: {
1437
- canvasBackground: import("../colors").ColorPaletteCustom;
1438
- elementBackground: import("../colors").ColorPaletteCustom;
1439
- elementStroke: import("../colors").ColorPaletteCustom;
1440
- topPicks: {
1441
- canvasBackground: [string, string, string, string, string];
1442
- elementStroke: [string, string, string, string, string];
1443
- elementBackground: [string, string, string, string, string];
1444
- };
1445
- } | undefined;
1446
- allowWheelZoom?: boolean | undefined;
1447
- allowPinchZoom?: boolean | undefined;
1448
- pinnedScripts?: string[] | undefined;
1449
- customPens?: any[] | undefined;
1450
- currentStrokeOptions?: any;
1451
- resetCustomPen?: any;
1452
- gridColor: {
1453
- Bold: string;
1454
- Regular: string;
1455
- };
1456
- highlightSearchResult: boolean;
1457
- dynamicStyle: {
1458
- [x: string]: string;
1459
- };
1460
- frameColor: {
1461
- stroke: string;
1462
- fill: string;
1463
- nameColor: string;
1464
- };
1465
- invertBindingBehaviour: boolean;
1466
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1467
- snapLines: readonly import("../snapping").SnapLine[];
1468
- originSnapOffset: {
1469
- x: number;
1470
- y: number;
1471
- } | null;
1472
- objectsSnapModeEnabled: boolean;
1473
- userToFollow: import("../types").UserToFollow | null;
1474
- followedBy: Set<import("../types").SocketId>;
1475
- searchMatches: readonly {
1476
- id: string;
1477
- focus: boolean;
1478
- matchedLines: {
1479
- offsetX: number;
1480
- offsetY: number;
1481
- width: number;
1482
- height: number;
1483
- }[];
1484
- }[];
1485
- };
1486
- storeAction: "none";
1487
- }>;
1488
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1489
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1490
- keywords: string[];
1491
- } & {
1492
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1493
- };
1494
- export declare const copyText: {
1495
- name: "copyText";
1496
- label: string;
1497
- trackEvent: {
1498
- category: "element";
1499
- };
1500
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1501
- storeAction: "none";
1502
- };
1503
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1504
- keywords: string[];
1505
- } & {
1506
- keyTest?: undefined;
1507
- };
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
+ errorMessage: any;
1076
+ contextMenu: {
1077
+ items: import("../components/ContextMenu").ContextMenuItems;
1078
+ top: number;
1079
+ left: number;
1080
+ } | null;
1081
+ showWelcomeScreen: boolean;
1082
+ isLoading: boolean;
1083
+ activeEmbeddable: {
1084
+ element: import("../element/types").NonDeletedExcalidrawElement;
1085
+ state: "active" | "hover";
1086
+ } | null;
1087
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1088
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1089
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1090
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1091
+ isBindingEnabled: boolean;
1092
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1093
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1094
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1095
+ frameRendering: {
1096
+ enabled: boolean;
1097
+ name: boolean;
1098
+ outline: boolean;
1099
+ clip: boolean;
1100
+ };
1101
+ editingFrame: string | null;
1102
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1103
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1104
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1105
+ activeTool: {
1106
+ lastActiveTool: import("../types").ActiveTool | null;
1107
+ locked: boolean;
1108
+ } & import("../types").ActiveTool;
1109
+ penMode: boolean;
1110
+ penDetected: boolean;
1111
+ exportBackground: boolean;
1112
+ exportEmbedScene: boolean;
1113
+ exportWithDarkMode: boolean;
1114
+ exportScale: number;
1115
+ currentItemStrokeColor: string;
1116
+ currentItemBackgroundColor: string;
1117
+ currentItemFillStyle: import("../element/types").FillStyle;
1118
+ currentItemStrokeWidth: number;
1119
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1120
+ currentItemRoughness: number;
1121
+ currentItemOpacity: number;
1122
+ currentItemFontFamily: number;
1123
+ currentItemFontSize: number;
1124
+ currentItemTextAlign: string;
1125
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1126
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1127
+ currentHoveredFontFamily: number | null;
1128
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1129
+ currentItemArrowType: "round" | "sharp" | "elbow";
1130
+ viewBackgroundColor: string;
1131
+ scrollX: number;
1132
+ scrollY: number;
1133
+ cursorButton: "up" | "down";
1134
+ scrolledOutside: boolean;
1135
+ name: string | null;
1136
+ isResizing: boolean;
1137
+ isRotating: boolean;
1138
+ zoom: Readonly<{
1139
+ value: import("../types").NormalizedZoomValue;
1140
+ }>;
1141
+ openMenu: "canvas" | "shape" | null;
1142
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1143
+ openSidebar: {
1144
+ name: string;
1145
+ tab?: string | undefined;
1146
+ } | null;
1147
+ openDialog: {
1148
+ name: "imageExport" | "help" | "jsonExport";
1149
+ } | {
1150
+ name: "ttd";
1151
+ tab: "mermaid" | "text-to-diagram";
1152
+ } | {
1153
+ name: "commandPalette";
1154
+ } | null;
1155
+ defaultSidebarDockedPreference: boolean;
1156
+ lastPointerDownWith: import("../element/types").PointerType;
1157
+ selectedElementIds: Readonly<{
1158
+ [id: string]: true;
1159
+ }>;
1160
+ previousSelectedElementIds: {
1161
+ [id: string]: true;
1162
+ };
1163
+ selectedElementsAreBeingDragged: boolean;
1164
+ shouldCacheIgnoreZoom: boolean;
1165
+ toast: {
1166
+ message: string;
1167
+ closable?: boolean | undefined;
1168
+ duration?: number | undefined;
1169
+ } | null;
1170
+ zenModeEnabled: boolean;
1171
+ theme: import("../element/types").Theme;
1172
+ gridSize: number;
1173
+ gridStep: number;
1174
+ gridModeEnabled: boolean;
1175
+ viewModeEnabled: boolean;
1176
+ selectedGroupIds: {
1177
+ [groupId: string]: boolean;
1178
+ };
1179
+ editingGroupId: string | null;
1180
+ width: number;
1181
+ height: number;
1182
+ offsetTop: number;
1183
+ offsetLeft: number;
1184
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1185
+ collaborators: Map<import("../types").SocketId, Readonly<{
1186
+ pointer?: import("../types").CollaboratorPointer | undefined;
1187
+ button?: "up" | "down" | undefined;
1188
+ selectedElementIds?: Readonly<{
1189
+ [id: string]: true;
1190
+ }> | undefined;
1191
+ username?: string | null | undefined;
1192
+ userState?: import("../types").UserIdleState | undefined;
1193
+ color?: {
1194
+ background: string;
1195
+ stroke: string;
1196
+ } | undefined;
1197
+ avatarUrl?: string | undefined;
1198
+ id?: string | undefined;
1199
+ socketId?: import("../types").SocketId | undefined;
1200
+ isCurrentUser?: boolean | undefined;
1201
+ isInCall?: boolean | undefined;
1202
+ isSpeaking?: boolean | undefined;
1203
+ isMuted?: boolean | undefined;
1204
+ }>>;
1205
+ stats: {
1206
+ open: boolean;
1207
+ panels: number;
1208
+ };
1209
+ currentChartType: import("../element/types").ChartType;
1210
+ pasteDialog: {
1211
+ shown: false;
1212
+ data: null;
1213
+ } | {
1214
+ shown: true;
1215
+ data: import("../charts").Spreadsheet;
1216
+ };
1217
+ pendingImageElementId: string | null;
1218
+ showHyperlinkPopup: false | "info" | "editor";
1219
+ linkOpacity: number;
1220
+ trayModeEnabled: boolean;
1221
+ colorPalette?: {
1222
+ canvasBackground: import("../colors").ColorPaletteCustom;
1223
+ elementBackground: import("../colors").ColorPaletteCustom;
1224
+ elementStroke: import("../colors").ColorPaletteCustom;
1225
+ topPicks: {
1226
+ canvasBackground: [string, string, string, string, string];
1227
+ elementStroke: [string, string, string, string, string];
1228
+ elementBackground: [string, string, string, string, string];
1229
+ };
1230
+ } | undefined;
1231
+ allowWheelZoom?: boolean | undefined;
1232
+ allowPinchZoom?: boolean | undefined;
1233
+ pinnedScripts?: string[] | undefined;
1234
+ customPens?: any[] | undefined;
1235
+ currentStrokeOptions?: any;
1236
+ resetCustomPen?: any;
1237
+ gridColor: {
1238
+ Bold: string;
1239
+ Regular: string;
1240
+ };
1241
+ highlightSearchResult: boolean;
1242
+ dynamicStyle: {
1243
+ [x: string]: string;
1244
+ };
1245
+ frameColor: {
1246
+ stroke: string;
1247
+ fill: string;
1248
+ nameColor: string;
1249
+ };
1250
+ invertBindingBehaviour: boolean;
1251
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1252
+ snapLines: readonly import("../snapping").SnapLine[];
1253
+ originSnapOffset: {
1254
+ x: number;
1255
+ y: number;
1256
+ } | null;
1257
+ objectsSnapModeEnabled: boolean;
1258
+ userToFollow: import("../types").UserToFollow | null;
1259
+ followedBy: Set<import("../types").SocketId>;
1260
+ searchMatches: readonly {
1261
+ id: string;
1262
+ focus: boolean;
1263
+ matchedLines: {
1264
+ offsetX: number;
1265
+ offsetY: number;
1266
+ width: number;
1267
+ height: number;
1268
+ }[];
1269
+ }[];
1270
+ };
1271
+ storeAction: "none";
1272
+ }>;
1273
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1274
+ keywords: string[];
1275
+ } & {
1276
+ keyTest?: undefined;
1277
+ };
1278
+ export declare const actionCopyAsPng: {
1279
+ name: "copyAsPng";
1280
+ label: string;
1281
+ icon: JSX.Element;
1282
+ trackEvent: {
1283
+ category: "element";
1284
+ };
1285
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
1286
+ storeAction: "none";
1287
+ appState?: undefined;
1288
+ } | {
1289
+ appState: {
1290
+ errorMessage: any;
1291
+ contextMenu: {
1292
+ items: import("../components/ContextMenu").ContextMenuItems;
1293
+ top: number;
1294
+ left: number;
1295
+ } | null;
1296
+ showWelcomeScreen: boolean;
1297
+ isLoading: boolean;
1298
+ activeEmbeddable: {
1299
+ element: import("../element/types").NonDeletedExcalidrawElement;
1300
+ state: "active" | "hover";
1301
+ } | null;
1302
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1303
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1304
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1305
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1306
+ isBindingEnabled: boolean;
1307
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1308
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1309
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1310
+ frameRendering: {
1311
+ enabled: boolean;
1312
+ name: boolean;
1313
+ outline: boolean;
1314
+ clip: boolean;
1315
+ };
1316
+ editingFrame: string | null;
1317
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1318
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1319
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1320
+ activeTool: {
1321
+ lastActiveTool: import("../types").ActiveTool | null;
1322
+ locked: boolean;
1323
+ } & import("../types").ActiveTool;
1324
+ penMode: boolean;
1325
+ penDetected: boolean;
1326
+ exportBackground: boolean;
1327
+ exportEmbedScene: boolean;
1328
+ exportWithDarkMode: boolean;
1329
+ exportScale: number;
1330
+ currentItemStrokeColor: string;
1331
+ currentItemBackgroundColor: string;
1332
+ currentItemFillStyle: import("../element/types").FillStyle;
1333
+ currentItemStrokeWidth: number;
1334
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1335
+ currentItemRoughness: number;
1336
+ currentItemOpacity: number;
1337
+ currentItemFontFamily: number;
1338
+ currentItemFontSize: number;
1339
+ currentItemTextAlign: string;
1340
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1341
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1342
+ currentHoveredFontFamily: number | null;
1343
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1344
+ currentItemArrowType: "round" | "sharp" | "elbow";
1345
+ viewBackgroundColor: string;
1346
+ scrollX: number;
1347
+ scrollY: number;
1348
+ cursorButton: "up" | "down";
1349
+ scrolledOutside: boolean;
1350
+ name: string | null;
1351
+ isResizing: boolean;
1352
+ isRotating: boolean;
1353
+ zoom: Readonly<{
1354
+ value: import("../types").NormalizedZoomValue;
1355
+ }>;
1356
+ openMenu: "canvas" | "shape" | null;
1357
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1358
+ openSidebar: {
1359
+ name: string;
1360
+ tab?: string | undefined;
1361
+ } | null;
1362
+ openDialog: {
1363
+ name: "imageExport" | "help" | "jsonExport";
1364
+ } | {
1365
+ name: "ttd";
1366
+ tab: "mermaid" | "text-to-diagram";
1367
+ } | {
1368
+ name: "commandPalette";
1369
+ } | null;
1370
+ defaultSidebarDockedPreference: boolean;
1371
+ lastPointerDownWith: import("../element/types").PointerType;
1372
+ selectedElementIds: Readonly<{
1373
+ [id: string]: true;
1374
+ }>;
1375
+ previousSelectedElementIds: {
1376
+ [id: string]: true;
1377
+ };
1378
+ selectedElementsAreBeingDragged: boolean;
1379
+ shouldCacheIgnoreZoom: boolean;
1380
+ toast: {
1381
+ message: string;
1382
+ closable?: boolean | undefined;
1383
+ duration?: number | undefined;
1384
+ } | null;
1385
+ zenModeEnabled: boolean;
1386
+ theme: import("../element/types").Theme;
1387
+ gridSize: number;
1388
+ gridStep: number;
1389
+ gridModeEnabled: boolean;
1390
+ viewModeEnabled: boolean;
1391
+ selectedGroupIds: {
1392
+ [groupId: string]: boolean;
1393
+ };
1394
+ editingGroupId: string | null;
1395
+ width: number;
1396
+ height: number;
1397
+ offsetTop: number;
1398
+ offsetLeft: number;
1399
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1400
+ collaborators: Map<import("../types").SocketId, Readonly<{
1401
+ pointer?: import("../types").CollaboratorPointer | undefined;
1402
+ button?: "up" | "down" | undefined;
1403
+ selectedElementIds?: Readonly<{
1404
+ [id: string]: true;
1405
+ }> | undefined;
1406
+ username?: string | null | undefined;
1407
+ userState?: import("../types").UserIdleState | undefined;
1408
+ color?: {
1409
+ background: string;
1410
+ stroke: string;
1411
+ } | undefined;
1412
+ avatarUrl?: string | undefined;
1413
+ id?: string | undefined;
1414
+ socketId?: import("../types").SocketId | undefined;
1415
+ isCurrentUser?: boolean | undefined;
1416
+ isInCall?: boolean | undefined;
1417
+ isSpeaking?: boolean | undefined;
1418
+ isMuted?: boolean | undefined;
1419
+ }>>;
1420
+ stats: {
1421
+ open: boolean;
1422
+ panels: number;
1423
+ };
1424
+ currentChartType: import("../element/types").ChartType;
1425
+ pasteDialog: {
1426
+ shown: false;
1427
+ data: null;
1428
+ } | {
1429
+ shown: true;
1430
+ data: import("../charts").Spreadsheet;
1431
+ };
1432
+ pendingImageElementId: string | null;
1433
+ showHyperlinkPopup: false | "info" | "editor";
1434
+ linkOpacity: number;
1435
+ trayModeEnabled: boolean;
1436
+ colorPalette?: {
1437
+ canvasBackground: import("../colors").ColorPaletteCustom;
1438
+ elementBackground: import("../colors").ColorPaletteCustom;
1439
+ elementStroke: import("../colors").ColorPaletteCustom;
1440
+ topPicks: {
1441
+ canvasBackground: [string, string, string, string, string];
1442
+ elementStroke: [string, string, string, string, string];
1443
+ elementBackground: [string, string, string, string, string];
1444
+ };
1445
+ } | undefined;
1446
+ allowWheelZoom?: boolean | undefined;
1447
+ allowPinchZoom?: boolean | undefined;
1448
+ pinnedScripts?: string[] | undefined;
1449
+ customPens?: any[] | undefined;
1450
+ currentStrokeOptions?: any;
1451
+ resetCustomPen?: any;
1452
+ gridColor: {
1453
+ Bold: string;
1454
+ Regular: string;
1455
+ };
1456
+ highlightSearchResult: boolean;
1457
+ dynamicStyle: {
1458
+ [x: string]: string;
1459
+ };
1460
+ frameColor: {
1461
+ stroke: string;
1462
+ fill: string;
1463
+ nameColor: string;
1464
+ };
1465
+ invertBindingBehaviour: boolean;
1466
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1467
+ snapLines: readonly import("../snapping").SnapLine[];
1468
+ originSnapOffset: {
1469
+ x: number;
1470
+ y: number;
1471
+ } | null;
1472
+ objectsSnapModeEnabled: boolean;
1473
+ userToFollow: import("../types").UserToFollow | null;
1474
+ followedBy: Set<import("../types").SocketId>;
1475
+ searchMatches: readonly {
1476
+ id: string;
1477
+ focus: boolean;
1478
+ matchedLines: {
1479
+ offsetX: number;
1480
+ offsetY: number;
1481
+ width: number;
1482
+ height: number;
1483
+ }[];
1484
+ }[];
1485
+ };
1486
+ storeAction: "none";
1487
+ }>;
1488
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1489
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1490
+ keywords: string[];
1491
+ } & {
1492
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1493
+ };
1494
+ export declare const copyText: {
1495
+ name: "copyText";
1496
+ label: string;
1497
+ trackEvent: {
1498
+ category: "element";
1499
+ };
1500
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1501
+ storeAction: "none";
1502
+ };
1503
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1504
+ keywords: string[];
1505
+ } & {
1506
+ keyTest?: undefined;
1507
+ };