@zsviczian/excalidraw 0.18.0-60 → 0.18.0-62

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 (397) hide show
  1. package/dist/excalidraw.development.js +113 -113
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +2 -2
  4. package/types/common/src/binary-heap.d.ts +12 -12
  5. package/types/common/src/colors.d.ts +62 -62
  6. package/types/common/src/commonObsidianUtils.d.ts +20 -20
  7. package/types/common/src/constants.d.ts +357 -360
  8. package/types/common/src/editorInterface.d.ts +35 -35
  9. package/types/common/src/emitter.d.ts +16 -16
  10. package/types/common/src/font-metadata.d.ts +46 -48
  11. package/types/common/src/index.d.ts +15 -15
  12. package/types/common/src/keys.d.ts +189 -189
  13. package/types/common/src/points.d.ts +9 -9
  14. package/types/common/src/promise-pool.d.ts +6 -6
  15. package/types/common/src/queue.d.ts +9 -9
  16. package/types/common/src/random.d.ts +4 -4
  17. package/types/common/src/url.d.ts +7 -7
  18. package/types/common/src/utility-types.d.ts +37 -37
  19. package/types/common/src/utils.d.ts +279 -273
  20. package/types/common/src/visualdebug.d.ts +41 -41
  21. package/types/element/src/Scene.d.ts +80 -80
  22. package/types/element/src/align.d.ts +8 -8
  23. package/types/element/src/binding.d.ts +123 -122
  24. package/types/element/src/bounds.d.ts +89 -89
  25. package/types/element/src/collision.d.ts +36 -36
  26. package/types/element/src/comparisons.d.ts +8 -8
  27. package/types/element/src/containerCache.d.ts +11 -11
  28. package/types/element/src/cropElement.d.ts +19 -19
  29. package/types/element/src/delta.d.ts +228 -228
  30. package/types/element/src/distance.d.ts +3 -3
  31. package/types/element/src/distribute.d.ts +7 -7
  32. package/types/element/src/dragElements.d.ts +33 -33
  33. package/types/element/src/duplicate.d.ts +63 -63
  34. package/types/element/src/easingFunctions.d.ts +6 -6
  35. package/types/element/src/elbowArrow.d.ts +17 -17
  36. package/types/element/src/elementLink.d.ts +13 -13
  37. package/types/element/src/embeddable.d.ts +10 -10
  38. package/types/element/src/flowchart.d.ts +26 -26
  39. package/types/element/src/fractionalIndex.d.ts +57 -57
  40. package/types/element/src/frame.d.ts +74 -70
  41. package/types/element/src/groups.d.ts +34 -34
  42. package/types/element/src/heading.d.ts +16 -15
  43. package/types/element/src/image.d.ts +22 -32
  44. package/types/element/src/index.d.ts +55 -55
  45. package/types/element/src/linearElementEditor.d.ts +113 -113
  46. package/types/element/src/mutateElement.d.ts +23 -21
  47. package/types/element/src/newElement.d.ts +64 -64
  48. package/types/element/src/positionElementsOnGrid.d.ts +2 -2
  49. package/types/element/src/renderElement.d.ts +31 -31
  50. package/types/element/src/resizeElements.d.ts +39 -39
  51. package/types/element/src/resizeTest.d.ts +16 -16
  52. package/types/element/src/selection.d.ts +34 -38
  53. package/types/element/src/shape.d.ts +42 -42
  54. package/types/element/src/showSelectedShapeActions.d.ts +3 -3
  55. package/types/element/src/sizeHelpers.d.ts +35 -35
  56. package/types/element/src/sortElements.d.ts +2 -2
  57. package/types/element/src/store.d.ts +237 -237
  58. package/types/element/src/textElement.d.ts +40 -40
  59. package/types/element/src/textMeasurements.d.ts +39 -41
  60. package/types/element/src/textWrapping.d.ts +13 -13
  61. package/types/element/src/transformHandles.d.ts +36 -56
  62. package/types/element/src/typeChecks.d.ts +56 -56
  63. package/types/element/src/types.d.ts +304 -304
  64. package/types/element/src/utils.d.ts +34 -32
  65. package/types/element/src/zindex.d.ts +13 -13
  66. package/types/excalidraw/actions/actionAddToLibrary.d.ts +599 -662
  67. package/types/excalidraw/actions/actionAlign.d.ts +109 -109
  68. package/types/excalidraw/actions/actionBoundText.d.ts +436 -478
  69. package/types/excalidraw/actions/actionCanvas.d.ts +2920 -3204
  70. package/types/excalidraw/actions/actionClipboard.d.ts +475 -517
  71. package/types/excalidraw/actions/actionCropEditor.d.ts +212 -233
  72. package/types/excalidraw/actions/actionDeleteSelected.d.ts +633 -700
  73. package/types/excalidraw/actions/actionDistribute.d.ts +34 -34
  74. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +17 -17
  75. package/types/excalidraw/actions/actionElementLink.d.ts +232 -253
  76. package/types/excalidraw/actions/actionElementLock.d.ts +422 -464
  77. package/types/excalidraw/actions/actionEmbeddable.d.ts +209 -230
  78. package/types/excalidraw/actions/actionExport.d.ts +835 -919
  79. package/types/excalidraw/actions/actionFinalize.d.ts +13 -13
  80. package/types/excalidraw/actions/actionFlip.d.ts +34 -34
  81. package/types/excalidraw/actions/actionFrame.d.ts +1315 -1435
  82. package/types/excalidraw/actions/actionGroup.d.ts +426 -476
  83. package/types/excalidraw/actions/actionHistory.d.ts +6 -6
  84. package/types/excalidraw/actions/actionLinearEditor.d.ts +709 -766
  85. package/types/excalidraw/actions/actionLink.d.ts +213 -234
  86. package/types/excalidraw/actions/actionMenu.d.ts +201 -222
  87. package/types/excalidraw/actions/actionNavigate.d.ts +20 -22
  88. package/types/excalidraw/actions/actionProperties.d.ts +695 -758
  89. package/types/excalidraw/actions/actionSelectAll.d.ts +208 -233
  90. package/types/excalidraw/actions/actionStyles.d.ts +226 -247
  91. package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
  92. package/types/excalidraw/actions/actionToggleGridMode.d.ts +215 -236
  93. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +213 -234
  94. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +204 -225
  95. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -19
  96. package/types/excalidraw/actions/actionToggleStats.d.ts +212 -233
  97. package/types/excalidraw/actions/actionToggleViewMode.d.ts +213 -234
  98. package/types/excalidraw/actions/actionToggleZenMode.d.ts +213 -234
  99. package/types/excalidraw/actions/actionTrayMenu.d.ts +208 -229
  100. package/types/excalidraw/actions/actionZindex.d.ts +74 -74
  101. package/types/excalidraw/actions/index.d.ts +30 -30
  102. package/types/excalidraw/actions/manager.d.ts +21 -21
  103. package/types/excalidraw/actions/register.d.ts +5 -5
  104. package/types/excalidraw/actions/shortcuts.d.ts +4 -4
  105. package/types/excalidraw/actions/types.d.ts +47 -47
  106. package/types/excalidraw/analytics.d.ts +1 -1
  107. package/types/excalidraw/animated-trail.d.ts +39 -39
  108. package/types/excalidraw/animation-frame-handler.d.ts +16 -16
  109. package/types/excalidraw/appState.d.ts +105 -105
  110. package/types/excalidraw/charts.d.ts +27 -27
  111. package/types/excalidraw/clients.d.ts +14 -14
  112. package/types/excalidraw/clipboard.d.ts +105 -129
  113. package/types/excalidraw/components/Actions.d.ts +48 -48
  114. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -4
  115. package/types/excalidraw/components/App.d.ts +572 -581
  116. package/types/excalidraw/components/Avatar.d.ts +11 -11
  117. package/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -2
  118. package/types/excalidraw/components/Button.d.ts +17 -17
  119. package/types/excalidraw/components/ButtonIcon.d.ts +16 -16
  120. package/types/excalidraw/components/ButtonIconCycle.d.ts +11 -11
  121. package/types/excalidraw/components/ButtonSeparator.d.ts +1 -1
  122. package/types/excalidraw/components/Card.d.ts +6 -6
  123. package/types/excalidraw/components/CheckboxItem.d.ts +8 -8
  124. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +10 -10
  125. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +23 -23
  126. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -8
  127. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -7
  128. package/types/excalidraw/components/ColorPicker/Picker.d.ts +19 -19
  129. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -10
  130. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -5
  131. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +9 -9
  132. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -9
  133. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  134. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
  135. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +19 -19
  136. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -2
  137. package/types/excalidraw/components/CommandPalette/types.d.ts +24 -24
  138. package/types/excalidraw/components/ConfirmDialog.d.ts +10 -10
  139. package/types/excalidraw/components/ContextMenu.d.ts +16 -16
  140. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -23
  141. package/types/excalidraw/components/DarkModeToggle.d.ts +7 -7
  142. package/types/excalidraw/components/DefaultSidebar.d.ts +27 -30
  143. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -4
  144. package/types/excalidraw/components/Dialog.d.ts +13 -13
  145. package/types/excalidraw/components/DialogActionButton.d.ts +10 -10
  146. package/types/excalidraw/components/ElementCanvasButtons.d.ts +7 -7
  147. package/types/excalidraw/components/ElementLinkDialog.d.ts +12 -12
  148. package/types/excalidraw/components/Ellipsify.d.ts +3 -3
  149. package/types/excalidraw/components/ErrorDialog.d.ts +5 -5
  150. package/types/excalidraw/components/ExcalidrawLogo.d.ts +15 -15
  151. package/types/excalidraw/components/EyeDropper.d.ts +27 -27
  152. package/types/excalidraw/components/FilledButton.d.ts +18 -18
  153. package/types/excalidraw/components/FixedSideContainer.d.ts +10 -10
  154. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -10
  155. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +22 -22
  156. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +26 -26
  157. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +8 -8
  158. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -13
  159. package/types/excalidraw/components/HandButton.d.ts +10 -10
  160. package/types/excalidraw/components/HelpButton.d.ts +7 -7
  161. package/types/excalidraw/components/HelpDialog.d.ts +4 -4
  162. package/types/excalidraw/components/HintViewer.d.ts +11 -11
  163. package/types/excalidraw/components/IconPicker.d.ts +15 -15
  164. package/types/excalidraw/components/ImageExportDialog.d.ts +14 -14
  165. package/types/excalidraw/components/InitializeApp.d.ts +10 -10
  166. package/types/excalidraw/components/InlineIcon.d.ts +5 -5
  167. package/types/excalidraw/components/Island.d.ts +10 -10
  168. package/types/excalidraw/components/JSONExportDialog.d.ts +15 -15
  169. package/types/excalidraw/components/LaserPointerButton.d.ts +10 -10
  170. package/types/excalidraw/components/LayerUI.d.ts +32 -32
  171. package/types/excalidraw/components/LibraryMenu.d.ts +10 -10
  172. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -7
  173. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -9
  174. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -17
  175. package/types/excalidraw/components/LibraryMenuItems.d.ts +14 -14
  176. package/types/excalidraw/components/LibraryMenuSection.d.ts +23 -23
  177. package/types/excalidraw/components/LibraryUnit.d.ts +14 -14
  178. package/types/excalidraw/components/LinkButton.d.ts +4 -4
  179. package/types/excalidraw/components/LoadingMessage.d.ts +5 -5
  180. package/types/excalidraw/components/LockButton.d.ts +10 -10
  181. package/types/excalidraw/components/MagicButton.d.ts +10 -10
  182. package/types/excalidraw/components/MobileMenu.d.ts +24 -24
  183. package/types/excalidraw/components/MobileToolBar.d.ts +10 -10
  184. package/types/excalidraw/components/Modal.d.ts +14 -14
  185. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  186. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  187. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  188. package/types/excalidraw/components/Paragraph.d.ts +4 -4
  189. package/types/excalidraw/components/PasteChartDialog.d.ts +8 -8
  190. package/types/excalidraw/components/PenModeButton.d.ts +12 -12
  191. package/types/excalidraw/components/Popover.d.ts +16 -16
  192. package/types/excalidraw/components/ProjectName.d.ts +10 -10
  193. package/types/excalidraw/components/PropertiesPopover.d.ts +16 -16
  194. package/types/excalidraw/components/PublishLibrary.d.ts +16 -16
  195. package/types/excalidraw/components/QuickSearch.d.ts +9 -9
  196. package/types/excalidraw/components/RadioGroup.d.ts +13 -13
  197. package/types/excalidraw/components/RadioSelection.d.ts +20 -20
  198. package/types/excalidraw/components/Range.d.ts +8 -8
  199. package/types/excalidraw/components/SVGLayer.d.ts +7 -7
  200. package/types/excalidraw/components/ScrollableList.d.ts +8 -8
  201. package/types/excalidraw/components/SearchMenu.d.ts +5 -5
  202. package/types/excalidraw/components/Section.d.ts +7 -7
  203. package/types/excalidraw/components/ShareableLinkDialog.d.ts +7 -7
  204. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +70 -76
  205. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -7
  206. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -8
  207. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
  208. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
  209. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -6
  210. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -6
  211. package/types/excalidraw/components/Sidebar/common.d.ts +34 -34
  212. package/types/excalidraw/components/Spinner.d.ts +8 -8
  213. package/types/excalidraw/components/Stack.d.ts +15 -15
  214. package/types/excalidraw/components/Stats/Angle.d.ts +11 -11
  215. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -10
  216. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +10 -10
  217. package/types/excalidraw/components/Stats/Collapsible.d.ts +10 -10
  218. package/types/excalidraw/components/Stats/Dimension.d.ts +11 -11
  219. package/types/excalidraw/components/Stats/DragInput.d.ts +44 -44
  220. package/types/excalidraw/components/Stats/FontSize.d.ts +11 -11
  221. package/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -11
  222. package/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -14
  223. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -12
  224. package/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -14
  225. package/types/excalidraw/components/Stats/Position.d.ts +12 -12
  226. package/types/excalidraw/components/Stats/index.d.ts +35 -35
  227. package/types/excalidraw/components/Stats/utils.d.ts +19 -19
  228. package/types/excalidraw/components/Switch.d.ts +9 -9
  229. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +8 -8
  230. package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +10 -10
  231. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +29 -29
  232. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -9
  233. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +7 -7
  234. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -17
  235. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -4
  236. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -1
  237. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -7
  238. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -8
  239. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -6
  240. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -11
  241. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +8 -8
  242. package/types/excalidraw/components/TTDDialog/common.d.ts +32 -32
  243. package/types/excalidraw/components/TextField.d.ts +22 -22
  244. package/types/excalidraw/components/Toast.d.ts +9 -9
  245. package/types/excalidraw/components/ToolButton.d.ts +49 -49
  246. package/types/excalidraw/components/ToolPopover.d.ts +25 -25
  247. package/types/excalidraw/components/Tooltip.d.ts +18 -18
  248. package/types/excalidraw/components/Trans.d.ts +9 -9
  249. package/types/excalidraw/components/TrayMenu.d.ts +26 -26
  250. package/types/excalidraw/components/UnlockPopup.d.ts +8 -8
  251. package/types/excalidraw/components/UserList.d.ts +18 -18
  252. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +33 -33
  253. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -14
  254. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -19
  255. package/types/excalidraw/components/canvases/index.d.ts +3 -3
  256. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +84 -88
  257. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +16 -16
  258. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  259. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +38 -46
  260. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +8 -8
  261. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -17
  262. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -7
  263. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +16 -16
  264. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  265. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
  266. package/types/excalidraw/components/dropdownMenu/common.d.ts +6 -6
  267. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  268. package/types/excalidraw/components/footer/Footer.d.ts +12 -12
  269. package/types/excalidraw/components/footer/FooterCenter.d.ts +8 -8
  270. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -4
  271. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -19
  272. package/types/excalidraw/components/hyperlink/helpers.d.ts +10 -10
  273. package/types/excalidraw/components/icons.d.ts +241 -241
  274. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +11 -22
  275. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -64
  276. package/types/excalidraw/components/main-menu/MainMenu.d.ts +78 -80
  277. package/types/excalidraw/components/shapes.d.ts +172 -172
  278. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +60 -60
  279. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  280. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +86 -86
  281. package/types/excalidraw/context/tunnels.d.ts +21 -21
  282. package/types/excalidraw/context/ui-appState.d.ts +4 -4
  283. package/types/excalidraw/cursor.d.ts +6 -6
  284. package/types/excalidraw/data/EditorLocalStorage.d.ts +8 -8
  285. package/types/excalidraw/data/ai/types.d.ts +242 -242
  286. package/types/excalidraw/data/blob.d.ts +57 -49
  287. package/types/excalidraw/data/encode.d.ts +55 -55
  288. package/types/excalidraw/data/encryption.d.ts +9 -9
  289. package/types/excalidraw/data/filesystem.d.ts +21 -21
  290. package/types/excalidraw/data/image.d.ts +9 -9
  291. package/types/excalidraw/data/index.d.ts +22 -22
  292. package/types/excalidraw/data/json.d.ts +18 -16
  293. package/types/excalidraw/data/library.d.ts +127 -112
  294. package/types/excalidraw/data/reconcile.d.ts +7 -7
  295. package/types/excalidraw/data/resave.d.ts +5 -5
  296. package/types/excalidraw/data/restore.d.ts +35 -26
  297. package/types/excalidraw/data/transform.d.ts +81 -81
  298. package/types/excalidraw/data/types.d.ts +48 -48
  299. package/types/excalidraw/deburr.d.ts +1 -1
  300. package/types/excalidraw/dist/excalidraw.development.d.ts +2 -2
  301. package/types/excalidraw/dist/excalidraw.production.min.d.ts +2 -3
  302. package/types/excalidraw/editor-jotai.d.ts +56 -56
  303. package/types/excalidraw/entry.d.ts +1 -1
  304. package/types/excalidraw/env.d.cts +1 -1
  305. package/types/excalidraw/env.d.ts +1 -1
  306. package/types/excalidraw/eraser/index.d.ts +12 -12
  307. package/types/excalidraw/errors.d.ts +29 -29
  308. package/types/excalidraw/fonts/Cascadia/index.d.ts +2 -2
  309. package/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -2
  310. package/types/excalidraw/fonts/Emoji/index.d.ts +2 -2
  311. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +29 -29
  312. package/types/excalidraw/fonts/Excalifont/index.d.ts +2 -2
  313. package/types/excalidraw/fonts/Fonts.d.ts +90 -90
  314. package/types/excalidraw/fonts/Helvetica/index.d.ts +2 -2
  315. package/types/excalidraw/fonts/Liberation/index.d.ts +2 -2
  316. package/types/excalidraw/fonts/Lilita/index.d.ts +2 -2
  317. package/types/excalidraw/fonts/Nunito/index.d.ts +2 -2
  318. package/types/excalidraw/fonts/Virgil/index.d.ts +2 -2
  319. package/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -8
  320. package/types/excalidraw/fonts/index.d.ts +1 -1
  321. package/types/excalidraw/gesture.d.ts +6 -6
  322. package/types/excalidraw/history.d.ts +48 -48
  323. package/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -1
  324. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -5
  325. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +7 -7
  326. package/types/excalidraw/hooks/useEmitter.d.ts +2 -2
  327. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -11
  328. package/types/excalidraw/hooks/useOutsideClick.d.ts +21 -21
  329. package/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  330. package/types/excalidraw/hooks/useStable.d.ts +1 -1
  331. package/types/excalidraw/hooks/useStableCallback.d.ts +4 -4
  332. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -14
  333. package/types/excalidraw/hooks/useTransition.d.ts +2 -2
  334. package/types/excalidraw/i18n.d.ts +24 -24
  335. package/types/excalidraw/index-node.d.ts +1 -1
  336. package/types/excalidraw/index.d.ts +60 -60
  337. package/types/excalidraw/laser-trails.d.ts +20 -20
  338. package/types/excalidraw/lasso/index.d.ts +16 -16
  339. package/types/excalidraw/lasso/utils.d.ts +13 -13
  340. package/types/excalidraw/main.d.ts +2 -2
  341. package/types/excalidraw/mermaid.d.ts +2 -2
  342. package/types/excalidraw/obsidianUtils.d.ts +41 -41
  343. package/types/excalidraw/polyfill.d.ts +2 -2
  344. package/types/excalidraw/publicPath.d.ts +1 -1
  345. package/types/excalidraw/reactUtils.d.ts +14 -14
  346. package/types/excalidraw/renderer/animation.d.ts +12 -12
  347. package/types/excalidraw/renderer/helpers.d.ts +16 -14
  348. package/types/excalidraw/renderer/interactiveScene.d.ts +14 -12
  349. package/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -7
  350. package/types/excalidraw/renderer/renderSnaps.d.ts +2 -2
  351. package/types/excalidraw/renderer/roundRect.d.ts +11 -11
  352. package/types/excalidraw/renderer/staticScene.d.ts +14 -14
  353. package/types/excalidraw/renderer/staticSvgScene.d.ts +5 -5
  354. package/types/excalidraw/scene/Renderer.d.ts +29 -27
  355. package/types/excalidraw/scene/export.d.ts +37 -37
  356. package/types/excalidraw/scene/index.d.ts +4 -4
  357. package/types/excalidraw/scene/normalize.d.ts +4 -4
  358. package/types/excalidraw/scene/scroll.d.ts +18 -23
  359. package/types/excalidraw/scene/scrollbars.d.ts +11 -11
  360. package/types/excalidraw/scene/types.d.ts +134 -134
  361. package/types/excalidraw/scene/zoom.d.ts +12 -12
  362. package/types/excalidraw/shortcut.d.ts +1 -1
  363. package/types/excalidraw/snapping.d.ts +111 -111
  364. package/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -45
  365. package/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -13
  366. package/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -2
  367. package/types/excalidraw/subset/subset-main.d.ts +12 -12
  368. package/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -32
  369. package/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -15
  370. package/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -31
  371. package/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -14
  372. package/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -2
  373. package/types/excalidraw/types.d.ts +801 -801
  374. package/types/excalidraw/webpack.dev.config.d.ts +116 -116
  375. package/types/excalidraw/webpack.prod.config.d.ts +130 -130
  376. package/types/excalidraw/workers.d.ts +36 -36
  377. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +24 -24
  378. package/types/math/src/angle.d.ts +19 -19
  379. package/types/math/src/constants.d.ts +3 -3
  380. package/types/math/src/curve.d.ts +74 -74
  381. package/types/math/src/ellipse.d.ts +44 -44
  382. package/types/math/src/index.d.ts +13 -13
  383. package/types/math/src/line.d.ts +17 -17
  384. package/types/math/src/point.d.ts +122 -122
  385. package/types/math/src/polygon.d.ts +6 -6
  386. package/types/math/src/range.d.ts +44 -44
  387. package/types/math/src/rectangle.d.ts +5 -5
  388. package/types/math/src/segment.d.ts +40 -40
  389. package/types/math/src/triangle.d.ts +11 -11
  390. package/types/math/src/types.d.ts +106 -106
  391. package/types/math/src/utils.d.ts +7 -7
  392. package/types/math/src/vector.d.ts +94 -94
  393. package/types/utils/src/bbox.d.ts +9 -9
  394. package/types/utils/src/export.d.ts +35 -35
  395. package/types/utils/src/index.d.ts +4 -4
  396. package/types/utils/src/shape.d.ts +58 -58
  397. package/types/utils/src/withinBounds.d.ts +19 -19
@@ -1,700 +1,633 @@
1
- import type { ExcalidrawElement } from "@excalidraw/element/types";
2
- import type { AppClassProperties, AppState } from "../types";
3
- export declare const actionDeleteSelected: {
4
- name: "deleteSelectedElements";
5
- label: string;
6
- icon: import("react/jsx-runtime").JSX.Element;
7
- trackEvent: {
8
- category: "element";
9
- action: string;
10
- };
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
12
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
- appState: {
14
- selectedLinearElement: null;
15
- contextMenu: {
16
- items: import("../components/ContextMenu").ContextMenuItems;
17
- top: number;
18
- left: number;
19
- } | null;
20
- showWelcomeScreen: boolean;
21
- isLoading: boolean;
22
- errorMessage: import("react").ReactNode;
23
- activeEmbeddable: {
24
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
- state: "active" | "hover";
26
- } | null;
27
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
30
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
- isBindingEnabled: boolean;
32
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
- frameRendering: {
36
- enabled: boolean;
37
- name: boolean;
38
- outline: boolean;
39
- clip: boolean;
40
- markerName: boolean;
41
- markerEnabled: boolean;
42
- };
43
- editingFrame: string | null;
44
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
45
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
46
- activeTool: {
47
- lastActiveTool: import("../types").ActiveTool | null;
48
- locked: boolean;
49
- fromSelection: boolean;
50
- } & import("../types").ActiveTool;
51
- preferredSelectionTool: {
52
- type: "selection" | "lasso";
53
- initialized: boolean;
54
- };
55
- penMode: boolean;
56
- penDetected: boolean;
57
- exportBackground: boolean;
58
- exportEmbedScene: boolean;
59
- exportWithDarkMode: boolean;
60
- exportScale: number;
61
- currentItemStrokeColor: string;
62
- currentItemBackgroundColor: string;
63
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
64
- currentItemStrokeWidth: number;
65
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
66
- currentItemRoughness: number;
67
- currentItemOpacity: number;
68
- currentItemFontFamily: number;
69
- currentItemFontSize: number;
70
- currentItemTextAlign: string;
71
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
- currentHoveredFontFamily: number | null;
74
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
- currentItemArrowType: "round" | "sharp" | "elbow";
76
- currentItemFrameRole: ("marker" | null) | undefined;
77
- viewBackgroundColor: string;
78
- scrollX: number;
79
- scrollY: number;
80
- cursorButton: "up" | "down";
81
- scrolledOutside: boolean;
82
- name: string | null;
83
- isResizing: boolean;
84
- isRotating: boolean;
85
- zoom: Readonly<{
86
- value: import("../types").NormalizedZoomValue;
87
- }>;
88
- openMenu: "canvas" | "shape" | null;
89
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
90
- openSidebar: {
91
- name: string;
92
- tab?: string | undefined;
93
- } | null;
94
- openDialog: {
95
- name: "imageExport" | "help" | "jsonExport";
96
- } | {
97
- name: "ttd";
98
- tab: "mermaid" | "text-to-diagram";
99
- } | {
100
- name: "commandPalette";
101
- } | {
102
- name: "settings";
103
- } | {
104
- name: "elementLinkSelector";
105
- sourceElementId: string;
106
- } | null;
107
- defaultSidebarDockedPreference: boolean;
108
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
109
- selectedElementIds: Readonly<{
110
- [id: string]: true;
111
- }>;
112
- hoveredElementIds: Readonly<{
113
- [id: string]: true;
114
- }>;
115
- previousSelectedElementIds: {
116
- [id: string]: true;
117
- };
118
- selectedElementsAreBeingDragged: boolean;
119
- shouldCacheIgnoreZoom: boolean;
120
- toast: {
121
- message: string;
122
- closable?: boolean | undefined;
123
- duration?: number | undefined;
124
- } | null;
125
- zenModeEnabled: boolean;
126
- theme: import("@excalidraw/element/types").Theme;
127
- gridSize: number;
128
- gridStep: number;
129
- gridModeEnabled: boolean;
130
- viewModeEnabled: boolean;
131
- selectedGroupIds: {
132
- [groupId: string]: boolean;
133
- };
134
- editingGroupId: string | null;
135
- width: number;
136
- height: number;
137
- offsetTop: number;
138
- offsetLeft: number;
139
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
140
- collaborators: Map<import("../types").SocketId, Readonly<{
141
- pointer?: import("../types").CollaboratorPointer | undefined;
142
- button?: "up" | "down" | undefined;
143
- selectedElementIds?: Readonly<{
144
- [id: string]: true;
145
- }> | undefined;
146
- username?: string | null | undefined;
147
- userState?: import("@excalidraw/common").UserIdleState | undefined;
148
- color?: {
149
- background: string;
150
- stroke: string;
151
- } | undefined;
152
- avatarUrl?: string | undefined;
153
- id?: string | undefined;
154
- socketId?: import("../types").SocketId | undefined;
155
- isCurrentUser?: boolean | undefined;
156
- isInCall?: boolean | undefined;
157
- isSpeaking?: boolean | undefined;
158
- isMuted?: boolean | undefined;
159
- }>>;
160
- stats: {
161
- open: boolean;
162
- panels: number;
163
- };
164
- currentChartType: import("@excalidraw/element/types").ChartType;
165
- pasteDialog: {
166
- shown: false;
167
- data: null;
168
- } | {
169
- shown: true;
170
- data: import("../charts").Spreadsheet;
171
- };
172
- showHyperlinkPopup: false | "info" | "editor";
173
- linkOpacity: number;
174
- colorPalette?: {
175
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
176
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
177
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
178
- topPicks: {
179
- canvasBackground: [string, string, string, string, string];
180
- elementStroke: [string, string, string, string, string];
181
- elementBackground: [string, string, string, string, string];
182
- };
183
- } | undefined;
184
- allowWheelZoom?: boolean | undefined;
185
- allowPinchZoom?: boolean | undefined;
186
- disableContextMenu: boolean;
187
- pinnedScripts?: string[] | undefined;
188
- customPens?: any[] | undefined;
189
- currentStrokeOptions?: any;
190
- resetCustomPen?: any;
191
- gridColor: {
192
- Bold: string;
193
- Regular: string;
194
- };
195
- gridDirection: {
196
- horizontal: boolean;
197
- vertical: boolean;
198
- };
199
- highlightSearchResult: boolean;
200
- dynamicStyle: {
201
- [x: string]: string;
202
- };
203
- frameColor: {
204
- stroke: string;
205
- fill: string;
206
- nameColor: string;
207
- };
208
- invertBindingBehaviour: boolean;
209
- snapLines: readonly import("../snapping").SnapLine[];
210
- originSnapOffset: {
211
- x: number;
212
- y: number;
213
- } | null;
214
- objectsSnapModeEnabled: boolean;
215
- userToFollow: import("../types").UserToFollow | null;
216
- followedBy: Set<import("../types").SocketId>;
217
- isCropping: boolean;
218
- croppingElementId: string | null;
219
- searchMatches: Readonly<{
220
- focusedId: string | null;
221
- matches: readonly import("../types").SearchMatch[];
222
- }> | null;
223
- activeLockedId: string | null;
224
- lockedMultiSelections: {
225
- [groupId: string]: true;
226
- };
227
- bindMode: import("@excalidraw/element/types").BindMode;
228
- };
229
- captureUpdate: "IMMEDIATELY";
230
- } | {
231
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
232
- appState: {
233
- selectedLinearElement: {
234
- selectedPointsIndices: number[];
235
- elementId: string & {
236
- _brand: "excalidrawLinearElementId";
237
- };
238
- initialState: Readonly<{
239
- prevSelectedPointsIndices: readonly number[] | null;
240
- lastClickedPoint: number;
241
- origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
242
- segmentMidpoint: {
243
- value: import("@excalidraw/math").GlobalPoint | null;
244
- index: number | null;
245
- added: boolean;
246
- };
247
- arrowStartIsInside: boolean;
248
- altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
249
- }>;
250
- isDragging: boolean;
251
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
252
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
253
- pointerOffset: Readonly<{
254
- x: number;
255
- y: number;
256
- }>;
257
- hoverPointIndex: number;
258
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
259
- elbowed: boolean;
260
- customLineAngle: number | null;
261
- isEditing: boolean;
262
- pointerDownState: never;
263
- };
264
- contextMenu: {
265
- items: import("../components/ContextMenu").ContextMenuItems;
266
- top: number;
267
- left: number;
268
- } | null;
269
- showWelcomeScreen: boolean;
270
- isLoading: boolean;
271
- errorMessage: import("react").ReactNode;
272
- activeEmbeddable: {
273
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
274
- state: "active" | "hover";
275
- } | null;
276
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
277
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
278
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
279
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
280
- isBindingEnabled: boolean;
281
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
282
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
283
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
284
- frameRendering: {
285
- enabled: boolean;
286
- name: boolean;
287
- outline: boolean;
288
- clip: boolean;
289
- markerName: boolean;
290
- markerEnabled: boolean;
291
- };
292
- editingFrame: string | null;
293
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
294
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
295
- activeTool: {
296
- lastActiveTool: import("../types").ActiveTool | null;
297
- locked: boolean;
298
- fromSelection: boolean;
299
- } & import("../types").ActiveTool;
300
- preferredSelectionTool: {
301
- type: "selection" | "lasso";
302
- initialized: boolean;
303
- };
304
- penMode: boolean;
305
- penDetected: boolean;
306
- exportBackground: boolean;
307
- exportEmbedScene: boolean;
308
- exportWithDarkMode: boolean;
309
- exportScale: number;
310
- currentItemStrokeColor: string;
311
- currentItemBackgroundColor: string;
312
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
313
- currentItemStrokeWidth: number;
314
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
315
- currentItemRoughness: number;
316
- currentItemOpacity: number;
317
- currentItemFontFamily: number;
318
- currentItemFontSize: number;
319
- currentItemTextAlign: string;
320
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
321
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
322
- currentHoveredFontFamily: number | null;
323
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
324
- currentItemArrowType: "round" | "sharp" | "elbow";
325
- currentItemFrameRole: ("marker" | null) | undefined;
326
- viewBackgroundColor: string;
327
- scrollX: number;
328
- scrollY: number;
329
- cursorButton: "up" | "down";
330
- scrolledOutside: boolean;
331
- name: string | null;
332
- isResizing: boolean;
333
- isRotating: boolean;
334
- zoom: Readonly<{
335
- value: import("../types").NormalizedZoomValue;
336
- }>;
337
- openMenu: "canvas" | "shape" | null;
338
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
339
- openSidebar: {
340
- name: string;
341
- tab?: string | undefined;
342
- } | null;
343
- openDialog: {
344
- name: "imageExport" | "help" | "jsonExport";
345
- } | {
346
- name: "ttd";
347
- tab: "mermaid" | "text-to-diagram";
348
- } | {
349
- name: "commandPalette";
350
- } | {
351
- name: "settings";
352
- } | {
353
- name: "elementLinkSelector";
354
- sourceElementId: string;
355
- } | null;
356
- defaultSidebarDockedPreference: boolean;
357
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
358
- selectedElementIds: Readonly<{
359
- [id: string]: true;
360
- }>;
361
- hoveredElementIds: Readonly<{
362
- [id: string]: true;
363
- }>;
364
- previousSelectedElementIds: {
365
- [id: string]: true;
366
- };
367
- selectedElementsAreBeingDragged: boolean;
368
- shouldCacheIgnoreZoom: boolean;
369
- toast: {
370
- message: string;
371
- closable?: boolean | undefined;
372
- duration?: number | undefined;
373
- } | null;
374
- zenModeEnabled: boolean;
375
- theme: import("@excalidraw/element/types").Theme;
376
- gridSize: number;
377
- gridStep: number;
378
- gridModeEnabled: boolean;
379
- viewModeEnabled: boolean;
380
- selectedGroupIds: {
381
- [groupId: string]: boolean;
382
- };
383
- editingGroupId: string | null;
384
- width: number;
385
- height: number;
386
- offsetTop: number;
387
- offsetLeft: number;
388
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
389
- collaborators: Map<import("../types").SocketId, Readonly<{
390
- pointer?: import("../types").CollaboratorPointer | undefined;
391
- button?: "up" | "down" | undefined;
392
- selectedElementIds?: Readonly<{
393
- [id: string]: true;
394
- }> | undefined;
395
- username?: string | null | undefined;
396
- userState?: import("@excalidraw/common").UserIdleState | undefined;
397
- color?: {
398
- background: string;
399
- stroke: string;
400
- } | undefined;
401
- avatarUrl?: string | undefined;
402
- id?: string | undefined;
403
- socketId?: import("../types").SocketId | undefined;
404
- isCurrentUser?: boolean | undefined;
405
- isInCall?: boolean | undefined;
406
- isSpeaking?: boolean | undefined;
407
- isMuted?: boolean | undefined;
408
- }>>;
409
- stats: {
410
- open: boolean;
411
- panels: number;
412
- };
413
- currentChartType: import("@excalidraw/element/types").ChartType;
414
- pasteDialog: {
415
- shown: false;
416
- data: null;
417
- } | {
418
- shown: true;
419
- data: import("../charts").Spreadsheet;
420
- };
421
- showHyperlinkPopup: false | "info" | "editor";
422
- linkOpacity: number;
423
- colorPalette?: {
424
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
425
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
426
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
427
- topPicks: {
428
- canvasBackground: [string, string, string, string, string];
429
- elementStroke: [string, string, string, string, string];
430
- elementBackground: [string, string, string, string, string];
431
- };
432
- } | undefined;
433
- allowWheelZoom?: boolean | undefined;
434
- allowPinchZoom?: boolean | undefined;
435
- disableContextMenu: boolean;
436
- pinnedScripts?: string[] | undefined;
437
- customPens?: any[] | undefined;
438
- currentStrokeOptions?: any;
439
- resetCustomPen?: any;
440
- gridColor: {
441
- Bold: string;
442
- Regular: string;
443
- };
444
- gridDirection: {
445
- horizontal: boolean;
446
- vertical: boolean;
447
- };
448
- highlightSearchResult: boolean;
449
- dynamicStyle: {
450
- [x: string]: string;
451
- };
452
- frameColor: {
453
- stroke: string;
454
- fill: string;
455
- nameColor: string;
456
- };
457
- invertBindingBehaviour: boolean;
458
- snapLines: readonly import("../snapping").SnapLine[];
459
- originSnapOffset: {
460
- x: number;
461
- y: number;
462
- } | null;
463
- objectsSnapModeEnabled: boolean;
464
- userToFollow: import("../types").UserToFollow | null;
465
- followedBy: Set<import("../types").SocketId>;
466
- isCropping: boolean;
467
- croppingElementId: string | null;
468
- searchMatches: Readonly<{
469
- focusedId: string | null;
470
- matches: readonly import("../types").SearchMatch[];
471
- }> | null;
472
- activeLockedId: string | null;
473
- lockedMultiSelections: {
474
- [groupId: string]: true;
475
- };
476
- bindMode: import("@excalidraw/element/types").BindMode;
477
- };
478
- captureUpdate: "IMMEDIATELY";
479
- } | {
480
- elements: ExcalidrawElement[];
481
- appState: {
482
- activeTool: {
483
- lastActiveTool: import("../types").ActiveTool | null;
484
- locked: boolean;
485
- fromSelection: boolean;
486
- } & import("../types").ActiveTool;
487
- multiElement: null;
488
- newElement: null;
489
- activeEmbeddable: null;
490
- selectedLinearElement: null;
491
- editingGroupId: string | null;
492
- selectedElementIds: Readonly<{
493
- [id: string]: true;
494
- }>;
495
- selectedGroupIds: {
496
- [groupId: string]: boolean;
497
- };
498
- contextMenu: {
499
- items: import("../components/ContextMenu").ContextMenuItems;
500
- top: number;
501
- left: number;
502
- } | null;
503
- showWelcomeScreen: boolean;
504
- isLoading: boolean;
505
- errorMessage: import("react").ReactNode;
506
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
507
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
508
- isBindingEnabled: boolean;
509
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
510
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
511
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
512
- frameRendering: {
513
- enabled: boolean;
514
- name: boolean;
515
- outline: boolean;
516
- clip: boolean;
517
- markerName: boolean;
518
- markerEnabled: boolean;
519
- };
520
- editingFrame: string | null;
521
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
522
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
523
- preferredSelectionTool: {
524
- type: "selection" | "lasso";
525
- initialized: boolean;
526
- };
527
- penMode: boolean;
528
- penDetected: boolean;
529
- exportBackground: boolean;
530
- exportEmbedScene: boolean;
531
- exportWithDarkMode: boolean;
532
- exportScale: number;
533
- currentItemStrokeColor: string;
534
- currentItemBackgroundColor: string;
535
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
536
- currentItemStrokeWidth: number;
537
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
538
- currentItemRoughness: number;
539
- currentItemOpacity: number;
540
- currentItemFontFamily: number;
541
- currentItemFontSize: number;
542
- currentItemTextAlign: string;
543
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
544
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
545
- currentHoveredFontFamily: number | null;
546
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
547
- currentItemArrowType: "round" | "sharp" | "elbow";
548
- currentItemFrameRole: ("marker" | null) | undefined;
549
- viewBackgroundColor: string;
550
- scrollX: number;
551
- scrollY: number;
552
- cursorButton: "up" | "down";
553
- scrolledOutside: boolean;
554
- name: string | null;
555
- isResizing: boolean;
556
- isRotating: boolean;
557
- zoom: Readonly<{
558
- value: import("../types").NormalizedZoomValue;
559
- }>;
560
- openMenu: "canvas" | "shape" | null;
561
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
562
- openSidebar: {
563
- name: string;
564
- tab?: string | undefined;
565
- } | null;
566
- openDialog: {
567
- name: "imageExport" | "help" | "jsonExport";
568
- } | {
569
- name: "ttd";
570
- tab: "mermaid" | "text-to-diagram";
571
- } | {
572
- name: "commandPalette";
573
- } | {
574
- name: "settings";
575
- } | {
576
- name: "elementLinkSelector";
577
- sourceElementId: string;
578
- } | null;
579
- defaultSidebarDockedPreference: boolean;
580
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
581
- hoveredElementIds: Readonly<{
582
- [id: string]: true;
583
- }>;
584
- previousSelectedElementIds: {
585
- [id: string]: true;
586
- };
587
- selectedElementsAreBeingDragged: boolean;
588
- shouldCacheIgnoreZoom: boolean;
589
- toast: {
590
- message: string;
591
- closable?: boolean | undefined;
592
- duration?: number | undefined;
593
- } | null;
594
- zenModeEnabled: boolean;
595
- theme: import("@excalidraw/element/types").Theme;
596
- gridSize: number;
597
- gridStep: number;
598
- gridModeEnabled: boolean;
599
- viewModeEnabled: boolean;
600
- width: number;
601
- height: number;
602
- offsetTop: number;
603
- offsetLeft: number;
604
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
605
- collaborators: Map<import("../types").SocketId, Readonly<{
606
- pointer?: import("../types").CollaboratorPointer | undefined;
607
- button?: "up" | "down" | undefined;
608
- selectedElementIds?: Readonly<{
609
- [id: string]: true;
610
- }> | undefined;
611
- username?: string | null | undefined;
612
- userState?: import("@excalidraw/common").UserIdleState | undefined;
613
- color?: {
614
- background: string;
615
- stroke: string;
616
- } | undefined;
617
- avatarUrl?: string | undefined;
618
- id?: string | undefined;
619
- socketId?: import("../types").SocketId | undefined;
620
- isCurrentUser?: boolean | undefined;
621
- isInCall?: boolean | undefined;
622
- isSpeaking?: boolean | undefined;
623
- isMuted?: boolean | undefined;
624
- }>>;
625
- stats: {
626
- open: boolean;
627
- panels: number;
628
- };
629
- currentChartType: import("@excalidraw/element/types").ChartType;
630
- pasteDialog: {
631
- shown: false;
632
- data: null;
633
- } | {
634
- shown: true;
635
- data: import("../charts").Spreadsheet;
636
- };
637
- showHyperlinkPopup: false | "info" | "editor";
638
- linkOpacity: number;
639
- colorPalette?: {
640
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
641
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
642
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
643
- topPicks: {
644
- canvasBackground: [string, string, string, string, string];
645
- elementStroke: [string, string, string, string, string];
646
- elementBackground: [string, string, string, string, string];
647
- };
648
- } | undefined;
649
- allowWheelZoom?: boolean | undefined;
650
- allowPinchZoom?: boolean | undefined;
651
- disableContextMenu: boolean;
652
- pinnedScripts?: string[] | undefined;
653
- customPens?: any[] | undefined;
654
- currentStrokeOptions?: any;
655
- resetCustomPen?: any;
656
- gridColor: {
657
- Bold: string;
658
- Regular: string;
659
- };
660
- gridDirection: {
661
- horizontal: boolean;
662
- vertical: boolean;
663
- };
664
- highlightSearchResult: boolean;
665
- dynamicStyle: {
666
- [x: string]: string;
667
- };
668
- frameColor: {
669
- stroke: string;
670
- fill: string;
671
- nameColor: string;
672
- };
673
- invertBindingBehaviour: boolean;
674
- snapLines: readonly import("../snapping").SnapLine[];
675
- originSnapOffset: {
676
- x: number;
677
- y: number;
678
- } | null;
679
- objectsSnapModeEnabled: boolean;
680
- userToFollow: import("../types").UserToFollow | null;
681
- followedBy: Set<import("../types").SocketId>;
682
- isCropping: boolean;
683
- croppingElementId: string | null;
684
- searchMatches: Readonly<{
685
- focusedId: string | null;
686
- matches: readonly import("../types").SearchMatch[];
687
- }> | null;
688
- activeLockedId: string | null;
689
- lockedMultiSelections: {
690
- [groupId: string]: true;
691
- };
692
- bindMode: import("@excalidraw/element/types").BindMode;
693
- };
694
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
695
- };
696
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
697
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
698
- } & {
699
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
700
- };
1
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
+ import type { AppClassProperties, AppState } from "../types";
3
+ export declare const actionDeleteSelected: {
4
+ name: "deleteSelectedElements";
5
+ label: string;
6
+ icon: import("react/jsx-runtime").JSX.Element;
7
+ trackEvent: {
8
+ category: "element";
9
+ action: string;
10
+ };
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
12
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
+ appState: {
14
+ selectedLinearElement: null;
15
+ contextMenu: {
16
+ items: import("../components/ContextMenu").ContextMenuItems;
17
+ top: number;
18
+ left: number;
19
+ } | null;
20
+ showWelcomeScreen: boolean;
21
+ isLoading: boolean;
22
+ errorMessage: React.ReactNode;
23
+ activeEmbeddable: {
24
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
+ state: "hover" | "active";
26
+ } | null;
27
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
30
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
+ isBindingEnabled: boolean;
32
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
+ frameRendering: {
36
+ enabled: boolean;
37
+ name: boolean;
38
+ outline: boolean;
39
+ clip: boolean;
40
+ markerName: boolean;
41
+ markerEnabled: boolean;
42
+ };
43
+ editingFrame: string | null;
44
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
45
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
46
+ activeTool: {
47
+ lastActiveTool: import("../types").ActiveTool | null;
48
+ locked: boolean;
49
+ fromSelection: boolean;
50
+ } & import("../types").ActiveTool;
51
+ preferredSelectionTool: {
52
+ type: "selection" | "lasso";
53
+ initialized: boolean;
54
+ };
55
+ penMode: boolean;
56
+ penDetected: boolean;
57
+ exportBackground: boolean;
58
+ exportEmbedScene: boolean;
59
+ exportWithDarkMode: boolean;
60
+ exportScale: number;
61
+ currentItemStrokeColor: string;
62
+ currentItemBackgroundColor: string;
63
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
64
+ currentItemStrokeWidth: number;
65
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
66
+ currentItemRoughness: number;
67
+ currentItemOpacity: number;
68
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
69
+ currentItemFontSize: number;
70
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
71
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
74
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
+ currentItemArrowType: "sharp" | "round" | "elbow";
76
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
77
+ viewBackgroundColor: string;
78
+ scrollX: number;
79
+ scrollY: number;
80
+ cursorButton: "up" | "down";
81
+ scrolledOutside: boolean;
82
+ name: string | null;
83
+ isResizing: boolean;
84
+ isRotating: boolean;
85
+ zoom: import("../types").Zoom;
86
+ openMenu: "canvas" | "shape" | null;
87
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
88
+ openSidebar: {
89
+ name: import("../types").SidebarName;
90
+ tab?: import("../types").SidebarTabName;
91
+ } | null;
92
+ openDialog: null | {
93
+ name: "imageExport" | "help" | "jsonExport";
94
+ } | {
95
+ name: "ttd";
96
+ tab: "text-to-diagram" | "mermaid";
97
+ } | {
98
+ name: "commandPalette";
99
+ } | {
100
+ name: "settings";
101
+ } | {
102
+ name: "elementLinkSelector";
103
+ sourceElementId: ExcalidrawElement["id"];
104
+ };
105
+ defaultSidebarDockedPreference: boolean;
106
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
107
+ selectedElementIds: Readonly<{
108
+ [id: string]: true;
109
+ }>;
110
+ hoveredElementIds: Readonly<{
111
+ [id: string]: true;
112
+ }>;
113
+ previousSelectedElementIds: {
114
+ [id: string]: true;
115
+ };
116
+ selectedElementsAreBeingDragged: boolean;
117
+ shouldCacheIgnoreZoom: boolean;
118
+ toast: {
119
+ message: string;
120
+ closable?: boolean;
121
+ duration?: number;
122
+ } | null;
123
+ zenModeEnabled: boolean;
124
+ theme: import("@excalidraw/element/types").Theme;
125
+ gridSize: number;
126
+ gridStep: number;
127
+ gridModeEnabled: boolean;
128
+ viewModeEnabled: boolean;
129
+ selectedGroupIds: {
130
+ [groupId: string]: boolean;
131
+ };
132
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
133
+ width: number;
134
+ height: number;
135
+ offsetTop: number;
136
+ offsetLeft: number;
137
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
138
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
139
+ stats: {
140
+ open: boolean;
141
+ panels: number;
142
+ };
143
+ currentChartType: import("@excalidraw/element/types").ChartType;
144
+ pasteDialog: {
145
+ shown: false;
146
+ data: null;
147
+ } | {
148
+ shown: true;
149
+ data: import("../charts").Spreadsheet;
150
+ };
151
+ showHyperlinkPopup: false | "info" | "editor";
152
+ linkOpacity: number;
153
+ colorPalette?: {
154
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
155
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
156
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
157
+ topPicks: {
158
+ canvasBackground: [string, string, string, string, string];
159
+ elementStroke: [string, string, string, string, string];
160
+ elementBackground: [string, string, string, string, string];
161
+ };
162
+ };
163
+ allowWheelZoom?: boolean;
164
+ allowPinchZoom?: boolean;
165
+ disableContextMenu: boolean;
166
+ pinnedScripts?: string[];
167
+ customPens?: any[];
168
+ currentStrokeOptions?: any;
169
+ resetCustomPen?: any;
170
+ gridColor: {
171
+ Bold: string;
172
+ Regular: string;
173
+ };
174
+ gridDirection: {
175
+ horizontal: boolean;
176
+ vertical: boolean;
177
+ };
178
+ highlightSearchResult: boolean;
179
+ dynamicStyle: {
180
+ [x: string]: string;
181
+ };
182
+ frameColor: {
183
+ stroke: string;
184
+ fill: string;
185
+ nameColor: string;
186
+ };
187
+ invertBindingBehaviour: boolean;
188
+ snapLines: readonly import("../snapping").SnapLine[];
189
+ originSnapOffset: {
190
+ x: number;
191
+ y: number;
192
+ } | null;
193
+ objectsSnapModeEnabled: boolean;
194
+ userToFollow: import("../types").UserToFollow | null;
195
+ followedBy: Set<import("../types").SocketId>;
196
+ isCropping: boolean;
197
+ croppingElementId: ExcalidrawElement["id"] | null;
198
+ searchMatches: Readonly<{
199
+ focusedId: ExcalidrawElement["id"] | null;
200
+ matches: readonly import("../types").SearchMatch[];
201
+ }> | null;
202
+ activeLockedId: string | null;
203
+ lockedMultiSelections: {
204
+ [groupId: string]: true;
205
+ };
206
+ bindMode: import("@excalidraw/element/types").BindMode;
207
+ };
208
+ captureUpdate: "IMMEDIATELY";
209
+ } | {
210
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
211
+ appState: {
212
+ selectedLinearElement: {
213
+ selectedPointsIndices: number[];
214
+ elementId: ExcalidrawElement["id"] & {
215
+ _brand: "excalidrawLinearElementId";
216
+ };
217
+ initialState: Readonly<{
218
+ prevSelectedPointsIndices: readonly number[] | null;
219
+ lastClickedPoint: number;
220
+ origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
221
+ segmentMidpoint: {
222
+ value: import("@excalidraw/math").GlobalPoint | null;
223
+ index: number | null;
224
+ added: boolean;
225
+ };
226
+ arrowStartIsInside: boolean;
227
+ altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
228
+ }>;
229
+ isDragging: boolean;
230
+ lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
231
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
232
+ pointerOffset: Readonly<{
233
+ x: number;
234
+ y: number;
235
+ }>;
236
+ hoverPointIndex: number;
237
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
238
+ elbowed: boolean;
239
+ customLineAngle: number | null;
240
+ isEditing: boolean;
241
+ pointerDownState: never;
242
+ };
243
+ contextMenu: {
244
+ items: import("../components/ContextMenu").ContextMenuItems;
245
+ top: number;
246
+ left: number;
247
+ } | null;
248
+ showWelcomeScreen: boolean;
249
+ isLoading: boolean;
250
+ errorMessage: React.ReactNode;
251
+ activeEmbeddable: {
252
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
253
+ state: "hover" | "active";
254
+ } | null;
255
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
256
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
257
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
258
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
259
+ isBindingEnabled: boolean;
260
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
261
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
262
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
263
+ frameRendering: {
264
+ enabled: boolean;
265
+ name: boolean;
266
+ outline: boolean;
267
+ clip: boolean;
268
+ markerName: boolean;
269
+ markerEnabled: boolean;
270
+ };
271
+ editingFrame: string | null;
272
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
273
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
274
+ activeTool: {
275
+ lastActiveTool: import("../types").ActiveTool | null;
276
+ locked: boolean;
277
+ fromSelection: boolean;
278
+ } & import("../types").ActiveTool;
279
+ preferredSelectionTool: {
280
+ type: "selection" | "lasso";
281
+ initialized: boolean;
282
+ };
283
+ penMode: boolean;
284
+ penDetected: boolean;
285
+ exportBackground: boolean;
286
+ exportEmbedScene: boolean;
287
+ exportWithDarkMode: boolean;
288
+ exportScale: number;
289
+ currentItemStrokeColor: string;
290
+ currentItemBackgroundColor: string;
291
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
292
+ currentItemStrokeWidth: number;
293
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
294
+ currentItemRoughness: number;
295
+ currentItemOpacity: number;
296
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
297
+ currentItemFontSize: number;
298
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
299
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
300
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
301
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
302
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
303
+ currentItemArrowType: "sharp" | "round" | "elbow";
304
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
305
+ viewBackgroundColor: string;
306
+ scrollX: number;
307
+ scrollY: number;
308
+ cursorButton: "up" | "down";
309
+ scrolledOutside: boolean;
310
+ name: string | null;
311
+ isResizing: boolean;
312
+ isRotating: boolean;
313
+ zoom: import("../types").Zoom;
314
+ openMenu: "canvas" | "shape" | null;
315
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
316
+ openSidebar: {
317
+ name: import("../types").SidebarName;
318
+ tab?: import("../types").SidebarTabName;
319
+ } | null;
320
+ openDialog: null | {
321
+ name: "imageExport" | "help" | "jsonExport";
322
+ } | {
323
+ name: "ttd";
324
+ tab: "text-to-diagram" | "mermaid";
325
+ } | {
326
+ name: "commandPalette";
327
+ } | {
328
+ name: "settings";
329
+ } | {
330
+ name: "elementLinkSelector";
331
+ sourceElementId: ExcalidrawElement["id"];
332
+ };
333
+ defaultSidebarDockedPreference: boolean;
334
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
335
+ selectedElementIds: Readonly<{
336
+ [id: string]: true;
337
+ }>;
338
+ hoveredElementIds: Readonly<{
339
+ [id: string]: true;
340
+ }>;
341
+ previousSelectedElementIds: {
342
+ [id: string]: true;
343
+ };
344
+ selectedElementsAreBeingDragged: boolean;
345
+ shouldCacheIgnoreZoom: boolean;
346
+ toast: {
347
+ message: string;
348
+ closable?: boolean;
349
+ duration?: number;
350
+ } | null;
351
+ zenModeEnabled: boolean;
352
+ theme: import("@excalidraw/element/types").Theme;
353
+ gridSize: number;
354
+ gridStep: number;
355
+ gridModeEnabled: boolean;
356
+ viewModeEnabled: boolean;
357
+ selectedGroupIds: {
358
+ [groupId: string]: boolean;
359
+ };
360
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
361
+ width: number;
362
+ height: number;
363
+ offsetTop: number;
364
+ offsetLeft: number;
365
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
366
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
367
+ stats: {
368
+ open: boolean;
369
+ panels: number;
370
+ };
371
+ currentChartType: import("@excalidraw/element/types").ChartType;
372
+ pasteDialog: {
373
+ shown: false;
374
+ data: null;
375
+ } | {
376
+ shown: true;
377
+ data: import("../charts").Spreadsheet;
378
+ };
379
+ showHyperlinkPopup: false | "info" | "editor";
380
+ linkOpacity: number;
381
+ colorPalette?: {
382
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
383
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
384
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
385
+ topPicks: {
386
+ canvasBackground: [string, string, string, string, string];
387
+ elementStroke: [string, string, string, string, string];
388
+ elementBackground: [string, string, string, string, string];
389
+ };
390
+ };
391
+ allowWheelZoom?: boolean;
392
+ allowPinchZoom?: boolean;
393
+ disableContextMenu: boolean;
394
+ pinnedScripts?: string[];
395
+ customPens?: any[];
396
+ currentStrokeOptions?: any;
397
+ resetCustomPen?: any;
398
+ gridColor: {
399
+ Bold: string;
400
+ Regular: string;
401
+ };
402
+ gridDirection: {
403
+ horizontal: boolean;
404
+ vertical: boolean;
405
+ };
406
+ highlightSearchResult: boolean;
407
+ dynamicStyle: {
408
+ [x: string]: string;
409
+ };
410
+ frameColor: {
411
+ stroke: string;
412
+ fill: string;
413
+ nameColor: string;
414
+ };
415
+ invertBindingBehaviour: boolean;
416
+ snapLines: readonly import("../snapping").SnapLine[];
417
+ originSnapOffset: {
418
+ x: number;
419
+ y: number;
420
+ } | null;
421
+ objectsSnapModeEnabled: boolean;
422
+ userToFollow: import("../types").UserToFollow | null;
423
+ followedBy: Set<import("../types").SocketId>;
424
+ isCropping: boolean;
425
+ croppingElementId: ExcalidrawElement["id"] | null;
426
+ searchMatches: Readonly<{
427
+ focusedId: ExcalidrawElement["id"] | null;
428
+ matches: readonly import("../types").SearchMatch[];
429
+ }> | null;
430
+ activeLockedId: string | null;
431
+ lockedMultiSelections: {
432
+ [groupId: string]: true;
433
+ };
434
+ bindMode: import("@excalidraw/element/types").BindMode;
435
+ };
436
+ captureUpdate: "IMMEDIATELY";
437
+ } | {
438
+ elements: ExcalidrawElement[];
439
+ appState: {
440
+ activeTool: {
441
+ lastActiveTool: import("../types").ActiveTool | null;
442
+ locked: boolean;
443
+ fromSelection: boolean;
444
+ } & import("../types").ActiveTool;
445
+ multiElement: null;
446
+ newElement: null;
447
+ activeEmbeddable: null;
448
+ selectedLinearElement: null;
449
+ editingGroupId: AppState["editingGroupId"];
450
+ selectedElementIds: AppState["selectedElementIds"];
451
+ selectedGroupIds: AppState["selectedGroupIds"];
452
+ contextMenu: {
453
+ items: import("../components/ContextMenu").ContextMenuItems;
454
+ top: number;
455
+ left: number;
456
+ } | null;
457
+ showWelcomeScreen: boolean;
458
+ isLoading: boolean;
459
+ errorMessage: React.ReactNode;
460
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
461
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
462
+ isBindingEnabled: boolean;
463
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
464
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
465
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
466
+ frameRendering: {
467
+ enabled: boolean;
468
+ name: boolean;
469
+ outline: boolean;
470
+ clip: boolean;
471
+ markerName: boolean;
472
+ markerEnabled: boolean;
473
+ };
474
+ editingFrame: string | null;
475
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
476
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
477
+ preferredSelectionTool: {
478
+ type: "selection" | "lasso";
479
+ initialized: boolean;
480
+ };
481
+ penMode: boolean;
482
+ penDetected: boolean;
483
+ exportBackground: boolean;
484
+ exportEmbedScene: boolean;
485
+ exportWithDarkMode: boolean;
486
+ exportScale: number;
487
+ currentItemStrokeColor: string;
488
+ currentItemBackgroundColor: string;
489
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
490
+ currentItemStrokeWidth: number;
491
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
492
+ currentItemRoughness: number;
493
+ currentItemOpacity: number;
494
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
495
+ currentItemFontSize: number;
496
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
497
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
498
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
499
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
500
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
501
+ currentItemArrowType: "sharp" | "round" | "elbow";
502
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
503
+ viewBackgroundColor: string;
504
+ scrollX: number;
505
+ scrollY: number;
506
+ cursorButton: "up" | "down";
507
+ scrolledOutside: boolean;
508
+ name: string | null;
509
+ isResizing: boolean;
510
+ isRotating: boolean;
511
+ zoom: import("../types").Zoom;
512
+ openMenu: "canvas" | "shape" | null;
513
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
514
+ openSidebar: {
515
+ name: import("../types").SidebarName;
516
+ tab?: import("../types").SidebarTabName;
517
+ } | null;
518
+ openDialog: null | {
519
+ name: "imageExport" | "help" | "jsonExport";
520
+ } | {
521
+ name: "ttd";
522
+ tab: "text-to-diagram" | "mermaid";
523
+ } | {
524
+ name: "commandPalette";
525
+ } | {
526
+ name: "settings";
527
+ } | {
528
+ name: "elementLinkSelector";
529
+ sourceElementId: ExcalidrawElement["id"];
530
+ };
531
+ defaultSidebarDockedPreference: boolean;
532
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
533
+ hoveredElementIds: Readonly<{
534
+ [id: string]: true;
535
+ }>;
536
+ previousSelectedElementIds: {
537
+ [id: string]: true;
538
+ };
539
+ selectedElementsAreBeingDragged: boolean;
540
+ shouldCacheIgnoreZoom: boolean;
541
+ toast: {
542
+ message: string;
543
+ closable?: boolean;
544
+ duration?: number;
545
+ } | null;
546
+ zenModeEnabled: boolean;
547
+ theme: import("@excalidraw/element/types").Theme;
548
+ gridSize: number;
549
+ gridStep: number;
550
+ gridModeEnabled: boolean;
551
+ viewModeEnabled: boolean;
552
+ width: number;
553
+ height: number;
554
+ offsetTop: number;
555
+ offsetLeft: number;
556
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
557
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
558
+ stats: {
559
+ open: boolean;
560
+ panels: number;
561
+ };
562
+ currentChartType: import("@excalidraw/element/types").ChartType;
563
+ pasteDialog: {
564
+ shown: false;
565
+ data: null;
566
+ } | {
567
+ shown: true;
568
+ data: import("../charts").Spreadsheet;
569
+ };
570
+ showHyperlinkPopup: false | "info" | "editor";
571
+ linkOpacity: number;
572
+ colorPalette?: {
573
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
574
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
575
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
576
+ topPicks: {
577
+ canvasBackground: [string, string, string, string, string];
578
+ elementStroke: [string, string, string, string, string];
579
+ elementBackground: [string, string, string, string, string];
580
+ };
581
+ };
582
+ allowWheelZoom?: boolean;
583
+ allowPinchZoom?: boolean;
584
+ disableContextMenu: boolean;
585
+ pinnedScripts?: string[];
586
+ customPens?: any[];
587
+ currentStrokeOptions?: any;
588
+ resetCustomPen?: any;
589
+ gridColor: {
590
+ Bold: string;
591
+ Regular: string;
592
+ };
593
+ gridDirection: {
594
+ horizontal: boolean;
595
+ vertical: boolean;
596
+ };
597
+ highlightSearchResult: boolean;
598
+ dynamicStyle: {
599
+ [x: string]: string;
600
+ };
601
+ frameColor: {
602
+ stroke: string;
603
+ fill: string;
604
+ nameColor: string;
605
+ };
606
+ invertBindingBehaviour: boolean;
607
+ snapLines: readonly import("../snapping").SnapLine[];
608
+ originSnapOffset: {
609
+ x: number;
610
+ y: number;
611
+ } | null;
612
+ objectsSnapModeEnabled: boolean;
613
+ userToFollow: import("../types").UserToFollow | null;
614
+ followedBy: Set<import("../types").SocketId>;
615
+ isCropping: boolean;
616
+ croppingElementId: ExcalidrawElement["id"] | null;
617
+ searchMatches: Readonly<{
618
+ focusedId: ExcalidrawElement["id"] | null;
619
+ matches: readonly import("../types").SearchMatch[];
620
+ }> | null;
621
+ activeLockedId: string | null;
622
+ lockedMultiSelections: {
623
+ [groupId: string]: true;
624
+ };
625
+ bindMode: import("@excalidraw/element/types").BindMode;
626
+ };
627
+ captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
628
+ };
629
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
630
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
631
+ } & {
632
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
633
+ };