@zsviczian/excalidraw 0.18.0-21 → 0.18.0-22

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