@zsviczian/excalidraw 0.17.6-1 → 0.17.6-11

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 (421) hide show
  1. package/dist/excalidraw.development.js +1528 -1385
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +1 -1
  4. package/dist/styles.development.css +7 -7
  5. package/dist/styles.production.css +1 -1
  6. package/package.json +3 -2
  7. package/types/excalidraw/actions/actionAddToLibrary.d.ts +611 -605
  8. package/types/excalidraw/actions/actionAlign.d.ts +108 -108
  9. package/types/excalidraw/actions/actionBoundText.d.ts +444 -440
  10. package/types/excalidraw/actions/actionCanvas.d.ts +2986 -2958
  11. package/types/excalidraw/actions/actionClipboard.d.ts +1334 -1322
  12. package/types/excalidraw/actions/actionCropEditor.d.ts +216 -0
  13. package/types/excalidraw/actions/actionDeleteSelected.d.ts +646 -640
  14. package/types/excalidraw/actions/actionDistribute.d.ts +34 -34
  15. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +21 -21
  16. package/types/excalidraw/actions/actionElementLock.d.ts +432 -428
  17. package/types/excalidraw/actions/actionExport.d.ts +1902 -1884
  18. package/types/excalidraw/actions/actionFinalize.d.ts +413 -409
  19. package/types/excalidraw/actions/actionFlip.d.ts +34 -34
  20. package/types/excalidraw/actions/actionFrame.d.ts +863 -855
  21. package/types/excalidraw/actions/actionGroup.d.ts +442 -438
  22. package/types/excalidraw/actions/actionHistory.d.ts +7 -7
  23. package/types/excalidraw/actions/actionLinearEditor.d.ts +217 -215
  24. package/types/excalidraw/actions/actionLink.d.ts +217 -215
  25. package/types/excalidraw/actions/actionMenu.d.ts +634 -628
  26. package/types/excalidraw/actions/actionNavigate.d.ts +418 -414
  27. package/types/excalidraw/actions/actionProperties.d.ts +3186 -3156
  28. package/types/excalidraw/actions/actionSelectAll.d.ts +216 -214
  29. package/types/excalidraw/actions/actionStyles.d.ts +230 -228
  30. package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
  31. package/types/excalidraw/actions/actionToggleGridMode.d.ts +219 -217
  32. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +217 -215
  33. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +411 -407
  34. package/types/excalidraw/actions/actionToggleStats.d.ts +217 -215
  35. package/types/excalidraw/actions/actionToggleViewMode.d.ts +218 -216
  36. package/types/excalidraw/actions/actionToggleZenMode.d.ts +218 -216
  37. package/types/excalidraw/actions/actionZindex.d.ts +74 -74
  38. package/types/excalidraw/actions/index.d.ts +27 -26
  39. package/types/excalidraw/actions/manager.d.ts +21 -21
  40. package/types/excalidraw/actions/register.d.ts +5 -5
  41. package/types/excalidraw/actions/shortcuts.d.ts +4 -4
  42. package/types/excalidraw/actions/types.d.ts +46 -46
  43. package/types/excalidraw/align.d.ts +6 -6
  44. package/types/excalidraw/analytics.d.ts +1 -1
  45. package/types/excalidraw/animated-trail.d.ts +33 -33
  46. package/types/excalidraw/animation-frame-handler.d.ts +16 -16
  47. package/types/excalidraw/appState.d.ts +89 -89
  48. package/types/excalidraw/binaryheap.d.ts +12 -12
  49. package/types/excalidraw/change.d.ts +191 -191
  50. package/types/excalidraw/charts.d.ts +27 -27
  51. package/types/excalidraw/clients.d.ts +14 -14
  52. package/types/excalidraw/clipboard.d.ts +44 -44
  53. package/types/excalidraw/colors.d.ts +61 -61
  54. package/types/excalidraw/components/Actions.d.ts +34 -34
  55. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -4
  56. package/types/excalidraw/components/App.d.ts +546 -535
  57. package/types/excalidraw/components/Avatar.d.ts +11 -11
  58. package/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -2
  59. package/types/excalidraw/components/Button.d.ts +17 -17
  60. package/types/excalidraw/components/ButtonIcon.d.ts +14 -14
  61. package/types/excalidraw/components/ButtonIconCycle.d.ts +10 -10
  62. package/types/excalidraw/components/ButtonIconSelect.d.ts +19 -19
  63. package/types/excalidraw/components/ButtonSelect.d.ts +9 -9
  64. package/types/excalidraw/components/ButtonSeparator.d.ts +1 -1
  65. package/types/excalidraw/components/Card.d.ts +6 -6
  66. package/types/excalidraw/components/CheckboxItem.d.ts +8 -8
  67. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +9 -9
  68. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +19 -19
  69. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -8
  70. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +8 -8
  71. package/types/excalidraw/components/ColorPicker/Picker.d.ts +18 -18
  72. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -10
  73. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -5
  74. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +8 -8
  75. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -9
  76. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  77. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
  78. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -18
  79. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -2
  80. package/types/excalidraw/components/CommandPalette/types.d.ts +25 -25
  81. package/types/excalidraw/components/ConfirmDialog.d.ts +10 -10
  82. package/types/excalidraw/components/ContextMenu.d.ts +16 -16
  83. package/types/excalidraw/components/DarkModeToggle.d.ts +7 -7
  84. package/types/excalidraw/components/DefaultSidebar.d.ts +30 -30
  85. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -4
  86. package/types/excalidraw/components/Dialog.d.ts +13 -13
  87. package/types/excalidraw/components/DialogActionButton.d.ts +10 -10
  88. package/types/excalidraw/components/ErrorDialog.d.ts +5 -5
  89. package/types/excalidraw/components/ExcalidrawLogo.d.ts +15 -15
  90. package/types/excalidraw/components/EyeDropper.d.ts +27 -27
  91. package/types/excalidraw/components/FilledButton.d.ts +18 -18
  92. package/types/excalidraw/components/FixedSideContainer.d.ts +9 -9
  93. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -10
  94. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +21 -21
  95. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +25 -25
  96. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +6 -6
  97. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -13
  98. package/types/excalidraw/components/HandButton.d.ts +10 -10
  99. package/types/excalidraw/components/HelpButton.d.ts +7 -7
  100. package/types/excalidraw/components/HelpDialog.d.ts +4 -4
  101. package/types/excalidraw/components/HintViewer.d.ts +10 -10
  102. package/types/excalidraw/components/IconPicker.d.ts +14 -14
  103. package/types/excalidraw/components/ImageExportDialog.d.ts +14 -14
  104. package/types/excalidraw/components/InitializeApp.d.ts +10 -10
  105. package/types/excalidraw/components/InlineIcon.d.ts +3 -3
  106. package/types/excalidraw/components/Island.d.ts +10 -10
  107. package/types/excalidraw/components/JSONExportDialog.d.ts +15 -15
  108. package/types/excalidraw/components/LaserPointerButton.d.ts +10 -10
  109. package/types/excalidraw/components/LayerUI.d.ts +30 -30
  110. package/types/excalidraw/components/LibraryMenu.d.ts +24 -24
  111. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -7
  112. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -9
  113. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -17
  114. package/types/excalidraw/components/LibraryMenuItems.d.ts +14 -14
  115. package/types/excalidraw/components/LibraryMenuSection.d.ts +23 -23
  116. package/types/excalidraw/components/LibraryUnit.d.ts +14 -14
  117. package/types/excalidraw/components/LoadingMessage.d.ts +5 -5
  118. package/types/excalidraw/components/LockButton.d.ts +10 -10
  119. package/types/excalidraw/components/MagicButton.d.ts +9 -9
  120. package/types/excalidraw/components/MobileMenu.d.ts +24 -24
  121. package/types/excalidraw/components/Modal.d.ts +14 -14
  122. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  123. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  124. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  125. package/types/excalidraw/components/Paragraph.d.ts +4 -4
  126. package/types/excalidraw/components/PasteChartDialog.d.ts +8 -8
  127. package/types/excalidraw/components/PenModeButton.d.ts +12 -12
  128. package/types/excalidraw/components/Popover.d.ts +15 -15
  129. package/types/excalidraw/components/ProjectName.d.ts +10 -10
  130. package/types/excalidraw/components/PropertiesPopover.d.ts +15 -15
  131. package/types/excalidraw/components/PublishLibrary.d.ts +16 -16
  132. package/types/excalidraw/components/QuickSearch.d.ts +9 -9
  133. package/types/excalidraw/components/RadioGroup.d.ts +13 -13
  134. package/types/excalidraw/components/SVGLayer.d.ts +7 -7
  135. package/types/excalidraw/components/ScrollableList.d.ts +8 -8
  136. package/types/excalidraw/components/SearchMenu.d.ts +5 -5
  137. package/types/excalidraw/components/SearchSidebar.d.ts +1 -0
  138. package/types/excalidraw/components/Section.d.ts +6 -6
  139. package/types/excalidraw/components/ShareableLinkDialog.d.ts +7 -7
  140. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +76 -76
  141. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -7
  142. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -8
  143. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
  144. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
  145. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -6
  146. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -6
  147. package/types/excalidraw/components/Sidebar/common.d.ts +33 -33
  148. package/types/excalidraw/components/Spinner.d.ts +8 -8
  149. package/types/excalidraw/components/Stack.d.ts +16 -16
  150. package/types/excalidraw/components/Stats/Angle.d.ts +11 -11
  151. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -10
  152. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +10 -10
  153. package/types/excalidraw/components/Stats/Collapsible.d.ts +8 -8
  154. package/types/excalidraw/components/Stats/Dimension.d.ts +11 -11
  155. package/types/excalidraw/components/Stats/DragInput.d.ts +34 -34
  156. package/types/excalidraw/components/Stats/FontSize.d.ts +11 -11
  157. package/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -11
  158. package/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -14
  159. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -12
  160. package/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -14
  161. package/types/excalidraw/components/Stats/Position.d.ts +12 -12
  162. package/types/excalidraw/components/Stats/index.d.ts +35 -35
  163. package/types/excalidraw/components/Stats/utils.d.ts +26 -26
  164. package/types/excalidraw/components/Switch.d.ts +9 -9
  165. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +14 -14
  166. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +29 -29
  167. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -9
  168. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +7 -7
  169. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -17
  170. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -4
  171. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -1
  172. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -7
  173. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -8
  174. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -6
  175. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -11
  176. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +8 -8
  177. package/types/excalidraw/components/TTDDialog/common.d.ts +32 -32
  178. package/types/excalidraw/components/TextField.d.ts +21 -21
  179. package/types/excalidraw/components/Toast.d.ts +9 -9
  180. package/types/excalidraw/components/ToolButton.d.ts +49 -49
  181. package/types/excalidraw/components/Tooltip.d.ts +18 -18
  182. package/types/excalidraw/components/Trans.d.ts +9 -9
  183. package/types/excalidraw/components/UserList.d.ts +18 -18
  184. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +29 -29
  185. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -14
  186. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -19
  187. package/types/excalidraw/components/canvases/index.d.ts +3 -3
  188. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +86 -86
  189. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  190. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  191. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +45 -45
  192. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +7 -7
  193. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -17
  194. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -7
  195. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +15 -15
  196. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  197. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
  198. package/types/excalidraw/components/dropdownMenu/common.d.ts +6 -6
  199. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  200. package/types/excalidraw/components/footer/Footer.d.ts +12 -12
  201. package/types/excalidraw/components/footer/FooterCenter.d.ts +8 -8
  202. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -4
  203. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +18 -18
  204. package/types/excalidraw/components/hyperlink/helpers.d.ts +8 -8
  205. package/types/excalidraw/components/icons.d.ts +213 -212
  206. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +9 -9
  207. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -64
  208. package/types/excalidraw/components/main-menu/MainMenu.d.ts +80 -80
  209. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +59 -59
  210. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  211. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +86 -86
  212. package/types/excalidraw/constants.d.ts +322 -322
  213. package/types/excalidraw/context/tunnels.d.ts +20 -20
  214. package/types/excalidraw/context/ui-appState.d.ts +4 -4
  215. package/types/excalidraw/cursor.d.ts +6 -6
  216. package/types/excalidraw/data/EditorLocalStorage.d.ts +8 -8
  217. package/types/excalidraw/data/ai/types.d.ts +242 -242
  218. package/types/excalidraw/data/blob.d.ts +52 -49
  219. package/types/excalidraw/data/encode.d.ts +54 -54
  220. package/types/excalidraw/data/encryption.d.ts +9 -9
  221. package/types/excalidraw/data/filesystem.d.ts +20 -20
  222. package/types/excalidraw/data/image.d.ts +15 -15
  223. package/types/excalidraw/data/index.d.ts +22 -22
  224. package/types/excalidraw/data/json.d.ts +16 -16
  225. package/types/excalidraw/data/library.d.ts +106 -106
  226. package/types/excalidraw/data/reconcile.d.ts +6 -6
  227. package/types/excalidraw/data/resave.d.ts +5 -5
  228. package/types/excalidraw/data/restore.d.ts +21 -21
  229. package/types/excalidraw/data/transform.d.ts +81 -81
  230. package/types/excalidraw/data/types.d.ts +45 -45
  231. package/types/excalidraw/data/url.d.ts +8 -8
  232. package/types/excalidraw/deburr.d.ts +1 -1
  233. package/types/excalidraw/dist/excalidraw.development.d.ts +2 -2
  234. package/types/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
  235. package/types/excalidraw/distribute.d.ts +6 -6
  236. package/types/excalidraw/element/ElementCanvasButtons.d.ts +7 -7
  237. package/types/excalidraw/element/binding.d.ts +99 -99
  238. package/types/excalidraw/element/bounds.d.ts +76 -76
  239. package/types/excalidraw/element/collision.d.ts +17 -17
  240. package/types/excalidraw/element/containerCache.d.ts +11 -11
  241. package/types/excalidraw/element/cropElement.d.ts +14 -0
  242. package/types/excalidraw/element/dragElements.d.ts +32 -32
  243. package/types/excalidraw/element/embeddable.d.ts +223 -221
  244. package/types/excalidraw/element/flowchart.d.ts +25 -25
  245. package/types/excalidraw/element/heading.d.ts +12 -12
  246. package/types/excalidraw/element/image.d.ts +32 -32
  247. package/types/excalidraw/element/index.d.ts +26 -26
  248. package/types/excalidraw/element/linearElementEditor.d.ts +128 -128
  249. package/types/excalidraw/element/mutateElement.d.ts +11 -11
  250. package/types/excalidraw/element/newElement.d.ts +106 -105
  251. package/types/excalidraw/element/resizeElements.d.ts +16 -16
  252. package/types/excalidraw/element/resizeTest.d.ts +15 -15
  253. package/types/excalidraw/element/routing.d.ts +12 -12
  254. package/types/excalidraw/element/showSelectedShapeActions.d.ts +3 -3
  255. package/types/excalidraw/element/sizeHelpers.d.ts +35 -35
  256. package/types/excalidraw/element/sortElements.d.ts +2 -2
  257. package/types/excalidraw/element/textElement.d.ts +83 -73
  258. package/types/excalidraw/element/textWrapping.d.ts +13 -0
  259. package/types/excalidraw/element/textWysiwyg.d.ts +22 -22
  260. package/types/excalidraw/element/transformHandles.d.ts +55 -55
  261. package/types/excalidraw/element/typeChecks.d.ts +39 -39
  262. package/types/excalidraw/element/types.d.ts +263 -253
  263. package/types/excalidraw/emitter.d.ts +16 -16
  264. package/types/excalidraw/entry.d.ts +1 -1
  265. package/types/excalidraw/env.d.cts +1 -1
  266. package/types/excalidraw/env.d.ts +1 -1
  267. package/types/excalidraw/errors.d.ts +25 -25
  268. package/types/excalidraw/fonts/{woff2/Cascadia → Cascadia}/index.d.ts +2 -2
  269. package/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -0
  270. package/types/excalidraw/fonts/{woff2/Emoji → Emoji}/index.d.ts +2 -2
  271. package/types/excalidraw/fonts/ExcalidrawFont.d.ts +37 -37
  272. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +29 -35
  273. package/types/excalidraw/fonts/{woff2/Excalifont → Excalifont}/index.d.ts +2 -2
  274. package/types/excalidraw/fonts/FontMetadata.d.ts +37 -0
  275. package/types/excalidraw/fonts/Fonts.d.ts +117 -0
  276. package/types/excalidraw/fonts/{woff2/Helvetica → Helvetica}/index.d.ts +2 -2
  277. package/types/excalidraw/fonts/{woff2/Liberation → Liberation}/index.d.ts +2 -2
  278. package/types/excalidraw/fonts/{woff2/Lilita → Lilita}/index.d.ts +2 -2
  279. package/types/excalidraw/fonts/{woff2/Nunito → Nunito}/index.d.ts +2 -2
  280. package/types/excalidraw/fonts/{woff2/Virgil → Virgil}/index.d.ts +2 -2
  281. package/types/excalidraw/fonts/{woff2/Xiaolai → Xiaolai}/index.d.ts +8 -8
  282. package/types/excalidraw/fonts/index.d.ts +1 -87
  283. package/types/excalidraw/fonts/metadata.d.ts +35 -37
  284. package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +45 -45
  285. package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +5 -5
  286. package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +2 -2
  287. package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +31 -31
  288. package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +6 -6
  289. package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +2 -2
  290. package/types/excalidraw/fractionalIndex.d.ts +48 -48
  291. package/types/excalidraw/frame.d.ts +63 -63
  292. package/types/excalidraw/ga.d.ts +63 -63
  293. package/types/excalidraw/gadirections.d.ts +8 -8
  294. package/types/excalidraw/galines.d.ts +22 -22
  295. package/types/excalidraw/gapoints.d.ts +7 -7
  296. package/types/excalidraw/gatransforms.d.ts +10 -10
  297. package/types/excalidraw/gesture.d.ts +6 -6
  298. package/types/excalidraw/groups.d.ts +33 -33
  299. package/types/excalidraw/history.d.ts +40 -40
  300. package/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -1
  301. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -5
  302. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +7 -7
  303. package/types/excalidraw/hooks/useEmitter.d.ts +2 -2
  304. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -11
  305. package/types/excalidraw/hooks/useOutsideClick.d.ts +19 -19
  306. package/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  307. package/types/excalidraw/hooks/useStable.d.ts +1 -1
  308. package/types/excalidraw/hooks/useStableCallback.d.ts +4 -4
  309. package/types/excalidraw/hooks/useTransition.d.ts +2 -2
  310. package/types/excalidraw/i18n.d.ts +24 -24
  311. package/types/excalidraw/index-node.d.ts +1 -1
  312. package/types/excalidraw/index.d.ts +62 -62
  313. package/types/excalidraw/jotai.d.ts +34 -34
  314. package/types/excalidraw/keys.d.ts +189 -82
  315. package/types/excalidraw/laser-trails.d.ts +20 -20
  316. package/types/excalidraw/main.d.ts +2 -2
  317. package/types/excalidraw/math.d.ts +79 -79
  318. package/types/excalidraw/mermaid.d.ts +2 -2
  319. package/types/excalidraw/obsidianUtils.d.ts +23 -21
  320. package/types/excalidraw/points.d.ts +7 -7
  321. package/types/excalidraw/polyfill.d.ts +2 -2
  322. package/types/excalidraw/publicPath.d.ts +1 -1
  323. package/types/excalidraw/queue.d.ts +9 -9
  324. package/types/excalidraw/random.d.ts +4 -4
  325. package/types/excalidraw/reactUtils.d.ts +14 -14
  326. package/types/excalidraw/renderer/easingFunctions.d.ts +6 -6
  327. package/types/excalidraw/renderer/helpers.d.ts +13 -13
  328. package/types/excalidraw/renderer/interactiveScene.d.ts +20 -20
  329. package/types/excalidraw/renderer/renderElement.d.ts +28 -27
  330. package/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -7
  331. package/types/excalidraw/renderer/renderSnaps.d.ts +2 -2
  332. package/types/excalidraw/renderer/roundRect.d.ts +11 -11
  333. package/types/excalidraw/renderer/staticScene.d.ts +11 -11
  334. package/types/excalidraw/renderer/staticSvgScene.d.ts +5 -5
  335. package/types/excalidraw/scene/Renderer.d.ts +28 -28
  336. package/types/excalidraw/scene/Scene.d.ts +78 -78
  337. package/types/excalidraw/scene/Shape.d.ts +17 -17
  338. package/types/excalidraw/scene/ShapeCache.d.ts +25 -25
  339. package/types/excalidraw/scene/comparisons.d.ts +488 -487
  340. package/types/excalidraw/scene/export.d.ts +30 -29
  341. package/types/excalidraw/scene/index.d.ts +4 -4
  342. package/types/excalidraw/scene/normalize.d.ts +4 -4
  343. package/types/excalidraw/scene/scroll.d.ts +23 -23
  344. package/types/excalidraw/scene/scrollbars.d.ts +12 -12
  345. package/types/excalidraw/scene/selection.d.ts +32 -32
  346. package/types/excalidraw/scene/types.d.ts +119 -112
  347. package/types/excalidraw/scene/zoom.d.ts +12 -12
  348. package/types/excalidraw/shapes.d.ts +85 -85
  349. package/types/excalidraw/snapping.d.ts +112 -112
  350. package/types/excalidraw/store.d.ts +129 -129
  351. package/types/excalidraw/{fonts/wasm/hb-subset-bindings.d.ts → subset/harfbuzz/harfbuzz-bindings.d.ts} +45 -45
  352. package/types/excalidraw/{fonts/wasm/hb-subset-loader.d.ts → subset/harfbuzz/harfbuzz-loader.d.ts} +13 -13
  353. package/types/excalidraw/{fonts/wasm/hb-subset-wasm.d.ts → subset/harfbuzz/harfbuzz-wasm.d.ts} +2 -2
  354. package/types/excalidraw/{fonts/subset → subset}/subset-main.d.ts +12 -12
  355. package/types/excalidraw/{fonts/subset → subset}/subset-shared.chunk.d.ts +32 -32
  356. package/types/excalidraw/{fonts/subset → subset}/subset-worker.chunk.d.ts +15 -15
  357. package/types/excalidraw/{fonts/wasm → subset/woff2}/woff2-bindings.d.ts +31 -31
  358. package/types/excalidraw/{fonts/wasm → subset/woff2}/woff2-loader.d.ts +14 -14
  359. package/types/excalidraw/{fonts/wasm → subset/woff2}/woff2-wasm.d.ts +2 -2
  360. package/types/excalidraw/types.d.ts +730 -719
  361. package/types/excalidraw/utility-types.d.ts +31 -31
  362. package/types/excalidraw/utils.d.ts +249 -249
  363. package/types/excalidraw/visualdebug.d.ts +35 -35
  364. package/types/excalidraw/webpack.dev.config.d.ts +81 -81
  365. package/types/excalidraw/webpack.prod.config.d.ts +97 -97
  366. package/types/excalidraw/workers.d.ts +36 -36
  367. package/types/excalidraw/zindex.d.ts +6 -6
  368. package/types/math/angle.d.ts +17 -17
  369. package/types/math/arc.d.ts +6 -6
  370. package/types/math/curve.d.ts +32 -32
  371. package/types/math/ga/ga.d.ts +63 -63
  372. package/types/math/ga/gadirections.d.ts +8 -8
  373. package/types/math/ga/galines.d.ts +22 -22
  374. package/types/math/ga/gapoints.d.ts +7 -7
  375. package/types/math/ga/gatransforms.d.ts +10 -10
  376. package/types/math/index.d.ts +12 -12
  377. package/types/math/line.d.ts +26 -26
  378. package/types/math/point.d.ts +140 -140
  379. package/types/math/polygon.d.ts +5 -5
  380. package/types/math/range.d.ts +44 -44
  381. package/types/math/segment.d.ts +32 -32
  382. package/types/math/triangle.d.ts +11 -11
  383. package/types/math/types.d.ts +96 -96
  384. package/types/math/utils.d.ts +7 -6
  385. package/types/math/vector.d.ts +92 -88
  386. package/types/utils/bbox.d.ts +9 -9
  387. package/types/utils/collision.d.ts +9 -9
  388. package/types/utils/export.d.ts +46 -44
  389. package/types/utils/geometry/geometry.d.ts +89 -89
  390. package/types/utils/geometry/shape.d.ts +71 -71
  391. package/types/utils/index.d.ts +4 -4
  392. package/types/utils/withinBounds.d.ts +19 -19
  393. package/dist/excalidraw-assets/CascadiaCode-Regular.woff2 +0 -0
  394. package/dist/excalidraw-assets/ComicShanns-Regular.woff2 +0 -0
  395. package/dist/excalidraw-assets/Excalifont-Regular.woff2 +0 -0
  396. package/dist/excalidraw-assets/LiberationSans-Regular.woff2 +0 -0
  397. package/dist/excalidraw-assets/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2 +0 -0
  398. package/dist/excalidraw-assets/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2 +0 -0
  399. package/dist/excalidraw-assets/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2 +0 -0
  400. package/dist/excalidraw-assets/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTQ3j6zbXWjgeg.woff2 +0 -0
  401. package/dist/excalidraw-assets/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTk3j6zbXWjgevT5.woff2 +0 -0
  402. package/dist/excalidraw-assets/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTo3j6zbXWjgevT5.woff2 +0 -0
  403. package/dist/excalidraw-assets/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTs3j6zbXWjgevT5.woff2 +0 -0
  404. package/dist/excalidraw-assets/Virgil-Regular.woff2 +0 -0
  405. package/dist/excalidraw-assets-dev/CascadiaCode-Regular.woff2 +0 -0
  406. package/dist/excalidraw-assets-dev/ComicShanns-Regular.woff2 +0 -0
  407. package/dist/excalidraw-assets-dev/Excalifont-Regular.woff2 +0 -0
  408. package/dist/excalidraw-assets-dev/LiberationSans-Regular.woff2 +0 -0
  409. package/dist/excalidraw-assets-dev/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2 +0 -0
  410. package/dist/excalidraw-assets-dev/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2 +0 -0
  411. package/dist/excalidraw-assets-dev/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2 +0 -0
  412. package/dist/excalidraw-assets-dev/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTQ3j6zbXWjgeg.woff2 +0 -0
  413. package/dist/excalidraw-assets-dev/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTk3j6zbXWjgevT5.woff2 +0 -0
  414. package/dist/excalidraw-assets-dev/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTo3j6zbXWjgevT5.woff2 +0 -0
  415. package/dist/excalidraw-assets-dev/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTs3j6zbXWjgevT5.woff2 +0 -0
  416. package/dist/excalidraw-assets-dev/Virgil-Regular.woff2 +0 -0
  417. package/types/excalidraw/components/MagicSettings.d.ts +0 -8
  418. package/types/excalidraw/components/Stats.d.ts +0 -11
  419. package/types/excalidraw/data/magic.d.ts +0 -23
  420. package/types/excalidraw/fonts/woff2/Comic/index.d.ts +0 -2
  421. package/types/excalidraw/scene/Fonts.d.ts +0 -19
@@ -1,855 +1,863 @@
1
- import type { ExcalidrawElement } from "../element/types";
2
- import type { AppClassProperties, AppState } from "../types";
3
- export declare const actionSelectAllElementsInFrame: {
4
- name: "selectAllElementsInFrame";
5
- label: string;
6
- trackEvent: {
7
- category: "canvas";
8
- };
9
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
11
- appState: {
12
- selectedElementIds: Record<string, true>;
13
- contextMenu: {
14
- items: import("../components/ContextMenu").ContextMenuItems;
15
- top: number;
16
- left: number;
17
- } | null;
18
- showWelcomeScreen: boolean;
19
- isLoading: boolean;
20
- errorMessage: import("react").ReactNode;
21
- activeEmbeddable: {
22
- element: import("../element/types").NonDeletedExcalidrawElement;
23
- state: "active" | "hover";
24
- } | null;
25
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
26
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
28
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
29
- isBindingEnabled: boolean;
30
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("../element/binding").SuggestedBinding[];
32
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
33
- frameRendering: {
34
- enabled: boolean;
35
- name: boolean;
36
- outline: boolean;
37
- clip: boolean;
38
- };
39
- editingFrame: string | null;
40
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
41
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
43
- activeTool: {
44
- lastActiveTool: import("../types").ActiveTool | null;
45
- locked: boolean;
46
- } & import("../types").ActiveTool;
47
- penMode: boolean;
48
- penDetected: boolean;
49
- exportBackground: boolean;
50
- exportEmbedScene: boolean;
51
- exportWithDarkMode: boolean;
52
- exportScale: number;
53
- currentItemStrokeColor: string;
54
- currentItemBackgroundColor: string;
55
- currentItemFillStyle: import("../element/types").FillStyle;
56
- currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
58
- currentItemRoughness: number;
59
- currentItemOpacity: number;
60
- currentItemFontFamily: number;
61
- currentItemFontSize: number;
62
- currentItemTextAlign: string;
63
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
64
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
- currentHoveredFontFamily: number | null;
66
- currentItemRoundness: import("../element/types").StrokeRoundness;
67
- currentItemArrowType: "round" | "sharp" | "elbow";
68
- viewBackgroundColor: string;
69
- scrollX: number;
70
- scrollY: number;
71
- cursorButton: "up" | "down";
72
- scrolledOutside: boolean;
73
- name: string | null;
74
- isResizing: boolean;
75
- isRotating: boolean;
76
- zoom: Readonly<{
77
- value: import("../types").NormalizedZoomValue;
78
- }>;
79
- openMenu: "canvas" | "shape" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
- openSidebar: {
82
- name: string;
83
- tab?: string | undefined;
84
- } | null;
85
- openDialog: {
86
- name: "imageExport" | "help" | "jsonExport";
87
- } | {
88
- name: "ttd";
89
- tab: "mermaid" | "text-to-diagram";
90
- } | {
91
- name: "commandPalette";
92
- } | null;
93
- defaultSidebarDockedPreference: boolean;
94
- lastPointerDownWith: import("../element/types").PointerType;
95
- previousSelectedElementIds: {
96
- [id: string]: true;
97
- };
98
- selectedElementsAreBeingDragged: boolean;
99
- shouldCacheIgnoreZoom: boolean;
100
- toast: {
101
- message: string;
102
- closable?: boolean | undefined;
103
- duration?: number | undefined;
104
- } | null;
105
- zenModeEnabled: boolean;
106
- theme: import("../element/types").Theme;
107
- gridSize: number;
108
- gridStep: number;
109
- gridModeEnabled: boolean;
110
- viewModeEnabled: boolean;
111
- selectedGroupIds: {
112
- [groupId: string]: boolean;
113
- };
114
- editingGroupId: string | null;
115
- width: number;
116
- height: number;
117
- offsetTop: number;
118
- offsetLeft: number;
119
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
120
- collaborators: Map<import("../types").SocketId, Readonly<{
121
- pointer?: import("../types").CollaboratorPointer | undefined;
122
- button?: "up" | "down" | undefined;
123
- selectedElementIds?: Readonly<{
124
- [id: string]: true;
125
- }> | undefined;
126
- username?: string | null | undefined;
127
- userState?: import("../types").UserIdleState | undefined;
128
- color?: {
129
- background: string;
130
- stroke: string;
131
- } | undefined;
132
- avatarUrl?: string | undefined;
133
- id?: string | undefined;
134
- socketId?: import("../types").SocketId | undefined;
135
- isCurrentUser?: boolean | undefined;
136
- isInCall?: boolean | undefined;
137
- isSpeaking?: boolean | undefined;
138
- isMuted?: boolean | undefined;
139
- }>>;
140
- stats: {
141
- open: boolean;
142
- panels: number;
143
- };
144
- currentChartType: import("../element/types").ChartType;
145
- pasteDialog: {
146
- shown: false;
147
- data: null;
148
- } | {
149
- shown: true;
150
- data: import("../charts").Spreadsheet;
151
- };
152
- pendingImageElementId: string | null;
153
- showHyperlinkPopup: false | "info" | "editor";
154
- linkOpacity: number;
155
- trayModeEnabled: boolean;
156
- colorPalette?: {
157
- canvasBackground: import("../colors").ColorPaletteCustom;
158
- elementBackground: import("../colors").ColorPaletteCustom;
159
- elementStroke: import("../colors").ColorPaletteCustom;
160
- topPicks: {
161
- canvasBackground: [string, string, string, string, string];
162
- elementStroke: [string, string, string, string, string];
163
- elementBackground: [string, string, string, string, string];
164
- };
165
- } | undefined;
166
- allowWheelZoom?: boolean | undefined;
167
- allowPinchZoom?: boolean | undefined;
168
- pinnedScripts?: string[] | undefined;
169
- customPens?: any[] | undefined;
170
- currentStrokeOptions?: any;
171
- resetCustomPen?: any;
172
- gridColor: {
173
- Bold: string;
174
- Regular: string;
175
- };
176
- highlightSearchResult: boolean;
177
- dynamicStyle: {
178
- [x: string]: string;
179
- };
180
- frameColor: {
181
- stroke: string;
182
- fill: string;
183
- nameColor: string;
184
- };
185
- invertBindingBehaviour: boolean;
186
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
187
- snapLines: readonly import("../snapping").SnapLine[];
188
- originSnapOffset: {
189
- x: number;
190
- y: number;
191
- } | null;
192
- objectsSnapModeEnabled: boolean;
193
- userToFollow: import("../types").UserToFollow | null;
194
- followedBy: Set<import("../types").SocketId>;
195
- searchMatches: readonly {
196
- id: string;
197
- focus: boolean;
198
- matchedLines: {
199
- offsetX: number;
200
- offsetY: number;
201
- width: number;
202
- height: number;
203
- }[];
204
- }[];
205
- };
206
- storeAction: "capture";
207
- } | {
208
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
209
- appState: Readonly<AppState>;
210
- storeAction: "none";
211
- };
212
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
213
- } & {
214
- keyTest?: undefined;
215
- };
216
- export declare const actionRemoveAllElementsFromFrame: {
217
- name: "removeAllElementsFromFrame";
218
- label: string;
219
- trackEvent: {
220
- category: "history";
221
- };
222
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
223
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
224
- appState: {
225
- selectedElementIds: {
226
- [x: string]: true;
227
- };
228
- contextMenu: {
229
- items: import("../components/ContextMenu").ContextMenuItems;
230
- top: number;
231
- left: number;
232
- } | null;
233
- showWelcomeScreen: boolean;
234
- isLoading: boolean;
235
- errorMessage: import("react").ReactNode;
236
- activeEmbeddable: {
237
- element: import("../element/types").NonDeletedExcalidrawElement;
238
- state: "active" | "hover";
239
- } | null;
240
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
241
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
242
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
243
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
244
- isBindingEnabled: boolean;
245
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
246
- suggestedBindings: import("../element/binding").SuggestedBinding[];
247
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
248
- frameRendering: {
249
- enabled: boolean;
250
- name: boolean;
251
- outline: boolean;
252
- clip: boolean;
253
- };
254
- editingFrame: string | null;
255
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
256
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
257
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
258
- activeTool: {
259
- lastActiveTool: import("../types").ActiveTool | null;
260
- locked: boolean;
261
- } & import("../types").ActiveTool;
262
- penMode: boolean;
263
- penDetected: boolean;
264
- exportBackground: boolean;
265
- exportEmbedScene: boolean;
266
- exportWithDarkMode: boolean;
267
- exportScale: number;
268
- currentItemStrokeColor: string;
269
- currentItemBackgroundColor: string;
270
- currentItemFillStyle: import("../element/types").FillStyle;
271
- currentItemStrokeWidth: number;
272
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
273
- currentItemRoughness: number;
274
- currentItemOpacity: number;
275
- currentItemFontFamily: number;
276
- currentItemFontSize: number;
277
- currentItemTextAlign: string;
278
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
279
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
280
- currentHoveredFontFamily: number | null;
281
- currentItemRoundness: import("../element/types").StrokeRoundness;
282
- currentItemArrowType: "round" | "sharp" | "elbow";
283
- viewBackgroundColor: string;
284
- scrollX: number;
285
- scrollY: number;
286
- cursorButton: "up" | "down";
287
- scrolledOutside: boolean;
288
- name: string | null;
289
- isResizing: boolean;
290
- isRotating: boolean;
291
- zoom: Readonly<{
292
- value: import("../types").NormalizedZoomValue;
293
- }>;
294
- openMenu: "canvas" | "shape" | null;
295
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
296
- openSidebar: {
297
- name: string;
298
- tab?: string | undefined;
299
- } | null;
300
- openDialog: {
301
- name: "imageExport" | "help" | "jsonExport";
302
- } | {
303
- name: "ttd";
304
- tab: "mermaid" | "text-to-diagram";
305
- } | {
306
- name: "commandPalette";
307
- } | null;
308
- defaultSidebarDockedPreference: boolean;
309
- lastPointerDownWith: import("../element/types").PointerType;
310
- previousSelectedElementIds: {
311
- [id: string]: true;
312
- };
313
- selectedElementsAreBeingDragged: boolean;
314
- shouldCacheIgnoreZoom: boolean;
315
- toast: {
316
- message: string;
317
- closable?: boolean | undefined;
318
- duration?: number | undefined;
319
- } | null;
320
- zenModeEnabled: boolean;
321
- theme: import("../element/types").Theme;
322
- gridSize: number;
323
- gridStep: number;
324
- gridModeEnabled: boolean;
325
- viewModeEnabled: boolean;
326
- selectedGroupIds: {
327
- [groupId: string]: boolean;
328
- };
329
- editingGroupId: string | null;
330
- width: number;
331
- height: number;
332
- offsetTop: number;
333
- offsetLeft: number;
334
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
335
- collaborators: Map<import("../types").SocketId, Readonly<{
336
- pointer?: import("../types").CollaboratorPointer | undefined;
337
- button?: "up" | "down" | undefined;
338
- selectedElementIds?: Readonly<{
339
- [id: string]: true;
340
- }> | undefined;
341
- username?: string | null | undefined;
342
- userState?: import("../types").UserIdleState | undefined;
343
- color?: {
344
- background: string;
345
- stroke: string;
346
- } | undefined;
347
- avatarUrl?: string | undefined;
348
- id?: string | undefined;
349
- socketId?: import("../types").SocketId | undefined;
350
- isCurrentUser?: boolean | undefined;
351
- isInCall?: boolean | undefined;
352
- isSpeaking?: boolean | undefined;
353
- isMuted?: boolean | undefined;
354
- }>>;
355
- stats: {
356
- open: boolean;
357
- panels: number;
358
- };
359
- currentChartType: import("../element/types").ChartType;
360
- pasteDialog: {
361
- shown: false;
362
- data: null;
363
- } | {
364
- shown: true;
365
- data: import("../charts").Spreadsheet;
366
- };
367
- pendingImageElementId: string | null;
368
- showHyperlinkPopup: false | "info" | "editor";
369
- linkOpacity: number;
370
- trayModeEnabled: boolean;
371
- colorPalette?: {
372
- canvasBackground: import("../colors").ColorPaletteCustom;
373
- elementBackground: import("../colors").ColorPaletteCustom;
374
- elementStroke: import("../colors").ColorPaletteCustom;
375
- topPicks: {
376
- canvasBackground: [string, string, string, string, string];
377
- elementStroke: [string, string, string, string, string];
378
- elementBackground: [string, string, string, string, string];
379
- };
380
- } | undefined;
381
- allowWheelZoom?: boolean | undefined;
382
- allowPinchZoom?: boolean | undefined;
383
- pinnedScripts?: string[] | undefined;
384
- customPens?: any[] | undefined;
385
- currentStrokeOptions?: any;
386
- resetCustomPen?: any;
387
- gridColor: {
388
- Bold: string;
389
- Regular: string;
390
- };
391
- highlightSearchResult: boolean;
392
- dynamicStyle: {
393
- [x: string]: string;
394
- };
395
- frameColor: {
396
- stroke: string;
397
- fill: string;
398
- nameColor: string;
399
- };
400
- invertBindingBehaviour: boolean;
401
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
402
- snapLines: readonly import("../snapping").SnapLine[];
403
- originSnapOffset: {
404
- x: number;
405
- y: number;
406
- } | null;
407
- objectsSnapModeEnabled: boolean;
408
- userToFollow: import("../types").UserToFollow | null;
409
- followedBy: Set<import("../types").SocketId>;
410
- searchMatches: readonly {
411
- id: string;
412
- focus: boolean;
413
- matchedLines: {
414
- offsetX: number;
415
- offsetY: number;
416
- width: number;
417
- height: number;
418
- }[];
419
- }[];
420
- };
421
- storeAction: "capture";
422
- } | {
423
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
424
- appState: Readonly<AppState>;
425
- storeAction: "none";
426
- };
427
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
428
- } & {
429
- keyTest?: undefined;
430
- };
431
- export declare const actionupdateFrameRendering: {
432
- name: "updateFrameRendering";
433
- label: string;
434
- viewMode: true;
435
- trackEvent: {
436
- category: "canvas";
437
- };
438
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
439
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
440
- appState: {
441
- frameRendering: {
442
- enabled: boolean;
443
- name: boolean;
444
- outline: boolean;
445
- clip: boolean;
446
- };
447
- contextMenu: {
448
- items: import("../components/ContextMenu").ContextMenuItems;
449
- top: number;
450
- left: number;
451
- } | null;
452
- showWelcomeScreen: boolean;
453
- isLoading: boolean;
454
- errorMessage: import("react").ReactNode;
455
- activeEmbeddable: {
456
- element: import("../element/types").NonDeletedExcalidrawElement;
457
- state: "active" | "hover";
458
- } | null;
459
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
460
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
461
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
462
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
463
- isBindingEnabled: boolean;
464
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
465
- suggestedBindings: import("../element/binding").SuggestedBinding[];
466
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
467
- editingFrame: string | null;
468
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
469
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
470
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
471
- activeTool: {
472
- lastActiveTool: import("../types").ActiveTool | null;
473
- locked: boolean;
474
- } & import("../types").ActiveTool;
475
- penMode: boolean;
476
- penDetected: boolean;
477
- exportBackground: boolean;
478
- exportEmbedScene: boolean;
479
- exportWithDarkMode: boolean;
480
- exportScale: number;
481
- currentItemStrokeColor: string;
482
- currentItemBackgroundColor: string;
483
- currentItemFillStyle: import("../element/types").FillStyle;
484
- currentItemStrokeWidth: number;
485
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
486
- currentItemRoughness: number;
487
- currentItemOpacity: number;
488
- currentItemFontFamily: number;
489
- currentItemFontSize: number;
490
- currentItemTextAlign: string;
491
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
492
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
493
- currentHoveredFontFamily: number | null;
494
- currentItemRoundness: import("../element/types").StrokeRoundness;
495
- currentItemArrowType: "round" | "sharp" | "elbow";
496
- viewBackgroundColor: string;
497
- scrollX: number;
498
- scrollY: number;
499
- cursorButton: "up" | "down";
500
- scrolledOutside: boolean;
501
- name: string | null;
502
- isResizing: boolean;
503
- isRotating: boolean;
504
- zoom: Readonly<{
505
- value: import("../types").NormalizedZoomValue;
506
- }>;
507
- openMenu: "canvas" | "shape" | null;
508
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
509
- openSidebar: {
510
- name: string;
511
- tab?: string | undefined;
512
- } | null;
513
- openDialog: {
514
- name: "imageExport" | "help" | "jsonExport";
515
- } | {
516
- name: "ttd";
517
- tab: "mermaid" | "text-to-diagram";
518
- } | {
519
- name: "commandPalette";
520
- } | null;
521
- defaultSidebarDockedPreference: boolean;
522
- lastPointerDownWith: import("../element/types").PointerType;
523
- selectedElementIds: Readonly<{
524
- [id: string]: true;
525
- }>;
526
- previousSelectedElementIds: {
527
- [id: string]: true;
528
- };
529
- selectedElementsAreBeingDragged: boolean;
530
- shouldCacheIgnoreZoom: boolean;
531
- toast: {
532
- message: string;
533
- closable?: boolean | undefined;
534
- duration?: number | undefined;
535
- } | null;
536
- zenModeEnabled: boolean;
537
- theme: import("../element/types").Theme;
538
- gridSize: number;
539
- gridStep: number;
540
- gridModeEnabled: boolean;
541
- viewModeEnabled: boolean;
542
- selectedGroupIds: {
543
- [groupId: string]: boolean;
544
- };
545
- editingGroupId: string | null;
546
- width: number;
547
- height: number;
548
- offsetTop: number;
549
- offsetLeft: number;
550
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
551
- collaborators: Map<import("../types").SocketId, Readonly<{
552
- pointer?: import("../types").CollaboratorPointer | undefined;
553
- button?: "up" | "down" | undefined;
554
- selectedElementIds?: Readonly<{
555
- [id: string]: true;
556
- }> | undefined;
557
- username?: string | null | undefined;
558
- userState?: import("../types").UserIdleState | undefined;
559
- color?: {
560
- background: string;
561
- stroke: string;
562
- } | undefined;
563
- avatarUrl?: string | undefined;
564
- id?: string | undefined;
565
- socketId?: import("../types").SocketId | undefined;
566
- isCurrentUser?: boolean | undefined;
567
- isInCall?: boolean | undefined;
568
- isSpeaking?: boolean | undefined;
569
- isMuted?: boolean | undefined;
570
- }>>;
571
- stats: {
572
- open: boolean;
573
- panels: number;
574
- };
575
- currentChartType: import("../element/types").ChartType;
576
- pasteDialog: {
577
- shown: false;
578
- data: null;
579
- } | {
580
- shown: true;
581
- data: import("../charts").Spreadsheet;
582
- };
583
- pendingImageElementId: string | null;
584
- showHyperlinkPopup: false | "info" | "editor";
585
- linkOpacity: number;
586
- trayModeEnabled: boolean;
587
- colorPalette?: {
588
- canvasBackground: import("../colors").ColorPaletteCustom;
589
- elementBackground: import("../colors").ColorPaletteCustom;
590
- elementStroke: import("../colors").ColorPaletteCustom;
591
- topPicks: {
592
- canvasBackground: [string, string, string, string, string];
593
- elementStroke: [string, string, string, string, string];
594
- elementBackground: [string, string, string, string, string];
595
- };
596
- } | undefined;
597
- allowWheelZoom?: boolean | undefined;
598
- allowPinchZoom?: boolean | undefined;
599
- pinnedScripts?: string[] | undefined;
600
- customPens?: any[] | undefined;
601
- currentStrokeOptions?: any;
602
- resetCustomPen?: any;
603
- gridColor: {
604
- Bold: string;
605
- Regular: string;
606
- };
607
- highlightSearchResult: boolean;
608
- dynamicStyle: {
609
- [x: string]: string;
610
- };
611
- frameColor: {
612
- stroke: string;
613
- fill: string;
614
- nameColor: string;
615
- };
616
- invertBindingBehaviour: boolean;
617
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
618
- snapLines: readonly import("../snapping").SnapLine[];
619
- originSnapOffset: {
620
- x: number;
621
- y: number;
622
- } | null;
623
- objectsSnapModeEnabled: boolean;
624
- userToFollow: import("../types").UserToFollow | null;
625
- followedBy: Set<import("../types").SocketId>;
626
- searchMatches: readonly {
627
- id: string;
628
- focus: boolean;
629
- matchedLines: {
630
- offsetX: number;
631
- offsetY: number;
632
- width: number;
633
- height: number;
634
- }[];
635
- }[];
636
- };
637
- storeAction: "none";
638
- };
639
- checked: (appState: AppState) => boolean;
640
- } & {
641
- keyTest?: undefined;
642
- };
643
- export declare const actionSetFrameAsActiveTool: {
644
- name: "setFrameAsActiveTool";
645
- label: string;
646
- trackEvent: {
647
- category: "toolbar";
648
- };
649
- icon: JSX.Element;
650
- viewMode: false;
651
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
652
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
653
- appState: {
654
- activeTool: {
655
- lastActiveTool: import("../types").ActiveTool | null;
656
- locked: boolean;
657
- } & import("../types").ActiveTool;
658
- contextMenu: {
659
- items: import("../components/ContextMenu").ContextMenuItems;
660
- top: number;
661
- left: number;
662
- } | null;
663
- showWelcomeScreen: boolean;
664
- isLoading: boolean;
665
- errorMessage: import("react").ReactNode;
666
- activeEmbeddable: {
667
- element: import("../element/types").NonDeletedExcalidrawElement;
668
- state: "active" | "hover";
669
- } | null;
670
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
671
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
672
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
673
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
674
- isBindingEnabled: boolean;
675
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
676
- suggestedBindings: import("../element/binding").SuggestedBinding[];
677
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
678
- frameRendering: {
679
- enabled: boolean;
680
- name: boolean;
681
- outline: boolean;
682
- clip: boolean;
683
- };
684
- editingFrame: string | null;
685
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
686
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
687
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
688
- penMode: boolean;
689
- penDetected: boolean;
690
- exportBackground: boolean;
691
- exportEmbedScene: boolean;
692
- exportWithDarkMode: boolean;
693
- exportScale: number;
694
- currentItemStrokeColor: string;
695
- currentItemBackgroundColor: string;
696
- currentItemFillStyle: import("../element/types").FillStyle;
697
- currentItemStrokeWidth: number;
698
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
699
- currentItemRoughness: number;
700
- currentItemOpacity: number;
701
- currentItemFontFamily: number;
702
- currentItemFontSize: number;
703
- currentItemTextAlign: string;
704
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
705
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
706
- currentHoveredFontFamily: number | null;
707
- currentItemRoundness: import("../element/types").StrokeRoundness;
708
- currentItemArrowType: "round" | "sharp" | "elbow";
709
- viewBackgroundColor: string;
710
- scrollX: number;
711
- scrollY: number;
712
- cursorButton: "up" | "down";
713
- scrolledOutside: boolean;
714
- name: string | null;
715
- isResizing: boolean;
716
- isRotating: boolean;
717
- zoom: Readonly<{
718
- value: import("../types").NormalizedZoomValue;
719
- }>;
720
- openMenu: "canvas" | "shape" | null;
721
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
722
- openSidebar: {
723
- name: string;
724
- tab?: string | undefined;
725
- } | null;
726
- openDialog: {
727
- name: "imageExport" | "help" | "jsonExport";
728
- } | {
729
- name: "ttd";
730
- tab: "mermaid" | "text-to-diagram";
731
- } | {
732
- name: "commandPalette";
733
- } | null;
734
- defaultSidebarDockedPreference: boolean;
735
- lastPointerDownWith: import("../element/types").PointerType;
736
- selectedElementIds: Readonly<{
737
- [id: string]: true;
738
- }>;
739
- previousSelectedElementIds: {
740
- [id: string]: true;
741
- };
742
- selectedElementsAreBeingDragged: boolean;
743
- shouldCacheIgnoreZoom: boolean;
744
- toast: {
745
- message: string;
746
- closable?: boolean | undefined;
747
- duration?: number | undefined;
748
- } | null;
749
- zenModeEnabled: boolean;
750
- theme: import("../element/types").Theme;
751
- gridSize: number;
752
- gridStep: number;
753
- gridModeEnabled: boolean;
754
- viewModeEnabled: boolean;
755
- selectedGroupIds: {
756
- [groupId: string]: boolean;
757
- };
758
- editingGroupId: string | null;
759
- width: number;
760
- height: number;
761
- offsetTop: number;
762
- offsetLeft: number;
763
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
764
- collaborators: Map<import("../types").SocketId, Readonly<{
765
- pointer?: import("../types").CollaboratorPointer | undefined;
766
- button?: "up" | "down" | undefined;
767
- selectedElementIds?: Readonly<{
768
- [id: string]: true;
769
- }> | undefined;
770
- username?: string | null | undefined;
771
- userState?: import("../types").UserIdleState | undefined;
772
- color?: {
773
- background: string;
774
- stroke: string;
775
- } | undefined;
776
- avatarUrl?: string | undefined;
777
- id?: string | undefined;
778
- socketId?: import("../types").SocketId | undefined;
779
- isCurrentUser?: boolean | undefined;
780
- isInCall?: boolean | undefined;
781
- isSpeaking?: boolean | undefined;
782
- isMuted?: boolean | undefined;
783
- }>>;
784
- stats: {
785
- open: boolean;
786
- panels: number;
787
- };
788
- currentChartType: import("../element/types").ChartType;
789
- pasteDialog: {
790
- shown: false;
791
- data: null;
792
- } | {
793
- shown: true;
794
- data: import("../charts").Spreadsheet;
795
- };
796
- pendingImageElementId: string | null;
797
- showHyperlinkPopup: false | "info" | "editor";
798
- linkOpacity: number;
799
- trayModeEnabled: boolean;
800
- colorPalette?: {
801
- canvasBackground: import("../colors").ColorPaletteCustom;
802
- elementBackground: import("../colors").ColorPaletteCustom;
803
- elementStroke: import("../colors").ColorPaletteCustom;
804
- topPicks: {
805
- canvasBackground: [string, string, string, string, string];
806
- elementStroke: [string, string, string, string, string];
807
- elementBackground: [string, string, string, string, string];
808
- };
809
- } | undefined;
810
- allowWheelZoom?: boolean | undefined;
811
- allowPinchZoom?: boolean | undefined;
812
- pinnedScripts?: string[] | undefined;
813
- customPens?: any[] | undefined;
814
- currentStrokeOptions?: any;
815
- resetCustomPen?: any;
816
- gridColor: {
817
- Bold: string;
818
- Regular: string;
819
- };
820
- highlightSearchResult: boolean;
821
- dynamicStyle: {
822
- [x: string]: string;
823
- };
824
- frameColor: {
825
- stroke: string;
826
- fill: string;
827
- nameColor: string;
828
- };
829
- invertBindingBehaviour: boolean;
830
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
831
- snapLines: readonly import("../snapping").SnapLine[];
832
- originSnapOffset: {
833
- x: number;
834
- y: number;
835
- } | null;
836
- objectsSnapModeEnabled: boolean;
837
- userToFollow: import("../types").UserToFollow | null;
838
- followedBy: Set<import("../types").SocketId>;
839
- searchMatches: readonly {
840
- id: string;
841
- focus: boolean;
842
- matchedLines: {
843
- offsetX: number;
844
- offsetY: number;
845
- width: number;
846
- height: number;
847
- }[];
848
- }[];
849
- };
850
- storeAction: "none";
851
- };
852
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
853
- } & {
854
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
855
- };
1
+ import type { ExcalidrawElement } from "../element/types";
2
+ import type { AppClassProperties, AppState } from "../types";
3
+ export declare const actionSelectAllElementsInFrame: {
4
+ name: "selectAllElementsInFrame";
5
+ label: string;
6
+ trackEvent: {
7
+ category: "canvas";
8
+ };
9
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
+ elements: readonly import("../element/types").OrderedExcalidrawElement[];
11
+ appState: {
12
+ selectedElementIds: Record<string, true>;
13
+ contextMenu: {
14
+ items: import("../components/ContextMenu").ContextMenuItems;
15
+ top: number;
16
+ left: number;
17
+ } | null;
18
+ showWelcomeScreen: boolean;
19
+ isLoading: boolean;
20
+ errorMessage: import("react").ReactNode;
21
+ activeEmbeddable: {
22
+ element: import("../element/types").NonDeletedExcalidrawElement;
23
+ state: "active" | "hover";
24
+ } | null;
25
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
26
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
28
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
29
+ isBindingEnabled: boolean;
30
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
31
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
32
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
33
+ frameRendering: {
34
+ enabled: boolean;
35
+ name: boolean;
36
+ outline: boolean;
37
+ clip: boolean;
38
+ };
39
+ editingFrame: string | null;
40
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
41
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
43
+ activeTool: {
44
+ lastActiveTool: import("../types").ActiveTool | null;
45
+ locked: boolean;
46
+ } & import("../types").ActiveTool;
47
+ penMode: boolean;
48
+ penDetected: boolean;
49
+ exportBackground: boolean;
50
+ exportEmbedScene: boolean;
51
+ exportWithDarkMode: boolean;
52
+ exportScale: number;
53
+ currentItemStrokeColor: string;
54
+ currentItemBackgroundColor: string;
55
+ currentItemFillStyle: import("../element/types").FillStyle;
56
+ currentItemStrokeWidth: number;
57
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
58
+ currentItemRoughness: number;
59
+ currentItemOpacity: number;
60
+ currentItemFontFamily: number;
61
+ currentItemFontSize: number;
62
+ currentItemTextAlign: string;
63
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
64
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
+ currentHoveredFontFamily: number | null;
66
+ currentItemRoundness: import("../element/types").StrokeRoundness;
67
+ currentItemArrowType: "round" | "sharp" | "elbow";
68
+ viewBackgroundColor: string;
69
+ scrollX: number;
70
+ scrollY: number;
71
+ cursorButton: "up" | "down";
72
+ scrolledOutside: boolean;
73
+ name: string | null;
74
+ isResizing: boolean;
75
+ isRotating: boolean;
76
+ zoom: Readonly<{
77
+ value: import("../types").NormalizedZoomValue;
78
+ }>;
79
+ openMenu: "canvas" | "shape" | null;
80
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
+ openSidebar: {
82
+ name: string;
83
+ tab?: string | undefined;
84
+ } | null;
85
+ openDialog: {
86
+ name: "imageExport" | "help" | "jsonExport";
87
+ } | {
88
+ name: "ttd";
89
+ tab: "mermaid" | "text-to-diagram";
90
+ } | {
91
+ name: "commandPalette";
92
+ } | null;
93
+ defaultSidebarDockedPreference: boolean;
94
+ lastPointerDownWith: import("../element/types").PointerType;
95
+ previousSelectedElementIds: {
96
+ [id: string]: true;
97
+ };
98
+ selectedElementsAreBeingDragged: boolean;
99
+ shouldCacheIgnoreZoom: boolean;
100
+ toast: {
101
+ message: string;
102
+ closable?: boolean | undefined;
103
+ duration?: number | undefined;
104
+ } | null;
105
+ zenModeEnabled: boolean;
106
+ theme: import("../element/types").Theme;
107
+ gridSize: number;
108
+ gridStep: number;
109
+ gridModeEnabled: boolean;
110
+ viewModeEnabled: boolean;
111
+ selectedGroupIds: {
112
+ [groupId: string]: boolean;
113
+ };
114
+ editingGroupId: string | null;
115
+ width: number;
116
+ height: number;
117
+ offsetTop: number;
118
+ offsetLeft: number;
119
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
120
+ collaborators: Map<import("../types").SocketId, Readonly<{
121
+ pointer?: import("../types").CollaboratorPointer | undefined;
122
+ button?: "up" | "down" | undefined;
123
+ selectedElementIds?: Readonly<{
124
+ [id: string]: true;
125
+ }> | undefined;
126
+ username?: string | null | undefined;
127
+ userState?: import("../types").UserIdleState | undefined;
128
+ color?: {
129
+ background: string;
130
+ stroke: string;
131
+ } | undefined;
132
+ avatarUrl?: string | undefined;
133
+ id?: string | undefined;
134
+ socketId?: import("../types").SocketId | undefined;
135
+ isCurrentUser?: boolean | undefined;
136
+ isInCall?: boolean | undefined;
137
+ isSpeaking?: boolean | undefined;
138
+ isMuted?: boolean | undefined;
139
+ }>>;
140
+ stats: {
141
+ open: boolean;
142
+ panels: number;
143
+ };
144
+ currentChartType: import("../element/types").ChartType;
145
+ pasteDialog: {
146
+ shown: false;
147
+ data: null;
148
+ } | {
149
+ shown: true;
150
+ data: import("../charts").Spreadsheet;
151
+ };
152
+ pendingImageElementId: string | null;
153
+ showHyperlinkPopup: false | "info" | "editor";
154
+ linkOpacity: number;
155
+ trayModeEnabled: boolean;
156
+ colorPalette?: {
157
+ canvasBackground: import("../colors").ColorPaletteCustom;
158
+ elementBackground: import("../colors").ColorPaletteCustom;
159
+ elementStroke: import("../colors").ColorPaletteCustom;
160
+ topPicks: {
161
+ canvasBackground: [string, string, string, string, string];
162
+ elementStroke: [string, string, string, string, string];
163
+ elementBackground: [string, string, string, string, string];
164
+ };
165
+ } | undefined;
166
+ allowWheelZoom?: boolean | undefined;
167
+ allowPinchZoom?: boolean | undefined;
168
+ pinnedScripts?: string[] | undefined;
169
+ customPens?: any[] | undefined;
170
+ currentStrokeOptions?: any;
171
+ resetCustomPen?: any;
172
+ gridColor: {
173
+ Bold: string;
174
+ Regular: string;
175
+ };
176
+ highlightSearchResult: boolean;
177
+ dynamicStyle: {
178
+ [x: string]: string;
179
+ };
180
+ frameColor: {
181
+ stroke: string;
182
+ fill: string;
183
+ nameColor: string;
184
+ };
185
+ invertBindingBehaviour: boolean;
186
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
187
+ snapLines: readonly import("../snapping").SnapLine[];
188
+ originSnapOffset: {
189
+ x: number;
190
+ y: number;
191
+ } | null;
192
+ objectsSnapModeEnabled: boolean;
193
+ userToFollow: import("../types").UserToFollow | null;
194
+ followedBy: Set<import("../types").SocketId>;
195
+ isCropping: boolean;
196
+ croppingElementId: string | null;
197
+ searchMatches: readonly {
198
+ id: string;
199
+ focus: boolean;
200
+ matchedLines: {
201
+ offsetX: number;
202
+ offsetY: number;
203
+ width: number;
204
+ height: number;
205
+ }[];
206
+ }[];
207
+ };
208
+ storeAction: "capture";
209
+ } | {
210
+ elements: readonly import("../element/types").OrderedExcalidrawElement[];
211
+ appState: Readonly<AppState>;
212
+ storeAction: "none";
213
+ };
214
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
215
+ } & {
216
+ keyTest?: undefined;
217
+ };
218
+ export declare const actionRemoveAllElementsFromFrame: {
219
+ name: "removeAllElementsFromFrame";
220
+ label: string;
221
+ trackEvent: {
222
+ category: "history";
223
+ };
224
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
225
+ elements: readonly import("../element/types").OrderedExcalidrawElement[];
226
+ appState: {
227
+ selectedElementIds: {
228
+ [x: string]: true;
229
+ };
230
+ contextMenu: {
231
+ items: import("../components/ContextMenu").ContextMenuItems;
232
+ top: number;
233
+ left: number;
234
+ } | null;
235
+ showWelcomeScreen: boolean;
236
+ isLoading: boolean;
237
+ errorMessage: import("react").ReactNode;
238
+ activeEmbeddable: {
239
+ element: import("../element/types").NonDeletedExcalidrawElement;
240
+ state: "active" | "hover";
241
+ } | null;
242
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
243
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
244
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
245
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
246
+ isBindingEnabled: boolean;
247
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
248
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
249
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
250
+ frameRendering: {
251
+ enabled: boolean;
252
+ name: boolean;
253
+ outline: boolean;
254
+ clip: boolean;
255
+ };
256
+ editingFrame: string | null;
257
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
258
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
259
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
260
+ activeTool: {
261
+ lastActiveTool: import("../types").ActiveTool | null;
262
+ locked: boolean;
263
+ } & import("../types").ActiveTool;
264
+ penMode: boolean;
265
+ penDetected: boolean;
266
+ exportBackground: boolean;
267
+ exportEmbedScene: boolean;
268
+ exportWithDarkMode: boolean;
269
+ exportScale: number;
270
+ currentItemStrokeColor: string;
271
+ currentItemBackgroundColor: string;
272
+ currentItemFillStyle: import("../element/types").FillStyle;
273
+ currentItemStrokeWidth: number;
274
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
275
+ currentItemRoughness: number;
276
+ currentItemOpacity: number;
277
+ currentItemFontFamily: number;
278
+ currentItemFontSize: number;
279
+ currentItemTextAlign: string;
280
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
281
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
282
+ currentHoveredFontFamily: number | null;
283
+ currentItemRoundness: import("../element/types").StrokeRoundness;
284
+ currentItemArrowType: "round" | "sharp" | "elbow";
285
+ viewBackgroundColor: string;
286
+ scrollX: number;
287
+ scrollY: number;
288
+ cursorButton: "up" | "down";
289
+ scrolledOutside: boolean;
290
+ name: string | null;
291
+ isResizing: boolean;
292
+ isRotating: boolean;
293
+ zoom: Readonly<{
294
+ value: import("../types").NormalizedZoomValue;
295
+ }>;
296
+ openMenu: "canvas" | "shape" | null;
297
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
298
+ openSidebar: {
299
+ name: string;
300
+ tab?: string | undefined;
301
+ } | null;
302
+ openDialog: {
303
+ name: "imageExport" | "help" | "jsonExport";
304
+ } | {
305
+ name: "ttd";
306
+ tab: "mermaid" | "text-to-diagram";
307
+ } | {
308
+ name: "commandPalette";
309
+ } | null;
310
+ defaultSidebarDockedPreference: boolean;
311
+ lastPointerDownWith: import("../element/types").PointerType;
312
+ previousSelectedElementIds: {
313
+ [id: string]: true;
314
+ };
315
+ selectedElementsAreBeingDragged: boolean;
316
+ shouldCacheIgnoreZoom: boolean;
317
+ toast: {
318
+ message: string;
319
+ closable?: boolean | undefined;
320
+ duration?: number | undefined;
321
+ } | null;
322
+ zenModeEnabled: boolean;
323
+ theme: import("../element/types").Theme;
324
+ gridSize: number;
325
+ gridStep: number;
326
+ gridModeEnabled: boolean;
327
+ viewModeEnabled: boolean;
328
+ selectedGroupIds: {
329
+ [groupId: string]: boolean;
330
+ };
331
+ editingGroupId: string | null;
332
+ width: number;
333
+ height: number;
334
+ offsetTop: number;
335
+ offsetLeft: number;
336
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
337
+ collaborators: Map<import("../types").SocketId, Readonly<{
338
+ pointer?: import("../types").CollaboratorPointer | undefined;
339
+ button?: "up" | "down" | undefined;
340
+ selectedElementIds?: Readonly<{
341
+ [id: string]: true;
342
+ }> | undefined;
343
+ username?: string | null | undefined;
344
+ userState?: import("../types").UserIdleState | undefined;
345
+ color?: {
346
+ background: string;
347
+ stroke: string;
348
+ } | undefined;
349
+ avatarUrl?: string | undefined;
350
+ id?: string | undefined;
351
+ socketId?: import("../types").SocketId | undefined;
352
+ isCurrentUser?: boolean | undefined;
353
+ isInCall?: boolean | undefined;
354
+ isSpeaking?: boolean | undefined;
355
+ isMuted?: boolean | undefined;
356
+ }>>;
357
+ stats: {
358
+ open: boolean;
359
+ panels: number;
360
+ };
361
+ currentChartType: import("../element/types").ChartType;
362
+ pasteDialog: {
363
+ shown: false;
364
+ data: null;
365
+ } | {
366
+ shown: true;
367
+ data: import("../charts").Spreadsheet;
368
+ };
369
+ pendingImageElementId: string | null;
370
+ showHyperlinkPopup: false | "info" | "editor";
371
+ linkOpacity: number;
372
+ trayModeEnabled: boolean;
373
+ colorPalette?: {
374
+ canvasBackground: import("../colors").ColorPaletteCustom;
375
+ elementBackground: import("../colors").ColorPaletteCustom;
376
+ elementStroke: import("../colors").ColorPaletteCustom;
377
+ topPicks: {
378
+ canvasBackground: [string, string, string, string, string];
379
+ elementStroke: [string, string, string, string, string];
380
+ elementBackground: [string, string, string, string, string];
381
+ };
382
+ } | undefined;
383
+ allowWheelZoom?: boolean | undefined;
384
+ allowPinchZoom?: boolean | undefined;
385
+ pinnedScripts?: string[] | undefined;
386
+ customPens?: any[] | undefined;
387
+ currentStrokeOptions?: any;
388
+ resetCustomPen?: any;
389
+ gridColor: {
390
+ Bold: string;
391
+ Regular: string;
392
+ };
393
+ highlightSearchResult: boolean;
394
+ dynamicStyle: {
395
+ [x: string]: string;
396
+ };
397
+ frameColor: {
398
+ stroke: string;
399
+ fill: string;
400
+ nameColor: string;
401
+ };
402
+ invertBindingBehaviour: boolean;
403
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
404
+ snapLines: readonly import("../snapping").SnapLine[];
405
+ originSnapOffset: {
406
+ x: number;
407
+ y: number;
408
+ } | null;
409
+ objectsSnapModeEnabled: boolean;
410
+ userToFollow: import("../types").UserToFollow | null;
411
+ followedBy: Set<import("../types").SocketId>;
412
+ isCropping: boolean;
413
+ croppingElementId: string | null;
414
+ searchMatches: readonly {
415
+ id: string;
416
+ focus: boolean;
417
+ matchedLines: {
418
+ offsetX: number;
419
+ offsetY: number;
420
+ width: number;
421
+ height: number;
422
+ }[];
423
+ }[];
424
+ };
425
+ storeAction: "capture";
426
+ } | {
427
+ elements: readonly import("../element/types").OrderedExcalidrawElement[];
428
+ appState: Readonly<AppState>;
429
+ storeAction: "none";
430
+ };
431
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
432
+ } & {
433
+ keyTest?: undefined;
434
+ };
435
+ export declare const actionupdateFrameRendering: {
436
+ name: "updateFrameRendering";
437
+ label: string;
438
+ viewMode: true;
439
+ trackEvent: {
440
+ category: "canvas";
441
+ };
442
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
443
+ elements: readonly import("../element/types").OrderedExcalidrawElement[];
444
+ appState: {
445
+ frameRendering: {
446
+ enabled: boolean;
447
+ name: boolean;
448
+ outline: boolean;
449
+ clip: boolean;
450
+ };
451
+ contextMenu: {
452
+ items: import("../components/ContextMenu").ContextMenuItems;
453
+ top: number;
454
+ left: number;
455
+ } | null;
456
+ showWelcomeScreen: boolean;
457
+ isLoading: boolean;
458
+ errorMessage: import("react").ReactNode;
459
+ activeEmbeddable: {
460
+ element: import("../element/types").NonDeletedExcalidrawElement;
461
+ state: "active" | "hover";
462
+ } | null;
463
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
464
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
465
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
466
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
467
+ isBindingEnabled: boolean;
468
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
469
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
470
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
471
+ editingFrame: string | null;
472
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
473
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
474
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
475
+ activeTool: {
476
+ lastActiveTool: import("../types").ActiveTool | null;
477
+ locked: boolean;
478
+ } & import("../types").ActiveTool;
479
+ penMode: boolean;
480
+ penDetected: boolean;
481
+ exportBackground: boolean;
482
+ exportEmbedScene: boolean;
483
+ exportWithDarkMode: boolean;
484
+ exportScale: number;
485
+ currentItemStrokeColor: string;
486
+ currentItemBackgroundColor: string;
487
+ currentItemFillStyle: import("../element/types").FillStyle;
488
+ currentItemStrokeWidth: number;
489
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
490
+ currentItemRoughness: number;
491
+ currentItemOpacity: number;
492
+ currentItemFontFamily: number;
493
+ currentItemFontSize: number;
494
+ currentItemTextAlign: string;
495
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
496
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
497
+ currentHoveredFontFamily: number | null;
498
+ currentItemRoundness: import("../element/types").StrokeRoundness;
499
+ currentItemArrowType: "round" | "sharp" | "elbow";
500
+ viewBackgroundColor: string;
501
+ scrollX: number;
502
+ scrollY: number;
503
+ cursorButton: "up" | "down";
504
+ scrolledOutside: boolean;
505
+ name: string | null;
506
+ isResizing: boolean;
507
+ isRotating: boolean;
508
+ zoom: Readonly<{
509
+ value: import("../types").NormalizedZoomValue;
510
+ }>;
511
+ openMenu: "canvas" | "shape" | null;
512
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
513
+ openSidebar: {
514
+ name: string;
515
+ tab?: string | undefined;
516
+ } | null;
517
+ openDialog: {
518
+ name: "imageExport" | "help" | "jsonExport";
519
+ } | {
520
+ name: "ttd";
521
+ tab: "mermaid" | "text-to-diagram";
522
+ } | {
523
+ name: "commandPalette";
524
+ } | null;
525
+ defaultSidebarDockedPreference: boolean;
526
+ lastPointerDownWith: import("../element/types").PointerType;
527
+ selectedElementIds: Readonly<{
528
+ [id: string]: true;
529
+ }>;
530
+ previousSelectedElementIds: {
531
+ [id: string]: true;
532
+ };
533
+ selectedElementsAreBeingDragged: boolean;
534
+ shouldCacheIgnoreZoom: boolean;
535
+ toast: {
536
+ message: string;
537
+ closable?: boolean | undefined;
538
+ duration?: number | undefined;
539
+ } | null;
540
+ zenModeEnabled: boolean;
541
+ theme: import("../element/types").Theme;
542
+ gridSize: number;
543
+ gridStep: number;
544
+ gridModeEnabled: boolean;
545
+ viewModeEnabled: boolean;
546
+ selectedGroupIds: {
547
+ [groupId: string]: boolean;
548
+ };
549
+ editingGroupId: string | null;
550
+ width: number;
551
+ height: number;
552
+ offsetTop: number;
553
+ offsetLeft: number;
554
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
555
+ collaborators: Map<import("../types").SocketId, Readonly<{
556
+ pointer?: import("../types").CollaboratorPointer | undefined;
557
+ button?: "up" | "down" | undefined;
558
+ selectedElementIds?: Readonly<{
559
+ [id: string]: true;
560
+ }> | undefined;
561
+ username?: string | null | undefined;
562
+ userState?: import("../types").UserIdleState | undefined;
563
+ color?: {
564
+ background: string;
565
+ stroke: string;
566
+ } | undefined;
567
+ avatarUrl?: string | undefined;
568
+ id?: string | undefined;
569
+ socketId?: import("../types").SocketId | undefined;
570
+ isCurrentUser?: boolean | undefined;
571
+ isInCall?: boolean | undefined;
572
+ isSpeaking?: boolean | undefined;
573
+ isMuted?: boolean | undefined;
574
+ }>>;
575
+ stats: {
576
+ open: boolean;
577
+ panels: number;
578
+ };
579
+ currentChartType: import("../element/types").ChartType;
580
+ pasteDialog: {
581
+ shown: false;
582
+ data: null;
583
+ } | {
584
+ shown: true;
585
+ data: import("../charts").Spreadsheet;
586
+ };
587
+ pendingImageElementId: string | null;
588
+ showHyperlinkPopup: false | "info" | "editor";
589
+ linkOpacity: number;
590
+ trayModeEnabled: boolean;
591
+ colorPalette?: {
592
+ canvasBackground: import("../colors").ColorPaletteCustom;
593
+ elementBackground: import("../colors").ColorPaletteCustom;
594
+ elementStroke: import("../colors").ColorPaletteCustom;
595
+ topPicks: {
596
+ canvasBackground: [string, string, string, string, string];
597
+ elementStroke: [string, string, string, string, string];
598
+ elementBackground: [string, string, string, string, string];
599
+ };
600
+ } | undefined;
601
+ allowWheelZoom?: boolean | undefined;
602
+ allowPinchZoom?: boolean | undefined;
603
+ pinnedScripts?: string[] | undefined;
604
+ customPens?: any[] | undefined;
605
+ currentStrokeOptions?: any;
606
+ resetCustomPen?: any;
607
+ gridColor: {
608
+ Bold: string;
609
+ Regular: string;
610
+ };
611
+ highlightSearchResult: boolean;
612
+ dynamicStyle: {
613
+ [x: string]: string;
614
+ };
615
+ frameColor: {
616
+ stroke: string;
617
+ fill: string;
618
+ nameColor: string;
619
+ };
620
+ invertBindingBehaviour: boolean;
621
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
622
+ snapLines: readonly import("../snapping").SnapLine[];
623
+ originSnapOffset: {
624
+ x: number;
625
+ y: number;
626
+ } | null;
627
+ objectsSnapModeEnabled: boolean;
628
+ userToFollow: import("../types").UserToFollow | null;
629
+ followedBy: Set<import("../types").SocketId>;
630
+ isCropping: boolean;
631
+ croppingElementId: string | null;
632
+ searchMatches: readonly {
633
+ id: string;
634
+ focus: boolean;
635
+ matchedLines: {
636
+ offsetX: number;
637
+ offsetY: number;
638
+ width: number;
639
+ height: number;
640
+ }[];
641
+ }[];
642
+ };
643
+ storeAction: "none";
644
+ };
645
+ checked: (appState: AppState) => boolean;
646
+ } & {
647
+ keyTest?: undefined;
648
+ };
649
+ export declare const actionSetFrameAsActiveTool: {
650
+ name: "setFrameAsActiveTool";
651
+ label: string;
652
+ trackEvent: {
653
+ category: "toolbar";
654
+ };
655
+ icon: JSX.Element;
656
+ viewMode: false;
657
+ perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
658
+ elements: readonly import("../element/types").OrderedExcalidrawElement[];
659
+ appState: {
660
+ activeTool: {
661
+ lastActiveTool: import("../types").ActiveTool | null;
662
+ locked: boolean;
663
+ } & import("../types").ActiveTool;
664
+ contextMenu: {
665
+ items: import("../components/ContextMenu").ContextMenuItems;
666
+ top: number;
667
+ left: number;
668
+ } | null;
669
+ showWelcomeScreen: boolean;
670
+ isLoading: boolean;
671
+ errorMessage: import("react").ReactNode;
672
+ activeEmbeddable: {
673
+ element: import("../element/types").NonDeletedExcalidrawElement;
674
+ state: "active" | "hover";
675
+ } | null;
676
+ newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
677
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
678
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
679
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
680
+ isBindingEnabled: boolean;
681
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
682
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
683
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
684
+ frameRendering: {
685
+ enabled: boolean;
686
+ name: boolean;
687
+ outline: boolean;
688
+ clip: boolean;
689
+ };
690
+ editingFrame: string | null;
691
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
692
+ editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
693
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
694
+ penMode: boolean;
695
+ penDetected: boolean;
696
+ exportBackground: boolean;
697
+ exportEmbedScene: boolean;
698
+ exportWithDarkMode: boolean;
699
+ exportScale: number;
700
+ currentItemStrokeColor: string;
701
+ currentItemBackgroundColor: string;
702
+ currentItemFillStyle: import("../element/types").FillStyle;
703
+ currentItemStrokeWidth: number;
704
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
705
+ currentItemRoughness: number;
706
+ currentItemOpacity: number;
707
+ currentItemFontFamily: number;
708
+ currentItemFontSize: number;
709
+ currentItemTextAlign: string;
710
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
711
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
712
+ currentHoveredFontFamily: number | null;
713
+ currentItemRoundness: import("../element/types").StrokeRoundness;
714
+ currentItemArrowType: "round" | "sharp" | "elbow";
715
+ viewBackgroundColor: string;
716
+ scrollX: number;
717
+ scrollY: number;
718
+ cursorButton: "up" | "down";
719
+ scrolledOutside: boolean;
720
+ name: string | null;
721
+ isResizing: boolean;
722
+ isRotating: boolean;
723
+ zoom: Readonly<{
724
+ value: import("../types").NormalizedZoomValue;
725
+ }>;
726
+ openMenu: "canvas" | "shape" | null;
727
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
728
+ openSidebar: {
729
+ name: string;
730
+ tab?: string | undefined;
731
+ } | null;
732
+ openDialog: {
733
+ name: "imageExport" | "help" | "jsonExport";
734
+ } | {
735
+ name: "ttd";
736
+ tab: "mermaid" | "text-to-diagram";
737
+ } | {
738
+ name: "commandPalette";
739
+ } | null;
740
+ defaultSidebarDockedPreference: boolean;
741
+ lastPointerDownWith: import("../element/types").PointerType;
742
+ selectedElementIds: Readonly<{
743
+ [id: string]: true;
744
+ }>;
745
+ previousSelectedElementIds: {
746
+ [id: string]: true;
747
+ };
748
+ selectedElementsAreBeingDragged: boolean;
749
+ shouldCacheIgnoreZoom: boolean;
750
+ toast: {
751
+ message: string;
752
+ closable?: boolean | undefined;
753
+ duration?: number | undefined;
754
+ } | null;
755
+ zenModeEnabled: boolean;
756
+ theme: import("../element/types").Theme;
757
+ gridSize: number;
758
+ gridStep: number;
759
+ gridModeEnabled: boolean;
760
+ viewModeEnabled: boolean;
761
+ selectedGroupIds: {
762
+ [groupId: string]: boolean;
763
+ };
764
+ editingGroupId: string | null;
765
+ width: number;
766
+ height: number;
767
+ offsetTop: number;
768
+ offsetLeft: number;
769
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
770
+ collaborators: Map<import("../types").SocketId, Readonly<{
771
+ pointer?: import("../types").CollaboratorPointer | undefined;
772
+ button?: "up" | "down" | undefined;
773
+ selectedElementIds?: Readonly<{
774
+ [id: string]: true;
775
+ }> | undefined;
776
+ username?: string | null | undefined;
777
+ userState?: import("../types").UserIdleState | undefined;
778
+ color?: {
779
+ background: string;
780
+ stroke: string;
781
+ } | undefined;
782
+ avatarUrl?: string | undefined;
783
+ id?: string | undefined;
784
+ socketId?: import("../types").SocketId | undefined;
785
+ isCurrentUser?: boolean | undefined;
786
+ isInCall?: boolean | undefined;
787
+ isSpeaking?: boolean | undefined;
788
+ isMuted?: boolean | undefined;
789
+ }>>;
790
+ stats: {
791
+ open: boolean;
792
+ panels: number;
793
+ };
794
+ currentChartType: import("../element/types").ChartType;
795
+ pasteDialog: {
796
+ shown: false;
797
+ data: null;
798
+ } | {
799
+ shown: true;
800
+ data: import("../charts").Spreadsheet;
801
+ };
802
+ pendingImageElementId: string | null;
803
+ showHyperlinkPopup: false | "info" | "editor";
804
+ linkOpacity: number;
805
+ trayModeEnabled: boolean;
806
+ colorPalette?: {
807
+ canvasBackground: import("../colors").ColorPaletteCustom;
808
+ elementBackground: import("../colors").ColorPaletteCustom;
809
+ elementStroke: import("../colors").ColorPaletteCustom;
810
+ topPicks: {
811
+ canvasBackground: [string, string, string, string, string];
812
+ elementStroke: [string, string, string, string, string];
813
+ elementBackground: [string, string, string, string, string];
814
+ };
815
+ } | undefined;
816
+ allowWheelZoom?: boolean | undefined;
817
+ allowPinchZoom?: boolean | undefined;
818
+ pinnedScripts?: string[] | undefined;
819
+ customPens?: any[] | undefined;
820
+ currentStrokeOptions?: any;
821
+ resetCustomPen?: any;
822
+ gridColor: {
823
+ Bold: string;
824
+ Regular: string;
825
+ };
826
+ highlightSearchResult: boolean;
827
+ dynamicStyle: {
828
+ [x: string]: string;
829
+ };
830
+ frameColor: {
831
+ stroke: string;
832
+ fill: string;
833
+ nameColor: string;
834
+ };
835
+ invertBindingBehaviour: boolean;
836
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
837
+ snapLines: readonly import("../snapping").SnapLine[];
838
+ originSnapOffset: {
839
+ x: number;
840
+ y: number;
841
+ } | null;
842
+ objectsSnapModeEnabled: boolean;
843
+ userToFollow: import("../types").UserToFollow | null;
844
+ followedBy: Set<import("../types").SocketId>;
845
+ isCropping: boolean;
846
+ croppingElementId: string | null;
847
+ searchMatches: readonly {
848
+ id: string;
849
+ focus: boolean;
850
+ matchedLines: {
851
+ offsetX: number;
852
+ offsetY: number;
853
+ width: number;
854
+ height: number;
855
+ }[];
856
+ }[];
857
+ };
858
+ storeAction: "none";
859
+ };
860
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
861
+ } & {
862
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
863
+ };