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

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