@zsviczian/excalidraw 0.18.0-14 → 0.18.0-15

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