@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,644 +1,626 @@
1
- export declare const actionAddToLibrary: {
2
- name: "addToLibrary";
3
- trackEvent: {
4
- category: "element";
5
- };
6
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
7
- captureUpdate: "EVENTUALLY";
8
- appState: {
9
- toast: {
10
- message: string;
11
- };
12
- contextMenu: {
13
- items: import("../components/ContextMenu").ContextMenuItems;
14
- top: number;
15
- left: number;
16
- } | null;
17
- showWelcomeScreen: boolean;
18
- isLoading: boolean;
19
- errorMessage: import("react").ReactNode;
20
- activeEmbeddable: {
21
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
- state: "active" | "hover";
23
- } | null;
24
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
- isBindingEnabled: boolean;
29
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
31
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
- frameRendering: {
33
- enabled: boolean;
34
- name: boolean;
35
- outline: boolean;
36
- clip: boolean;
37
- };
38
- editingFrame: string | null;
39
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
42
- activeTool: {
43
- lastActiveTool: import("../types").ActiveTool | null;
44
- locked: boolean;
45
- fromSelection: boolean;
46
- } & import("../types").ActiveTool;
47
- penMode: boolean;
48
- penDetected: boolean;
49
- exportBackground: boolean;
50
- exportEmbedScene: boolean;
51
- exportWithDarkMode: boolean;
52
- exportScale: number;
53
- currentItemStrokeColor: string;
54
- currentItemBackgroundColor: string;
55
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
56
- currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
58
- currentItemRoughness: number;
59
- currentItemOpacity: number;
60
- currentItemFontFamily: number;
61
- currentItemFontSize: number;
62
- currentItemTextAlign: string;
63
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
- currentHoveredFontFamily: number | null;
66
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
- currentItemArrowType: "round" | "sharp" | "elbow";
68
- viewBackgroundColor: string;
69
- scrollX: number;
70
- scrollY: number;
71
- cursorButton: "up" | "down";
72
- scrolledOutside: boolean;
73
- name: string | null;
74
- isResizing: boolean;
75
- isRotating: boolean;
76
- zoom: Readonly<{
77
- value: import("../types").NormalizedZoomValue;
78
- }>;
79
- openMenu: "canvas" | "shape" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
- openSidebar: {
82
- name: string;
83
- tab?: string | undefined;
84
- } | null;
85
- openDialog: {
86
- name: "help" | "imageExport" | "jsonExport";
87
- } | {
88
- name: "ttd";
89
- tab: "mermaid" | "text-to-diagram";
90
- } | {
91
- name: "commandPalette";
92
- } | {
93
- name: "elementLinkSelector";
94
- sourceElementId: string;
95
- } | null;
96
- defaultSidebarDockedPreference: boolean;
97
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
- selectedElementIds: Readonly<{
99
- [id: string]: true;
100
- }>;
101
- hoveredElementIds: Readonly<{
102
- [id: string]: true;
103
- }>;
104
- previousSelectedElementIds: {
105
- [id: string]: true;
106
- };
107
- selectedElementsAreBeingDragged: boolean;
108
- shouldCacheIgnoreZoom: boolean;
109
- zenModeEnabled: boolean;
110
- theme: import("@excalidraw/element/types").Theme;
111
- gridSize: number;
112
- gridStep: number;
113
- gridModeEnabled: boolean;
114
- viewModeEnabled: boolean;
115
- selectedGroupIds: {
116
- [groupId: string]: boolean;
117
- };
118
- editingGroupId: string | null;
119
- width: number;
120
- height: number;
121
- offsetTop: number;
122
- offsetLeft: number;
123
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
124
- collaborators: Map<import("../types").SocketId, Readonly<{
125
- pointer?: import("../types").CollaboratorPointer | undefined;
126
- button?: "up" | "down" | undefined;
127
- selectedElementIds?: Readonly<{
128
- [id: string]: true;
129
- }> | undefined;
130
- username?: string | null | undefined;
131
- userState?: import("@excalidraw/common").UserIdleState | undefined;
132
- color?: {
133
- background: string;
134
- stroke: string;
135
- } | undefined;
136
- avatarUrl?: string | undefined;
137
- id?: string | undefined;
138
- socketId?: import("../types").SocketId | undefined;
139
- isCurrentUser?: boolean | undefined;
140
- isInCall?: boolean | undefined;
141
- isSpeaking?: boolean | undefined;
142
- isMuted?: boolean | undefined;
143
- }>>;
144
- stats: {
145
- open: boolean;
146
- panels: number;
147
- };
148
- currentChartType: import("@excalidraw/element/types").ChartType;
149
- pasteDialog: {
150
- shown: false;
151
- data: null;
152
- } | {
153
- shown: true;
154
- data: import("../charts").Spreadsheet;
155
- };
156
- pendingImageElementId: string | null;
157
- showHyperlinkPopup: false | "editor" | "info";
158
- linkOpacity: number;
159
- trayModeEnabled: boolean;
160
- colorPalette?: {
161
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
162
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
163
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
164
- topPicks: {
165
- canvasBackground: [string, string, string, string, string];
166
- elementStroke: [string, string, string, string, string];
167
- elementBackground: [string, string, string, string, string];
168
- };
169
- } | undefined;
170
- allowWheelZoom?: boolean | undefined;
171
- allowPinchZoom?: boolean | undefined;
172
- pinnedScripts?: string[] | undefined;
173
- customPens?: any[] | undefined;
174
- currentStrokeOptions?: any;
175
- resetCustomPen?: any;
176
- gridColor: {
177
- Bold: string;
178
- Regular: string;
179
- };
180
- gridDirection: {
181
- horizontal: boolean;
182
- vertical: boolean;
183
- };
184
- highlightSearchResult: boolean;
185
- dynamicStyle: {
186
- [x: string]: string;
187
- };
188
- frameColor: {
189
- stroke: string;
190
- fill: string;
191
- nameColor: string;
192
- };
193
- invertBindingBehaviour: boolean;
194
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
195
- snapLines: readonly import("../snapping").SnapLine[];
196
- originSnapOffset: {
197
- x: number;
198
- y: number;
199
- } | null;
200
- objectsSnapModeEnabled: boolean;
201
- userToFollow: import("../types").UserToFollow | null;
202
- followedBy: Set<import("../types").SocketId>;
203
- isCropping: boolean;
204
- croppingElementId: string | null;
205
- searchMatches: readonly {
206
- id: string;
207
- focus: boolean;
208
- matchedLines: {
209
- offsetX: number;
210
- offsetY: number;
211
- width: number;
212
- height: number;
213
- }[];
214
- }[];
215
- };
216
- } | {
217
- captureUpdate: "EVENTUALLY";
218
- appState: {
219
- errorMessage: any;
220
- contextMenu: {
221
- items: import("../components/ContextMenu").ContextMenuItems;
222
- top: number;
223
- left: number;
224
- } | null;
225
- showWelcomeScreen: boolean;
226
- isLoading: boolean;
227
- activeEmbeddable: {
228
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
229
- state: "active" | "hover";
230
- } | null;
231
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
232
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
233
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
234
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
- isBindingEnabled: boolean;
236
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
237
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
238
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
239
- frameRendering: {
240
- enabled: boolean;
241
- name: boolean;
242
- outline: boolean;
243
- clip: boolean;
244
- };
245
- editingFrame: string | null;
246
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
247
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
248
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
249
- activeTool: {
250
- lastActiveTool: import("../types").ActiveTool | null;
251
- locked: boolean;
252
- fromSelection: boolean;
253
- } & import("../types").ActiveTool;
254
- penMode: boolean;
255
- penDetected: boolean;
256
- exportBackground: boolean;
257
- exportEmbedScene: boolean;
258
- exportWithDarkMode: boolean;
259
- exportScale: number;
260
- currentItemStrokeColor: string;
261
- currentItemBackgroundColor: string;
262
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
263
- currentItemStrokeWidth: number;
264
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
265
- currentItemRoughness: number;
266
- currentItemOpacity: number;
267
- currentItemFontFamily: number;
268
- currentItemFontSize: number;
269
- currentItemTextAlign: string;
270
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
271
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
272
- currentHoveredFontFamily: number | null;
273
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
274
- currentItemArrowType: "round" | "sharp" | "elbow";
275
- viewBackgroundColor: string;
276
- scrollX: number;
277
- scrollY: number;
278
- cursorButton: "up" | "down";
279
- scrolledOutside: boolean;
280
- name: string | null;
281
- isResizing: boolean;
282
- isRotating: boolean;
283
- zoom: Readonly<{
284
- value: import("../types").NormalizedZoomValue;
285
- }>;
286
- openMenu: "canvas" | "shape" | null;
287
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
288
- openSidebar: {
289
- name: string;
290
- tab?: string | undefined;
291
- } | null;
292
- openDialog: {
293
- name: "help" | "imageExport" | "jsonExport";
294
- } | {
295
- name: "ttd";
296
- tab: "mermaid" | "text-to-diagram";
297
- } | {
298
- name: "commandPalette";
299
- } | {
300
- name: "elementLinkSelector";
301
- sourceElementId: string;
302
- } | null;
303
- defaultSidebarDockedPreference: boolean;
304
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
305
- selectedElementIds: Readonly<{
306
- [id: string]: true;
307
- }>;
308
- hoveredElementIds: Readonly<{
309
- [id: string]: true;
310
- }>;
311
- previousSelectedElementIds: {
312
- [id: string]: true;
313
- };
314
- selectedElementsAreBeingDragged: boolean;
315
- shouldCacheIgnoreZoom: boolean;
316
- toast: {
317
- message: string;
318
- closable?: boolean | undefined;
319
- duration?: number | undefined;
320
- } | null;
321
- zenModeEnabled: boolean;
322
- theme: import("@excalidraw/element/types").Theme;
323
- gridSize: number;
324
- gridStep: number;
325
- gridModeEnabled: boolean;
326
- viewModeEnabled: boolean;
327
- selectedGroupIds: {
328
- [groupId: string]: boolean;
329
- };
330
- editingGroupId: string | null;
331
- width: number;
332
- height: number;
333
- offsetTop: number;
334
- offsetLeft: number;
335
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
336
- collaborators: Map<import("../types").SocketId, Readonly<{
337
- pointer?: import("../types").CollaboratorPointer | undefined;
338
- button?: "up" | "down" | undefined;
339
- selectedElementIds?: Readonly<{
340
- [id: string]: true;
341
- }> | undefined;
342
- username?: string | null | undefined;
343
- userState?: import("@excalidraw/common").UserIdleState | undefined;
344
- color?: {
345
- background: string;
346
- stroke: string;
347
- } | undefined;
348
- avatarUrl?: string | undefined;
349
- id?: string | undefined;
350
- socketId?: import("../types").SocketId | undefined;
351
- isCurrentUser?: boolean | undefined;
352
- isInCall?: boolean | undefined;
353
- isSpeaking?: boolean | undefined;
354
- isMuted?: boolean | undefined;
355
- }>>;
356
- stats: {
357
- open: boolean;
358
- panels: number;
359
- };
360
- currentChartType: import("@excalidraw/element/types").ChartType;
361
- pasteDialog: {
362
- shown: false;
363
- data: null;
364
- } | {
365
- shown: true;
366
- data: import("../charts").Spreadsheet;
367
- };
368
- pendingImageElementId: string | null;
369
- showHyperlinkPopup: false | "editor" | "info";
370
- linkOpacity: number;
371
- trayModeEnabled: boolean;
372
- colorPalette?: {
373
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
374
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
375
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
376
- topPicks: {
377
- canvasBackground: [string, string, string, string, string];
378
- elementStroke: [string, string, string, string, string];
379
- elementBackground: [string, string, string, string, string];
380
- };
381
- } | undefined;
382
- allowWheelZoom?: boolean | undefined;
383
- allowPinchZoom?: boolean | undefined;
384
- pinnedScripts?: string[] | undefined;
385
- customPens?: any[] | undefined;
386
- currentStrokeOptions?: any;
387
- resetCustomPen?: any;
388
- gridColor: {
389
- Bold: string;
390
- Regular: string;
391
- };
392
- gridDirection: {
393
- horizontal: boolean;
394
- vertical: boolean;
395
- };
396
- highlightSearchResult: boolean;
397
- dynamicStyle: {
398
- [x: string]: string;
399
- };
400
- frameColor: {
401
- stroke: string;
402
- fill: string;
403
- nameColor: string;
404
- };
405
- invertBindingBehaviour: boolean;
406
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
407
- snapLines: readonly import("../snapping").SnapLine[];
408
- originSnapOffset: {
409
- x: number;
410
- y: number;
411
- } | null;
412
- objectsSnapModeEnabled: boolean;
413
- userToFollow: import("../types").UserToFollow | null;
414
- followedBy: Set<import("../types").SocketId>;
415
- isCropping: boolean;
416
- croppingElementId: string | null;
417
- searchMatches: readonly {
418
- id: string;
419
- focus: boolean;
420
- matchedLines: {
421
- offsetX: number;
422
- offsetY: number;
423
- width: number;
424
- height: number;
425
- }[];
426
- }[];
427
- };
428
- }> | {
429
- captureUpdate: "EVENTUALLY";
430
- appState: {
431
- errorMessage: string;
432
- contextMenu: {
433
- items: import("../components/ContextMenu").ContextMenuItems;
434
- top: number;
435
- left: number;
436
- } | null;
437
- showWelcomeScreen: boolean;
438
- isLoading: boolean;
439
- activeEmbeddable: {
440
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
441
- state: "active" | "hover";
442
- } | null;
443
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
444
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
445
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
446
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
447
- isBindingEnabled: boolean;
448
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
449
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
450
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
451
- frameRendering: {
452
- enabled: boolean;
453
- name: boolean;
454
- outline: boolean;
455
- clip: boolean;
456
- };
457
- editingFrame: string | null;
458
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
459
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
460
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
461
- activeTool: {
462
- lastActiveTool: import("../types").ActiveTool | null;
463
- locked: boolean;
464
- fromSelection: boolean;
465
- } & import("../types").ActiveTool;
466
- penMode: boolean;
467
- penDetected: boolean;
468
- exportBackground: boolean;
469
- exportEmbedScene: boolean;
470
- exportWithDarkMode: boolean;
471
- exportScale: number;
472
- currentItemStrokeColor: string;
473
- currentItemBackgroundColor: string;
474
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
475
- currentItemStrokeWidth: number;
476
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
477
- currentItemRoughness: number;
478
- currentItemOpacity: number;
479
- currentItemFontFamily: number;
480
- currentItemFontSize: number;
481
- currentItemTextAlign: string;
482
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
483
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
484
- currentHoveredFontFamily: number | null;
485
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
486
- currentItemArrowType: "round" | "sharp" | "elbow";
487
- viewBackgroundColor: string;
488
- scrollX: number;
489
- scrollY: number;
490
- cursorButton: "up" | "down";
491
- scrolledOutside: boolean;
492
- name: string | null;
493
- isResizing: boolean;
494
- isRotating: boolean;
495
- zoom: Readonly<{
496
- value: import("../types").NormalizedZoomValue;
497
- }>;
498
- openMenu: "canvas" | "shape" | null;
499
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
500
- openSidebar: {
501
- name: string;
502
- tab?: string | undefined;
503
- } | null;
504
- openDialog: {
505
- name: "help" | "imageExport" | "jsonExport";
506
- } | {
507
- name: "ttd";
508
- tab: "mermaid" | "text-to-diagram";
509
- } | {
510
- name: "commandPalette";
511
- } | {
512
- name: "elementLinkSelector";
513
- sourceElementId: string;
514
- } | null;
515
- defaultSidebarDockedPreference: boolean;
516
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
517
- selectedElementIds: Readonly<{
518
- [id: string]: true;
519
- }>;
520
- hoveredElementIds: Readonly<{
521
- [id: string]: true;
522
- }>;
523
- previousSelectedElementIds: {
524
- [id: string]: true;
525
- };
526
- selectedElementsAreBeingDragged: boolean;
527
- shouldCacheIgnoreZoom: boolean;
528
- toast: {
529
- message: string;
530
- closable?: boolean | undefined;
531
- duration?: number | undefined;
532
- } | null;
533
- zenModeEnabled: boolean;
534
- theme: import("@excalidraw/element/types").Theme;
535
- gridSize: number;
536
- gridStep: number;
537
- gridModeEnabled: boolean;
538
- viewModeEnabled: boolean;
539
- selectedGroupIds: {
540
- [groupId: string]: boolean;
541
- };
542
- editingGroupId: string | null;
543
- width: number;
544
- height: number;
545
- offsetTop: number;
546
- offsetLeft: number;
547
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
548
- collaborators: Map<import("../types").SocketId, Readonly<{
549
- pointer?: import("../types").CollaboratorPointer | undefined;
550
- button?: "up" | "down" | undefined;
551
- selectedElementIds?: Readonly<{
552
- [id: string]: true;
553
- }> | undefined;
554
- username?: string | null | undefined;
555
- userState?: import("@excalidraw/common").UserIdleState | undefined;
556
- color?: {
557
- background: string;
558
- stroke: string;
559
- } | undefined;
560
- avatarUrl?: string | undefined;
561
- id?: string | undefined;
562
- socketId?: import("../types").SocketId | undefined;
563
- isCurrentUser?: boolean | undefined;
564
- isInCall?: boolean | undefined;
565
- isSpeaking?: boolean | undefined;
566
- isMuted?: boolean | undefined;
567
- }>>;
568
- stats: {
569
- open: boolean;
570
- panels: number;
571
- };
572
- currentChartType: import("@excalidraw/element/types").ChartType;
573
- pasteDialog: {
574
- shown: false;
575
- data: null;
576
- } | {
577
- shown: true;
578
- data: import("../charts").Spreadsheet;
579
- };
580
- pendingImageElementId: string | null;
581
- showHyperlinkPopup: false | "editor" | "info";
582
- linkOpacity: number;
583
- trayModeEnabled: boolean;
584
- colorPalette?: {
585
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
586
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
587
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
588
- topPicks: {
589
- canvasBackground: [string, string, string, string, string];
590
- elementStroke: [string, string, string, string, string];
591
- elementBackground: [string, string, string, string, string];
592
- };
593
- } | undefined;
594
- allowWheelZoom?: boolean | undefined;
595
- allowPinchZoom?: boolean | undefined;
596
- pinnedScripts?: string[] | undefined;
597
- customPens?: any[] | undefined;
598
- currentStrokeOptions?: any;
599
- resetCustomPen?: any;
600
- gridColor: {
601
- Bold: string;
602
- Regular: string;
603
- };
604
- gridDirection: {
605
- horizontal: boolean;
606
- vertical: boolean;
607
- };
608
- highlightSearchResult: boolean;
609
- dynamicStyle: {
610
- [x: string]: string;
611
- };
612
- frameColor: {
613
- stroke: string;
614
- fill: string;
615
- nameColor: string;
616
- };
617
- invertBindingBehaviour: boolean;
618
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
619
- snapLines: readonly import("../snapping").SnapLine[];
620
- originSnapOffset: {
621
- x: number;
622
- y: number;
623
- } | null;
624
- objectsSnapModeEnabled: boolean;
625
- userToFollow: import("../types").UserToFollow | null;
626
- followedBy: Set<import("../types").SocketId>;
627
- isCropping: boolean;
628
- croppingElementId: string | null;
629
- searchMatches: readonly {
630
- id: string;
631
- focus: boolean;
632
- matchedLines: {
633
- offsetX: number;
634
- offsetY: number;
635
- width: number;
636
- height: number;
637
- }[];
638
- }[];
639
- };
640
- };
641
- label: string;
642
- } & {
643
- keyTest?: undefined;
644
- };
1
+ export declare const actionAddToLibrary: {
2
+ name: "addToLibrary";
3
+ trackEvent: {
4
+ category: "element";
5
+ };
6
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
7
+ captureUpdate: "EVENTUALLY";
8
+ appState: {
9
+ toast: {
10
+ message: string;
11
+ };
12
+ contextMenu: {
13
+ items: import("../components/ContextMenu").ContextMenuItems;
14
+ top: number;
15
+ left: number;
16
+ } | null;
17
+ showWelcomeScreen: boolean;
18
+ isLoading: boolean;
19
+ errorMessage: import("react").ReactNode;
20
+ activeEmbeddable: {
21
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
+ state: "active" | "hover";
23
+ } | null;
24
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
+ isBindingEnabled: boolean;
29
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
+ frameRendering: {
33
+ enabled: boolean;
34
+ name: boolean;
35
+ outline: boolean;
36
+ clip: boolean;
37
+ };
38
+ editingFrame: string | null;
39
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
42
+ activeTool: {
43
+ lastActiveTool: import("../types").ActiveTool | null;
44
+ locked: boolean;
45
+ fromSelection: boolean;
46
+ } & import("../types").ActiveTool;
47
+ penMode: boolean;
48
+ penDetected: boolean;
49
+ exportBackground: boolean;
50
+ exportEmbedScene: boolean;
51
+ exportWithDarkMode: boolean;
52
+ exportScale: number;
53
+ currentItemStrokeColor: string;
54
+ currentItemBackgroundColor: string;
55
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
56
+ currentItemStrokeWidth: number;
57
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
58
+ currentItemRoughness: number;
59
+ currentItemOpacity: number;
60
+ currentItemFontFamily: number;
61
+ currentItemFontSize: number;
62
+ currentItemTextAlign: string;
63
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
+ currentHoveredFontFamily: number | null;
66
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
+ currentItemArrowType: "round" | "sharp" | "elbow";
68
+ viewBackgroundColor: string;
69
+ scrollX: number;
70
+ scrollY: number;
71
+ cursorButton: "up" | "down";
72
+ scrolledOutside: boolean;
73
+ name: string | null;
74
+ isResizing: boolean;
75
+ isRotating: boolean;
76
+ zoom: Readonly<{
77
+ value: import("../types").NormalizedZoomValue;
78
+ }>;
79
+ openMenu: "canvas" | "shape" | null;
80
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
+ openSidebar: {
82
+ name: string;
83
+ tab?: string | undefined;
84
+ } | null;
85
+ openDialog: {
86
+ name: "help" | "imageExport" | "jsonExport";
87
+ } | {
88
+ name: "ttd";
89
+ tab: "mermaid" | "text-to-diagram";
90
+ } | {
91
+ name: "commandPalette";
92
+ } | {
93
+ name: "elementLinkSelector";
94
+ sourceElementId: string;
95
+ } | null;
96
+ defaultSidebarDockedPreference: boolean;
97
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
+ selectedElementIds: Readonly<{
99
+ [id: string]: true;
100
+ }>;
101
+ hoveredElementIds: Readonly<{
102
+ [id: string]: true;
103
+ }>;
104
+ previousSelectedElementIds: {
105
+ [id: string]: true;
106
+ };
107
+ selectedElementsAreBeingDragged: boolean;
108
+ shouldCacheIgnoreZoom: boolean;
109
+ zenModeEnabled: boolean;
110
+ theme: import("@excalidraw/element/types").Theme;
111
+ gridSize: number;
112
+ gridStep: number;
113
+ gridModeEnabled: boolean;
114
+ viewModeEnabled: boolean;
115
+ selectedGroupIds: {
116
+ [groupId: string]: boolean;
117
+ };
118
+ editingGroupId: string | null;
119
+ width: number;
120
+ height: number;
121
+ offsetTop: number;
122
+ offsetLeft: number;
123
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
124
+ collaborators: Map<import("../types").SocketId, Readonly<{
125
+ pointer?: import("../types").CollaboratorPointer | undefined;
126
+ button?: "up" | "down" | undefined;
127
+ selectedElementIds?: Readonly<{
128
+ [id: string]: true;
129
+ }> | undefined;
130
+ username?: string | null | undefined;
131
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
132
+ color?: {
133
+ background: string;
134
+ stroke: string;
135
+ } | undefined;
136
+ avatarUrl?: string | undefined;
137
+ id?: string | undefined;
138
+ socketId?: import("../types").SocketId | undefined;
139
+ isCurrentUser?: boolean | undefined;
140
+ isInCall?: boolean | undefined;
141
+ isSpeaking?: boolean | undefined;
142
+ isMuted?: boolean | undefined;
143
+ }>>;
144
+ stats: {
145
+ open: boolean;
146
+ panels: number;
147
+ };
148
+ currentChartType: import("@excalidraw/element/types").ChartType;
149
+ pasteDialog: {
150
+ shown: false;
151
+ data: null;
152
+ } | {
153
+ shown: true;
154
+ data: import("../charts").Spreadsheet;
155
+ };
156
+ pendingImageElementId: string | null;
157
+ showHyperlinkPopup: false | "info" | "editor";
158
+ linkOpacity: number;
159
+ trayModeEnabled: boolean;
160
+ colorPalette?: {
161
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
162
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
163
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
164
+ topPicks: {
165
+ canvasBackground: [string, string, string, string, string];
166
+ elementStroke: [string, string, string, string, string];
167
+ elementBackground: [string, string, string, string, string];
168
+ };
169
+ } | undefined;
170
+ allowWheelZoom?: boolean | undefined;
171
+ allowPinchZoom?: boolean | undefined;
172
+ pinnedScripts?: string[] | undefined;
173
+ customPens?: any[] | undefined;
174
+ currentStrokeOptions?: any;
175
+ resetCustomPen?: any;
176
+ gridColor: {
177
+ Bold: string;
178
+ Regular: string;
179
+ };
180
+ gridDirection: {
181
+ horizontal: boolean;
182
+ vertical: boolean;
183
+ };
184
+ highlightSearchResult: boolean;
185
+ dynamicStyle: {
186
+ [x: string]: string;
187
+ };
188
+ frameColor: {
189
+ stroke: string;
190
+ fill: string;
191
+ nameColor: string;
192
+ };
193
+ invertBindingBehaviour: boolean;
194
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
195
+ snapLines: readonly import("../snapping").SnapLine[];
196
+ originSnapOffset: {
197
+ x: number;
198
+ y: number;
199
+ } | null;
200
+ objectsSnapModeEnabled: boolean;
201
+ userToFollow: import("../types").UserToFollow | null;
202
+ followedBy: Set<import("../types").SocketId>;
203
+ isCropping: boolean;
204
+ croppingElementId: string | null;
205
+ searchMatches: Readonly<{
206
+ focusedId: string | null;
207
+ matches: readonly import("../types").SearchMatch[];
208
+ }> | null;
209
+ };
210
+ } | {
211
+ captureUpdate: "EVENTUALLY";
212
+ appState: {
213
+ errorMessage: any;
214
+ contextMenu: {
215
+ items: import("../components/ContextMenu").ContextMenuItems;
216
+ top: number;
217
+ left: number;
218
+ } | null;
219
+ showWelcomeScreen: boolean;
220
+ isLoading: boolean;
221
+ activeEmbeddable: {
222
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
223
+ state: "active" | "hover";
224
+ } | null;
225
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
226
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
227
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
228
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
+ isBindingEnabled: boolean;
230
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
231
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
232
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
233
+ frameRendering: {
234
+ enabled: boolean;
235
+ name: boolean;
236
+ outline: boolean;
237
+ clip: boolean;
238
+ };
239
+ editingFrame: string | null;
240
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
241
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
242
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
243
+ activeTool: {
244
+ lastActiveTool: import("../types").ActiveTool | null;
245
+ locked: boolean;
246
+ fromSelection: boolean;
247
+ } & import("../types").ActiveTool;
248
+ penMode: boolean;
249
+ penDetected: boolean;
250
+ exportBackground: boolean;
251
+ exportEmbedScene: boolean;
252
+ exportWithDarkMode: boolean;
253
+ exportScale: number;
254
+ currentItemStrokeColor: string;
255
+ currentItemBackgroundColor: string;
256
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
257
+ currentItemStrokeWidth: number;
258
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
259
+ currentItemRoughness: number;
260
+ currentItemOpacity: number;
261
+ currentItemFontFamily: number;
262
+ currentItemFontSize: number;
263
+ currentItemTextAlign: string;
264
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
265
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
266
+ currentHoveredFontFamily: number | null;
267
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
268
+ currentItemArrowType: "round" | "sharp" | "elbow";
269
+ viewBackgroundColor: string;
270
+ scrollX: number;
271
+ scrollY: number;
272
+ cursorButton: "up" | "down";
273
+ scrolledOutside: boolean;
274
+ name: string | null;
275
+ isResizing: boolean;
276
+ isRotating: boolean;
277
+ zoom: Readonly<{
278
+ value: import("../types").NormalizedZoomValue;
279
+ }>;
280
+ openMenu: "canvas" | "shape" | null;
281
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
282
+ openSidebar: {
283
+ name: string;
284
+ tab?: string | undefined;
285
+ } | null;
286
+ openDialog: {
287
+ name: "help" | "imageExport" | "jsonExport";
288
+ } | {
289
+ name: "ttd";
290
+ tab: "mermaid" | "text-to-diagram";
291
+ } | {
292
+ name: "commandPalette";
293
+ } | {
294
+ name: "elementLinkSelector";
295
+ sourceElementId: string;
296
+ } | null;
297
+ defaultSidebarDockedPreference: boolean;
298
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
299
+ selectedElementIds: Readonly<{
300
+ [id: string]: true;
301
+ }>;
302
+ hoveredElementIds: Readonly<{
303
+ [id: string]: true;
304
+ }>;
305
+ previousSelectedElementIds: {
306
+ [id: string]: true;
307
+ };
308
+ selectedElementsAreBeingDragged: boolean;
309
+ shouldCacheIgnoreZoom: boolean;
310
+ toast: {
311
+ message: string;
312
+ closable?: boolean | undefined;
313
+ duration?: number | undefined;
314
+ } | null;
315
+ zenModeEnabled: boolean;
316
+ theme: import("@excalidraw/element/types").Theme;
317
+ gridSize: number;
318
+ gridStep: number;
319
+ gridModeEnabled: boolean;
320
+ viewModeEnabled: boolean;
321
+ selectedGroupIds: {
322
+ [groupId: string]: boolean;
323
+ };
324
+ editingGroupId: string | null;
325
+ width: number;
326
+ height: number;
327
+ offsetTop: number;
328
+ offsetLeft: number;
329
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
330
+ collaborators: Map<import("../types").SocketId, Readonly<{
331
+ pointer?: import("../types").CollaboratorPointer | undefined;
332
+ button?: "up" | "down" | undefined;
333
+ selectedElementIds?: Readonly<{
334
+ [id: string]: true;
335
+ }> | undefined;
336
+ username?: string | null | undefined;
337
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
338
+ color?: {
339
+ background: string;
340
+ stroke: string;
341
+ } | undefined;
342
+ avatarUrl?: string | undefined;
343
+ id?: string | undefined;
344
+ socketId?: import("../types").SocketId | undefined;
345
+ isCurrentUser?: boolean | undefined;
346
+ isInCall?: boolean | undefined;
347
+ isSpeaking?: boolean | undefined;
348
+ isMuted?: boolean | undefined;
349
+ }>>;
350
+ stats: {
351
+ open: boolean;
352
+ panels: number;
353
+ };
354
+ currentChartType: import("@excalidraw/element/types").ChartType;
355
+ pasteDialog: {
356
+ shown: false;
357
+ data: null;
358
+ } | {
359
+ shown: true;
360
+ data: import("../charts").Spreadsheet;
361
+ };
362
+ pendingImageElementId: string | null;
363
+ showHyperlinkPopup: false | "info" | "editor";
364
+ linkOpacity: number;
365
+ trayModeEnabled: boolean;
366
+ colorPalette?: {
367
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
368
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
369
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
370
+ topPicks: {
371
+ canvasBackground: [string, string, string, string, string];
372
+ elementStroke: [string, string, string, string, string];
373
+ elementBackground: [string, string, string, string, string];
374
+ };
375
+ } | undefined;
376
+ allowWheelZoom?: boolean | undefined;
377
+ allowPinchZoom?: boolean | undefined;
378
+ pinnedScripts?: string[] | undefined;
379
+ customPens?: any[] | undefined;
380
+ currentStrokeOptions?: any;
381
+ resetCustomPen?: any;
382
+ gridColor: {
383
+ Bold: string;
384
+ Regular: string;
385
+ };
386
+ gridDirection: {
387
+ horizontal: boolean;
388
+ vertical: boolean;
389
+ };
390
+ highlightSearchResult: boolean;
391
+ dynamicStyle: {
392
+ [x: string]: string;
393
+ };
394
+ frameColor: {
395
+ stroke: string;
396
+ fill: string;
397
+ nameColor: string;
398
+ };
399
+ invertBindingBehaviour: boolean;
400
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
401
+ snapLines: readonly import("../snapping").SnapLine[];
402
+ originSnapOffset: {
403
+ x: number;
404
+ y: number;
405
+ } | null;
406
+ objectsSnapModeEnabled: boolean;
407
+ userToFollow: import("../types").UserToFollow | null;
408
+ followedBy: Set<import("../types").SocketId>;
409
+ isCropping: boolean;
410
+ croppingElementId: string | null;
411
+ searchMatches: Readonly<{
412
+ focusedId: string | null;
413
+ matches: readonly import("../types").SearchMatch[];
414
+ }> | null;
415
+ };
416
+ }> | {
417
+ captureUpdate: "EVENTUALLY";
418
+ appState: {
419
+ errorMessage: string;
420
+ contextMenu: {
421
+ items: import("../components/ContextMenu").ContextMenuItems;
422
+ top: number;
423
+ left: number;
424
+ } | null;
425
+ showWelcomeScreen: boolean;
426
+ isLoading: boolean;
427
+ activeEmbeddable: {
428
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
429
+ state: "active" | "hover";
430
+ } | null;
431
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
432
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
433
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
434
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
435
+ isBindingEnabled: boolean;
436
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
437
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
438
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
439
+ frameRendering: {
440
+ enabled: boolean;
441
+ name: boolean;
442
+ outline: boolean;
443
+ clip: boolean;
444
+ };
445
+ editingFrame: string | null;
446
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
447
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
448
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
449
+ activeTool: {
450
+ lastActiveTool: import("../types").ActiveTool | null;
451
+ locked: boolean;
452
+ fromSelection: boolean;
453
+ } & import("../types").ActiveTool;
454
+ penMode: boolean;
455
+ penDetected: boolean;
456
+ exportBackground: boolean;
457
+ exportEmbedScene: boolean;
458
+ exportWithDarkMode: boolean;
459
+ exportScale: number;
460
+ currentItemStrokeColor: string;
461
+ currentItemBackgroundColor: string;
462
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
463
+ currentItemStrokeWidth: number;
464
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
465
+ currentItemRoughness: number;
466
+ currentItemOpacity: number;
467
+ currentItemFontFamily: number;
468
+ currentItemFontSize: number;
469
+ currentItemTextAlign: string;
470
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
471
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
472
+ currentHoveredFontFamily: number | null;
473
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
474
+ currentItemArrowType: "round" | "sharp" | "elbow";
475
+ viewBackgroundColor: string;
476
+ scrollX: number;
477
+ scrollY: number;
478
+ cursorButton: "up" | "down";
479
+ scrolledOutside: boolean;
480
+ name: string | null;
481
+ isResizing: boolean;
482
+ isRotating: boolean;
483
+ zoom: Readonly<{
484
+ value: import("../types").NormalizedZoomValue;
485
+ }>;
486
+ openMenu: "canvas" | "shape" | null;
487
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
488
+ openSidebar: {
489
+ name: string;
490
+ tab?: string | undefined;
491
+ } | null;
492
+ openDialog: {
493
+ name: "help" | "imageExport" | "jsonExport";
494
+ } | {
495
+ name: "ttd";
496
+ tab: "mermaid" | "text-to-diagram";
497
+ } | {
498
+ name: "commandPalette";
499
+ } | {
500
+ name: "elementLinkSelector";
501
+ sourceElementId: string;
502
+ } | null;
503
+ defaultSidebarDockedPreference: boolean;
504
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
505
+ selectedElementIds: Readonly<{
506
+ [id: string]: true;
507
+ }>;
508
+ hoveredElementIds: Readonly<{
509
+ [id: string]: true;
510
+ }>;
511
+ previousSelectedElementIds: {
512
+ [id: string]: true;
513
+ };
514
+ selectedElementsAreBeingDragged: boolean;
515
+ shouldCacheIgnoreZoom: boolean;
516
+ toast: {
517
+ message: string;
518
+ closable?: boolean | undefined;
519
+ duration?: number | undefined;
520
+ } | null;
521
+ zenModeEnabled: boolean;
522
+ theme: import("@excalidraw/element/types").Theme;
523
+ gridSize: number;
524
+ gridStep: number;
525
+ gridModeEnabled: boolean;
526
+ viewModeEnabled: boolean;
527
+ selectedGroupIds: {
528
+ [groupId: string]: boolean;
529
+ };
530
+ editingGroupId: string | null;
531
+ width: number;
532
+ height: number;
533
+ offsetTop: number;
534
+ offsetLeft: number;
535
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
536
+ collaborators: Map<import("../types").SocketId, Readonly<{
537
+ pointer?: import("../types").CollaboratorPointer | undefined;
538
+ button?: "up" | "down" | undefined;
539
+ selectedElementIds?: Readonly<{
540
+ [id: string]: true;
541
+ }> | undefined;
542
+ username?: string | null | undefined;
543
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
544
+ color?: {
545
+ background: string;
546
+ stroke: string;
547
+ } | undefined;
548
+ avatarUrl?: string | undefined;
549
+ id?: string | undefined;
550
+ socketId?: import("../types").SocketId | undefined;
551
+ isCurrentUser?: boolean | undefined;
552
+ isInCall?: boolean | undefined;
553
+ isSpeaking?: boolean | undefined;
554
+ isMuted?: boolean | undefined;
555
+ }>>;
556
+ stats: {
557
+ open: boolean;
558
+ panels: number;
559
+ };
560
+ currentChartType: import("@excalidraw/element/types").ChartType;
561
+ pasteDialog: {
562
+ shown: false;
563
+ data: null;
564
+ } | {
565
+ shown: true;
566
+ data: import("../charts").Spreadsheet;
567
+ };
568
+ pendingImageElementId: string | null;
569
+ showHyperlinkPopup: false | "info" | "editor";
570
+ linkOpacity: number;
571
+ trayModeEnabled: boolean;
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
+ } | undefined;
582
+ allowWheelZoom?: boolean | undefined;
583
+ allowPinchZoom?: boolean | undefined;
584
+ pinnedScripts?: string[] | undefined;
585
+ customPens?: any[] | undefined;
586
+ currentStrokeOptions?: any;
587
+ resetCustomPen?: any;
588
+ gridColor: {
589
+ Bold: string;
590
+ Regular: string;
591
+ };
592
+ gridDirection: {
593
+ horizontal: boolean;
594
+ vertical: boolean;
595
+ };
596
+ highlightSearchResult: boolean;
597
+ dynamicStyle: {
598
+ [x: string]: string;
599
+ };
600
+ frameColor: {
601
+ stroke: string;
602
+ fill: string;
603
+ nameColor: string;
604
+ };
605
+ invertBindingBehaviour: boolean;
606
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
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: string | null;
617
+ searchMatches: Readonly<{
618
+ focusedId: string | null;
619
+ matches: readonly import("../types").SearchMatch[];
620
+ }> | null;
621
+ };
622
+ };
623
+ label: string;
624
+ } & {
625
+ keyTest?: undefined;
626
+ };