@zsviczian/excalidraw 0.17.6-12 → 0.17.6-13

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 (412) hide show
  1. package/dist/excalidraw.development.js +92 -92
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/excalidraw/actions/actionAddToLibrary.d.ts +611 -611
  5. package/types/excalidraw/actions/actionAlign.d.ts +108 -108
  6. package/types/excalidraw/actions/actionBoundText.d.ts +444 -444
  7. package/types/excalidraw/actions/actionCanvas.d.ts +2986 -2986
  8. package/types/excalidraw/actions/actionClipboard.d.ts +1334 -1334
  9. package/types/excalidraw/actions/actionCropEditor.d.ts +216 -216
  10. package/types/excalidraw/actions/actionDeleteSelected.d.ts +646 -646
  11. package/types/excalidraw/actions/actionDistribute.d.ts +34 -34
  12. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +21 -21
  13. package/types/excalidraw/actions/actionElementLock.d.ts +432 -432
  14. package/types/excalidraw/actions/actionExport.d.ts +1902 -1902
  15. package/types/excalidraw/actions/actionFinalize.d.ts +413 -413
  16. package/types/excalidraw/actions/actionFlip.d.ts +34 -34
  17. package/types/excalidraw/actions/actionFrame.d.ts +863 -863
  18. package/types/excalidraw/actions/actionGroup.d.ts +442 -442
  19. package/types/excalidraw/actions/actionHistory.d.ts +7 -7
  20. package/types/excalidraw/actions/actionLinearEditor.d.ts +217 -217
  21. package/types/excalidraw/actions/actionLink.d.ts +217 -217
  22. package/types/excalidraw/actions/actionMenu.d.ts +634 -634
  23. package/types/excalidraw/actions/actionNavigate.d.ts +418 -418
  24. package/types/excalidraw/actions/actionProperties.d.ts +3186 -3186
  25. package/types/excalidraw/actions/actionSelectAll.d.ts +216 -216
  26. package/types/excalidraw/actions/actionStyles.d.ts +230 -230
  27. package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
  28. package/types/excalidraw/actions/actionToggleGridMode.d.ts +219 -219
  29. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +217 -217
  30. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +411 -411
  31. package/types/excalidraw/actions/actionToggleStats.d.ts +217 -217
  32. package/types/excalidraw/actions/actionToggleViewMode.d.ts +218 -218
  33. package/types/excalidraw/actions/actionToggleZenMode.d.ts +218 -218
  34. package/types/excalidraw/actions/actionZindex.d.ts +74 -74
  35. package/types/excalidraw/actions/index.d.ts +27 -27
  36. package/types/excalidraw/actions/manager.d.ts +21 -21
  37. package/types/excalidraw/actions/register.d.ts +5 -5
  38. package/types/excalidraw/actions/shortcuts.d.ts +4 -4
  39. package/types/excalidraw/actions/types.d.ts +46 -46
  40. package/types/excalidraw/align.d.ts +6 -6
  41. package/types/excalidraw/analytics.d.ts +1 -1
  42. package/types/excalidraw/animated-trail.d.ts +33 -33
  43. package/types/excalidraw/animation-frame-handler.d.ts +16 -16
  44. package/types/excalidraw/appState.d.ts +89 -89
  45. package/types/excalidraw/binaryheap.d.ts +12 -12
  46. package/types/excalidraw/change.d.ts +191 -191
  47. package/types/excalidraw/charts.d.ts +27 -27
  48. package/types/excalidraw/clients.d.ts +14 -14
  49. package/types/excalidraw/clipboard.d.ts +44 -44
  50. package/types/excalidraw/colors.d.ts +61 -61
  51. package/types/excalidraw/components/Actions.d.ts +34 -34
  52. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -4
  53. package/types/excalidraw/components/App.d.ts +546 -546
  54. package/types/excalidraw/components/Avatar.d.ts +11 -11
  55. package/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -2
  56. package/types/excalidraw/components/Button.d.ts +17 -17
  57. package/types/excalidraw/components/ButtonIcon.d.ts +14 -14
  58. package/types/excalidraw/components/ButtonIconCycle.d.ts +10 -10
  59. package/types/excalidraw/components/ButtonIconSelect.d.ts +19 -19
  60. package/types/excalidraw/components/ButtonSelect.d.ts +9 -9
  61. package/types/excalidraw/components/ButtonSeparator.d.ts +1 -1
  62. package/types/excalidraw/components/Card.d.ts +6 -6
  63. package/types/excalidraw/components/CheckboxItem.d.ts +8 -8
  64. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +9 -9
  65. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +19 -19
  66. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -8
  67. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +8 -8
  68. package/types/excalidraw/components/ColorPicker/Picker.d.ts +18 -18
  69. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -10
  70. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -5
  71. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +8 -8
  72. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -9
  73. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  74. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
  75. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -18
  76. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -2
  77. package/types/excalidraw/components/CommandPalette/types.d.ts +25 -25
  78. package/types/excalidraw/components/ConfirmDialog.d.ts +10 -10
  79. package/types/excalidraw/components/ContextMenu.d.ts +16 -16
  80. package/types/excalidraw/components/DarkModeToggle.d.ts +7 -7
  81. package/types/excalidraw/components/DefaultSidebar.d.ts +30 -30
  82. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -4
  83. package/types/excalidraw/components/Dialog.d.ts +13 -13
  84. package/types/excalidraw/components/DialogActionButton.d.ts +10 -10
  85. package/types/excalidraw/components/ErrorDialog.d.ts +5 -5
  86. package/types/excalidraw/components/ExcalidrawLogo.d.ts +15 -15
  87. package/types/excalidraw/components/EyeDropper.d.ts +27 -27
  88. package/types/excalidraw/components/FilledButton.d.ts +18 -18
  89. package/types/excalidraw/components/FixedSideContainer.d.ts +9 -9
  90. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -10
  91. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +21 -21
  92. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +25 -25
  93. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +6 -6
  94. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -13
  95. package/types/excalidraw/components/HandButton.d.ts +10 -10
  96. package/types/excalidraw/components/HelpButton.d.ts +7 -7
  97. package/types/excalidraw/components/HelpDialog.d.ts +4 -4
  98. package/types/excalidraw/components/HintViewer.d.ts +10 -10
  99. package/types/excalidraw/components/IconPicker.d.ts +14 -14
  100. package/types/excalidraw/components/ImageExportDialog.d.ts +14 -14
  101. package/types/excalidraw/components/InitializeApp.d.ts +10 -10
  102. package/types/excalidraw/components/InlineIcon.d.ts +3 -3
  103. package/types/excalidraw/components/Island.d.ts +10 -10
  104. package/types/excalidraw/components/JSONExportDialog.d.ts +15 -15
  105. package/types/excalidraw/components/LaserPointerButton.d.ts +10 -10
  106. package/types/excalidraw/components/LayerUI.d.ts +30 -30
  107. package/types/excalidraw/components/LibraryMenu.d.ts +24 -24
  108. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -7
  109. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -9
  110. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -17
  111. package/types/excalidraw/components/LibraryMenuItems.d.ts +14 -14
  112. package/types/excalidraw/components/LibraryMenuSection.d.ts +23 -23
  113. package/types/excalidraw/components/LibraryUnit.d.ts +14 -14
  114. package/types/excalidraw/components/LoadingMessage.d.ts +5 -5
  115. package/types/excalidraw/components/LockButton.d.ts +10 -10
  116. package/types/excalidraw/components/MagicButton.d.ts +9 -9
  117. package/types/excalidraw/components/MagicSettings.d.ts +8 -0
  118. package/types/excalidraw/components/MobileMenu.d.ts +24 -24
  119. package/types/excalidraw/components/Modal.d.ts +14 -14
  120. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  121. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  122. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  123. package/types/excalidraw/components/Paragraph.d.ts +4 -4
  124. package/types/excalidraw/components/PasteChartDialog.d.ts +8 -8
  125. package/types/excalidraw/components/PenModeButton.d.ts +12 -12
  126. package/types/excalidraw/components/Popover.d.ts +15 -15
  127. package/types/excalidraw/components/ProjectName.d.ts +10 -10
  128. package/types/excalidraw/components/PropertiesPopover.d.ts +15 -15
  129. package/types/excalidraw/components/PublishLibrary.d.ts +16 -16
  130. package/types/excalidraw/components/QuickSearch.d.ts +9 -9
  131. package/types/excalidraw/components/RadioGroup.d.ts +13 -13
  132. package/types/excalidraw/components/SVGLayer.d.ts +7 -7
  133. package/types/excalidraw/components/ScrollableList.d.ts +8 -8
  134. package/types/excalidraw/components/SearchMenu.d.ts +5 -5
  135. package/types/excalidraw/components/Section.d.ts +6 -6
  136. package/types/excalidraw/components/ShareableLinkDialog.d.ts +7 -7
  137. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +76 -76
  138. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -7
  139. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -8
  140. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
  141. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
  142. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -6
  143. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -6
  144. package/types/excalidraw/components/Sidebar/common.d.ts +33 -33
  145. package/types/excalidraw/components/Spinner.d.ts +8 -8
  146. package/types/excalidraw/components/Stack.d.ts +16 -16
  147. package/types/excalidraw/components/Stats/Angle.d.ts +11 -11
  148. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -10
  149. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +10 -10
  150. package/types/excalidraw/components/Stats/Collapsible.d.ts +8 -8
  151. package/types/excalidraw/components/Stats/Dimension.d.ts +11 -11
  152. package/types/excalidraw/components/Stats/DragInput.d.ts +34 -34
  153. package/types/excalidraw/components/Stats/FontSize.d.ts +11 -11
  154. package/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -11
  155. package/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -14
  156. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -12
  157. package/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -14
  158. package/types/excalidraw/components/Stats/Position.d.ts +12 -12
  159. package/types/excalidraw/components/Stats/index.d.ts +35 -35
  160. package/types/excalidraw/components/Stats/utils.d.ts +26 -26
  161. package/types/excalidraw/components/Stats.d.ts +11 -0
  162. package/types/excalidraw/components/Switch.d.ts +9 -9
  163. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +14 -14
  164. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +29 -29
  165. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -9
  166. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +7 -7
  167. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -17
  168. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -4
  169. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -1
  170. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -7
  171. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -8
  172. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -6
  173. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -11
  174. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +8 -8
  175. package/types/excalidraw/components/TTDDialog/common.d.ts +32 -32
  176. package/types/excalidraw/components/TextField.d.ts +21 -21
  177. package/types/excalidraw/components/Toast.d.ts +9 -9
  178. package/types/excalidraw/components/ToolButton.d.ts +49 -49
  179. package/types/excalidraw/components/Tooltip.d.ts +18 -18
  180. package/types/excalidraw/components/Trans.d.ts +9 -9
  181. package/types/excalidraw/components/UserList.d.ts +18 -18
  182. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +29 -29
  183. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -14
  184. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -19
  185. package/types/excalidraw/components/canvases/index.d.ts +3 -3
  186. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +86 -86
  187. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  188. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  189. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +45 -45
  190. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +7 -7
  191. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -17
  192. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -7
  193. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +15 -15
  194. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  195. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
  196. package/types/excalidraw/components/dropdownMenu/common.d.ts +6 -6
  197. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  198. package/types/excalidraw/components/footer/Footer.d.ts +12 -12
  199. package/types/excalidraw/components/footer/FooterCenter.d.ts +8 -8
  200. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -4
  201. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +18 -18
  202. package/types/excalidraw/components/hyperlink/helpers.d.ts +8 -8
  203. package/types/excalidraw/components/icons.d.ts +213 -213
  204. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +9 -9
  205. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -64
  206. package/types/excalidraw/components/main-menu/MainMenu.d.ts +80 -80
  207. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +59 -59
  208. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  209. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +86 -86
  210. package/types/excalidraw/constants.d.ts +322 -322
  211. package/types/excalidraw/context/tunnels.d.ts +20 -20
  212. package/types/excalidraw/context/ui-appState.d.ts +4 -4
  213. package/types/excalidraw/cursor.d.ts +6 -6
  214. package/types/excalidraw/data/EditorLocalStorage.d.ts +8 -8
  215. package/types/excalidraw/data/ai/types.d.ts +242 -242
  216. package/types/excalidraw/data/blob.d.ts +52 -52
  217. package/types/excalidraw/data/encode.d.ts +54 -54
  218. package/types/excalidraw/data/encryption.d.ts +9 -9
  219. package/types/excalidraw/data/filesystem.d.ts +20 -20
  220. package/types/excalidraw/data/image.d.ts +15 -15
  221. package/types/excalidraw/data/index.d.ts +22 -22
  222. package/types/excalidraw/data/json.d.ts +16 -16
  223. package/types/excalidraw/data/library.d.ts +106 -106
  224. package/types/excalidraw/data/magic.d.ts +23 -0
  225. package/types/excalidraw/data/reconcile.d.ts +6 -6
  226. package/types/excalidraw/data/resave.d.ts +5 -5
  227. package/types/excalidraw/data/restore.d.ts +21 -21
  228. package/types/excalidraw/data/transform.d.ts +81 -81
  229. package/types/excalidraw/data/types.d.ts +45 -45
  230. package/types/excalidraw/data/url.d.ts +8 -8
  231. package/types/excalidraw/deburr.d.ts +1 -1
  232. package/types/excalidraw/dist/excalidraw.development.d.ts +2 -2
  233. package/types/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  234. package/types/excalidraw/distribute.d.ts +6 -6
  235. package/types/excalidraw/element/ElementCanvasButtons.d.ts +7 -7
  236. package/types/excalidraw/element/binding.d.ts +99 -99
  237. package/types/excalidraw/element/bounds.d.ts +76 -76
  238. package/types/excalidraw/element/collision.d.ts +17 -17
  239. package/types/excalidraw/element/containerCache.d.ts +11 -11
  240. package/types/excalidraw/element/cropElement.d.ts +14 -14
  241. package/types/excalidraw/element/dragElements.d.ts +32 -32
  242. package/types/excalidraw/element/embeddable.d.ts +223 -223
  243. package/types/excalidraw/element/flowchart.d.ts +25 -25
  244. package/types/excalidraw/element/heading.d.ts +12 -12
  245. package/types/excalidraw/element/image.d.ts +32 -32
  246. package/types/excalidraw/element/index.d.ts +26 -26
  247. package/types/excalidraw/element/linearElementEditor.d.ts +128 -128
  248. package/types/excalidraw/element/mutateElement.d.ts +11 -11
  249. package/types/excalidraw/element/newElement.d.ts +106 -106
  250. package/types/excalidraw/element/resizeElements.d.ts +16 -16
  251. package/types/excalidraw/element/resizeTest.d.ts +15 -15
  252. package/types/excalidraw/element/routing.d.ts +12 -12
  253. package/types/excalidraw/element/showSelectedShapeActions.d.ts +3 -3
  254. package/types/excalidraw/element/sizeHelpers.d.ts +35 -35
  255. package/types/excalidraw/element/sortElements.d.ts +2 -2
  256. package/types/excalidraw/element/textElement.d.ts +83 -83
  257. package/types/excalidraw/element/textWrapping.d.ts +13 -13
  258. package/types/excalidraw/element/textWysiwyg.d.ts +22 -22
  259. package/types/excalidraw/element/transformHandles.d.ts +55 -55
  260. package/types/excalidraw/element/typeChecks.d.ts +39 -39
  261. package/types/excalidraw/element/types.d.ts +263 -263
  262. package/types/excalidraw/emitter.d.ts +16 -16
  263. package/types/excalidraw/entry.d.ts +1 -1
  264. package/types/excalidraw/env.d.cts +1 -1
  265. package/types/excalidraw/env.d.ts +1 -1
  266. package/types/excalidraw/errors.d.ts +25 -25
  267. package/types/excalidraw/fonts/Cascadia/index.d.ts +2 -2
  268. package/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -2
  269. package/types/excalidraw/fonts/Emoji/index.d.ts +2 -2
  270. package/types/excalidraw/fonts/ExcalidrawFont.d.ts +37 -37
  271. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +29 -29
  272. package/types/excalidraw/fonts/Excalifont/index.d.ts +2 -2
  273. package/types/excalidraw/fonts/FontMetadata.d.ts +37 -37
  274. package/types/excalidraw/fonts/Fonts.d.ts +117 -117
  275. package/types/excalidraw/fonts/Helvetica/index.d.ts +2 -2
  276. package/types/excalidraw/fonts/Liberation/index.d.ts +2 -2
  277. package/types/excalidraw/fonts/Lilita/index.d.ts +2 -2
  278. package/types/excalidraw/fonts/Nunito/index.d.ts +2 -2
  279. package/types/excalidraw/fonts/Virgil/index.d.ts +2 -2
  280. package/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -8
  281. package/types/excalidraw/fonts/index.d.ts +1 -1
  282. package/types/excalidraw/fonts/metadata.d.ts +37 -35
  283. package/types/excalidraw/fonts/subset/subset-main.d.ts +12 -0
  284. package/types/excalidraw/fonts/subset/subset-shared.chunk.d.ts +32 -0
  285. package/types/excalidraw/fonts/subset/subset-worker.chunk.d.ts +15 -0
  286. package/types/excalidraw/fonts/wasm/hb-subset-bindings.d.ts +45 -0
  287. package/types/excalidraw/fonts/wasm/hb-subset-loader.d.ts +13 -0
  288. package/types/excalidraw/fonts/wasm/hb-subset-wasm.d.ts +2 -0
  289. package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +45 -45
  290. package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +5 -5
  291. package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +2 -2
  292. package/types/excalidraw/fonts/wasm/woff2-bindings.d.ts +31 -0
  293. package/types/excalidraw/fonts/wasm/woff2-loader.d.ts +14 -0
  294. package/types/excalidraw/fonts/wasm/woff2-wasm.d.ts +2 -0
  295. package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +31 -31
  296. package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +6 -6
  297. package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +2 -2
  298. package/types/excalidraw/fonts/woff2/Cascadia/index.d.ts +2 -0
  299. package/types/excalidraw/fonts/woff2/Comic/index.d.ts +2 -0
  300. package/types/excalidraw/fonts/woff2/Emoji/index.d.ts +2 -0
  301. package/types/excalidraw/fonts/woff2/Excalifont/index.d.ts +2 -0
  302. package/types/excalidraw/fonts/woff2/Helvetica/index.d.ts +2 -0
  303. package/types/excalidraw/fonts/woff2/Liberation/index.d.ts +2 -0
  304. package/types/excalidraw/fonts/woff2/Lilita/index.d.ts +2 -0
  305. package/types/excalidraw/fonts/woff2/Nunito/index.d.ts +2 -0
  306. package/types/excalidraw/fonts/woff2/Virgil/index.d.ts +2 -0
  307. package/types/excalidraw/fonts/woff2/Xiaolai/index.d.ts +8 -0
  308. package/types/excalidraw/fractionalIndex.d.ts +48 -48
  309. package/types/excalidraw/frame.d.ts +63 -63
  310. package/types/excalidraw/ga.d.ts +63 -63
  311. package/types/excalidraw/gadirections.d.ts +8 -8
  312. package/types/excalidraw/galines.d.ts +22 -22
  313. package/types/excalidraw/gapoints.d.ts +7 -7
  314. package/types/excalidraw/gatransforms.d.ts +10 -10
  315. package/types/excalidraw/gesture.d.ts +6 -6
  316. package/types/excalidraw/groups.d.ts +33 -33
  317. package/types/excalidraw/history.d.ts +40 -40
  318. package/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -1
  319. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -5
  320. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +7 -7
  321. package/types/excalidraw/hooks/useEmitter.d.ts +2 -2
  322. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -11
  323. package/types/excalidraw/hooks/useOutsideClick.d.ts +19 -19
  324. package/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  325. package/types/excalidraw/hooks/useStable.d.ts +1 -1
  326. package/types/excalidraw/hooks/useStableCallback.d.ts +4 -4
  327. package/types/excalidraw/hooks/useTransition.d.ts +2 -2
  328. package/types/excalidraw/i18n.d.ts +24 -24
  329. package/types/excalidraw/index-node.d.ts +1 -1
  330. package/types/excalidraw/index.d.ts +62 -62
  331. package/types/excalidraw/jotai.d.ts +34 -34
  332. package/types/excalidraw/keys.d.ts +189 -189
  333. package/types/excalidraw/laser-trails.d.ts +20 -20
  334. package/types/excalidraw/main.d.ts +2 -2
  335. package/types/excalidraw/math.d.ts +79 -79
  336. package/types/excalidraw/mermaid.d.ts +2 -2
  337. package/types/excalidraw/obsidianUtils.d.ts +23 -23
  338. package/types/excalidraw/points.d.ts +7 -7
  339. package/types/excalidraw/polyfill.d.ts +2 -2
  340. package/types/excalidraw/publicPath.d.ts +1 -1
  341. package/types/excalidraw/queue.d.ts +9 -9
  342. package/types/excalidraw/random.d.ts +4 -4
  343. package/types/excalidraw/reactUtils.d.ts +14 -14
  344. package/types/excalidraw/renderer/easingFunctions.d.ts +6 -6
  345. package/types/excalidraw/renderer/helpers.d.ts +13 -13
  346. package/types/excalidraw/renderer/interactiveScene.d.ts +20 -20
  347. package/types/excalidraw/renderer/renderElement.d.ts +28 -28
  348. package/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -7
  349. package/types/excalidraw/renderer/renderSnaps.d.ts +2 -2
  350. package/types/excalidraw/renderer/roundRect.d.ts +11 -11
  351. package/types/excalidraw/renderer/staticScene.d.ts +11 -11
  352. package/types/excalidraw/renderer/staticSvgScene.d.ts +5 -5
  353. package/types/excalidraw/scene/Fonts.d.ts +19 -0
  354. package/types/excalidraw/scene/Renderer.d.ts +28 -28
  355. package/types/excalidraw/scene/Scene.d.ts +78 -78
  356. package/types/excalidraw/scene/Shape.d.ts +17 -17
  357. package/types/excalidraw/scene/ShapeCache.d.ts +25 -25
  358. package/types/excalidraw/scene/comparisons.d.ts +488 -488
  359. package/types/excalidraw/scene/export.d.ts +30 -30
  360. package/types/excalidraw/scene/index.d.ts +4 -4
  361. package/types/excalidraw/scene/normalize.d.ts +4 -4
  362. package/types/excalidraw/scene/scroll.d.ts +23 -23
  363. package/types/excalidraw/scene/scrollbars.d.ts +12 -12
  364. package/types/excalidraw/scene/selection.d.ts +32 -32
  365. package/types/excalidraw/scene/types.d.ts +119 -119
  366. package/types/excalidraw/scene/zoom.d.ts +12 -12
  367. package/types/excalidraw/shapes.d.ts +85 -85
  368. package/types/excalidraw/snapping.d.ts +112 -112
  369. package/types/excalidraw/store.d.ts +129 -129
  370. package/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -45
  371. package/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -13
  372. package/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -2
  373. package/types/excalidraw/subset/subset-main.d.ts +12 -12
  374. package/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -32
  375. package/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -15
  376. package/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -31
  377. package/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -14
  378. package/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -2
  379. package/types/excalidraw/types.d.ts +730 -730
  380. package/types/excalidraw/utility-types.d.ts +31 -31
  381. package/types/excalidraw/utils.d.ts +249 -249
  382. package/types/excalidraw/visualdebug.d.ts +35 -35
  383. package/types/excalidraw/webpack.dev.config.d.ts +81 -81
  384. package/types/excalidraw/webpack.prod.config.d.ts +97 -97
  385. package/types/excalidraw/workers.d.ts +36 -36
  386. package/types/excalidraw/zindex.d.ts +6 -6
  387. package/types/math/angle.d.ts +17 -17
  388. package/types/math/arc.d.ts +6 -6
  389. package/types/math/curve.d.ts +32 -32
  390. package/types/math/ga/ga.d.ts +63 -63
  391. package/types/math/ga/gadirections.d.ts +8 -8
  392. package/types/math/ga/galines.d.ts +22 -22
  393. package/types/math/ga/gapoints.d.ts +7 -7
  394. package/types/math/ga/gatransforms.d.ts +10 -10
  395. package/types/math/index.d.ts +12 -12
  396. package/types/math/line.d.ts +26 -26
  397. package/types/math/point.d.ts +140 -140
  398. package/types/math/polygon.d.ts +5 -5
  399. package/types/math/range.d.ts +44 -44
  400. package/types/math/segment.d.ts +32 -32
  401. package/types/math/triangle.d.ts +11 -11
  402. package/types/math/types.d.ts +96 -96
  403. package/types/math/utils.d.ts +7 -7
  404. package/types/math/vector.d.ts +92 -92
  405. package/types/utils/bbox.d.ts +9 -9
  406. package/types/utils/collision.d.ts +9 -9
  407. package/types/utils/export.d.ts +46 -46
  408. package/types/utils/geometry/geometry.d.ts +89 -89
  409. package/types/utils/geometry/shape.d.ts +71 -71
  410. package/types/utils/index.d.ts +4 -4
  411. package/types/utils/withinBounds.d.ts +19 -19
  412. package/types/excalidraw/components/SearchSidebar.d.ts +0 -1
@@ -1,1902 +1,1902 @@
1
- import type { Theme } from "../element/types";
2
- import "../components/ToolIcon.scss";
3
- export declare const actionChangeProjectName: {
4
- name: "changeProjectName";
5
- label: string;
6
- trackEvent: false;
7
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
8
- appState: {
9
- name: any;
10
- contextMenu: {
11
- items: import("../components/ContextMenu").ContextMenuItems;
12
- top: number;
13
- left: number;
14
- } | null;
15
- showWelcomeScreen: boolean;
16
- isLoading: boolean;
17
- errorMessage: import("react").ReactNode;
18
- activeEmbeddable: {
19
- element: import("../element/types").NonDeletedExcalidrawElement;
20
- state: "active" | "hover";
21
- } | null;
22
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
23
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
25
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
- isBindingEnabled: boolean;
27
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("../element/binding").SuggestedBinding[];
29
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
30
- frameRendering: {
31
- enabled: boolean;
32
- name: boolean;
33
- outline: boolean;
34
- clip: boolean;
35
- };
36
- editingFrame: string | null;
37
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
38
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
40
- activeTool: {
41
- lastActiveTool: import("../types").ActiveTool | null;
42
- locked: boolean;
43
- } & import("../types").ActiveTool;
44
- penMode: boolean;
45
- penDetected: boolean;
46
- exportBackground: boolean;
47
- exportEmbedScene: boolean;
48
- exportWithDarkMode: boolean;
49
- exportScale: number;
50
- currentItemStrokeColor: string;
51
- currentItemBackgroundColor: string;
52
- currentItemFillStyle: import("../element/types").FillStyle;
53
- currentItemStrokeWidth: number;
54
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
55
- currentItemRoughness: number;
56
- currentItemOpacity: number;
57
- currentItemFontFamily: number;
58
- currentItemFontSize: number;
59
- currentItemTextAlign: string;
60
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
61
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
62
- currentHoveredFontFamily: number | null;
63
- currentItemRoundness: import("../element/types").StrokeRoundness;
64
- currentItemArrowType: "round" | "sharp" | "elbow";
65
- viewBackgroundColor: string;
66
- scrollX: number;
67
- scrollY: number;
68
- cursorButton: "up" | "down";
69
- scrolledOutside: boolean;
70
- isResizing: boolean;
71
- isRotating: boolean;
72
- zoom: Readonly<{
73
- value: import("../types").NormalizedZoomValue;
74
- }>;
75
- openMenu: "canvas" | "shape" | null;
76
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
77
- openSidebar: {
78
- name: string;
79
- tab?: string | undefined;
80
- } | null;
81
- openDialog: {
82
- name: "imageExport" | "help" | "jsonExport";
83
- } | {
84
- name: "ttd";
85
- tab: "mermaid" | "text-to-diagram";
86
- } | {
87
- name: "commandPalette";
88
- } | null;
89
- defaultSidebarDockedPreference: boolean;
90
- lastPointerDownWith: import("../element/types").PointerType;
91
- selectedElementIds: Readonly<{
92
- [id: string]: true;
93
- }>;
94
- previousSelectedElementIds: {
95
- [id: string]: true;
96
- };
97
- selectedElementsAreBeingDragged: boolean;
98
- shouldCacheIgnoreZoom: boolean;
99
- toast: {
100
- message: string;
101
- closable?: boolean | undefined;
102
- duration?: number | undefined;
103
- } | null;
104
- zenModeEnabled: boolean;
105
- theme: Theme;
106
- gridSize: number;
107
- gridStep: number;
108
- gridModeEnabled: boolean;
109
- viewModeEnabled: boolean;
110
- selectedGroupIds: {
111
- [groupId: string]: boolean;
112
- };
113
- editingGroupId: string | null;
114
- width: number;
115
- height: number;
116
- offsetTop: number;
117
- offsetLeft: number;
118
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
119
- collaborators: Map<import("../types").SocketId, Readonly<{
120
- pointer?: import("../types").CollaboratorPointer | undefined;
121
- button?: "up" | "down" | undefined;
122
- selectedElementIds?: Readonly<{
123
- [id: string]: true;
124
- }> | undefined;
125
- username?: string | null | undefined;
126
- userState?: import("../types").UserIdleState | undefined;
127
- color?: {
128
- background: string;
129
- stroke: string;
130
- } | undefined;
131
- avatarUrl?: string | undefined;
132
- id?: string | undefined;
133
- socketId?: import("../types").SocketId | undefined;
134
- isCurrentUser?: boolean | undefined;
135
- isInCall?: boolean | undefined;
136
- isSpeaking?: boolean | undefined;
137
- isMuted?: boolean | undefined;
138
- }>>;
139
- stats: {
140
- open: boolean;
141
- panels: number;
142
- };
143
- currentChartType: import("../element/types").ChartType;
144
- pasteDialog: {
145
- shown: false;
146
- data: null;
147
- } | {
148
- shown: true;
149
- data: import("../charts").Spreadsheet;
150
- };
151
- pendingImageElementId: string | null;
152
- showHyperlinkPopup: false | "info" | "editor";
153
- linkOpacity: number;
154
- trayModeEnabled: boolean;
155
- colorPalette?: {
156
- canvasBackground: import("../colors").ColorPaletteCustom;
157
- elementBackground: import("../colors").ColorPaletteCustom;
158
- elementStroke: import("../colors").ColorPaletteCustom;
159
- topPicks: {
160
- canvasBackground: [string, string, string, string, string];
161
- elementStroke: [string, string, string, string, string];
162
- elementBackground: [string, string, string, string, string];
163
- };
164
- } | undefined;
165
- allowWheelZoom?: boolean | undefined;
166
- allowPinchZoom?: boolean | undefined;
167
- pinnedScripts?: string[] | undefined;
168
- customPens?: any[] | undefined;
169
- currentStrokeOptions?: any;
170
- resetCustomPen?: any;
171
- gridColor: {
172
- Bold: string;
173
- Regular: string;
174
- };
175
- highlightSearchResult: boolean;
176
- dynamicStyle: {
177
- [x: string]: string;
178
- };
179
- frameColor: {
180
- stroke: string;
181
- fill: string;
182
- nameColor: string;
183
- };
184
- invertBindingBehaviour: boolean;
185
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
186
- snapLines: readonly import("../snapping").SnapLine[];
187
- originSnapOffset: {
188
- x: number;
189
- y: number;
190
- } | null;
191
- objectsSnapModeEnabled: boolean;
192
- userToFollow: import("../types").UserToFollow | null;
193
- followedBy: Set<import("../types").SocketId>;
194
- isCropping: boolean;
195
- croppingElementId: string | null;
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
- storeAction: "none";
208
- };
209
- PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => JSX.Element;
210
- } & {
211
- keyTest?: undefined;
212
- };
213
- export declare const actionChangeExportScale: {
214
- name: "changeExportScale";
215
- label: string;
216
- trackEvent: {
217
- category: "export";
218
- action: string;
219
- };
220
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
221
- appState: {
222
- exportScale: any;
223
- contextMenu: {
224
- items: import("../components/ContextMenu").ContextMenuItems;
225
- top: number;
226
- left: number;
227
- } | null;
228
- showWelcomeScreen: boolean;
229
- isLoading: boolean;
230
- errorMessage: import("react").ReactNode;
231
- activeEmbeddable: {
232
- element: import("../element/types").NonDeletedExcalidrawElement;
233
- state: "active" | "hover";
234
- } | null;
235
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
236
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
237
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
238
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
239
- isBindingEnabled: boolean;
240
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
241
- suggestedBindings: import("../element/binding").SuggestedBinding[];
242
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
243
- frameRendering: {
244
- enabled: boolean;
245
- name: boolean;
246
- outline: boolean;
247
- clip: boolean;
248
- };
249
- editingFrame: string | null;
250
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
251
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
252
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
253
- activeTool: {
254
- lastActiveTool: import("../types").ActiveTool | null;
255
- locked: boolean;
256
- } & import("../types").ActiveTool;
257
- penMode: boolean;
258
- penDetected: boolean;
259
- exportBackground: boolean;
260
- exportEmbedScene: boolean;
261
- exportWithDarkMode: boolean;
262
- currentItemStrokeColor: string;
263
- currentItemBackgroundColor: string;
264
- currentItemFillStyle: import("../element/types").FillStyle;
265
- currentItemStrokeWidth: number;
266
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
267
- currentItemRoughness: number;
268
- currentItemOpacity: number;
269
- currentItemFontFamily: number;
270
- currentItemFontSize: number;
271
- currentItemTextAlign: string;
272
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
273
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
274
- currentHoveredFontFamily: number | null;
275
- currentItemRoundness: import("../element/types").StrokeRoundness;
276
- currentItemArrowType: "round" | "sharp" | "elbow";
277
- viewBackgroundColor: string;
278
- scrollX: number;
279
- scrollY: number;
280
- cursorButton: "up" | "down";
281
- scrolledOutside: boolean;
282
- name: string | null;
283
- isResizing: boolean;
284
- isRotating: boolean;
285
- zoom: Readonly<{
286
- value: import("../types").NormalizedZoomValue;
287
- }>;
288
- openMenu: "canvas" | "shape" | null;
289
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
290
- openSidebar: {
291
- name: string;
292
- tab?: string | undefined;
293
- } | null;
294
- openDialog: {
295
- name: "imageExport" | "help" | "jsonExport";
296
- } | {
297
- name: "ttd";
298
- tab: "mermaid" | "text-to-diagram";
299
- } | {
300
- name: "commandPalette";
301
- } | null;
302
- defaultSidebarDockedPreference: boolean;
303
- lastPointerDownWith: import("../element/types").PointerType;
304
- selectedElementIds: Readonly<{
305
- [id: string]: true;
306
- }>;
307
- previousSelectedElementIds: {
308
- [id: string]: true;
309
- };
310
- selectedElementsAreBeingDragged: boolean;
311
- shouldCacheIgnoreZoom: boolean;
312
- toast: {
313
- message: string;
314
- closable?: boolean | undefined;
315
- duration?: number | undefined;
316
- } | null;
317
- zenModeEnabled: boolean;
318
- theme: Theme;
319
- gridSize: number;
320
- gridStep: number;
321
- gridModeEnabled: boolean;
322
- viewModeEnabled: boolean;
323
- selectedGroupIds: {
324
- [groupId: string]: boolean;
325
- };
326
- editingGroupId: string | null;
327
- width: number;
328
- height: number;
329
- offsetTop: number;
330
- offsetLeft: number;
331
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
332
- collaborators: Map<import("../types").SocketId, Readonly<{
333
- pointer?: import("../types").CollaboratorPointer | undefined;
334
- button?: "up" | "down" | undefined;
335
- selectedElementIds?: Readonly<{
336
- [id: string]: true;
337
- }> | undefined;
338
- username?: string | null | undefined;
339
- userState?: import("../types").UserIdleState | undefined;
340
- color?: {
341
- background: string;
342
- stroke: string;
343
- } | undefined;
344
- avatarUrl?: string | undefined;
345
- id?: string | undefined;
346
- socketId?: import("../types").SocketId | undefined;
347
- isCurrentUser?: boolean | undefined;
348
- isInCall?: boolean | undefined;
349
- isSpeaking?: boolean | undefined;
350
- isMuted?: boolean | undefined;
351
- }>>;
352
- stats: {
353
- open: boolean;
354
- panels: number;
355
- };
356
- currentChartType: import("../element/types").ChartType;
357
- pasteDialog: {
358
- shown: false;
359
- data: null;
360
- } | {
361
- shown: true;
362
- data: import("../charts").Spreadsheet;
363
- };
364
- pendingImageElementId: string | null;
365
- showHyperlinkPopup: false | "info" | "editor";
366
- linkOpacity: number;
367
- trayModeEnabled: boolean;
368
- colorPalette?: {
369
- canvasBackground: import("../colors").ColorPaletteCustom;
370
- elementBackground: import("../colors").ColorPaletteCustom;
371
- elementStroke: import("../colors").ColorPaletteCustom;
372
- topPicks: {
373
- canvasBackground: [string, string, string, string, string];
374
- elementStroke: [string, string, string, string, string];
375
- elementBackground: [string, string, string, string, string];
376
- };
377
- } | undefined;
378
- allowWheelZoom?: boolean | undefined;
379
- allowPinchZoom?: boolean | undefined;
380
- pinnedScripts?: string[] | undefined;
381
- customPens?: any[] | undefined;
382
- currentStrokeOptions?: any;
383
- resetCustomPen?: any;
384
- gridColor: {
385
- Bold: string;
386
- Regular: string;
387
- };
388
- highlightSearchResult: boolean;
389
- dynamicStyle: {
390
- [x: string]: string;
391
- };
392
- frameColor: {
393
- stroke: string;
394
- fill: string;
395
- nameColor: string;
396
- };
397
- invertBindingBehaviour: boolean;
398
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
399
- snapLines: readonly import("../snapping").SnapLine[];
400
- originSnapOffset: {
401
- x: number;
402
- y: number;
403
- } | null;
404
- objectsSnapModeEnabled: boolean;
405
- userToFollow: import("../types").UserToFollow | null;
406
- followedBy: Set<import("../types").SocketId>;
407
- isCropping: boolean;
408
- croppingElementId: string | null;
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
- storeAction: "none";
421
- };
422
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
423
- } & {
424
- keyTest?: undefined;
425
- };
426
- export declare const actionChangeExportBackground: {
427
- name: "changeExportBackground";
428
- label: string;
429
- trackEvent: {
430
- category: "export";
431
- action: string;
432
- };
433
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
434
- appState: {
435
- exportBackground: any;
436
- contextMenu: {
437
- items: import("../components/ContextMenu").ContextMenuItems;
438
- top: number;
439
- left: number;
440
- } | null;
441
- showWelcomeScreen: boolean;
442
- isLoading: boolean;
443
- errorMessage: import("react").ReactNode;
444
- activeEmbeddable: {
445
- element: import("../element/types").NonDeletedExcalidrawElement;
446
- state: "active" | "hover";
447
- } | null;
448
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
449
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
450
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
451
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
452
- isBindingEnabled: boolean;
453
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
454
- suggestedBindings: import("../element/binding").SuggestedBinding[];
455
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
456
- frameRendering: {
457
- enabled: boolean;
458
- name: boolean;
459
- outline: boolean;
460
- clip: boolean;
461
- };
462
- editingFrame: string | null;
463
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
464
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
465
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
466
- activeTool: {
467
- lastActiveTool: import("../types").ActiveTool | null;
468
- locked: boolean;
469
- } & import("../types").ActiveTool;
470
- penMode: boolean;
471
- penDetected: boolean;
472
- exportEmbedScene: boolean;
473
- exportWithDarkMode: boolean;
474
- exportScale: number;
475
- currentItemStrokeColor: string;
476
- currentItemBackgroundColor: string;
477
- currentItemFillStyle: import("../element/types").FillStyle;
478
- currentItemStrokeWidth: number;
479
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
480
- currentItemRoughness: number;
481
- currentItemOpacity: number;
482
- currentItemFontFamily: number;
483
- currentItemFontSize: number;
484
- currentItemTextAlign: string;
485
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
486
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
487
- currentHoveredFontFamily: number | null;
488
- currentItemRoundness: import("../element/types").StrokeRoundness;
489
- currentItemArrowType: "round" | "sharp" | "elbow";
490
- viewBackgroundColor: string;
491
- scrollX: number;
492
- scrollY: number;
493
- cursorButton: "up" | "down";
494
- scrolledOutside: boolean;
495
- name: string | null;
496
- isResizing: boolean;
497
- isRotating: boolean;
498
- zoom: Readonly<{
499
- value: import("../types").NormalizedZoomValue;
500
- }>;
501
- openMenu: "canvas" | "shape" | null;
502
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
503
- openSidebar: {
504
- name: string;
505
- tab?: string | undefined;
506
- } | null;
507
- openDialog: {
508
- name: "imageExport" | "help" | "jsonExport";
509
- } | {
510
- name: "ttd";
511
- tab: "mermaid" | "text-to-diagram";
512
- } | {
513
- name: "commandPalette";
514
- } | null;
515
- defaultSidebarDockedPreference: boolean;
516
- lastPointerDownWith: import("../element/types").PointerType;
517
- selectedElementIds: Readonly<{
518
- [id: string]: true;
519
- }>;
520
- previousSelectedElementIds: {
521
- [id: string]: true;
522
- };
523
- selectedElementsAreBeingDragged: boolean;
524
- shouldCacheIgnoreZoom: boolean;
525
- toast: {
526
- message: string;
527
- closable?: boolean | undefined;
528
- duration?: number | undefined;
529
- } | null;
530
- zenModeEnabled: boolean;
531
- theme: Theme;
532
- gridSize: number;
533
- gridStep: number;
534
- gridModeEnabled: boolean;
535
- viewModeEnabled: boolean;
536
- selectedGroupIds: {
537
- [groupId: string]: boolean;
538
- };
539
- editingGroupId: string | null;
540
- width: number;
541
- height: number;
542
- offsetTop: number;
543
- offsetLeft: number;
544
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
545
- collaborators: Map<import("../types").SocketId, Readonly<{
546
- pointer?: import("../types").CollaboratorPointer | undefined;
547
- button?: "up" | "down" | undefined;
548
- selectedElementIds?: Readonly<{
549
- [id: string]: true;
550
- }> | undefined;
551
- username?: string | null | undefined;
552
- userState?: import("../types").UserIdleState | undefined;
553
- color?: {
554
- background: string;
555
- stroke: string;
556
- } | undefined;
557
- avatarUrl?: string | undefined;
558
- id?: string | undefined;
559
- socketId?: import("../types").SocketId | undefined;
560
- isCurrentUser?: boolean | undefined;
561
- isInCall?: boolean | undefined;
562
- isSpeaking?: boolean | undefined;
563
- isMuted?: boolean | undefined;
564
- }>>;
565
- stats: {
566
- open: boolean;
567
- panels: number;
568
- };
569
- currentChartType: import("../element/types").ChartType;
570
- pasteDialog: {
571
- shown: false;
572
- data: null;
573
- } | {
574
- shown: true;
575
- data: import("../charts").Spreadsheet;
576
- };
577
- pendingImageElementId: string | null;
578
- showHyperlinkPopup: false | "info" | "editor";
579
- linkOpacity: number;
580
- trayModeEnabled: boolean;
581
- colorPalette?: {
582
- canvasBackground: import("../colors").ColorPaletteCustom;
583
- elementBackground: import("../colors").ColorPaletteCustom;
584
- elementStroke: import("../colors").ColorPaletteCustom;
585
- topPicks: {
586
- canvasBackground: [string, string, string, string, string];
587
- elementStroke: [string, string, string, string, string];
588
- elementBackground: [string, string, string, string, string];
589
- };
590
- } | undefined;
591
- allowWheelZoom?: boolean | undefined;
592
- allowPinchZoom?: boolean | undefined;
593
- pinnedScripts?: string[] | undefined;
594
- customPens?: any[] | undefined;
595
- currentStrokeOptions?: any;
596
- resetCustomPen?: any;
597
- gridColor: {
598
- Bold: string;
599
- Regular: string;
600
- };
601
- highlightSearchResult: boolean;
602
- dynamicStyle: {
603
- [x: string]: string;
604
- };
605
- frameColor: {
606
- stroke: string;
607
- fill: string;
608
- nameColor: string;
609
- };
610
- invertBindingBehaviour: boolean;
611
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
612
- snapLines: readonly import("../snapping").SnapLine[];
613
- originSnapOffset: {
614
- x: number;
615
- y: number;
616
- } | null;
617
- objectsSnapModeEnabled: boolean;
618
- userToFollow: import("../types").UserToFollow | null;
619
- followedBy: Set<import("../types").SocketId>;
620
- isCropping: boolean;
621
- croppingElementId: string | null;
622
- searchMatches: readonly {
623
- id: string;
624
- focus: boolean;
625
- matchedLines: {
626
- offsetX: number;
627
- offsetY: number;
628
- width: number;
629
- height: number;
630
- }[];
631
- }[];
632
- };
633
- storeAction: "none";
634
- };
635
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
636
- } & {
637
- keyTest?: undefined;
638
- };
639
- export declare const actionChangeExportEmbedScene: {
640
- name: "changeExportEmbedScene";
641
- label: string;
642
- trackEvent: {
643
- category: "export";
644
- action: string;
645
- };
646
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
647
- appState: {
648
- exportEmbedScene: any;
649
- contextMenu: {
650
- items: import("../components/ContextMenu").ContextMenuItems;
651
- top: number;
652
- left: number;
653
- } | null;
654
- showWelcomeScreen: boolean;
655
- isLoading: boolean;
656
- errorMessage: import("react").ReactNode;
657
- activeEmbeddable: {
658
- element: import("../element/types").NonDeletedExcalidrawElement;
659
- state: "active" | "hover";
660
- } | null;
661
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
662
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
663
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
664
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
665
- isBindingEnabled: boolean;
666
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
667
- suggestedBindings: import("../element/binding").SuggestedBinding[];
668
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
669
- frameRendering: {
670
- enabled: boolean;
671
- name: boolean;
672
- outline: boolean;
673
- clip: boolean;
674
- };
675
- editingFrame: string | null;
676
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
677
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
678
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
679
- activeTool: {
680
- lastActiveTool: import("../types").ActiveTool | null;
681
- locked: boolean;
682
- } & import("../types").ActiveTool;
683
- penMode: boolean;
684
- penDetected: boolean;
685
- exportBackground: boolean;
686
- exportWithDarkMode: boolean;
687
- exportScale: number;
688
- currentItemStrokeColor: string;
689
- currentItemBackgroundColor: string;
690
- currentItemFillStyle: import("../element/types").FillStyle;
691
- currentItemStrokeWidth: number;
692
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
693
- currentItemRoughness: number;
694
- currentItemOpacity: number;
695
- currentItemFontFamily: number;
696
- currentItemFontSize: number;
697
- currentItemTextAlign: string;
698
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
699
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
700
- currentHoveredFontFamily: number | null;
701
- currentItemRoundness: import("../element/types").StrokeRoundness;
702
- currentItemArrowType: "round" | "sharp" | "elbow";
703
- viewBackgroundColor: string;
704
- scrollX: number;
705
- scrollY: number;
706
- cursorButton: "up" | "down";
707
- scrolledOutside: boolean;
708
- name: string | null;
709
- isResizing: boolean;
710
- isRotating: boolean;
711
- zoom: Readonly<{
712
- value: import("../types").NormalizedZoomValue;
713
- }>;
714
- openMenu: "canvas" | "shape" | null;
715
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
716
- openSidebar: {
717
- name: string;
718
- tab?: string | undefined;
719
- } | null;
720
- openDialog: {
721
- name: "imageExport" | "help" | "jsonExport";
722
- } | {
723
- name: "ttd";
724
- tab: "mermaid" | "text-to-diagram";
725
- } | {
726
- name: "commandPalette";
727
- } | null;
728
- defaultSidebarDockedPreference: boolean;
729
- lastPointerDownWith: import("../element/types").PointerType;
730
- selectedElementIds: Readonly<{
731
- [id: string]: true;
732
- }>;
733
- previousSelectedElementIds: {
734
- [id: string]: true;
735
- };
736
- selectedElementsAreBeingDragged: boolean;
737
- shouldCacheIgnoreZoom: boolean;
738
- toast: {
739
- message: string;
740
- closable?: boolean | undefined;
741
- duration?: number | undefined;
742
- } | null;
743
- zenModeEnabled: boolean;
744
- theme: Theme;
745
- gridSize: number;
746
- gridStep: number;
747
- gridModeEnabled: boolean;
748
- viewModeEnabled: boolean;
749
- selectedGroupIds: {
750
- [groupId: string]: boolean;
751
- };
752
- editingGroupId: string | null;
753
- width: number;
754
- height: number;
755
- offsetTop: number;
756
- offsetLeft: number;
757
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
758
- collaborators: Map<import("../types").SocketId, Readonly<{
759
- pointer?: import("../types").CollaboratorPointer | undefined;
760
- button?: "up" | "down" | undefined;
761
- selectedElementIds?: Readonly<{
762
- [id: string]: true;
763
- }> | undefined;
764
- username?: string | null | undefined;
765
- userState?: import("../types").UserIdleState | undefined;
766
- color?: {
767
- background: string;
768
- stroke: string;
769
- } | undefined;
770
- avatarUrl?: string | undefined;
771
- id?: string | undefined;
772
- socketId?: import("../types").SocketId | undefined;
773
- isCurrentUser?: boolean | undefined;
774
- isInCall?: boolean | undefined;
775
- isSpeaking?: boolean | undefined;
776
- isMuted?: boolean | undefined;
777
- }>>;
778
- stats: {
779
- open: boolean;
780
- panels: number;
781
- };
782
- currentChartType: import("../element/types").ChartType;
783
- pasteDialog: {
784
- shown: false;
785
- data: null;
786
- } | {
787
- shown: true;
788
- data: import("../charts").Spreadsheet;
789
- };
790
- pendingImageElementId: string | null;
791
- showHyperlinkPopup: false | "info" | "editor";
792
- linkOpacity: number;
793
- trayModeEnabled: boolean;
794
- colorPalette?: {
795
- canvasBackground: import("../colors").ColorPaletteCustom;
796
- elementBackground: import("../colors").ColorPaletteCustom;
797
- elementStroke: import("../colors").ColorPaletteCustom;
798
- topPicks: {
799
- canvasBackground: [string, string, string, string, string];
800
- elementStroke: [string, string, string, string, string];
801
- elementBackground: [string, string, string, string, string];
802
- };
803
- } | undefined;
804
- allowWheelZoom?: boolean | undefined;
805
- allowPinchZoom?: boolean | undefined;
806
- pinnedScripts?: string[] | undefined;
807
- customPens?: any[] | undefined;
808
- currentStrokeOptions?: any;
809
- resetCustomPen?: any;
810
- gridColor: {
811
- Bold: string;
812
- Regular: string;
813
- };
814
- highlightSearchResult: boolean;
815
- dynamicStyle: {
816
- [x: string]: string;
817
- };
818
- frameColor: {
819
- stroke: string;
820
- fill: string;
821
- nameColor: string;
822
- };
823
- invertBindingBehaviour: boolean;
824
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
825
- snapLines: readonly import("../snapping").SnapLine[];
826
- originSnapOffset: {
827
- x: number;
828
- y: number;
829
- } | null;
830
- objectsSnapModeEnabled: boolean;
831
- userToFollow: import("../types").UserToFollow | null;
832
- followedBy: Set<import("../types").SocketId>;
833
- isCropping: boolean;
834
- croppingElementId: string | null;
835
- searchMatches: readonly {
836
- id: string;
837
- focus: boolean;
838
- matchedLines: {
839
- offsetX: number;
840
- offsetY: number;
841
- width: number;
842
- height: number;
843
- }[];
844
- }[];
845
- };
846
- storeAction: "none";
847
- };
848
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
849
- } & {
850
- keyTest?: undefined;
851
- };
852
- export declare const actionSaveToActiveFile: {
853
- name: "saveToActiveFile";
854
- label: string;
855
- icon: JSX.Element;
856
- trackEvent: {
857
- category: "export";
858
- };
859
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
860
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
861
- storeAction: "none";
862
- appState: {
863
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
864
- toast: {
865
- message: string;
866
- } | null;
867
- contextMenu: {
868
- items: import("../components/ContextMenu").ContextMenuItems;
869
- top: number;
870
- left: number;
871
- } | null;
872
- showWelcomeScreen: boolean;
873
- isLoading: boolean;
874
- errorMessage: import("react").ReactNode;
875
- activeEmbeddable: {
876
- element: import("../element/types").NonDeletedExcalidrawElement;
877
- state: "active" | "hover";
878
- } | null;
879
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
880
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
881
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
882
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
883
- isBindingEnabled: boolean;
884
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
885
- suggestedBindings: import("../element/binding").SuggestedBinding[];
886
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
887
- frameRendering: {
888
- enabled: boolean;
889
- name: boolean;
890
- outline: boolean;
891
- clip: boolean;
892
- };
893
- editingFrame: string | null;
894
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
895
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
896
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
897
- activeTool: {
898
- lastActiveTool: import("../types").ActiveTool | null;
899
- locked: boolean;
900
- } & import("../types").ActiveTool;
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
- selectedElementIds: Readonly<{
950
- [id: string]: true;
951
- }>;
952
- previousSelectedElementIds: {
953
- [id: string]: true;
954
- };
955
- selectedElementsAreBeingDragged: boolean;
956
- shouldCacheIgnoreZoom: boolean;
957
- zenModeEnabled: boolean;
958
- theme: Theme;
959
- gridSize: number;
960
- gridStep: number;
961
- gridModeEnabled: boolean;
962
- viewModeEnabled: boolean;
963
- selectedGroupIds: {
964
- [groupId: string]: boolean;
965
- };
966
- editingGroupId: string | null;
967
- width: number;
968
- height: number;
969
- offsetTop: number;
970
- offsetLeft: number;
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
- isCropping: boolean;
1047
- croppingElementId: string | null;
1048
- searchMatches: readonly {
1049
- id: string;
1050
- focus: boolean;
1051
- matchedLines: {
1052
- offsetX: number;
1053
- offsetY: number;
1054
- width: number;
1055
- height: number;
1056
- }[];
1057
- }[];
1058
- };
1059
- } | {
1060
- storeAction: "none";
1061
- appState?: undefined;
1062
- }>;
1063
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1064
- } & {
1065
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1066
- };
1067
- export declare const actionSaveFileToDisk: {
1068
- name: "saveFileToDisk";
1069
- label: string;
1070
- icon: JSX.Element;
1071
- viewMode: true;
1072
- trackEvent: {
1073
- category: "export";
1074
- };
1075
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
1076
- storeAction: "none";
1077
- appState: {
1078
- openDialog: null;
1079
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1080
- toast: {
1081
- message: string;
1082
- };
1083
- contextMenu: {
1084
- items: import("../components/ContextMenu").ContextMenuItems;
1085
- top: number;
1086
- left: number;
1087
- } | null;
1088
- showWelcomeScreen: boolean;
1089
- isLoading: boolean;
1090
- errorMessage: import("react").ReactNode;
1091
- activeEmbeddable: {
1092
- element: import("../element/types").NonDeletedExcalidrawElement;
1093
- state: "active" | "hover";
1094
- } | null;
1095
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1096
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1097
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1098
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1099
- isBindingEnabled: boolean;
1100
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1101
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1102
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1103
- frameRendering: {
1104
- enabled: boolean;
1105
- name: boolean;
1106
- outline: boolean;
1107
- clip: boolean;
1108
- };
1109
- editingFrame: string | null;
1110
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1111
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1112
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1113
- activeTool: {
1114
- lastActiveTool: import("../types").ActiveTool | null;
1115
- locked: boolean;
1116
- } & import("../types").ActiveTool;
1117
- penMode: boolean;
1118
- penDetected: boolean;
1119
- exportBackground: boolean;
1120
- exportEmbedScene: boolean;
1121
- exportWithDarkMode: boolean;
1122
- exportScale: number;
1123
- currentItemStrokeColor: string;
1124
- currentItemBackgroundColor: string;
1125
- currentItemFillStyle: import("../element/types").FillStyle;
1126
- currentItemStrokeWidth: number;
1127
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1128
- currentItemRoughness: number;
1129
- currentItemOpacity: number;
1130
- currentItemFontFamily: number;
1131
- currentItemFontSize: number;
1132
- currentItemTextAlign: string;
1133
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1134
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1135
- currentHoveredFontFamily: number | null;
1136
- currentItemRoundness: import("../element/types").StrokeRoundness;
1137
- currentItemArrowType: "round" | "sharp" | "elbow";
1138
- viewBackgroundColor: string;
1139
- scrollX: number;
1140
- scrollY: number;
1141
- cursorButton: "up" | "down";
1142
- scrolledOutside: boolean;
1143
- name: string | null;
1144
- isResizing: boolean;
1145
- isRotating: boolean;
1146
- zoom: Readonly<{
1147
- value: import("../types").NormalizedZoomValue;
1148
- }>;
1149
- openMenu: "canvas" | "shape" | null;
1150
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1151
- openSidebar: {
1152
- name: string;
1153
- tab?: string | undefined;
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
- zenModeEnabled: boolean;
1166
- theme: Theme;
1167
- gridSize: number;
1168
- gridStep: number;
1169
- gridModeEnabled: boolean;
1170
- viewModeEnabled: boolean;
1171
- selectedGroupIds: {
1172
- [groupId: string]: boolean;
1173
- };
1174
- editingGroupId: string | null;
1175
- width: number;
1176
- height: number;
1177
- offsetTop: number;
1178
- offsetLeft: number;
1179
- collaborators: Map<import("../types").SocketId, Readonly<{
1180
- pointer?: import("../types").CollaboratorPointer | undefined;
1181
- button?: "up" | "down" | undefined;
1182
- selectedElementIds?: Readonly<{
1183
- [id: string]: true;
1184
- }> | undefined;
1185
- username?: string | null | undefined;
1186
- userState?: import("../types").UserIdleState | undefined;
1187
- color?: {
1188
- background: string;
1189
- stroke: string;
1190
- } | undefined;
1191
- avatarUrl?: string | undefined;
1192
- id?: string | undefined;
1193
- socketId?: import("../types").SocketId | undefined;
1194
- isCurrentUser?: boolean | undefined;
1195
- isInCall?: boolean | undefined;
1196
- isSpeaking?: boolean | undefined;
1197
- isMuted?: boolean | undefined;
1198
- }>>;
1199
- stats: {
1200
- open: boolean;
1201
- panels: number;
1202
- };
1203
- currentChartType: import("../element/types").ChartType;
1204
- pasteDialog: {
1205
- shown: false;
1206
- data: null;
1207
- } | {
1208
- shown: true;
1209
- data: import("../charts").Spreadsheet;
1210
- };
1211
- pendingImageElementId: string | null;
1212
- showHyperlinkPopup: false | "info" | "editor";
1213
- linkOpacity: number;
1214
- trayModeEnabled: boolean;
1215
- colorPalette?: {
1216
- canvasBackground: import("../colors").ColorPaletteCustom;
1217
- elementBackground: import("../colors").ColorPaletteCustom;
1218
- elementStroke: import("../colors").ColorPaletteCustom;
1219
- topPicks: {
1220
- canvasBackground: [string, string, string, string, string];
1221
- elementStroke: [string, string, string, string, string];
1222
- elementBackground: [string, string, string, string, string];
1223
- };
1224
- } | undefined;
1225
- allowWheelZoom?: boolean | undefined;
1226
- allowPinchZoom?: boolean | undefined;
1227
- pinnedScripts?: string[] | undefined;
1228
- customPens?: any[] | undefined;
1229
- currentStrokeOptions?: any;
1230
- resetCustomPen?: any;
1231
- gridColor: {
1232
- Bold: string;
1233
- Regular: string;
1234
- };
1235
- highlightSearchResult: boolean;
1236
- dynamicStyle: {
1237
- [x: string]: string;
1238
- };
1239
- frameColor: {
1240
- stroke: string;
1241
- fill: string;
1242
- nameColor: string;
1243
- };
1244
- invertBindingBehaviour: boolean;
1245
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1246
- snapLines: readonly import("../snapping").SnapLine[];
1247
- originSnapOffset: {
1248
- x: number;
1249
- y: number;
1250
- } | null;
1251
- objectsSnapModeEnabled: boolean;
1252
- userToFollow: import("../types").UserToFollow | null;
1253
- followedBy: Set<import("../types").SocketId>;
1254
- isCropping: boolean;
1255
- croppingElementId: string | null;
1256
- searchMatches: readonly {
1257
- id: string;
1258
- focus: boolean;
1259
- matchedLines: {
1260
- offsetX: number;
1261
- offsetY: number;
1262
- width: number;
1263
- height: number;
1264
- }[];
1265
- }[];
1266
- };
1267
- } | {
1268
- storeAction: "none";
1269
- appState?: undefined;
1270
- }>;
1271
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1272
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
1273
- } & {
1274
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1275
- };
1276
- export declare const actionLoadScene: {
1277
- name: "loadScene";
1278
- label: string;
1279
- trackEvent: {
1280
- category: "export";
1281
- };
1282
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1283
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1284
- elements: import("../element/types").OrderedExcalidrawElement[];
1285
- appState: {
1286
- contextMenu: {
1287
- items: import("../components/ContextMenu").ContextMenuItems;
1288
- top: number;
1289
- left: number;
1290
- } | null;
1291
- showWelcomeScreen: boolean;
1292
- isLoading: boolean;
1293
- errorMessage: import("react").ReactNode;
1294
- activeEmbeddable: {
1295
- element: import("../element/types").NonDeletedExcalidrawElement;
1296
- state: "active" | "hover";
1297
- } | null;
1298
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1299
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1300
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1301
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1302
- isBindingEnabled: boolean;
1303
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1304
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1305
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1306
- frameRendering: {
1307
- enabled: boolean;
1308
- name: boolean;
1309
- outline: boolean;
1310
- clip: boolean;
1311
- };
1312
- editingFrame: string | null;
1313
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1314
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1315
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1316
- activeTool: {
1317
- lastActiveTool: import("../types").ActiveTool | null;
1318
- locked: boolean;
1319
- } & import("../types").ActiveTool;
1320
- penMode: boolean;
1321
- penDetected: boolean;
1322
- exportBackground: boolean;
1323
- exportEmbedScene: boolean;
1324
- exportWithDarkMode: boolean;
1325
- exportScale: number;
1326
- currentItemStrokeColor: string;
1327
- currentItemBackgroundColor: string;
1328
- currentItemFillStyle: import("../element/types").FillStyle;
1329
- currentItemStrokeWidth: number;
1330
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1331
- currentItemRoughness: number;
1332
- currentItemOpacity: number;
1333
- currentItemFontFamily: number;
1334
- currentItemFontSize: number;
1335
- currentItemTextAlign: string;
1336
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1337
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1338
- currentHoveredFontFamily: number | null;
1339
- currentItemRoundness: import("../element/types").StrokeRoundness;
1340
- currentItemArrowType: "round" | "sharp" | "elbow";
1341
- viewBackgroundColor: string;
1342
- scrollX: number;
1343
- scrollY: number;
1344
- cursorButton: "up" | "down";
1345
- scrolledOutside: boolean;
1346
- name: string | null;
1347
- isResizing: boolean;
1348
- isRotating: boolean;
1349
- zoom: Readonly<{
1350
- value: import("../types").NormalizedZoomValue;
1351
- }>;
1352
- openMenu: "canvas" | "shape" | null;
1353
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1354
- openSidebar: {
1355
- name: string;
1356
- tab?: string | undefined;
1357
- } | null;
1358
- openDialog: {
1359
- name: "imageExport" | "help" | "jsonExport";
1360
- } | {
1361
- name: "ttd";
1362
- tab: "mermaid" | "text-to-diagram";
1363
- } | {
1364
- name: "commandPalette";
1365
- } | null;
1366
- defaultSidebarDockedPreference: boolean;
1367
- lastPointerDownWith: import("../element/types").PointerType;
1368
- selectedElementIds: Readonly<{
1369
- [id: string]: true;
1370
- }>;
1371
- previousSelectedElementIds: {
1372
- [id: string]: true;
1373
- };
1374
- selectedElementsAreBeingDragged: boolean;
1375
- shouldCacheIgnoreZoom: boolean;
1376
- toast: {
1377
- message: string;
1378
- closable?: boolean | undefined;
1379
- duration?: number | undefined;
1380
- } | null;
1381
- zenModeEnabled: boolean;
1382
- theme: Theme;
1383
- gridSize: number;
1384
- gridStep: number;
1385
- gridModeEnabled: boolean;
1386
- viewModeEnabled: boolean;
1387
- selectedGroupIds: {
1388
- [groupId: string]: boolean;
1389
- };
1390
- editingGroupId: string | null;
1391
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1392
- collaborators: Map<import("../types").SocketId, Readonly<{
1393
- pointer?: import("../types").CollaboratorPointer | undefined;
1394
- button?: "up" | "down" | undefined;
1395
- selectedElementIds?: Readonly<{
1396
- [id: string]: true;
1397
- }> | undefined;
1398
- username?: string | null | undefined;
1399
- userState?: import("../types").UserIdleState | undefined;
1400
- color?: {
1401
- background: string;
1402
- stroke: string;
1403
- } | undefined;
1404
- avatarUrl?: string | undefined;
1405
- id?: string | undefined;
1406
- socketId?: import("../types").SocketId | undefined;
1407
- isCurrentUser?: boolean | undefined;
1408
- isInCall?: boolean | undefined;
1409
- isSpeaking?: boolean | undefined;
1410
- isMuted?: boolean | undefined;
1411
- }>>;
1412
- stats: {
1413
- open: boolean;
1414
- panels: number;
1415
- };
1416
- currentChartType: import("../element/types").ChartType;
1417
- pasteDialog: {
1418
- shown: false;
1419
- data: null;
1420
- } | {
1421
- shown: true;
1422
- data: import("../charts").Spreadsheet;
1423
- };
1424
- pendingImageElementId: string | null;
1425
- showHyperlinkPopup: false | "info" | "editor";
1426
- linkOpacity: number;
1427
- trayModeEnabled: boolean;
1428
- colorPalette?: {
1429
- canvasBackground: import("../colors").ColorPaletteCustom;
1430
- elementBackground: import("../colors").ColorPaletteCustom;
1431
- elementStroke: import("../colors").ColorPaletteCustom;
1432
- topPicks: {
1433
- canvasBackground: [string, string, string, string, string];
1434
- elementStroke: [string, string, string, string, string];
1435
- elementBackground: [string, string, string, string, string];
1436
- };
1437
- } | undefined;
1438
- allowWheelZoom?: boolean | undefined;
1439
- allowPinchZoom?: boolean | undefined;
1440
- pinnedScripts?: string[] | undefined;
1441
- customPens?: any[] | undefined;
1442
- currentStrokeOptions?: any;
1443
- resetCustomPen?: any;
1444
- gridColor: {
1445
- Bold: string;
1446
- Regular: string;
1447
- };
1448
- highlightSearchResult: boolean;
1449
- dynamicStyle: {
1450
- [x: string]: string;
1451
- };
1452
- frameColor: {
1453
- stroke: string;
1454
- fill: string;
1455
- nameColor: string;
1456
- };
1457
- invertBindingBehaviour: boolean;
1458
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1459
- snapLines: readonly import("../snapping").SnapLine[];
1460
- originSnapOffset: {
1461
- x: number;
1462
- y: number;
1463
- } | null;
1464
- objectsSnapModeEnabled: boolean;
1465
- userToFollow: import("../types").UserToFollow | null;
1466
- followedBy: Set<import("../types").SocketId>;
1467
- isCropping: boolean;
1468
- croppingElementId: string | null;
1469
- searchMatches: readonly {
1470
- id: string;
1471
- focus: boolean;
1472
- matchedLines: {
1473
- offsetX: number;
1474
- offsetY: number;
1475
- width: number;
1476
- height: number;
1477
- }[];
1478
- }[];
1479
- };
1480
- files: import("../types").BinaryFiles;
1481
- storeAction: "capture";
1482
- } | {
1483
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
1484
- appState: {
1485
- errorMessage: any;
1486
- contextMenu: {
1487
- items: import("../components/ContextMenu").ContextMenuItems;
1488
- top: number;
1489
- left: number;
1490
- } | null;
1491
- showWelcomeScreen: boolean;
1492
- isLoading: boolean;
1493
- activeEmbeddable: {
1494
- element: import("../element/types").NonDeletedExcalidrawElement;
1495
- state: "active" | "hover";
1496
- } | null;
1497
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1498
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1499
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1500
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1501
- isBindingEnabled: boolean;
1502
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1503
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1504
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1505
- frameRendering: {
1506
- enabled: boolean;
1507
- name: boolean;
1508
- outline: boolean;
1509
- clip: boolean;
1510
- };
1511
- editingFrame: string | null;
1512
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1513
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1514
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1515
- activeTool: {
1516
- lastActiveTool: import("../types").ActiveTool | null;
1517
- locked: boolean;
1518
- } & import("../types").ActiveTool;
1519
- penMode: boolean;
1520
- penDetected: boolean;
1521
- exportBackground: boolean;
1522
- exportEmbedScene: boolean;
1523
- exportWithDarkMode: boolean;
1524
- exportScale: number;
1525
- currentItemStrokeColor: string;
1526
- currentItemBackgroundColor: string;
1527
- currentItemFillStyle: import("../element/types").FillStyle;
1528
- currentItemStrokeWidth: number;
1529
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1530
- currentItemRoughness: number;
1531
- currentItemOpacity: number;
1532
- currentItemFontFamily: number;
1533
- currentItemFontSize: number;
1534
- currentItemTextAlign: string;
1535
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1536
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1537
- currentHoveredFontFamily: number | null;
1538
- currentItemRoundness: import("../element/types").StrokeRoundness;
1539
- currentItemArrowType: "round" | "sharp" | "elbow";
1540
- viewBackgroundColor: string;
1541
- scrollX: number;
1542
- scrollY: number;
1543
- cursorButton: "up" | "down";
1544
- scrolledOutside: boolean;
1545
- name: string | null;
1546
- isResizing: boolean;
1547
- isRotating: boolean;
1548
- zoom: Readonly<{
1549
- value: import("../types").NormalizedZoomValue;
1550
- }>;
1551
- openMenu: "canvas" | "shape" | null;
1552
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1553
- openSidebar: {
1554
- name: string;
1555
- tab?: string | undefined;
1556
- } | null;
1557
- openDialog: {
1558
- name: "imageExport" | "help" | "jsonExport";
1559
- } | {
1560
- name: "ttd";
1561
- tab: "mermaid" | "text-to-diagram";
1562
- } | {
1563
- name: "commandPalette";
1564
- } | null;
1565
- defaultSidebarDockedPreference: boolean;
1566
- lastPointerDownWith: import("../element/types").PointerType;
1567
- selectedElementIds: Readonly<{
1568
- [id: string]: true;
1569
- }>;
1570
- previousSelectedElementIds: {
1571
- [id: string]: true;
1572
- };
1573
- selectedElementsAreBeingDragged: boolean;
1574
- shouldCacheIgnoreZoom: boolean;
1575
- toast: {
1576
- message: string;
1577
- closable?: boolean | undefined;
1578
- duration?: number | undefined;
1579
- } | null;
1580
- zenModeEnabled: boolean;
1581
- theme: Theme;
1582
- gridSize: number;
1583
- gridStep: number;
1584
- gridModeEnabled: boolean;
1585
- viewModeEnabled: boolean;
1586
- selectedGroupIds: {
1587
- [groupId: string]: boolean;
1588
- };
1589
- editingGroupId: string | null;
1590
- width: number;
1591
- height: number;
1592
- offsetTop: number;
1593
- offsetLeft: number;
1594
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1595
- collaborators: Map<import("../types").SocketId, Readonly<{
1596
- pointer?: import("../types").CollaboratorPointer | undefined;
1597
- button?: "up" | "down" | undefined;
1598
- selectedElementIds?: Readonly<{
1599
- [id: string]: true;
1600
- }> | undefined;
1601
- username?: string | null | undefined;
1602
- userState?: import("../types").UserIdleState | undefined;
1603
- color?: {
1604
- background: string;
1605
- stroke: string;
1606
- } | undefined;
1607
- avatarUrl?: string | undefined;
1608
- id?: string | undefined;
1609
- socketId?: import("../types").SocketId | undefined;
1610
- isCurrentUser?: boolean | undefined;
1611
- isInCall?: boolean | undefined;
1612
- isSpeaking?: boolean | undefined;
1613
- isMuted?: boolean | undefined;
1614
- }>>;
1615
- stats: {
1616
- open: boolean;
1617
- panels: number;
1618
- };
1619
- currentChartType: import("../element/types").ChartType;
1620
- pasteDialog: {
1621
- shown: false;
1622
- data: null;
1623
- } | {
1624
- shown: true;
1625
- data: import("../charts").Spreadsheet;
1626
- };
1627
- pendingImageElementId: string | null;
1628
- showHyperlinkPopup: false | "info" | "editor";
1629
- linkOpacity: number;
1630
- trayModeEnabled: boolean;
1631
- colorPalette?: {
1632
- canvasBackground: import("../colors").ColorPaletteCustom;
1633
- elementBackground: import("../colors").ColorPaletteCustom;
1634
- elementStroke: import("../colors").ColorPaletteCustom;
1635
- topPicks: {
1636
- canvasBackground: [string, string, string, string, string];
1637
- elementStroke: [string, string, string, string, string];
1638
- elementBackground: [string, string, string, string, string];
1639
- };
1640
- } | undefined;
1641
- allowWheelZoom?: boolean | undefined;
1642
- allowPinchZoom?: boolean | undefined;
1643
- pinnedScripts?: string[] | undefined;
1644
- customPens?: any[] | undefined;
1645
- currentStrokeOptions?: any;
1646
- resetCustomPen?: any;
1647
- gridColor: {
1648
- Bold: string;
1649
- Regular: string;
1650
- };
1651
- highlightSearchResult: boolean;
1652
- dynamicStyle: {
1653
- [x: string]: string;
1654
- };
1655
- frameColor: {
1656
- stroke: string;
1657
- fill: string;
1658
- nameColor: string;
1659
- };
1660
- invertBindingBehaviour: boolean;
1661
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1662
- snapLines: readonly import("../snapping").SnapLine[];
1663
- originSnapOffset: {
1664
- x: number;
1665
- y: number;
1666
- } | null;
1667
- objectsSnapModeEnabled: boolean;
1668
- userToFollow: import("../types").UserToFollow | null;
1669
- followedBy: Set<import("../types").SocketId>;
1670
- isCropping: boolean;
1671
- croppingElementId: string | null;
1672
- searchMatches: readonly {
1673
- id: string;
1674
- focus: boolean;
1675
- matchedLines: {
1676
- offsetX: number;
1677
- offsetY: number;
1678
- width: number;
1679
- height: number;
1680
- }[];
1681
- }[];
1682
- };
1683
- files: import("../types").BinaryFiles;
1684
- storeAction: "none";
1685
- }>;
1686
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1687
- } & {
1688
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1689
- };
1690
- export declare const actionExportWithDarkMode: {
1691
- name: "exportWithDarkMode";
1692
- label: string;
1693
- trackEvent: {
1694
- category: "export";
1695
- action: string;
1696
- };
1697
- perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1698
- appState: {
1699
- exportWithDarkMode: any;
1700
- contextMenu: {
1701
- items: import("../components/ContextMenu").ContextMenuItems;
1702
- top: number;
1703
- left: number;
1704
- } | null;
1705
- showWelcomeScreen: boolean;
1706
- isLoading: boolean;
1707
- errorMessage: import("react").ReactNode;
1708
- activeEmbeddable: {
1709
- element: import("../element/types").NonDeletedExcalidrawElement;
1710
- state: "active" | "hover";
1711
- } | null;
1712
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1713
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1714
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1715
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1716
- isBindingEnabled: boolean;
1717
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1718
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1719
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1720
- frameRendering: {
1721
- enabled: boolean;
1722
- name: boolean;
1723
- outline: boolean;
1724
- clip: boolean;
1725
- };
1726
- editingFrame: string | null;
1727
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1728
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1729
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1730
- activeTool: {
1731
- lastActiveTool: import("../types").ActiveTool | null;
1732
- locked: boolean;
1733
- } & import("../types").ActiveTool;
1734
- penMode: boolean;
1735
- penDetected: boolean;
1736
- exportBackground: boolean;
1737
- exportEmbedScene: boolean;
1738
- exportScale: number;
1739
- currentItemStrokeColor: string;
1740
- currentItemBackgroundColor: string;
1741
- currentItemFillStyle: import("../element/types").FillStyle;
1742
- currentItemStrokeWidth: number;
1743
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1744
- currentItemRoughness: number;
1745
- currentItemOpacity: number;
1746
- currentItemFontFamily: number;
1747
- currentItemFontSize: number;
1748
- currentItemTextAlign: string;
1749
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1750
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1751
- currentHoveredFontFamily: number | null;
1752
- currentItemRoundness: import("../element/types").StrokeRoundness;
1753
- currentItemArrowType: "round" | "sharp" | "elbow";
1754
- viewBackgroundColor: string;
1755
- scrollX: number;
1756
- scrollY: number;
1757
- cursorButton: "up" | "down";
1758
- scrolledOutside: boolean;
1759
- name: string | null;
1760
- isResizing: boolean;
1761
- isRotating: boolean;
1762
- zoom: Readonly<{
1763
- value: import("../types").NormalizedZoomValue;
1764
- }>;
1765
- openMenu: "canvas" | "shape" | null;
1766
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1767
- openSidebar: {
1768
- name: string;
1769
- tab?: string | undefined;
1770
- } | null;
1771
- openDialog: {
1772
- name: "imageExport" | "help" | "jsonExport";
1773
- } | {
1774
- name: "ttd";
1775
- tab: "mermaid" | "text-to-diagram";
1776
- } | {
1777
- name: "commandPalette";
1778
- } | null;
1779
- defaultSidebarDockedPreference: boolean;
1780
- lastPointerDownWith: import("../element/types").PointerType;
1781
- selectedElementIds: Readonly<{
1782
- [id: string]: true;
1783
- }>;
1784
- previousSelectedElementIds: {
1785
- [id: string]: true;
1786
- };
1787
- selectedElementsAreBeingDragged: boolean;
1788
- shouldCacheIgnoreZoom: boolean;
1789
- toast: {
1790
- message: string;
1791
- closable?: boolean | undefined;
1792
- duration?: number | undefined;
1793
- } | null;
1794
- zenModeEnabled: boolean;
1795
- theme: Theme;
1796
- gridSize: number;
1797
- gridStep: number;
1798
- gridModeEnabled: boolean;
1799
- viewModeEnabled: boolean;
1800
- selectedGroupIds: {
1801
- [groupId: string]: boolean;
1802
- };
1803
- editingGroupId: string | null;
1804
- width: number;
1805
- height: number;
1806
- offsetTop: number;
1807
- offsetLeft: number;
1808
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1809
- collaborators: Map<import("../types").SocketId, Readonly<{
1810
- pointer?: import("../types").CollaboratorPointer | undefined;
1811
- button?: "up" | "down" | undefined;
1812
- selectedElementIds?: Readonly<{
1813
- [id: string]: true;
1814
- }> | undefined;
1815
- username?: string | null | undefined;
1816
- userState?: import("../types").UserIdleState | undefined;
1817
- color?: {
1818
- background: string;
1819
- stroke: string;
1820
- } | undefined;
1821
- avatarUrl?: string | undefined;
1822
- id?: string | undefined;
1823
- socketId?: import("../types").SocketId | undefined;
1824
- isCurrentUser?: boolean | undefined;
1825
- isInCall?: boolean | undefined;
1826
- isSpeaking?: boolean | undefined;
1827
- isMuted?: boolean | undefined;
1828
- }>>;
1829
- stats: {
1830
- open: boolean;
1831
- panels: number;
1832
- };
1833
- currentChartType: import("../element/types").ChartType;
1834
- pasteDialog: {
1835
- shown: false;
1836
- data: null;
1837
- } | {
1838
- shown: true;
1839
- data: import("../charts").Spreadsheet;
1840
- };
1841
- pendingImageElementId: string | null;
1842
- showHyperlinkPopup: false | "info" | "editor";
1843
- linkOpacity: number;
1844
- trayModeEnabled: boolean;
1845
- colorPalette?: {
1846
- canvasBackground: import("../colors").ColorPaletteCustom;
1847
- elementBackground: import("../colors").ColorPaletteCustom;
1848
- elementStroke: import("../colors").ColorPaletteCustom;
1849
- topPicks: {
1850
- canvasBackground: [string, string, string, string, string];
1851
- elementStroke: [string, string, string, string, string];
1852
- elementBackground: [string, string, string, string, string];
1853
- };
1854
- } | undefined;
1855
- allowWheelZoom?: boolean | undefined;
1856
- allowPinchZoom?: boolean | undefined;
1857
- pinnedScripts?: string[] | undefined;
1858
- customPens?: any[] | undefined;
1859
- currentStrokeOptions?: any;
1860
- resetCustomPen?: any;
1861
- gridColor: {
1862
- Bold: string;
1863
- Regular: string;
1864
- };
1865
- highlightSearchResult: boolean;
1866
- dynamicStyle: {
1867
- [x: string]: string;
1868
- };
1869
- frameColor: {
1870
- stroke: string;
1871
- fill: string;
1872
- nameColor: string;
1873
- };
1874
- invertBindingBehaviour: boolean;
1875
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1876
- snapLines: readonly import("../snapping").SnapLine[];
1877
- originSnapOffset: {
1878
- x: number;
1879
- y: number;
1880
- } | null;
1881
- objectsSnapModeEnabled: boolean;
1882
- userToFollow: import("../types").UserToFollow | null;
1883
- followedBy: Set<import("../types").SocketId>;
1884
- isCropping: boolean;
1885
- croppingElementId: string | null;
1886
- searchMatches: readonly {
1887
- id: string;
1888
- focus: boolean;
1889
- matchedLines: {
1890
- offsetX: number;
1891
- offsetY: number;
1892
- width: number;
1893
- height: number;
1894
- }[];
1895
- }[];
1896
- };
1897
- storeAction: "none";
1898
- };
1899
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1900
- } & {
1901
- keyTest?: undefined;
1902
- };
1
+ import type { Theme } from "../element/types";
2
+ import "../components/ToolIcon.scss";
3
+ export declare const actionChangeProjectName: {
4
+ name: "changeProjectName";
5
+ label: string;
6
+ trackEvent: false;
7
+ perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
8
+ appState: {
9
+ name: any;
10
+ contextMenu: {
11
+ items: import("../components/ContextMenu").ContextMenuItems;
12
+ top: number;
13
+ left: number;
14
+ } | null;
15
+ showWelcomeScreen: boolean;
16
+ isLoading: boolean;
17
+ errorMessage: import("react").ReactNode;
18
+ activeEmbeddable: {
19
+ element: import("../element/types").NonDeletedExcalidrawElement;
20
+ state: "active" | "hover";
21
+ } | null;
22
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
23
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
25
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
+ isBindingEnabled: boolean;
27
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
28
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
29
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
30
+ frameRendering: {
31
+ enabled: boolean;
32
+ name: boolean;
33
+ outline: boolean;
34
+ clip: boolean;
35
+ };
36
+ editingFrame: string | null;
37
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
38
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
40
+ activeTool: {
41
+ lastActiveTool: import("../types").ActiveTool | null;
42
+ locked: boolean;
43
+ } & import("../types").ActiveTool;
44
+ penMode: boolean;
45
+ penDetected: boolean;
46
+ exportBackground: boolean;
47
+ exportEmbedScene: boolean;
48
+ exportWithDarkMode: boolean;
49
+ exportScale: number;
50
+ currentItemStrokeColor: string;
51
+ currentItemBackgroundColor: string;
52
+ currentItemFillStyle: import("../element/types").FillStyle;
53
+ currentItemStrokeWidth: number;
54
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
55
+ currentItemRoughness: number;
56
+ currentItemOpacity: number;
57
+ currentItemFontFamily: number;
58
+ currentItemFontSize: number;
59
+ currentItemTextAlign: string;
60
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
61
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
62
+ currentHoveredFontFamily: number | null;
63
+ currentItemRoundness: import("../element/types").StrokeRoundness;
64
+ currentItemArrowType: "round" | "sharp" | "elbow";
65
+ viewBackgroundColor: string;
66
+ scrollX: number;
67
+ scrollY: number;
68
+ cursorButton: "up" | "down";
69
+ scrolledOutside: boolean;
70
+ isResizing: boolean;
71
+ isRotating: boolean;
72
+ zoom: Readonly<{
73
+ value: import("../types").NormalizedZoomValue;
74
+ }>;
75
+ openMenu: "canvas" | "shape" | null;
76
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
77
+ openSidebar: {
78
+ name: string;
79
+ tab?: string | undefined;
80
+ } | null;
81
+ openDialog: {
82
+ name: "imageExport" | "help" | "jsonExport";
83
+ } | {
84
+ name: "ttd";
85
+ tab: "mermaid" | "text-to-diagram";
86
+ } | {
87
+ name: "commandPalette";
88
+ } | null;
89
+ defaultSidebarDockedPreference: boolean;
90
+ lastPointerDownWith: import("../element/types").PointerType;
91
+ selectedElementIds: Readonly<{
92
+ [id: string]: true;
93
+ }>;
94
+ previousSelectedElementIds: {
95
+ [id: string]: true;
96
+ };
97
+ selectedElementsAreBeingDragged: boolean;
98
+ shouldCacheIgnoreZoom: boolean;
99
+ toast: {
100
+ message: string;
101
+ closable?: boolean | undefined;
102
+ duration?: number | undefined;
103
+ } | null;
104
+ zenModeEnabled: boolean;
105
+ theme: Theme;
106
+ gridSize: number;
107
+ gridStep: number;
108
+ gridModeEnabled: boolean;
109
+ viewModeEnabled: boolean;
110
+ selectedGroupIds: {
111
+ [groupId: string]: boolean;
112
+ };
113
+ editingGroupId: string | null;
114
+ width: number;
115
+ height: number;
116
+ offsetTop: number;
117
+ offsetLeft: number;
118
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
119
+ collaborators: Map<import("../types").SocketId, Readonly<{
120
+ pointer?: import("../types").CollaboratorPointer | undefined;
121
+ button?: "up" | "down" | undefined;
122
+ selectedElementIds?: Readonly<{
123
+ [id: string]: true;
124
+ }> | undefined;
125
+ username?: string | null | undefined;
126
+ userState?: import("../types").UserIdleState | undefined;
127
+ color?: {
128
+ background: string;
129
+ stroke: string;
130
+ } | undefined;
131
+ avatarUrl?: string | undefined;
132
+ id?: string | undefined;
133
+ socketId?: import("../types").SocketId | undefined;
134
+ isCurrentUser?: boolean | undefined;
135
+ isInCall?: boolean | undefined;
136
+ isSpeaking?: boolean | undefined;
137
+ isMuted?: boolean | undefined;
138
+ }>>;
139
+ stats: {
140
+ open: boolean;
141
+ panels: number;
142
+ };
143
+ currentChartType: import("../element/types").ChartType;
144
+ pasteDialog: {
145
+ shown: false;
146
+ data: null;
147
+ } | {
148
+ shown: true;
149
+ data: import("../charts").Spreadsheet;
150
+ };
151
+ pendingImageElementId: string | null;
152
+ showHyperlinkPopup: false | "info" | "editor";
153
+ linkOpacity: number;
154
+ trayModeEnabled: boolean;
155
+ colorPalette?: {
156
+ canvasBackground: import("../colors").ColorPaletteCustom;
157
+ elementBackground: import("../colors").ColorPaletteCustom;
158
+ elementStroke: import("../colors").ColorPaletteCustom;
159
+ topPicks: {
160
+ canvasBackground: [string, string, string, string, string];
161
+ elementStroke: [string, string, string, string, string];
162
+ elementBackground: [string, string, string, string, string];
163
+ };
164
+ } | undefined;
165
+ allowWheelZoom?: boolean | undefined;
166
+ allowPinchZoom?: boolean | undefined;
167
+ pinnedScripts?: string[] | undefined;
168
+ customPens?: any[] | undefined;
169
+ currentStrokeOptions?: any;
170
+ resetCustomPen?: any;
171
+ gridColor: {
172
+ Bold: string;
173
+ Regular: string;
174
+ };
175
+ highlightSearchResult: boolean;
176
+ dynamicStyle: {
177
+ [x: string]: string;
178
+ };
179
+ frameColor: {
180
+ stroke: string;
181
+ fill: string;
182
+ nameColor: string;
183
+ };
184
+ invertBindingBehaviour: boolean;
185
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
186
+ snapLines: readonly import("../snapping").SnapLine[];
187
+ originSnapOffset: {
188
+ x: number;
189
+ y: number;
190
+ } | null;
191
+ objectsSnapModeEnabled: boolean;
192
+ userToFollow: import("../types").UserToFollow | null;
193
+ followedBy: Set<import("../types").SocketId>;
194
+ isCropping: boolean;
195
+ croppingElementId: string | null;
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
+ storeAction: "none";
208
+ };
209
+ PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => JSX.Element;
210
+ } & {
211
+ keyTest?: undefined;
212
+ };
213
+ export declare const actionChangeExportScale: {
214
+ name: "changeExportScale";
215
+ label: string;
216
+ trackEvent: {
217
+ category: "export";
218
+ action: string;
219
+ };
220
+ perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
221
+ appState: {
222
+ exportScale: any;
223
+ contextMenu: {
224
+ items: import("../components/ContextMenu").ContextMenuItems;
225
+ top: number;
226
+ left: number;
227
+ } | null;
228
+ showWelcomeScreen: boolean;
229
+ isLoading: boolean;
230
+ errorMessage: import("react").ReactNode;
231
+ activeEmbeddable: {
232
+ element: import("../element/types").NonDeletedExcalidrawElement;
233
+ state: "active" | "hover";
234
+ } | null;
235
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
236
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
237
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
238
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
239
+ isBindingEnabled: boolean;
240
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
241
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
242
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
243
+ frameRendering: {
244
+ enabled: boolean;
245
+ name: boolean;
246
+ outline: boolean;
247
+ clip: boolean;
248
+ };
249
+ editingFrame: string | null;
250
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
251
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
252
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
253
+ activeTool: {
254
+ lastActiveTool: import("../types").ActiveTool | null;
255
+ locked: boolean;
256
+ } & import("../types").ActiveTool;
257
+ penMode: boolean;
258
+ penDetected: boolean;
259
+ exportBackground: boolean;
260
+ exportEmbedScene: boolean;
261
+ exportWithDarkMode: boolean;
262
+ currentItemStrokeColor: string;
263
+ currentItemBackgroundColor: string;
264
+ currentItemFillStyle: import("../element/types").FillStyle;
265
+ currentItemStrokeWidth: number;
266
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
267
+ currentItemRoughness: number;
268
+ currentItemOpacity: number;
269
+ currentItemFontFamily: number;
270
+ currentItemFontSize: number;
271
+ currentItemTextAlign: string;
272
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
273
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
274
+ currentHoveredFontFamily: number | null;
275
+ currentItemRoundness: import("../element/types").StrokeRoundness;
276
+ currentItemArrowType: "round" | "sharp" | "elbow";
277
+ viewBackgroundColor: string;
278
+ scrollX: number;
279
+ scrollY: number;
280
+ cursorButton: "up" | "down";
281
+ scrolledOutside: boolean;
282
+ name: string | null;
283
+ isResizing: boolean;
284
+ isRotating: boolean;
285
+ zoom: Readonly<{
286
+ value: import("../types").NormalizedZoomValue;
287
+ }>;
288
+ openMenu: "canvas" | "shape" | null;
289
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
290
+ openSidebar: {
291
+ name: string;
292
+ tab?: string | undefined;
293
+ } | null;
294
+ openDialog: {
295
+ name: "imageExport" | "help" | "jsonExport";
296
+ } | {
297
+ name: "ttd";
298
+ tab: "mermaid" | "text-to-diagram";
299
+ } | {
300
+ name: "commandPalette";
301
+ } | null;
302
+ defaultSidebarDockedPreference: boolean;
303
+ lastPointerDownWith: import("../element/types").PointerType;
304
+ selectedElementIds: Readonly<{
305
+ [id: string]: true;
306
+ }>;
307
+ previousSelectedElementIds: {
308
+ [id: string]: true;
309
+ };
310
+ selectedElementsAreBeingDragged: boolean;
311
+ shouldCacheIgnoreZoom: boolean;
312
+ toast: {
313
+ message: string;
314
+ closable?: boolean | undefined;
315
+ duration?: number | undefined;
316
+ } | null;
317
+ zenModeEnabled: boolean;
318
+ theme: Theme;
319
+ gridSize: number;
320
+ gridStep: number;
321
+ gridModeEnabled: boolean;
322
+ viewModeEnabled: boolean;
323
+ selectedGroupIds: {
324
+ [groupId: string]: boolean;
325
+ };
326
+ editingGroupId: string | null;
327
+ width: number;
328
+ height: number;
329
+ offsetTop: number;
330
+ offsetLeft: number;
331
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
332
+ collaborators: Map<import("../types").SocketId, Readonly<{
333
+ pointer?: import("../types").CollaboratorPointer | undefined;
334
+ button?: "up" | "down" | undefined;
335
+ selectedElementIds?: Readonly<{
336
+ [id: string]: true;
337
+ }> | undefined;
338
+ username?: string | null | undefined;
339
+ userState?: import("../types").UserIdleState | undefined;
340
+ color?: {
341
+ background: string;
342
+ stroke: string;
343
+ } | undefined;
344
+ avatarUrl?: string | undefined;
345
+ id?: string | undefined;
346
+ socketId?: import("../types").SocketId | undefined;
347
+ isCurrentUser?: boolean | undefined;
348
+ isInCall?: boolean | undefined;
349
+ isSpeaking?: boolean | undefined;
350
+ isMuted?: boolean | undefined;
351
+ }>>;
352
+ stats: {
353
+ open: boolean;
354
+ panels: number;
355
+ };
356
+ currentChartType: import("../element/types").ChartType;
357
+ pasteDialog: {
358
+ shown: false;
359
+ data: null;
360
+ } | {
361
+ shown: true;
362
+ data: import("../charts").Spreadsheet;
363
+ };
364
+ pendingImageElementId: string | null;
365
+ showHyperlinkPopup: false | "info" | "editor";
366
+ linkOpacity: number;
367
+ trayModeEnabled: boolean;
368
+ colorPalette?: {
369
+ canvasBackground: import("../colors").ColorPaletteCustom;
370
+ elementBackground: import("../colors").ColorPaletteCustom;
371
+ elementStroke: import("../colors").ColorPaletteCustom;
372
+ topPicks: {
373
+ canvasBackground: [string, string, string, string, string];
374
+ elementStroke: [string, string, string, string, string];
375
+ elementBackground: [string, string, string, string, string];
376
+ };
377
+ } | undefined;
378
+ allowWheelZoom?: boolean | undefined;
379
+ allowPinchZoom?: boolean | undefined;
380
+ pinnedScripts?: string[] | undefined;
381
+ customPens?: any[] | undefined;
382
+ currentStrokeOptions?: any;
383
+ resetCustomPen?: any;
384
+ gridColor: {
385
+ Bold: string;
386
+ Regular: string;
387
+ };
388
+ highlightSearchResult: boolean;
389
+ dynamicStyle: {
390
+ [x: string]: string;
391
+ };
392
+ frameColor: {
393
+ stroke: string;
394
+ fill: string;
395
+ nameColor: string;
396
+ };
397
+ invertBindingBehaviour: boolean;
398
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
399
+ snapLines: readonly import("../snapping").SnapLine[];
400
+ originSnapOffset: {
401
+ x: number;
402
+ y: number;
403
+ } | null;
404
+ objectsSnapModeEnabled: boolean;
405
+ userToFollow: import("../types").UserToFollow | null;
406
+ followedBy: Set<import("../types").SocketId>;
407
+ isCropping: boolean;
408
+ croppingElementId: string | null;
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
+ storeAction: "none";
421
+ };
422
+ PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
423
+ } & {
424
+ keyTest?: undefined;
425
+ };
426
+ export declare const actionChangeExportBackground: {
427
+ name: "changeExportBackground";
428
+ label: string;
429
+ trackEvent: {
430
+ category: "export";
431
+ action: string;
432
+ };
433
+ perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
434
+ appState: {
435
+ exportBackground: any;
436
+ contextMenu: {
437
+ items: import("../components/ContextMenu").ContextMenuItems;
438
+ top: number;
439
+ left: number;
440
+ } | null;
441
+ showWelcomeScreen: boolean;
442
+ isLoading: boolean;
443
+ errorMessage: import("react").ReactNode;
444
+ activeEmbeddable: {
445
+ element: import("../element/types").NonDeletedExcalidrawElement;
446
+ state: "active" | "hover";
447
+ } | null;
448
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
449
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
450
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
451
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
452
+ isBindingEnabled: boolean;
453
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
454
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
455
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
456
+ frameRendering: {
457
+ enabled: boolean;
458
+ name: boolean;
459
+ outline: boolean;
460
+ clip: boolean;
461
+ };
462
+ editingFrame: string | null;
463
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
464
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
465
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
466
+ activeTool: {
467
+ lastActiveTool: import("../types").ActiveTool | null;
468
+ locked: boolean;
469
+ } & import("../types").ActiveTool;
470
+ penMode: boolean;
471
+ penDetected: boolean;
472
+ exportEmbedScene: boolean;
473
+ exportWithDarkMode: boolean;
474
+ exportScale: number;
475
+ currentItemStrokeColor: string;
476
+ currentItemBackgroundColor: string;
477
+ currentItemFillStyle: import("../element/types").FillStyle;
478
+ currentItemStrokeWidth: number;
479
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
480
+ currentItemRoughness: number;
481
+ currentItemOpacity: number;
482
+ currentItemFontFamily: number;
483
+ currentItemFontSize: number;
484
+ currentItemTextAlign: string;
485
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
486
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
487
+ currentHoveredFontFamily: number | null;
488
+ currentItemRoundness: import("../element/types").StrokeRoundness;
489
+ currentItemArrowType: "round" | "sharp" | "elbow";
490
+ viewBackgroundColor: string;
491
+ scrollX: number;
492
+ scrollY: number;
493
+ cursorButton: "up" | "down";
494
+ scrolledOutside: boolean;
495
+ name: string | null;
496
+ isResizing: boolean;
497
+ isRotating: boolean;
498
+ zoom: Readonly<{
499
+ value: import("../types").NormalizedZoomValue;
500
+ }>;
501
+ openMenu: "canvas" | "shape" | null;
502
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
503
+ openSidebar: {
504
+ name: string;
505
+ tab?: string | undefined;
506
+ } | null;
507
+ openDialog: {
508
+ name: "imageExport" | "help" | "jsonExport";
509
+ } | {
510
+ name: "ttd";
511
+ tab: "mermaid" | "text-to-diagram";
512
+ } | {
513
+ name: "commandPalette";
514
+ } | null;
515
+ defaultSidebarDockedPreference: boolean;
516
+ lastPointerDownWith: import("../element/types").PointerType;
517
+ selectedElementIds: Readonly<{
518
+ [id: string]: true;
519
+ }>;
520
+ previousSelectedElementIds: {
521
+ [id: string]: true;
522
+ };
523
+ selectedElementsAreBeingDragged: boolean;
524
+ shouldCacheIgnoreZoom: boolean;
525
+ toast: {
526
+ message: string;
527
+ closable?: boolean | undefined;
528
+ duration?: number | undefined;
529
+ } | null;
530
+ zenModeEnabled: boolean;
531
+ theme: Theme;
532
+ gridSize: number;
533
+ gridStep: number;
534
+ gridModeEnabled: boolean;
535
+ viewModeEnabled: boolean;
536
+ selectedGroupIds: {
537
+ [groupId: string]: boolean;
538
+ };
539
+ editingGroupId: string | null;
540
+ width: number;
541
+ height: number;
542
+ offsetTop: number;
543
+ offsetLeft: number;
544
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
545
+ collaborators: Map<import("../types").SocketId, Readonly<{
546
+ pointer?: import("../types").CollaboratorPointer | undefined;
547
+ button?: "up" | "down" | undefined;
548
+ selectedElementIds?: Readonly<{
549
+ [id: string]: true;
550
+ }> | undefined;
551
+ username?: string | null | undefined;
552
+ userState?: import("../types").UserIdleState | undefined;
553
+ color?: {
554
+ background: string;
555
+ stroke: string;
556
+ } | undefined;
557
+ avatarUrl?: string | undefined;
558
+ id?: string | undefined;
559
+ socketId?: import("../types").SocketId | undefined;
560
+ isCurrentUser?: boolean | undefined;
561
+ isInCall?: boolean | undefined;
562
+ isSpeaking?: boolean | undefined;
563
+ isMuted?: boolean | undefined;
564
+ }>>;
565
+ stats: {
566
+ open: boolean;
567
+ panels: number;
568
+ };
569
+ currentChartType: import("../element/types").ChartType;
570
+ pasteDialog: {
571
+ shown: false;
572
+ data: null;
573
+ } | {
574
+ shown: true;
575
+ data: import("../charts").Spreadsheet;
576
+ };
577
+ pendingImageElementId: string | null;
578
+ showHyperlinkPopup: false | "info" | "editor";
579
+ linkOpacity: number;
580
+ trayModeEnabled: boolean;
581
+ colorPalette?: {
582
+ canvasBackground: import("../colors").ColorPaletteCustom;
583
+ elementBackground: import("../colors").ColorPaletteCustom;
584
+ elementStroke: import("../colors").ColorPaletteCustom;
585
+ topPicks: {
586
+ canvasBackground: [string, string, string, string, string];
587
+ elementStroke: [string, string, string, string, string];
588
+ elementBackground: [string, string, string, string, string];
589
+ };
590
+ } | undefined;
591
+ allowWheelZoom?: boolean | undefined;
592
+ allowPinchZoom?: boolean | undefined;
593
+ pinnedScripts?: string[] | undefined;
594
+ customPens?: any[] | undefined;
595
+ currentStrokeOptions?: any;
596
+ resetCustomPen?: any;
597
+ gridColor: {
598
+ Bold: string;
599
+ Regular: string;
600
+ };
601
+ highlightSearchResult: boolean;
602
+ dynamicStyle: {
603
+ [x: string]: string;
604
+ };
605
+ frameColor: {
606
+ stroke: string;
607
+ fill: string;
608
+ nameColor: string;
609
+ };
610
+ invertBindingBehaviour: boolean;
611
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
612
+ snapLines: readonly import("../snapping").SnapLine[];
613
+ originSnapOffset: {
614
+ x: number;
615
+ y: number;
616
+ } | null;
617
+ objectsSnapModeEnabled: boolean;
618
+ userToFollow: import("../types").UserToFollow | null;
619
+ followedBy: Set<import("../types").SocketId>;
620
+ isCropping: boolean;
621
+ croppingElementId: string | null;
622
+ searchMatches: readonly {
623
+ id: string;
624
+ focus: boolean;
625
+ matchedLines: {
626
+ offsetX: number;
627
+ offsetY: number;
628
+ width: number;
629
+ height: number;
630
+ }[];
631
+ }[];
632
+ };
633
+ storeAction: "none";
634
+ };
635
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
636
+ } & {
637
+ keyTest?: undefined;
638
+ };
639
+ export declare const actionChangeExportEmbedScene: {
640
+ name: "changeExportEmbedScene";
641
+ label: string;
642
+ trackEvent: {
643
+ category: "export";
644
+ action: string;
645
+ };
646
+ perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
647
+ appState: {
648
+ exportEmbedScene: any;
649
+ contextMenu: {
650
+ items: import("../components/ContextMenu").ContextMenuItems;
651
+ top: number;
652
+ left: number;
653
+ } | null;
654
+ showWelcomeScreen: boolean;
655
+ isLoading: boolean;
656
+ errorMessage: import("react").ReactNode;
657
+ activeEmbeddable: {
658
+ element: import("../element/types").NonDeletedExcalidrawElement;
659
+ state: "active" | "hover";
660
+ } | null;
661
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
662
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
663
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
664
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
665
+ isBindingEnabled: boolean;
666
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
667
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
668
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
669
+ frameRendering: {
670
+ enabled: boolean;
671
+ name: boolean;
672
+ outline: boolean;
673
+ clip: boolean;
674
+ };
675
+ editingFrame: string | null;
676
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
677
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
678
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
679
+ activeTool: {
680
+ lastActiveTool: import("../types").ActiveTool | null;
681
+ locked: boolean;
682
+ } & import("../types").ActiveTool;
683
+ penMode: boolean;
684
+ penDetected: boolean;
685
+ exportBackground: boolean;
686
+ exportWithDarkMode: boolean;
687
+ exportScale: number;
688
+ currentItemStrokeColor: string;
689
+ currentItemBackgroundColor: string;
690
+ currentItemFillStyle: import("../element/types").FillStyle;
691
+ currentItemStrokeWidth: number;
692
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
693
+ currentItemRoughness: number;
694
+ currentItemOpacity: number;
695
+ currentItemFontFamily: number;
696
+ currentItemFontSize: number;
697
+ currentItemTextAlign: string;
698
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
699
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
700
+ currentHoveredFontFamily: number | null;
701
+ currentItemRoundness: import("../element/types").StrokeRoundness;
702
+ currentItemArrowType: "round" | "sharp" | "elbow";
703
+ viewBackgroundColor: string;
704
+ scrollX: number;
705
+ scrollY: number;
706
+ cursorButton: "up" | "down";
707
+ scrolledOutside: boolean;
708
+ name: string | null;
709
+ isResizing: boolean;
710
+ isRotating: boolean;
711
+ zoom: Readonly<{
712
+ value: import("../types").NormalizedZoomValue;
713
+ }>;
714
+ openMenu: "canvas" | "shape" | null;
715
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
716
+ openSidebar: {
717
+ name: string;
718
+ tab?: string | undefined;
719
+ } | null;
720
+ openDialog: {
721
+ name: "imageExport" | "help" | "jsonExport";
722
+ } | {
723
+ name: "ttd";
724
+ tab: "mermaid" | "text-to-diagram";
725
+ } | {
726
+ name: "commandPalette";
727
+ } | null;
728
+ defaultSidebarDockedPreference: boolean;
729
+ lastPointerDownWith: import("../element/types").PointerType;
730
+ selectedElementIds: Readonly<{
731
+ [id: string]: true;
732
+ }>;
733
+ previousSelectedElementIds: {
734
+ [id: string]: true;
735
+ };
736
+ selectedElementsAreBeingDragged: boolean;
737
+ shouldCacheIgnoreZoom: boolean;
738
+ toast: {
739
+ message: string;
740
+ closable?: boolean | undefined;
741
+ duration?: number | undefined;
742
+ } | null;
743
+ zenModeEnabled: boolean;
744
+ theme: Theme;
745
+ gridSize: number;
746
+ gridStep: number;
747
+ gridModeEnabled: boolean;
748
+ viewModeEnabled: boolean;
749
+ selectedGroupIds: {
750
+ [groupId: string]: boolean;
751
+ };
752
+ editingGroupId: string | null;
753
+ width: number;
754
+ height: number;
755
+ offsetTop: number;
756
+ offsetLeft: number;
757
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
758
+ collaborators: Map<import("../types").SocketId, Readonly<{
759
+ pointer?: import("../types").CollaboratorPointer | undefined;
760
+ button?: "up" | "down" | undefined;
761
+ selectedElementIds?: Readonly<{
762
+ [id: string]: true;
763
+ }> | undefined;
764
+ username?: string | null | undefined;
765
+ userState?: import("../types").UserIdleState | undefined;
766
+ color?: {
767
+ background: string;
768
+ stroke: string;
769
+ } | undefined;
770
+ avatarUrl?: string | undefined;
771
+ id?: string | undefined;
772
+ socketId?: import("../types").SocketId | undefined;
773
+ isCurrentUser?: boolean | undefined;
774
+ isInCall?: boolean | undefined;
775
+ isSpeaking?: boolean | undefined;
776
+ isMuted?: boolean | undefined;
777
+ }>>;
778
+ stats: {
779
+ open: boolean;
780
+ panels: number;
781
+ };
782
+ currentChartType: import("../element/types").ChartType;
783
+ pasteDialog: {
784
+ shown: false;
785
+ data: null;
786
+ } | {
787
+ shown: true;
788
+ data: import("../charts").Spreadsheet;
789
+ };
790
+ pendingImageElementId: string | null;
791
+ showHyperlinkPopup: false | "info" | "editor";
792
+ linkOpacity: number;
793
+ trayModeEnabled: boolean;
794
+ colorPalette?: {
795
+ canvasBackground: import("../colors").ColorPaletteCustom;
796
+ elementBackground: import("../colors").ColorPaletteCustom;
797
+ elementStroke: import("../colors").ColorPaletteCustom;
798
+ topPicks: {
799
+ canvasBackground: [string, string, string, string, string];
800
+ elementStroke: [string, string, string, string, string];
801
+ elementBackground: [string, string, string, string, string];
802
+ };
803
+ } | undefined;
804
+ allowWheelZoom?: boolean | undefined;
805
+ allowPinchZoom?: boolean | undefined;
806
+ pinnedScripts?: string[] | undefined;
807
+ customPens?: any[] | undefined;
808
+ currentStrokeOptions?: any;
809
+ resetCustomPen?: any;
810
+ gridColor: {
811
+ Bold: string;
812
+ Regular: string;
813
+ };
814
+ highlightSearchResult: boolean;
815
+ dynamicStyle: {
816
+ [x: string]: string;
817
+ };
818
+ frameColor: {
819
+ stroke: string;
820
+ fill: string;
821
+ nameColor: string;
822
+ };
823
+ invertBindingBehaviour: boolean;
824
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
825
+ snapLines: readonly import("../snapping").SnapLine[];
826
+ originSnapOffset: {
827
+ x: number;
828
+ y: number;
829
+ } | null;
830
+ objectsSnapModeEnabled: boolean;
831
+ userToFollow: import("../types").UserToFollow | null;
832
+ followedBy: Set<import("../types").SocketId>;
833
+ isCropping: boolean;
834
+ croppingElementId: string | null;
835
+ searchMatches: readonly {
836
+ id: string;
837
+ focus: boolean;
838
+ matchedLines: {
839
+ offsetX: number;
840
+ offsetY: number;
841
+ width: number;
842
+ height: number;
843
+ }[];
844
+ }[];
845
+ };
846
+ storeAction: "none";
847
+ };
848
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
849
+ } & {
850
+ keyTest?: undefined;
851
+ };
852
+ export declare const actionSaveToActiveFile: {
853
+ name: "saveToActiveFile";
854
+ label: string;
855
+ icon: JSX.Element;
856
+ trackEvent: {
857
+ category: "export";
858
+ };
859
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
860
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
861
+ storeAction: "none";
862
+ appState: {
863
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
864
+ toast: {
865
+ message: string;
866
+ } | null;
867
+ contextMenu: {
868
+ items: import("../components/ContextMenu").ContextMenuItems;
869
+ top: number;
870
+ left: number;
871
+ } | null;
872
+ showWelcomeScreen: boolean;
873
+ isLoading: boolean;
874
+ errorMessage: import("react").ReactNode;
875
+ activeEmbeddable: {
876
+ element: import("../element/types").NonDeletedExcalidrawElement;
877
+ state: "active" | "hover";
878
+ } | null;
879
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
880
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
881
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
882
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
883
+ isBindingEnabled: boolean;
884
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
885
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
886
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
887
+ frameRendering: {
888
+ enabled: boolean;
889
+ name: boolean;
890
+ outline: boolean;
891
+ clip: boolean;
892
+ };
893
+ editingFrame: string | null;
894
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
895
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
896
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
897
+ activeTool: {
898
+ lastActiveTool: import("../types").ActiveTool | null;
899
+ locked: boolean;
900
+ } & import("../types").ActiveTool;
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
+ selectedElementIds: Readonly<{
950
+ [id: string]: true;
951
+ }>;
952
+ previousSelectedElementIds: {
953
+ [id: string]: true;
954
+ };
955
+ selectedElementsAreBeingDragged: boolean;
956
+ shouldCacheIgnoreZoom: boolean;
957
+ zenModeEnabled: boolean;
958
+ theme: Theme;
959
+ gridSize: number;
960
+ gridStep: number;
961
+ gridModeEnabled: boolean;
962
+ viewModeEnabled: boolean;
963
+ selectedGroupIds: {
964
+ [groupId: string]: boolean;
965
+ };
966
+ editingGroupId: string | null;
967
+ width: number;
968
+ height: number;
969
+ offsetTop: number;
970
+ offsetLeft: number;
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
+ isCropping: boolean;
1047
+ croppingElementId: string | null;
1048
+ searchMatches: readonly {
1049
+ id: string;
1050
+ focus: boolean;
1051
+ matchedLines: {
1052
+ offsetX: number;
1053
+ offsetY: number;
1054
+ width: number;
1055
+ height: number;
1056
+ }[];
1057
+ }[];
1058
+ };
1059
+ } | {
1060
+ storeAction: "none";
1061
+ appState?: undefined;
1062
+ }>;
1063
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1064
+ } & {
1065
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1066
+ };
1067
+ export declare const actionSaveFileToDisk: {
1068
+ name: "saveFileToDisk";
1069
+ label: string;
1070
+ icon: JSX.Element;
1071
+ viewMode: true;
1072
+ trackEvent: {
1073
+ category: "export";
1074
+ };
1075
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
1076
+ storeAction: "none";
1077
+ appState: {
1078
+ openDialog: null;
1079
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1080
+ toast: {
1081
+ message: string;
1082
+ };
1083
+ contextMenu: {
1084
+ items: import("../components/ContextMenu").ContextMenuItems;
1085
+ top: number;
1086
+ left: number;
1087
+ } | null;
1088
+ showWelcomeScreen: boolean;
1089
+ isLoading: boolean;
1090
+ errorMessage: import("react").ReactNode;
1091
+ activeEmbeddable: {
1092
+ element: import("../element/types").NonDeletedExcalidrawElement;
1093
+ state: "active" | "hover";
1094
+ } | null;
1095
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1096
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1097
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1098
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1099
+ isBindingEnabled: boolean;
1100
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1101
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1102
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1103
+ frameRendering: {
1104
+ enabled: boolean;
1105
+ name: boolean;
1106
+ outline: boolean;
1107
+ clip: boolean;
1108
+ };
1109
+ editingFrame: string | null;
1110
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1111
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1112
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1113
+ activeTool: {
1114
+ lastActiveTool: import("../types").ActiveTool | null;
1115
+ locked: boolean;
1116
+ } & import("../types").ActiveTool;
1117
+ penMode: boolean;
1118
+ penDetected: boolean;
1119
+ exportBackground: boolean;
1120
+ exportEmbedScene: boolean;
1121
+ exportWithDarkMode: boolean;
1122
+ exportScale: number;
1123
+ currentItemStrokeColor: string;
1124
+ currentItemBackgroundColor: string;
1125
+ currentItemFillStyle: import("../element/types").FillStyle;
1126
+ currentItemStrokeWidth: number;
1127
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1128
+ currentItemRoughness: number;
1129
+ currentItemOpacity: number;
1130
+ currentItemFontFamily: number;
1131
+ currentItemFontSize: number;
1132
+ currentItemTextAlign: string;
1133
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1134
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1135
+ currentHoveredFontFamily: number | null;
1136
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1137
+ currentItemArrowType: "round" | "sharp" | "elbow";
1138
+ viewBackgroundColor: string;
1139
+ scrollX: number;
1140
+ scrollY: number;
1141
+ cursorButton: "up" | "down";
1142
+ scrolledOutside: boolean;
1143
+ name: string | null;
1144
+ isResizing: boolean;
1145
+ isRotating: boolean;
1146
+ zoom: Readonly<{
1147
+ value: import("../types").NormalizedZoomValue;
1148
+ }>;
1149
+ openMenu: "canvas" | "shape" | null;
1150
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1151
+ openSidebar: {
1152
+ name: string;
1153
+ tab?: string | undefined;
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
+ zenModeEnabled: boolean;
1166
+ theme: Theme;
1167
+ gridSize: number;
1168
+ gridStep: number;
1169
+ gridModeEnabled: boolean;
1170
+ viewModeEnabled: boolean;
1171
+ selectedGroupIds: {
1172
+ [groupId: string]: boolean;
1173
+ };
1174
+ editingGroupId: string | null;
1175
+ width: number;
1176
+ height: number;
1177
+ offsetTop: number;
1178
+ offsetLeft: number;
1179
+ collaborators: Map<import("../types").SocketId, Readonly<{
1180
+ pointer?: import("../types").CollaboratorPointer | undefined;
1181
+ button?: "up" | "down" | undefined;
1182
+ selectedElementIds?: Readonly<{
1183
+ [id: string]: true;
1184
+ }> | undefined;
1185
+ username?: string | null | undefined;
1186
+ userState?: import("../types").UserIdleState | undefined;
1187
+ color?: {
1188
+ background: string;
1189
+ stroke: string;
1190
+ } | undefined;
1191
+ avatarUrl?: string | undefined;
1192
+ id?: string | undefined;
1193
+ socketId?: import("../types").SocketId | undefined;
1194
+ isCurrentUser?: boolean | undefined;
1195
+ isInCall?: boolean | undefined;
1196
+ isSpeaking?: boolean | undefined;
1197
+ isMuted?: boolean | undefined;
1198
+ }>>;
1199
+ stats: {
1200
+ open: boolean;
1201
+ panels: number;
1202
+ };
1203
+ currentChartType: import("../element/types").ChartType;
1204
+ pasteDialog: {
1205
+ shown: false;
1206
+ data: null;
1207
+ } | {
1208
+ shown: true;
1209
+ data: import("../charts").Spreadsheet;
1210
+ };
1211
+ pendingImageElementId: string | null;
1212
+ showHyperlinkPopup: false | "info" | "editor";
1213
+ linkOpacity: number;
1214
+ trayModeEnabled: boolean;
1215
+ colorPalette?: {
1216
+ canvasBackground: import("../colors").ColorPaletteCustom;
1217
+ elementBackground: import("../colors").ColorPaletteCustom;
1218
+ elementStroke: import("../colors").ColorPaletteCustom;
1219
+ topPicks: {
1220
+ canvasBackground: [string, string, string, string, string];
1221
+ elementStroke: [string, string, string, string, string];
1222
+ elementBackground: [string, string, string, string, string];
1223
+ };
1224
+ } | undefined;
1225
+ allowWheelZoom?: boolean | undefined;
1226
+ allowPinchZoom?: boolean | undefined;
1227
+ pinnedScripts?: string[] | undefined;
1228
+ customPens?: any[] | undefined;
1229
+ currentStrokeOptions?: any;
1230
+ resetCustomPen?: any;
1231
+ gridColor: {
1232
+ Bold: string;
1233
+ Regular: string;
1234
+ };
1235
+ highlightSearchResult: boolean;
1236
+ dynamicStyle: {
1237
+ [x: string]: string;
1238
+ };
1239
+ frameColor: {
1240
+ stroke: string;
1241
+ fill: string;
1242
+ nameColor: string;
1243
+ };
1244
+ invertBindingBehaviour: boolean;
1245
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1246
+ snapLines: readonly import("../snapping").SnapLine[];
1247
+ originSnapOffset: {
1248
+ x: number;
1249
+ y: number;
1250
+ } | null;
1251
+ objectsSnapModeEnabled: boolean;
1252
+ userToFollow: import("../types").UserToFollow | null;
1253
+ followedBy: Set<import("../types").SocketId>;
1254
+ isCropping: boolean;
1255
+ croppingElementId: string | null;
1256
+ searchMatches: readonly {
1257
+ id: string;
1258
+ focus: boolean;
1259
+ matchedLines: {
1260
+ offsetX: number;
1261
+ offsetY: number;
1262
+ width: number;
1263
+ height: number;
1264
+ }[];
1265
+ }[];
1266
+ };
1267
+ } | {
1268
+ storeAction: "none";
1269
+ appState?: undefined;
1270
+ }>;
1271
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1272
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
1273
+ } & {
1274
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1275
+ };
1276
+ export declare const actionLoadScene: {
1277
+ name: "loadScene";
1278
+ label: string;
1279
+ trackEvent: {
1280
+ category: "export";
1281
+ };
1282
+ predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1283
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1284
+ elements: import("../element/types").OrderedExcalidrawElement[];
1285
+ appState: {
1286
+ contextMenu: {
1287
+ items: import("../components/ContextMenu").ContextMenuItems;
1288
+ top: number;
1289
+ left: number;
1290
+ } | null;
1291
+ showWelcomeScreen: boolean;
1292
+ isLoading: boolean;
1293
+ errorMessage: import("react").ReactNode;
1294
+ activeEmbeddable: {
1295
+ element: import("../element/types").NonDeletedExcalidrawElement;
1296
+ state: "active" | "hover";
1297
+ } | null;
1298
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1299
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1300
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1301
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1302
+ isBindingEnabled: boolean;
1303
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1304
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1305
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1306
+ frameRendering: {
1307
+ enabled: boolean;
1308
+ name: boolean;
1309
+ outline: boolean;
1310
+ clip: boolean;
1311
+ };
1312
+ editingFrame: string | null;
1313
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1314
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1315
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1316
+ activeTool: {
1317
+ lastActiveTool: import("../types").ActiveTool | null;
1318
+ locked: boolean;
1319
+ } & import("../types").ActiveTool;
1320
+ penMode: boolean;
1321
+ penDetected: boolean;
1322
+ exportBackground: boolean;
1323
+ exportEmbedScene: boolean;
1324
+ exportWithDarkMode: boolean;
1325
+ exportScale: number;
1326
+ currentItemStrokeColor: string;
1327
+ currentItemBackgroundColor: string;
1328
+ currentItemFillStyle: import("../element/types").FillStyle;
1329
+ currentItemStrokeWidth: number;
1330
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1331
+ currentItemRoughness: number;
1332
+ currentItemOpacity: number;
1333
+ currentItemFontFamily: number;
1334
+ currentItemFontSize: number;
1335
+ currentItemTextAlign: string;
1336
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1337
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1338
+ currentHoveredFontFamily: number | null;
1339
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1340
+ currentItemArrowType: "round" | "sharp" | "elbow";
1341
+ viewBackgroundColor: string;
1342
+ scrollX: number;
1343
+ scrollY: number;
1344
+ cursorButton: "up" | "down";
1345
+ scrolledOutside: boolean;
1346
+ name: string | null;
1347
+ isResizing: boolean;
1348
+ isRotating: boolean;
1349
+ zoom: Readonly<{
1350
+ value: import("../types").NormalizedZoomValue;
1351
+ }>;
1352
+ openMenu: "canvas" | "shape" | null;
1353
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1354
+ openSidebar: {
1355
+ name: string;
1356
+ tab?: string | undefined;
1357
+ } | null;
1358
+ openDialog: {
1359
+ name: "imageExport" | "help" | "jsonExport";
1360
+ } | {
1361
+ name: "ttd";
1362
+ tab: "mermaid" | "text-to-diagram";
1363
+ } | {
1364
+ name: "commandPalette";
1365
+ } | null;
1366
+ defaultSidebarDockedPreference: boolean;
1367
+ lastPointerDownWith: import("../element/types").PointerType;
1368
+ selectedElementIds: Readonly<{
1369
+ [id: string]: true;
1370
+ }>;
1371
+ previousSelectedElementIds: {
1372
+ [id: string]: true;
1373
+ };
1374
+ selectedElementsAreBeingDragged: boolean;
1375
+ shouldCacheIgnoreZoom: boolean;
1376
+ toast: {
1377
+ message: string;
1378
+ closable?: boolean | undefined;
1379
+ duration?: number | undefined;
1380
+ } | null;
1381
+ zenModeEnabled: boolean;
1382
+ theme: Theme;
1383
+ gridSize: number;
1384
+ gridStep: number;
1385
+ gridModeEnabled: boolean;
1386
+ viewModeEnabled: boolean;
1387
+ selectedGroupIds: {
1388
+ [groupId: string]: boolean;
1389
+ };
1390
+ editingGroupId: string | null;
1391
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1392
+ collaborators: Map<import("../types").SocketId, Readonly<{
1393
+ pointer?: import("../types").CollaboratorPointer | undefined;
1394
+ button?: "up" | "down" | undefined;
1395
+ selectedElementIds?: Readonly<{
1396
+ [id: string]: true;
1397
+ }> | undefined;
1398
+ username?: string | null | undefined;
1399
+ userState?: import("../types").UserIdleState | undefined;
1400
+ color?: {
1401
+ background: string;
1402
+ stroke: string;
1403
+ } | undefined;
1404
+ avatarUrl?: string | undefined;
1405
+ id?: string | undefined;
1406
+ socketId?: import("../types").SocketId | undefined;
1407
+ isCurrentUser?: boolean | undefined;
1408
+ isInCall?: boolean | undefined;
1409
+ isSpeaking?: boolean | undefined;
1410
+ isMuted?: boolean | undefined;
1411
+ }>>;
1412
+ stats: {
1413
+ open: boolean;
1414
+ panels: number;
1415
+ };
1416
+ currentChartType: import("../element/types").ChartType;
1417
+ pasteDialog: {
1418
+ shown: false;
1419
+ data: null;
1420
+ } | {
1421
+ shown: true;
1422
+ data: import("../charts").Spreadsheet;
1423
+ };
1424
+ pendingImageElementId: string | null;
1425
+ showHyperlinkPopup: false | "info" | "editor";
1426
+ linkOpacity: number;
1427
+ trayModeEnabled: boolean;
1428
+ colorPalette?: {
1429
+ canvasBackground: import("../colors").ColorPaletteCustom;
1430
+ elementBackground: import("../colors").ColorPaletteCustom;
1431
+ elementStroke: import("../colors").ColorPaletteCustom;
1432
+ topPicks: {
1433
+ canvasBackground: [string, string, string, string, string];
1434
+ elementStroke: [string, string, string, string, string];
1435
+ elementBackground: [string, string, string, string, string];
1436
+ };
1437
+ } | undefined;
1438
+ allowWheelZoom?: boolean | undefined;
1439
+ allowPinchZoom?: boolean | undefined;
1440
+ pinnedScripts?: string[] | undefined;
1441
+ customPens?: any[] | undefined;
1442
+ currentStrokeOptions?: any;
1443
+ resetCustomPen?: any;
1444
+ gridColor: {
1445
+ Bold: string;
1446
+ Regular: string;
1447
+ };
1448
+ highlightSearchResult: boolean;
1449
+ dynamicStyle: {
1450
+ [x: string]: string;
1451
+ };
1452
+ frameColor: {
1453
+ stroke: string;
1454
+ fill: string;
1455
+ nameColor: string;
1456
+ };
1457
+ invertBindingBehaviour: boolean;
1458
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1459
+ snapLines: readonly import("../snapping").SnapLine[];
1460
+ originSnapOffset: {
1461
+ x: number;
1462
+ y: number;
1463
+ } | null;
1464
+ objectsSnapModeEnabled: boolean;
1465
+ userToFollow: import("../types").UserToFollow | null;
1466
+ followedBy: Set<import("../types").SocketId>;
1467
+ isCropping: boolean;
1468
+ croppingElementId: string | null;
1469
+ searchMatches: readonly {
1470
+ id: string;
1471
+ focus: boolean;
1472
+ matchedLines: {
1473
+ offsetX: number;
1474
+ offsetY: number;
1475
+ width: number;
1476
+ height: number;
1477
+ }[];
1478
+ }[];
1479
+ };
1480
+ files: import("../types").BinaryFiles;
1481
+ storeAction: "capture";
1482
+ } | {
1483
+ elements: readonly import("../element/types").OrderedExcalidrawElement[];
1484
+ appState: {
1485
+ errorMessage: any;
1486
+ contextMenu: {
1487
+ items: import("../components/ContextMenu").ContextMenuItems;
1488
+ top: number;
1489
+ left: number;
1490
+ } | null;
1491
+ showWelcomeScreen: boolean;
1492
+ isLoading: boolean;
1493
+ activeEmbeddable: {
1494
+ element: import("../element/types").NonDeletedExcalidrawElement;
1495
+ state: "active" | "hover";
1496
+ } | null;
1497
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1498
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1499
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1500
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1501
+ isBindingEnabled: boolean;
1502
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1503
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1504
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1505
+ frameRendering: {
1506
+ enabled: boolean;
1507
+ name: boolean;
1508
+ outline: boolean;
1509
+ clip: boolean;
1510
+ };
1511
+ editingFrame: string | null;
1512
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1513
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1514
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1515
+ activeTool: {
1516
+ lastActiveTool: import("../types").ActiveTool | null;
1517
+ locked: boolean;
1518
+ } & import("../types").ActiveTool;
1519
+ penMode: boolean;
1520
+ penDetected: boolean;
1521
+ exportBackground: boolean;
1522
+ exportEmbedScene: boolean;
1523
+ exportWithDarkMode: boolean;
1524
+ exportScale: number;
1525
+ currentItemStrokeColor: string;
1526
+ currentItemBackgroundColor: string;
1527
+ currentItemFillStyle: import("../element/types").FillStyle;
1528
+ currentItemStrokeWidth: number;
1529
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1530
+ currentItemRoughness: number;
1531
+ currentItemOpacity: number;
1532
+ currentItemFontFamily: number;
1533
+ currentItemFontSize: number;
1534
+ currentItemTextAlign: string;
1535
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1536
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1537
+ currentHoveredFontFamily: number | null;
1538
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1539
+ currentItemArrowType: "round" | "sharp" | "elbow";
1540
+ viewBackgroundColor: string;
1541
+ scrollX: number;
1542
+ scrollY: number;
1543
+ cursorButton: "up" | "down";
1544
+ scrolledOutside: boolean;
1545
+ name: string | null;
1546
+ isResizing: boolean;
1547
+ isRotating: boolean;
1548
+ zoom: Readonly<{
1549
+ value: import("../types").NormalizedZoomValue;
1550
+ }>;
1551
+ openMenu: "canvas" | "shape" | null;
1552
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1553
+ openSidebar: {
1554
+ name: string;
1555
+ tab?: string | undefined;
1556
+ } | null;
1557
+ openDialog: {
1558
+ name: "imageExport" | "help" | "jsonExport";
1559
+ } | {
1560
+ name: "ttd";
1561
+ tab: "mermaid" | "text-to-diagram";
1562
+ } | {
1563
+ name: "commandPalette";
1564
+ } | null;
1565
+ defaultSidebarDockedPreference: boolean;
1566
+ lastPointerDownWith: import("../element/types").PointerType;
1567
+ selectedElementIds: Readonly<{
1568
+ [id: string]: true;
1569
+ }>;
1570
+ previousSelectedElementIds: {
1571
+ [id: string]: true;
1572
+ };
1573
+ selectedElementsAreBeingDragged: boolean;
1574
+ shouldCacheIgnoreZoom: boolean;
1575
+ toast: {
1576
+ message: string;
1577
+ closable?: boolean | undefined;
1578
+ duration?: number | undefined;
1579
+ } | null;
1580
+ zenModeEnabled: boolean;
1581
+ theme: Theme;
1582
+ gridSize: number;
1583
+ gridStep: number;
1584
+ gridModeEnabled: boolean;
1585
+ viewModeEnabled: boolean;
1586
+ selectedGroupIds: {
1587
+ [groupId: string]: boolean;
1588
+ };
1589
+ editingGroupId: string | null;
1590
+ width: number;
1591
+ height: number;
1592
+ offsetTop: number;
1593
+ offsetLeft: number;
1594
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1595
+ collaborators: Map<import("../types").SocketId, Readonly<{
1596
+ pointer?: import("../types").CollaboratorPointer | undefined;
1597
+ button?: "up" | "down" | undefined;
1598
+ selectedElementIds?: Readonly<{
1599
+ [id: string]: true;
1600
+ }> | undefined;
1601
+ username?: string | null | undefined;
1602
+ userState?: import("../types").UserIdleState | undefined;
1603
+ color?: {
1604
+ background: string;
1605
+ stroke: string;
1606
+ } | undefined;
1607
+ avatarUrl?: string | undefined;
1608
+ id?: string | undefined;
1609
+ socketId?: import("../types").SocketId | undefined;
1610
+ isCurrentUser?: boolean | undefined;
1611
+ isInCall?: boolean | undefined;
1612
+ isSpeaking?: boolean | undefined;
1613
+ isMuted?: boolean | undefined;
1614
+ }>>;
1615
+ stats: {
1616
+ open: boolean;
1617
+ panels: number;
1618
+ };
1619
+ currentChartType: import("../element/types").ChartType;
1620
+ pasteDialog: {
1621
+ shown: false;
1622
+ data: null;
1623
+ } | {
1624
+ shown: true;
1625
+ data: import("../charts").Spreadsheet;
1626
+ };
1627
+ pendingImageElementId: string | null;
1628
+ showHyperlinkPopup: false | "info" | "editor";
1629
+ linkOpacity: number;
1630
+ trayModeEnabled: boolean;
1631
+ colorPalette?: {
1632
+ canvasBackground: import("../colors").ColorPaletteCustom;
1633
+ elementBackground: import("../colors").ColorPaletteCustom;
1634
+ elementStroke: import("../colors").ColorPaletteCustom;
1635
+ topPicks: {
1636
+ canvasBackground: [string, string, string, string, string];
1637
+ elementStroke: [string, string, string, string, string];
1638
+ elementBackground: [string, string, string, string, string];
1639
+ };
1640
+ } | undefined;
1641
+ allowWheelZoom?: boolean | undefined;
1642
+ allowPinchZoom?: boolean | undefined;
1643
+ pinnedScripts?: string[] | undefined;
1644
+ customPens?: any[] | undefined;
1645
+ currentStrokeOptions?: any;
1646
+ resetCustomPen?: any;
1647
+ gridColor: {
1648
+ Bold: string;
1649
+ Regular: string;
1650
+ };
1651
+ highlightSearchResult: boolean;
1652
+ dynamicStyle: {
1653
+ [x: string]: string;
1654
+ };
1655
+ frameColor: {
1656
+ stroke: string;
1657
+ fill: string;
1658
+ nameColor: string;
1659
+ };
1660
+ invertBindingBehaviour: boolean;
1661
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1662
+ snapLines: readonly import("../snapping").SnapLine[];
1663
+ originSnapOffset: {
1664
+ x: number;
1665
+ y: number;
1666
+ } | null;
1667
+ objectsSnapModeEnabled: boolean;
1668
+ userToFollow: import("../types").UserToFollow | null;
1669
+ followedBy: Set<import("../types").SocketId>;
1670
+ isCropping: boolean;
1671
+ croppingElementId: string | null;
1672
+ searchMatches: readonly {
1673
+ id: string;
1674
+ focus: boolean;
1675
+ matchedLines: {
1676
+ offsetX: number;
1677
+ offsetY: number;
1678
+ width: number;
1679
+ height: number;
1680
+ }[];
1681
+ }[];
1682
+ };
1683
+ files: import("../types").BinaryFiles;
1684
+ storeAction: "none";
1685
+ }>;
1686
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1687
+ } & {
1688
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1689
+ };
1690
+ export declare const actionExportWithDarkMode: {
1691
+ name: "exportWithDarkMode";
1692
+ label: string;
1693
+ trackEvent: {
1694
+ category: "export";
1695
+ action: string;
1696
+ };
1697
+ perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1698
+ appState: {
1699
+ exportWithDarkMode: any;
1700
+ contextMenu: {
1701
+ items: import("../components/ContextMenu").ContextMenuItems;
1702
+ top: number;
1703
+ left: number;
1704
+ } | null;
1705
+ showWelcomeScreen: boolean;
1706
+ isLoading: boolean;
1707
+ errorMessage: import("react").ReactNode;
1708
+ activeEmbeddable: {
1709
+ element: import("../element/types").NonDeletedExcalidrawElement;
1710
+ state: "active" | "hover";
1711
+ } | null;
1712
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1713
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1714
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1715
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1716
+ isBindingEnabled: boolean;
1717
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1718
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
1719
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1720
+ frameRendering: {
1721
+ enabled: boolean;
1722
+ name: boolean;
1723
+ outline: boolean;
1724
+ clip: boolean;
1725
+ };
1726
+ editingFrame: string | null;
1727
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1728
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1729
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1730
+ activeTool: {
1731
+ lastActiveTool: import("../types").ActiveTool | null;
1732
+ locked: boolean;
1733
+ } & import("../types").ActiveTool;
1734
+ penMode: boolean;
1735
+ penDetected: boolean;
1736
+ exportBackground: boolean;
1737
+ exportEmbedScene: boolean;
1738
+ exportScale: number;
1739
+ currentItemStrokeColor: string;
1740
+ currentItemBackgroundColor: string;
1741
+ currentItemFillStyle: import("../element/types").FillStyle;
1742
+ currentItemStrokeWidth: number;
1743
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
1744
+ currentItemRoughness: number;
1745
+ currentItemOpacity: number;
1746
+ currentItemFontFamily: number;
1747
+ currentItemFontSize: number;
1748
+ currentItemTextAlign: string;
1749
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1750
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1751
+ currentHoveredFontFamily: number | null;
1752
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1753
+ currentItemArrowType: "round" | "sharp" | "elbow";
1754
+ viewBackgroundColor: string;
1755
+ scrollX: number;
1756
+ scrollY: number;
1757
+ cursorButton: "up" | "down";
1758
+ scrolledOutside: boolean;
1759
+ name: string | null;
1760
+ isResizing: boolean;
1761
+ isRotating: boolean;
1762
+ zoom: Readonly<{
1763
+ value: import("../types").NormalizedZoomValue;
1764
+ }>;
1765
+ openMenu: "canvas" | "shape" | null;
1766
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1767
+ openSidebar: {
1768
+ name: string;
1769
+ tab?: string | undefined;
1770
+ } | null;
1771
+ openDialog: {
1772
+ name: "imageExport" | "help" | "jsonExport";
1773
+ } | {
1774
+ name: "ttd";
1775
+ tab: "mermaid" | "text-to-diagram";
1776
+ } | {
1777
+ name: "commandPalette";
1778
+ } | null;
1779
+ defaultSidebarDockedPreference: boolean;
1780
+ lastPointerDownWith: import("../element/types").PointerType;
1781
+ selectedElementIds: Readonly<{
1782
+ [id: string]: true;
1783
+ }>;
1784
+ previousSelectedElementIds: {
1785
+ [id: string]: true;
1786
+ };
1787
+ selectedElementsAreBeingDragged: boolean;
1788
+ shouldCacheIgnoreZoom: boolean;
1789
+ toast: {
1790
+ message: string;
1791
+ closable?: boolean | undefined;
1792
+ duration?: number | undefined;
1793
+ } | null;
1794
+ zenModeEnabled: boolean;
1795
+ theme: Theme;
1796
+ gridSize: number;
1797
+ gridStep: number;
1798
+ gridModeEnabled: boolean;
1799
+ viewModeEnabled: boolean;
1800
+ selectedGroupIds: {
1801
+ [groupId: string]: boolean;
1802
+ };
1803
+ editingGroupId: string | null;
1804
+ width: number;
1805
+ height: number;
1806
+ offsetTop: number;
1807
+ offsetLeft: number;
1808
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1809
+ collaborators: Map<import("../types").SocketId, Readonly<{
1810
+ pointer?: import("../types").CollaboratorPointer | undefined;
1811
+ button?: "up" | "down" | undefined;
1812
+ selectedElementIds?: Readonly<{
1813
+ [id: string]: true;
1814
+ }> | undefined;
1815
+ username?: string | null | undefined;
1816
+ userState?: import("../types").UserIdleState | undefined;
1817
+ color?: {
1818
+ background: string;
1819
+ stroke: string;
1820
+ } | undefined;
1821
+ avatarUrl?: string | undefined;
1822
+ id?: string | undefined;
1823
+ socketId?: import("../types").SocketId | undefined;
1824
+ isCurrentUser?: boolean | undefined;
1825
+ isInCall?: boolean | undefined;
1826
+ isSpeaking?: boolean | undefined;
1827
+ isMuted?: boolean | undefined;
1828
+ }>>;
1829
+ stats: {
1830
+ open: boolean;
1831
+ panels: number;
1832
+ };
1833
+ currentChartType: import("../element/types").ChartType;
1834
+ pasteDialog: {
1835
+ shown: false;
1836
+ data: null;
1837
+ } | {
1838
+ shown: true;
1839
+ data: import("../charts").Spreadsheet;
1840
+ };
1841
+ pendingImageElementId: string | null;
1842
+ showHyperlinkPopup: false | "info" | "editor";
1843
+ linkOpacity: number;
1844
+ trayModeEnabled: boolean;
1845
+ colorPalette?: {
1846
+ canvasBackground: import("../colors").ColorPaletteCustom;
1847
+ elementBackground: import("../colors").ColorPaletteCustom;
1848
+ elementStroke: import("../colors").ColorPaletteCustom;
1849
+ topPicks: {
1850
+ canvasBackground: [string, string, string, string, string];
1851
+ elementStroke: [string, string, string, string, string];
1852
+ elementBackground: [string, string, string, string, string];
1853
+ };
1854
+ } | undefined;
1855
+ allowWheelZoom?: boolean | undefined;
1856
+ allowPinchZoom?: boolean | undefined;
1857
+ pinnedScripts?: string[] | undefined;
1858
+ customPens?: any[] | undefined;
1859
+ currentStrokeOptions?: any;
1860
+ resetCustomPen?: any;
1861
+ gridColor: {
1862
+ Bold: string;
1863
+ Regular: string;
1864
+ };
1865
+ highlightSearchResult: boolean;
1866
+ dynamicStyle: {
1867
+ [x: string]: string;
1868
+ };
1869
+ frameColor: {
1870
+ stroke: string;
1871
+ fill: string;
1872
+ nameColor: string;
1873
+ };
1874
+ invertBindingBehaviour: boolean;
1875
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1876
+ snapLines: readonly import("../snapping").SnapLine[];
1877
+ originSnapOffset: {
1878
+ x: number;
1879
+ y: number;
1880
+ } | null;
1881
+ objectsSnapModeEnabled: boolean;
1882
+ userToFollow: import("../types").UserToFollow | null;
1883
+ followedBy: Set<import("../types").SocketId>;
1884
+ isCropping: boolean;
1885
+ croppingElementId: string | null;
1886
+ searchMatches: readonly {
1887
+ id: string;
1888
+ focus: boolean;
1889
+ matchedLines: {
1890
+ offsetX: number;
1891
+ offsetY: number;
1892
+ width: number;
1893
+ height: number;
1894
+ }[];
1895
+ }[];
1896
+ };
1897
+ storeAction: "none";
1898
+ };
1899
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1900
+ } & {
1901
+ keyTest?: undefined;
1902
+ };