@excalidraw/common 0.18.0-019ce4c

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 (377) hide show
  1. package/README.md +19 -0
  2. package/dist/dev/index.js +2664 -0
  3. package/dist/dev/index.js.map +7 -0
  4. package/dist/prod/index.js +4 -0
  5. package/dist/types/common/src/binary-heap.d.ts +12 -0
  6. package/dist/types/common/src/colors.d.ts +62 -0
  7. package/dist/types/common/src/constants.d.ts +349 -0
  8. package/dist/types/common/src/editorInterface.d.ts +34 -0
  9. package/dist/types/common/src/emitter.d.ts +16 -0
  10. package/dist/types/common/src/font-metadata.d.ts +48 -0
  11. package/dist/types/common/src/index.d.ts +14 -0
  12. package/dist/types/common/src/keys.d.ts +189 -0
  13. package/dist/types/common/src/points.d.ts +9 -0
  14. package/dist/types/common/src/promise-pool.d.ts +6 -0
  15. package/dist/types/common/src/queue.d.ts +9 -0
  16. package/dist/types/common/src/random.d.ts +3 -0
  17. package/dist/types/common/src/url.d.ts +7 -0
  18. package/dist/types/common/src/utility-types.d.ts +38 -0
  19. package/dist/types/common/src/utils.d.ts +273 -0
  20. package/dist/types/common/src/visualdebug.d.ts +41 -0
  21. package/dist/types/element/src/Scene.d.ts +80 -0
  22. package/dist/types/element/src/align.d.ts +8 -0
  23. package/dist/types/element/src/binding.d.ts +122 -0
  24. package/dist/types/element/src/bounds.d.ts +89 -0
  25. package/dist/types/element/src/collision.d.ts +36 -0
  26. package/dist/types/element/src/comparisons.d.ts +8 -0
  27. package/dist/types/element/src/containerCache.d.ts +11 -0
  28. package/dist/types/element/src/cropElement.d.ts +19 -0
  29. package/dist/types/element/src/delta.d.ts +228 -0
  30. package/dist/types/element/src/distance.d.ts +3 -0
  31. package/dist/types/element/src/distribute.d.ts +7 -0
  32. package/dist/types/element/src/dragElements.d.ts +33 -0
  33. package/dist/types/element/src/duplicate.d.ts +63 -0
  34. package/dist/types/element/src/elbowArrow.d.ts +17 -0
  35. package/dist/types/element/src/elementLink.d.ts +13 -0
  36. package/dist/types/element/src/embeddable.d.ts +10 -0
  37. package/dist/types/element/src/flowchart.d.ts +26 -0
  38. package/dist/types/element/src/fractionalIndex.d.ts +57 -0
  39. package/dist/types/element/src/frame.d.ts +70 -0
  40. package/dist/types/element/src/groups.d.ts +34 -0
  41. package/dist/types/element/src/heading.d.ts +15 -0
  42. package/dist/types/element/src/image.d.ts +32 -0
  43. package/dist/types/element/src/index.d.ts +55 -0
  44. package/dist/types/element/src/linearElementEditor.d.ts +114 -0
  45. package/dist/types/element/src/mutateElement.d.ts +21 -0
  46. package/dist/types/element/src/newElement.d.ts +62 -0
  47. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  48. package/dist/types/element/src/renderElement.d.ts +31 -0
  49. package/dist/types/element/src/resizeElements.d.ts +32 -0
  50. package/dist/types/element/src/resizeTest.d.ts +16 -0
  51. package/dist/types/element/src/selection.d.ts +38 -0
  52. package/dist/types/element/src/shape.d.ts +42 -0
  53. package/dist/types/element/src/showSelectedShapeActions.d.ts +3 -0
  54. package/dist/types/element/src/sizeHelpers.d.ts +35 -0
  55. package/dist/types/element/src/sortElements.d.ts +2 -0
  56. package/dist/types/element/src/store.d.ts +237 -0
  57. package/dist/types/element/src/textElement.d.ts +40 -0
  58. package/dist/types/element/src/textMeasurements.d.ts +41 -0
  59. package/dist/types/element/src/textWrapping.d.ts +13 -0
  60. package/dist/types/element/src/transformHandles.d.ts +56 -0
  61. package/dist/types/element/src/typeChecks.d.ts +56 -0
  62. package/dist/types/element/src/types.d.ts +291 -0
  63. package/dist/types/element/src/utils.d.ts +32 -0
  64. package/dist/types/element/src/zindex.d.ts +13 -0
  65. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +546 -0
  66. package/dist/types/excalidraw/actions/actionAlign.d.ts +110 -0
  67. package/dist/types/excalidraw/actions/actionBoundText.d.ts +401 -0
  68. package/dist/types/excalidraw/actions/actionCanvas.d.ts +2294 -0
  69. package/dist/types/excalidraw/actions/actionClipboard.d.ts +440 -0
  70. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +195 -0
  71. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +584 -0
  72. package/dist/types/excalidraw/actions/actionDistribute.d.ts +35 -0
  73. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +18 -0
  74. package/dist/types/excalidraw/actions/actionElementLink.d.ts +215 -0
  75. package/dist/types/excalidraw/actions/actionElementLock.d.ts +387 -0
  76. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +192 -0
  77. package/dist/types/excalidraw/actions/actionExport.d.ts +764 -0
  78. package/dist/types/excalidraw/actions/actionFinalize.d.ts +14 -0
  79. package/dist/types/excalidraw/actions/actionFlip.d.ts +35 -0
  80. package/dist/types/excalidraw/actions/actionFrame.d.ts +1267 -0
  81. package/dist/types/excalidraw/actions/actionGroup.d.ts +399 -0
  82. package/dist/types/excalidraw/actions/actionHistory.d.ts +6 -0
  83. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +716 -0
  84. package/dist/types/excalidraw/actions/actionLink.d.ts +196 -0
  85. package/dist/types/excalidraw/actions/actionMenu.d.ts +184 -0
  86. package/dist/types/excalidraw/actions/actionNavigate.d.ts +23 -0
  87. package/dist/types/excalidraw/actions/actionProperties.d.ts +443 -0
  88. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +195 -0
  89. package/dist/types/excalidraw/actions/actionStyles.d.ts +209 -0
  90. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
  91. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +198 -0
  92. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +196 -0
  93. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +187 -0
  94. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  95. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +195 -0
  96. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +196 -0
  97. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +196 -0
  98. package/dist/types/excalidraw/actions/actionZindex.d.ts +75 -0
  99. package/dist/types/excalidraw/actions/index.d.ts +28 -0
  100. package/dist/types/excalidraw/actions/manager.d.ts +21 -0
  101. package/dist/types/excalidraw/actions/register.d.ts +5 -0
  102. package/dist/types/excalidraw/actions/shortcuts.d.ts +4 -0
  103. package/dist/types/excalidraw/actions/types.d.ts +47 -0
  104. package/dist/types/excalidraw/analytics.d.ts +1 -0
  105. package/dist/types/excalidraw/animated-trail.d.ts +39 -0
  106. package/dist/types/excalidraw/animation-frame-handler.d.ts +16 -0
  107. package/dist/types/excalidraw/appState.d.ts +101 -0
  108. package/dist/types/excalidraw/charts.d.ts +27 -0
  109. package/dist/types/excalidraw/clients.d.ts +14 -0
  110. package/dist/types/excalidraw/clipboard.d.ts +129 -0
  111. package/dist/types/excalidraw/components/Actions.d.ts +47 -0
  112. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -0
  113. package/dist/types/excalidraw/components/App.d.ts +570 -0
  114. package/dist/types/excalidraw/components/Avatar.d.ts +11 -0
  115. package/dist/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -0
  116. package/dist/types/excalidraw/components/Button.d.ts +17 -0
  117. package/dist/types/excalidraw/components/ButtonIcon.d.ts +16 -0
  118. package/dist/types/excalidraw/components/ButtonSeparator.d.ts +1 -0
  119. package/dist/types/excalidraw/components/Card.d.ts +7 -0
  120. package/dist/types/excalidraw/components/CheckboxItem.d.ts +8 -0
  121. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +10 -0
  122. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +23 -0
  123. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -0
  124. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -0
  125. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +19 -0
  126. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -0
  127. package/dist/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -0
  128. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +9 -0
  129. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -0
  130. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -0
  131. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +21 -0
  132. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +19 -0
  133. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -0
  134. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +25 -0
  135. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +10 -0
  136. package/dist/types/excalidraw/components/ContextMenu.d.ts +16 -0
  137. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  138. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +7 -0
  139. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +31 -0
  140. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -0
  141. package/dist/types/excalidraw/components/Dialog.d.ts +13 -0
  142. package/dist/types/excalidraw/components/DialogActionButton.d.ts +10 -0
  143. package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +7 -0
  144. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +12 -0
  145. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  146. package/dist/types/excalidraw/components/ErrorDialog.d.ts +5 -0
  147. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +16 -0
  148. package/dist/types/excalidraw/components/EyeDropper.d.ts +28 -0
  149. package/dist/types/excalidraw/components/FilledButton.d.ts +18 -0
  150. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +9 -0
  151. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -0
  152. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +22 -0
  153. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +26 -0
  154. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +8 -0
  155. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +14 -0
  156. package/dist/types/excalidraw/components/HandButton.d.ts +10 -0
  157. package/dist/types/excalidraw/components/HelpButton.d.ts +7 -0
  158. package/dist/types/excalidraw/components/HelpDialog.d.ts +4 -0
  159. package/dist/types/excalidraw/components/HintViewer.d.ts +11 -0
  160. package/dist/types/excalidraw/components/IconPicker.d.ts +15 -0
  161. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +14 -0
  162. package/dist/types/excalidraw/components/InitializeApp.d.ts +10 -0
  163. package/dist/types/excalidraw/components/InlineIcon.d.ts +5 -0
  164. package/dist/types/excalidraw/components/Island.d.ts +10 -0
  165. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +15 -0
  166. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +10 -0
  167. package/dist/types/excalidraw/components/LayerUI.d.ts +32 -0
  168. package/dist/types/excalidraw/components/LibraryMenu.d.ts +10 -0
  169. package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -0
  170. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -0
  171. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +18 -0
  172. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +14 -0
  173. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +23 -0
  174. package/dist/types/excalidraw/components/LibraryUnit.d.ts +15 -0
  175. package/dist/types/excalidraw/components/LoadingMessage.d.ts +6 -0
  176. package/dist/types/excalidraw/components/LockButton.d.ts +10 -0
  177. package/dist/types/excalidraw/components/MagicButton.d.ts +10 -0
  178. package/dist/types/excalidraw/components/MobileMenu.d.ts +23 -0
  179. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  180. package/dist/types/excalidraw/components/Modal.d.ts +12 -0
  181. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
  182. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
  183. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
  184. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +8 -0
  185. package/dist/types/excalidraw/components/PenModeButton.d.ts +12 -0
  186. package/dist/types/excalidraw/components/Popover.d.ts +16 -0
  187. package/dist/types/excalidraw/components/ProjectName.d.ts +10 -0
  188. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +16 -0
  189. package/dist/types/excalidraw/components/PublishLibrary.d.ts +16 -0
  190. package/dist/types/excalidraw/components/QuickSearch.d.ts +9 -0
  191. package/dist/types/excalidraw/components/RadioGroup.d.ts +14 -0
  192. package/dist/types/excalidraw/components/RadioSelection.d.ts +20 -0
  193. package/dist/types/excalidraw/components/Range.d.ts +8 -0
  194. package/dist/types/excalidraw/components/SVGLayer.d.ts +7 -0
  195. package/dist/types/excalidraw/components/ScrollableList.d.ts +9 -0
  196. package/dist/types/excalidraw/components/SearchMenu.d.ts +5 -0
  197. package/dist/types/excalidraw/components/Section.d.ts +6 -0
  198. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +76 -0
  199. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -0
  200. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +9 -0
  201. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +10 -0
  202. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +7 -0
  203. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +7 -0
  204. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -0
  205. package/dist/types/excalidraw/components/Sidebar/common.d.ts +34 -0
  206. package/dist/types/excalidraw/components/Spinner.d.ts +8 -0
  207. package/dist/types/excalidraw/components/Stack.d.ts +15 -0
  208. package/dist/types/excalidraw/components/Stats/Angle.d.ts +11 -0
  209. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +11 -0
  210. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +11 -0
  211. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +11 -0
  212. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +45 -0
  213. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +11 -0
  214. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -0
  215. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -0
  216. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -0
  217. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -0
  218. package/dist/types/excalidraw/components/Stats/Position.d.ts +12 -0
  219. package/dist/types/excalidraw/components/Stats/index.d.ts +36 -0
  220. package/dist/types/excalidraw/components/Stats/utils.d.ts +19 -0
  221. package/dist/types/excalidraw/components/Switch.d.ts +9 -0
  222. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +6 -0
  223. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +30 -0
  224. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -0
  225. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -0
  226. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -0
  227. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -0
  228. package/dist/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -0
  229. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +8 -0
  230. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +9 -0
  231. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +7 -0
  232. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -0
  233. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +8 -0
  234. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +33 -0
  235. package/dist/types/excalidraw/components/TextField.d.ts +22 -0
  236. package/dist/types/excalidraw/components/Toast.d.ts +9 -0
  237. package/dist/types/excalidraw/components/ToolButton.d.ts +49 -0
  238. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  239. package/dist/types/excalidraw/components/Tooltip.d.ts +18 -0
  240. package/dist/types/excalidraw/components/Trans.d.ts +9 -0
  241. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  242. package/dist/types/excalidraw/components/UserList.d.ts +18 -0
  243. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +33 -0
  244. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -0
  245. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -0
  246. package/dist/types/excalidraw/components/canvases/index.d.ts +3 -0
  247. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +88 -0
  248. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +16 -0
  249. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
  250. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +46 -0
  251. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +8 -0
  252. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +18 -0
  253. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -0
  254. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +16 -0
  255. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
  256. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +11 -0
  257. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +6 -0
  258. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -0
  259. package/dist/types/excalidraw/components/footer/Footer.d.ts +12 -0
  260. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +8 -0
  261. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -0
  262. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -0
  263. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +10 -0
  264. package/dist/types/excalidraw/components/icons.d.ts +235 -0
  265. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +22 -0
  266. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -0
  267. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +80 -0
  268. package/dist/types/excalidraw/components/shapes.d.ts +190 -0
  269. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -0
  270. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -0
  271. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +85 -0
  272. package/dist/types/excalidraw/context/tunnels.d.ts +21 -0
  273. package/dist/types/excalidraw/context/ui-appState.d.ts +4 -0
  274. package/dist/types/excalidraw/cursor.d.ts +5 -0
  275. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +8 -0
  276. package/dist/types/excalidraw/data/blob.d.ts +49 -0
  277. package/dist/types/excalidraw/data/encode.d.ts +55 -0
  278. package/dist/types/excalidraw/data/encryption.d.ts +9 -0
  279. package/dist/types/excalidraw/data/filesystem.d.ts +21 -0
  280. package/dist/types/excalidraw/data/image.d.ts +9 -0
  281. package/dist/types/excalidraw/data/index.d.ts +22 -0
  282. package/dist/types/excalidraw/data/json.d.ts +16 -0
  283. package/dist/types/excalidraw/data/library.d.ts +112 -0
  284. package/dist/types/excalidraw/data/reconcile.d.ts +7 -0
  285. package/dist/types/excalidraw/data/resave.d.ts +5 -0
  286. package/dist/types/excalidraw/data/restore.d.ts +26 -0
  287. package/dist/types/excalidraw/data/transform.d.ts +81 -0
  288. package/dist/types/excalidraw/data/types.d.ts +48 -0
  289. package/dist/types/excalidraw/deburr.d.ts +1 -0
  290. package/dist/types/excalidraw/editor-jotai.d.ts +56 -0
  291. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  292. package/dist/types/excalidraw/errors.d.ts +29 -0
  293. package/dist/types/excalidraw/fonts/Cascadia/index.d.ts +2 -0
  294. package/dist/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -0
  295. package/dist/types/excalidraw/fonts/Emoji/index.d.ts +2 -0
  296. package/dist/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +25 -0
  297. package/dist/types/excalidraw/fonts/Excalifont/index.d.ts +2 -0
  298. package/dist/types/excalidraw/fonts/Fonts.d.ts +79 -0
  299. package/dist/types/excalidraw/fonts/Helvetica/index.d.ts +2 -0
  300. package/dist/types/excalidraw/fonts/Liberation/index.d.ts +2 -0
  301. package/dist/types/excalidraw/fonts/Lilita/index.d.ts +2 -0
  302. package/dist/types/excalidraw/fonts/Nunito/index.d.ts +2 -0
  303. package/dist/types/excalidraw/fonts/Virgil/index.d.ts +2 -0
  304. package/dist/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -0
  305. package/dist/types/excalidraw/fonts/index.d.ts +1 -0
  306. package/dist/types/excalidraw/gesture.d.ts +6 -0
  307. package/dist/types/excalidraw/history.d.ts +48 -0
  308. package/dist/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -0
  309. package/dist/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -0
  310. package/dist/types/excalidraw/hooks/useCreatePortalContainer.d.ts +4 -0
  311. package/dist/types/excalidraw/hooks/useEmitter.d.ts +2 -0
  312. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -0
  313. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +22 -0
  314. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +2 -0
  315. package/dist/types/excalidraw/hooks/useStable.d.ts +1 -0
  316. package/dist/types/excalidraw/hooks/useStableCallback.d.ts +4 -0
  317. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  318. package/dist/types/excalidraw/hooks/useTransition.d.ts +2 -0
  319. package/dist/types/excalidraw/i18n.d.ts +24 -0
  320. package/dist/types/excalidraw/index.d.ts +46 -0
  321. package/dist/types/excalidraw/laser-trails.d.ts +20 -0
  322. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  323. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  324. package/dist/types/excalidraw/mermaid.d.ts +2 -0
  325. package/dist/types/excalidraw/polyfill.d.ts +2 -0
  326. package/dist/types/excalidraw/reactUtils.d.ts +14 -0
  327. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  328. package/dist/types/excalidraw/renderer/helpers.d.ts +14 -0
  329. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +12 -0
  330. package/dist/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -0
  331. package/dist/types/excalidraw/renderer/renderSnaps.d.ts +2 -0
  332. package/dist/types/excalidraw/renderer/roundRect.d.ts +11 -0
  333. package/dist/types/excalidraw/renderer/staticScene.d.ts +14 -0
  334. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +5 -0
  335. package/dist/types/excalidraw/scene/Renderer.d.ts +27 -0
  336. package/dist/types/excalidraw/scene/export.d.ts +36 -0
  337. package/dist/types/excalidraw/scene/index.d.ts +4 -0
  338. package/dist/types/excalidraw/scene/normalize.d.ts +4 -0
  339. package/dist/types/excalidraw/scene/scroll.d.ts +23 -0
  340. package/dist/types/excalidraw/scene/scrollbars.d.ts +11 -0
  341. package/dist/types/excalidraw/scene/types.d.ts +132 -0
  342. package/dist/types/excalidraw/scene/zoom.d.ts +12 -0
  343. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  344. package/dist/types/excalidraw/snapping.d.ts +111 -0
  345. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -0
  346. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -0
  347. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -0
  348. package/dist/types/excalidraw/subset/subset-main.d.ts +12 -0
  349. package/dist/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -0
  350. package/dist/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -0
  351. package/dist/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -0
  352. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -0
  353. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -0
  354. package/dist/types/excalidraw/types.d.ts +719 -0
  355. package/dist/types/excalidraw/workers.d.ts +36 -0
  356. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +24 -0
  357. package/dist/types/math/src/angle.d.ts +19 -0
  358. package/dist/types/math/src/constants.d.ts +3 -0
  359. package/dist/types/math/src/curve.d.ts +74 -0
  360. package/dist/types/math/src/ellipse.d.ts +44 -0
  361. package/dist/types/math/src/index.d.ts +13 -0
  362. package/dist/types/math/src/line.d.ts +17 -0
  363. package/dist/types/math/src/point.d.ts +122 -0
  364. package/dist/types/math/src/polygon.d.ts +6 -0
  365. package/dist/types/math/src/range.d.ts +44 -0
  366. package/dist/types/math/src/rectangle.d.ts +5 -0
  367. package/dist/types/math/src/segment.d.ts +40 -0
  368. package/dist/types/math/src/triangle.d.ts +11 -0
  369. package/dist/types/math/src/types.d.ts +106 -0
  370. package/dist/types/math/src/utils.d.ts +7 -0
  371. package/dist/types/math/src/vector.d.ts +94 -0
  372. package/dist/types/utils/src/bbox.d.ts +9 -0
  373. package/dist/types/utils/src/export.d.ts +35 -0
  374. package/dist/types/utils/src/index.d.ts +4 -0
  375. package/dist/types/utils/src/shape.d.ts +58 -0
  376. package/dist/types/utils/src/withinBounds.d.ts +19 -0
  377. package/package.json +59 -0
@@ -0,0 +1,443 @@
1
+ /// <reference types="react" />
2
+ import { LinearElementEditor } from "@excalidraw/element";
3
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
4
+ import type { AppClassProperties, AppState, Primitive } from "../types";
5
+ export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
+ export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
7
+ export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
8
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
9
+ };
10
+ export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
11
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
12
+ };
13
+ export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
14
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
15
+ };
16
+ export declare const actionChangeStrokeWidth: import("./types").Action<number> & {
17
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
18
+ };
19
+ export declare const actionChangeSloppiness: import("./types").Action<number> & {
20
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
21
+ };
22
+ export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
23
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
24
+ };
25
+ export declare const actionChangeOpacity: import("./types").Action<number> & {
26
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
27
+ };
28
+ export declare const actionChangeFontSize: import("./types").Action<number> & {
29
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
30
+ };
31
+ export declare const actionDecreaseFontSize: {
32
+ name: "decreaseFontSize";
33
+ label: string;
34
+ icon: import("react/jsx-runtime").JSX.Element;
35
+ trackEvent: false;
36
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
37
+ elements: ExcalidrawElement[];
38
+ appState: {
39
+ currentItemFontSize: number;
40
+ contextMenu: {
41
+ items: import("../components/ContextMenu").ContextMenuItems;
42
+ top: number;
43
+ left: number;
44
+ } | null;
45
+ showWelcomeScreen: boolean;
46
+ isLoading: boolean;
47
+ errorMessage: import("react").ReactNode;
48
+ activeEmbeddable: {
49
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
50
+ state: "active" | "hover";
51
+ } | null;
52
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
53
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
54
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
55
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
56
+ isBindingEnabled: boolean;
57
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
58
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
59
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
60
+ frameRendering: {
61
+ enabled: boolean;
62
+ name: boolean;
63
+ outline: boolean;
64
+ clip: boolean;
65
+ };
66
+ editingFrame: string | null;
67
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
68
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
69
+ activeTool: {
70
+ lastActiveTool: import("../types").ActiveTool | null;
71
+ locked: boolean;
72
+ fromSelection: boolean;
73
+ } & import("../types").ActiveTool;
74
+ preferredSelectionTool: {
75
+ type: "selection" | "lasso";
76
+ initialized: boolean;
77
+ };
78
+ penMode: boolean;
79
+ penDetected: boolean;
80
+ exportBackground: boolean;
81
+ exportEmbedScene: boolean;
82
+ exportWithDarkMode: boolean;
83
+ exportScale: number;
84
+ currentItemStrokeColor: string;
85
+ currentItemBackgroundColor: string;
86
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
87
+ currentItemStrokeWidth: number;
88
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
89
+ currentItemRoughness: number;
90
+ currentItemOpacity: number;
91
+ currentItemFontFamily: number;
92
+ currentItemTextAlign: string;
93
+ currentItemStartArrowhead: Arrowhead | null;
94
+ currentItemEndArrowhead: Arrowhead | null;
95
+ currentHoveredFontFamily: number | null;
96
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
97
+ currentItemArrowType: "round" | "sharp" | "elbow";
98
+ viewBackgroundColor: string;
99
+ scrollX: number;
100
+ scrollY: number;
101
+ cursorButton: "up" | "down";
102
+ scrolledOutside: boolean;
103
+ name: string | null;
104
+ isResizing: boolean;
105
+ isRotating: boolean;
106
+ zoom: Readonly<{
107
+ value: import("../types").NormalizedZoomValue;
108
+ }>;
109
+ openMenu: "canvas" | null;
110
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
111
+ openSidebar: {
112
+ name: string;
113
+ tab?: string | undefined;
114
+ } | null;
115
+ openDialog: {
116
+ name: "imageExport" | "help" | "jsonExport";
117
+ } | {
118
+ name: "ttd";
119
+ tab: "mermaid" | "text-to-diagram";
120
+ } | {
121
+ name: "commandPalette";
122
+ } | {
123
+ name: "settings";
124
+ } | {
125
+ name: "elementLinkSelector";
126
+ sourceElementId: string;
127
+ } | null;
128
+ defaultSidebarDockedPreference: boolean;
129
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
130
+ selectedElementIds: Readonly<{
131
+ [id: string]: true;
132
+ }>;
133
+ hoveredElementIds: Readonly<{
134
+ [id: string]: true;
135
+ }>;
136
+ previousSelectedElementIds: {
137
+ [id: string]: true;
138
+ };
139
+ selectedElementsAreBeingDragged: boolean;
140
+ shouldCacheIgnoreZoom: boolean;
141
+ toast: {
142
+ message: string;
143
+ closable?: boolean | undefined;
144
+ duration?: number | undefined;
145
+ } | null;
146
+ zenModeEnabled: boolean;
147
+ theme: import("@excalidraw/element/types").Theme;
148
+ gridSize: number;
149
+ gridStep: number;
150
+ gridModeEnabled: boolean;
151
+ viewModeEnabled: boolean;
152
+ selectedGroupIds: {
153
+ [groupId: string]: boolean;
154
+ };
155
+ editingGroupId: string | null;
156
+ width: number;
157
+ height: number;
158
+ offsetTop: number;
159
+ offsetLeft: number;
160
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
161
+ collaborators: Map<import("../types").SocketId, Readonly<{
162
+ pointer?: import("../types").CollaboratorPointer | undefined;
163
+ button?: "up" | "down" | undefined;
164
+ selectedElementIds?: Readonly<{
165
+ [id: string]: true;
166
+ }> | undefined;
167
+ username?: string | null | undefined;
168
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
169
+ color?: {
170
+ background: string;
171
+ stroke: string;
172
+ } | undefined;
173
+ avatarUrl?: string | undefined;
174
+ id?: string | undefined;
175
+ socketId?: import("../types").SocketId | undefined;
176
+ isCurrentUser?: boolean | undefined;
177
+ isInCall?: boolean | undefined;
178
+ isSpeaking?: boolean | undefined;
179
+ isMuted?: boolean | undefined;
180
+ }>>;
181
+ stats: {
182
+ open: boolean;
183
+ panels: number;
184
+ };
185
+ currentChartType: import("@excalidraw/element/types").ChartType;
186
+ pasteDialog: {
187
+ shown: false;
188
+ data: null;
189
+ } | {
190
+ shown: true;
191
+ data: import("../charts").Spreadsheet;
192
+ };
193
+ showHyperlinkPopup: false | "info" | "editor";
194
+ selectedLinearElement: 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
+ activeLockedId: string | null;
210
+ lockedMultiSelections: {
211
+ [groupId: string]: true;
212
+ };
213
+ bindMode: import("@excalidraw/element/types").BindMode;
214
+ };
215
+ captureUpdate: "IMMEDIATELY";
216
+ };
217
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
218
+ } & {
219
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
220
+ };
221
+ export declare const actionIncreaseFontSize: {
222
+ name: "increaseFontSize";
223
+ label: string;
224
+ icon: import("react/jsx-runtime").JSX.Element;
225
+ trackEvent: false;
226
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
227
+ elements: ExcalidrawElement[];
228
+ appState: {
229
+ currentItemFontSize: number;
230
+ contextMenu: {
231
+ items: import("../components/ContextMenu").ContextMenuItems;
232
+ top: number;
233
+ left: number;
234
+ } | null;
235
+ showWelcomeScreen: boolean;
236
+ isLoading: boolean;
237
+ errorMessage: import("react").ReactNode;
238
+ activeEmbeddable: {
239
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
240
+ state: "active" | "hover";
241
+ } | null;
242
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
243
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
244
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
245
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
246
+ isBindingEnabled: boolean;
247
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
248
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
249
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
250
+ frameRendering: {
251
+ enabled: boolean;
252
+ name: boolean;
253
+ outline: boolean;
254
+ clip: boolean;
255
+ };
256
+ editingFrame: string | null;
257
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
258
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
259
+ activeTool: {
260
+ lastActiveTool: import("../types").ActiveTool | null;
261
+ locked: boolean;
262
+ fromSelection: boolean;
263
+ } & import("../types").ActiveTool;
264
+ preferredSelectionTool: {
265
+ type: "selection" | "lasso";
266
+ initialized: boolean;
267
+ };
268
+ penMode: boolean;
269
+ penDetected: boolean;
270
+ exportBackground: boolean;
271
+ exportEmbedScene: boolean;
272
+ exportWithDarkMode: boolean;
273
+ exportScale: number;
274
+ currentItemStrokeColor: string;
275
+ currentItemBackgroundColor: string;
276
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
277
+ currentItemStrokeWidth: number;
278
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
279
+ currentItemRoughness: number;
280
+ currentItemOpacity: number;
281
+ currentItemFontFamily: number;
282
+ currentItemTextAlign: string;
283
+ currentItemStartArrowhead: Arrowhead | null;
284
+ currentItemEndArrowhead: Arrowhead | null;
285
+ currentHoveredFontFamily: number | null;
286
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
287
+ currentItemArrowType: "round" | "sharp" | "elbow";
288
+ viewBackgroundColor: string;
289
+ scrollX: number;
290
+ scrollY: number;
291
+ cursorButton: "up" | "down";
292
+ scrolledOutside: boolean;
293
+ name: string | null;
294
+ isResizing: boolean;
295
+ isRotating: boolean;
296
+ zoom: Readonly<{
297
+ value: import("../types").NormalizedZoomValue;
298
+ }>;
299
+ openMenu: "canvas" | null;
300
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
301
+ openSidebar: {
302
+ name: string;
303
+ tab?: string | undefined;
304
+ } | null;
305
+ openDialog: {
306
+ name: "imageExport" | "help" | "jsonExport";
307
+ } | {
308
+ name: "ttd";
309
+ tab: "mermaid" | "text-to-diagram";
310
+ } | {
311
+ name: "commandPalette";
312
+ } | {
313
+ name: "settings";
314
+ } | {
315
+ name: "elementLinkSelector";
316
+ sourceElementId: string;
317
+ } | null;
318
+ defaultSidebarDockedPreference: boolean;
319
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
320
+ selectedElementIds: Readonly<{
321
+ [id: string]: true;
322
+ }>;
323
+ hoveredElementIds: Readonly<{
324
+ [id: string]: true;
325
+ }>;
326
+ previousSelectedElementIds: {
327
+ [id: string]: true;
328
+ };
329
+ selectedElementsAreBeingDragged: boolean;
330
+ shouldCacheIgnoreZoom: boolean;
331
+ toast: {
332
+ message: string;
333
+ closable?: boolean | undefined;
334
+ duration?: number | undefined;
335
+ } | null;
336
+ zenModeEnabled: boolean;
337
+ theme: import("@excalidraw/element/types").Theme;
338
+ gridSize: number;
339
+ gridStep: number;
340
+ gridModeEnabled: boolean;
341
+ viewModeEnabled: boolean;
342
+ selectedGroupIds: {
343
+ [groupId: string]: boolean;
344
+ };
345
+ editingGroupId: string | null;
346
+ width: number;
347
+ height: number;
348
+ offsetTop: number;
349
+ offsetLeft: number;
350
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
351
+ collaborators: Map<import("../types").SocketId, Readonly<{
352
+ pointer?: import("../types").CollaboratorPointer | undefined;
353
+ button?: "up" | "down" | undefined;
354
+ selectedElementIds?: Readonly<{
355
+ [id: string]: true;
356
+ }> | undefined;
357
+ username?: string | null | undefined;
358
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
359
+ color?: {
360
+ background: string;
361
+ stroke: string;
362
+ } | undefined;
363
+ avatarUrl?: string | undefined;
364
+ id?: string | undefined;
365
+ socketId?: import("../types").SocketId | undefined;
366
+ isCurrentUser?: boolean | undefined;
367
+ isInCall?: boolean | undefined;
368
+ isSpeaking?: boolean | undefined;
369
+ isMuted?: boolean | undefined;
370
+ }>>;
371
+ stats: {
372
+ open: boolean;
373
+ panels: number;
374
+ };
375
+ currentChartType: import("@excalidraw/element/types").ChartType;
376
+ pasteDialog: {
377
+ shown: false;
378
+ data: null;
379
+ } | {
380
+ shown: true;
381
+ data: import("../charts").Spreadsheet;
382
+ };
383
+ showHyperlinkPopup: false | "info" | "editor";
384
+ selectedLinearElement: LinearElementEditor | null;
385
+ snapLines: readonly import("../snapping").SnapLine[];
386
+ originSnapOffset: {
387
+ x: number;
388
+ y: number;
389
+ } | null;
390
+ objectsSnapModeEnabled: boolean;
391
+ userToFollow: import("../types").UserToFollow | null;
392
+ followedBy: Set<import("../types").SocketId>;
393
+ isCropping: boolean;
394
+ croppingElementId: string | null;
395
+ searchMatches: Readonly<{
396
+ focusedId: string | null;
397
+ matches: readonly import("../types").SearchMatch[];
398
+ }> | null;
399
+ activeLockedId: string | null;
400
+ lockedMultiSelections: {
401
+ [groupId: string]: true;
402
+ };
403
+ bindMode: import("@excalidraw/element/types").BindMode;
404
+ };
405
+ captureUpdate: "IMMEDIATELY";
406
+ };
407
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
408
+ } & {
409
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
410
+ };
411
+ export declare const actionChangeFontFamily: import("./types").Action<{
412
+ currentItemFontFamily: any;
413
+ currentHoveredFontFamily: any;
414
+ }> & {
415
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
416
+ };
417
+ export declare const actionChangeTextAlign: import("./types").Action<string> & {
418
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
419
+ };
420
+ export declare const actionChangeVerticalAlign: import("./types").Action<string> & {
421
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
422
+ };
423
+ export declare const actionChangeRoundness: import("./types").Action<"round" | "sharp"> & {
424
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
425
+ };
426
+ export declare const actionChangeArrowhead: import("./types").Action<{
427
+ position: "start" | "end";
428
+ type: Arrowhead;
429
+ }> & {
430
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
431
+ };
432
+ export declare const actionChangeArrowProperties: {
433
+ name: "changeArrowProperties";
434
+ label: string;
435
+ trackEvent: false;
436
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => false;
437
+ PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
438
+ } & {
439
+ keyTest?: undefined;
440
+ };
441
+ export declare const actionChangeArrowType: import("./types").Action<"round" | "sharp" | "elbow"> & {
442
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
443
+ };
@@ -0,0 +1,195 @@
1
+ /// <reference types="react" />
2
+ import { LinearElementEditor } from "@excalidraw/element";
3
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
4
+ export declare const actionSelectAll: {
5
+ name: "selectAll";
6
+ label: string;
7
+ icon: import("react/jsx-runtime").JSX.Element;
8
+ trackEvent: {
9
+ category: "canvas";
10
+ };
11
+ viewMode: false;
12
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => false | {
13
+ appState: {
14
+ selectedLinearElement: LinearElementEditor | null;
15
+ editingGroupId: string | null;
16
+ selectedElementIds: Readonly<{
17
+ [id: string]: true;
18
+ }>;
19
+ selectedGroupIds: {
20
+ [groupId: string]: boolean;
21
+ };
22
+ contextMenu: {
23
+ items: import("../components/ContextMenu").ContextMenuItems;
24
+ top: number;
25
+ left: number;
26
+ } | null;
27
+ showWelcomeScreen: boolean;
28
+ isLoading: boolean;
29
+ errorMessage: import("react").ReactNode;
30
+ activeEmbeddable: {
31
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
32
+ state: "active" | "hover";
33
+ } | null;
34
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
35
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
36
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
37
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
38
+ isBindingEnabled: boolean;
39
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
40
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
41
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
42
+ frameRendering: {
43
+ enabled: boolean;
44
+ name: boolean;
45
+ outline: boolean;
46
+ clip: boolean;
47
+ };
48
+ editingFrame: string | null;
49
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
50
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
51
+ activeTool: {
52
+ lastActiveTool: import("../types").ActiveTool | null;
53
+ locked: boolean;
54
+ fromSelection: boolean;
55
+ } & import("../types").ActiveTool;
56
+ preferredSelectionTool: {
57
+ type: "selection" | "lasso";
58
+ initialized: boolean;
59
+ };
60
+ penMode: boolean;
61
+ penDetected: boolean;
62
+ exportBackground: boolean;
63
+ exportEmbedScene: boolean;
64
+ exportWithDarkMode: boolean;
65
+ exportScale: number;
66
+ currentItemStrokeColor: string;
67
+ currentItemBackgroundColor: string;
68
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
69
+ currentItemStrokeWidth: number;
70
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
71
+ currentItemRoughness: number;
72
+ currentItemOpacity: number;
73
+ currentItemFontFamily: number;
74
+ currentItemFontSize: number;
75
+ currentItemTextAlign: string;
76
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
77
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
78
+ currentHoveredFontFamily: number | null;
79
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
80
+ currentItemArrowType: "round" | "sharp" | "elbow";
81
+ viewBackgroundColor: string;
82
+ scrollX: number;
83
+ scrollY: number;
84
+ cursorButton: "up" | "down";
85
+ scrolledOutside: boolean;
86
+ name: string | null;
87
+ isResizing: boolean;
88
+ isRotating: boolean;
89
+ zoom: Readonly<{
90
+ value: import("../types").NormalizedZoomValue;
91
+ }>;
92
+ openMenu: "canvas" | null;
93
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
94
+ openSidebar: {
95
+ name: string;
96
+ tab?: string | undefined;
97
+ } | null;
98
+ openDialog: {
99
+ name: "imageExport" | "help" | "jsonExport";
100
+ } | {
101
+ name: "ttd";
102
+ tab: "mermaid" | "text-to-diagram";
103
+ } | {
104
+ name: "commandPalette";
105
+ } | {
106
+ name: "settings";
107
+ } | {
108
+ name: "elementLinkSelector";
109
+ sourceElementId: string;
110
+ } | null;
111
+ defaultSidebarDockedPreference: boolean;
112
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
113
+ hoveredElementIds: Readonly<{
114
+ [id: string]: true;
115
+ }>;
116
+ previousSelectedElementIds: {
117
+ [id: string]: true;
118
+ };
119
+ selectedElementsAreBeingDragged: boolean;
120
+ shouldCacheIgnoreZoom: boolean;
121
+ toast: {
122
+ message: string;
123
+ closable?: boolean | undefined;
124
+ duration?: number | undefined;
125
+ } | null;
126
+ zenModeEnabled: boolean;
127
+ theme: import("@excalidraw/element/types").Theme;
128
+ gridSize: number;
129
+ gridStep: number;
130
+ gridModeEnabled: boolean;
131
+ viewModeEnabled: boolean;
132
+ width: number;
133
+ height: number;
134
+ offsetTop: number;
135
+ offsetLeft: number;
136
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
137
+ collaborators: Map<import("../types").SocketId, Readonly<{
138
+ pointer?: import("../types").CollaboratorPointer | undefined;
139
+ button?: "up" | "down" | undefined;
140
+ selectedElementIds?: Readonly<{
141
+ [id: string]: true;
142
+ }> | undefined;
143
+ username?: string | null | undefined;
144
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
145
+ color?: {
146
+ background: string;
147
+ stroke: string;
148
+ } | undefined;
149
+ avatarUrl?: string | undefined;
150
+ id?: string | undefined;
151
+ socketId?: import("../types").SocketId | undefined;
152
+ isCurrentUser?: boolean | undefined;
153
+ isInCall?: boolean | undefined;
154
+ isSpeaking?: boolean | undefined;
155
+ isMuted?: boolean | undefined;
156
+ }>>;
157
+ stats: {
158
+ open: boolean;
159
+ panels: number;
160
+ };
161
+ currentChartType: import("@excalidraw/element/types").ChartType;
162
+ pasteDialog: {
163
+ shown: false;
164
+ data: null;
165
+ } | {
166
+ shown: true;
167
+ data: import("../charts").Spreadsheet;
168
+ };
169
+ showHyperlinkPopup: false | "info" | "editor";
170
+ snapLines: readonly import("../snapping").SnapLine[];
171
+ originSnapOffset: {
172
+ x: number;
173
+ y: number;
174
+ } | null;
175
+ objectsSnapModeEnabled: boolean;
176
+ userToFollow: import("../types").UserToFollow | null;
177
+ followedBy: Set<import("../types").SocketId>;
178
+ isCropping: boolean;
179
+ croppingElementId: string | null;
180
+ searchMatches: Readonly<{
181
+ focusedId: string | null;
182
+ matches: readonly import("../types").SearchMatch[];
183
+ }> | null;
184
+ activeLockedId: string | null;
185
+ lockedMultiSelections: {
186
+ [groupId: string]: true;
187
+ };
188
+ bindMode: import("@excalidraw/element/types").BindMode;
189
+ };
190
+ captureUpdate: "IMMEDIATELY";
191
+ };
192
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
193
+ } & {
194
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
195
+ };