@nous-excalidraw/element 0.18.0-cy.1

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 (409) hide show
  1. package/README.md +19 -0
  2. package/dist/dev/index.js +22308 -0
  3. package/dist/dev/index.js.map +7 -0
  4. package/dist/prod/index.js +28 -0
  5. package/dist/types/common/debug.d.ts +21 -0
  6. package/dist/types/common/src/appEventBus.d.ts +27 -0
  7. package/dist/types/common/src/binary-heap.d.ts +12 -0
  8. package/dist/types/common/src/bounds.d.ts +10 -0
  9. package/dist/types/common/src/colors.d.ts +82 -0
  10. package/dist/types/common/src/constants.d.ts +357 -0
  11. package/dist/types/common/src/editorInterface.d.ts +34 -0
  12. package/dist/types/common/src/emitter.d.ts +16 -0
  13. package/dist/types/common/src/font-metadata.d.ts +46 -0
  14. package/dist/types/common/src/index.d.ts +17 -0
  15. package/dist/types/common/src/keys.d.ts +189 -0
  16. package/dist/types/common/src/points.d.ts +9 -0
  17. package/dist/types/common/src/promise-pool.d.ts +6 -0
  18. package/dist/types/common/src/queue.d.ts +9 -0
  19. package/dist/types/common/src/random.d.ts +3 -0
  20. package/dist/types/common/src/url.d.ts +7 -0
  21. package/dist/types/common/src/utility-types.d.ts +37 -0
  22. package/dist/types/common/src/utils.d.ts +279 -0
  23. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  24. package/dist/types/element/src/Scene.d.ts +82 -0
  25. package/dist/types/element/src/align.d.ts +8 -0
  26. package/dist/types/element/src/arrowheads.d.ts +3 -0
  27. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  28. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  29. package/dist/types/element/src/binding.d.ts +129 -0
  30. package/dist/types/element/src/bounds.d.ts +83 -0
  31. package/dist/types/element/src/collision.d.ts +37 -0
  32. package/dist/types/element/src/comparisons.d.ts +8 -0
  33. package/dist/types/element/src/containerCache.d.ts +11 -0
  34. package/dist/types/element/src/cropElement.d.ts +19 -0
  35. package/dist/types/element/src/delta.d.ts +228 -0
  36. package/dist/types/element/src/distance.d.ts +3 -0
  37. package/dist/types/element/src/distribute.d.ts +8 -0
  38. package/dist/types/element/src/dragElements.d.ts +33 -0
  39. package/dist/types/element/src/duplicate.d.ts +63 -0
  40. package/dist/types/element/src/elbowArrow.d.ts +19 -0
  41. package/dist/types/element/src/elementLink.d.ts +13 -0
  42. package/dist/types/element/src/embeddable.d.ts +10 -0
  43. package/dist/types/element/src/flowchart.d.ts +26 -0
  44. package/dist/types/element/src/fractionalIndex.d.ts +57 -0
  45. package/dist/types/element/src/frame.d.ts +74 -0
  46. package/dist/types/element/src/groups.d.ts +34 -0
  47. package/dist/types/element/src/heading.d.ts +16 -0
  48. package/dist/types/element/src/image.d.ts +22 -0
  49. package/dist/types/element/src/index.d.ts +59 -0
  50. package/dist/types/element/src/linearElementEditor.d.ts +118 -0
  51. package/dist/types/element/src/mutateElement.d.ts +25 -0
  52. package/dist/types/element/src/newElement.d.ts +62 -0
  53. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  54. package/dist/types/element/src/renderElement.d.ts +25 -0
  55. package/dist/types/element/src/resizeElements.d.ts +32 -0
  56. package/dist/types/element/src/resizeTest.d.ts +16 -0
  57. package/dist/types/element/src/selection.d.ts +38 -0
  58. package/dist/types/element/src/shape.d.ts +43 -0
  59. package/dist/types/element/src/showSelectedShapeActions.d.ts +3 -0
  60. package/dist/types/element/src/sizeHelpers.d.ts +35 -0
  61. package/dist/types/element/src/sortElements.d.ts +2 -0
  62. package/dist/types/element/src/store.d.ts +237 -0
  63. package/dist/types/element/src/textElement.d.ts +40 -0
  64. package/dist/types/element/src/textMeasurements.d.ts +39 -0
  65. package/dist/types/element/src/textWrapping.d.ts +39 -0
  66. package/dist/types/element/src/transform.d.ts +81 -0
  67. package/dist/types/element/src/transformHandles.d.ts +36 -0
  68. package/dist/types/element/src/typeChecks.d.ts +54 -0
  69. package/dist/types/element/src/types.d.ts +294 -0
  70. package/dist/types/element/src/utils.d.ts +36 -0
  71. package/dist/types/element/src/visualdebug.d.ts +59 -0
  72. package/dist/types/element/src/zindex.d.ts +13 -0
  73. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +488 -0
  74. package/dist/types/excalidraw/actions/actionAlign.d.ts +109 -0
  75. package/dist/types/excalidraw/actions/actionBoundText.d.ts +362 -0
  76. package/dist/types/excalidraw/actions/actionCanvas.d.ts +2071 -0
  77. package/dist/types/excalidraw/actions/actionClipboard.d.ts +401 -0
  78. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +175 -0
  79. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +524 -0
  80. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  81. package/dist/types/excalidraw/actions/actionDistribute.d.ts +34 -0
  82. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +17 -0
  83. package/dist/types/excalidraw/actions/actionElementLink.d.ts +191 -0
  84. package/dist/types/excalidraw/actions/actionElementLock.d.ts +348 -0
  85. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +172 -0
  86. package/dist/types/excalidraw/actions/actionExport.d.ts +409 -0
  87. package/dist/types/excalidraw/actions/actionFinalize.d.ts +13 -0
  88. package/dist/types/excalidraw/actions/actionFlip.d.ts +34 -0
  89. package/dist/types/excalidraw/actions/actionFrame.d.ts +1154 -0
  90. package/dist/types/excalidraw/actions/actionGroup.d.ts +352 -0
  91. package/dist/types/excalidraw/actions/actionHistory.d.ts +6 -0
  92. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +662 -0
  93. package/dist/types/excalidraw/actions/actionLink.d.ts +176 -0
  94. package/dist/types/excalidraw/actions/actionMenu.d.ts +160 -0
  95. package/dist/types/excalidraw/actions/actionNavigate.d.ts +20 -0
  96. package/dist/types/excalidraw/actions/actionProperties.d.ts +404 -0
  97. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +171 -0
  98. package/dist/types/excalidraw/actions/actionStyles.d.ts +190 -0
  99. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
  100. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  101. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +178 -0
  102. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  103. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +176 -0
  104. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +163 -0
  105. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  106. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +175 -0
  107. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +176 -0
  108. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +176 -0
  109. package/dist/types/excalidraw/actions/actionZindex.d.ts +74 -0
  110. package/dist/types/excalidraw/actions/index.d.ts +31 -0
  111. package/dist/types/excalidraw/actions/manager.d.ts +21 -0
  112. package/dist/types/excalidraw/actions/register.d.ts +5 -0
  113. package/dist/types/excalidraw/actions/shortcuts.d.ts +4 -0
  114. package/dist/types/excalidraw/actions/types.d.ts +47 -0
  115. package/dist/types/excalidraw/analytics.d.ts +1 -0
  116. package/dist/types/excalidraw/animated-trail.d.ts +39 -0
  117. package/dist/types/excalidraw/animation-frame-handler.d.ts +16 -0
  118. package/dist/types/excalidraw/appState.d.ts +104 -0
  119. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  120. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  121. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  122. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  123. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  124. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  125. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  126. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  127. package/dist/types/excalidraw/clients.d.ts +14 -0
  128. package/dist/types/excalidraw/clipboard.d.ts +104 -0
  129. package/dist/types/excalidraw/components/Actions.d.ts +47 -0
  130. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -0
  131. package/dist/types/excalidraw/components/App.d.ts +602 -0
  132. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  133. package/dist/types/excalidraw/components/Avatar.d.ts +11 -0
  134. package/dist/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -0
  135. package/dist/types/excalidraw/components/Button.d.ts +17 -0
  136. package/dist/types/excalidraw/components/ButtonIcon.d.ts +16 -0
  137. package/dist/types/excalidraw/components/ButtonSeparator.d.ts +1 -0
  138. package/dist/types/excalidraw/components/Card.d.ts +5 -0
  139. package/dist/types/excalidraw/components/CheckboxItem.d.ts +8 -0
  140. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +8 -0
  141. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +22 -0
  142. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -0
  143. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -0
  144. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +19 -0
  145. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -0
  146. package/dist/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -0
  147. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +9 -0
  148. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -0
  149. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +20 -0
  150. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -0
  151. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +19 -0
  152. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -0
  153. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +24 -0
  154. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +10 -0
  155. package/dist/types/excalidraw/components/ContextMenu.d.ts +16 -0
  156. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  157. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +7 -0
  158. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +27 -0
  159. package/dist/types/excalidraw/components/Dialog.d.ts +13 -0
  160. package/dist/types/excalidraw/components/DialogActionButton.d.ts +10 -0
  161. package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +7 -0
  162. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +12 -0
  163. package/dist/types/excalidraw/components/Ellipsify.d.ts +3 -0
  164. package/dist/types/excalidraw/components/ErrorDialog.d.ts +5 -0
  165. package/dist/types/excalidraw/components/EyeDropper.d.ts +27 -0
  166. package/dist/types/excalidraw/components/FilledButton.d.ts +19 -0
  167. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +9 -0
  168. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -0
  169. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +22 -0
  170. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +26 -0
  171. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +8 -0
  172. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -0
  173. package/dist/types/excalidraw/components/HandButton.d.ts +10 -0
  174. package/dist/types/excalidraw/components/HelpButton.d.ts +7 -0
  175. package/dist/types/excalidraw/components/HelpDialog.d.ts +4 -0
  176. package/dist/types/excalidraw/components/HintViewer.d.ts +11 -0
  177. package/dist/types/excalidraw/components/IconPicker.d.ts +20 -0
  178. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +14 -0
  179. package/dist/types/excalidraw/components/InlineIcon.d.ts +5 -0
  180. package/dist/types/excalidraw/components/Island.d.ts +10 -0
  181. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +15 -0
  182. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +10 -0
  183. package/dist/types/excalidraw/components/LayerUI.d.ts +32 -0
  184. package/dist/types/excalidraw/components/LibraryMenu.d.ts +10 -0
  185. package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -0
  186. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -0
  187. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -0
  188. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +14 -0
  189. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +23 -0
  190. package/dist/types/excalidraw/components/LibraryUnit.d.ts +14 -0
  191. package/dist/types/excalidraw/components/LoadingMessage.d.ts +5 -0
  192. package/dist/types/excalidraw/components/LockButton.d.ts +10 -0
  193. package/dist/types/excalidraw/components/MagicButton.d.ts +10 -0
  194. package/dist/types/excalidraw/components/MobileMenu.d.ts +23 -0
  195. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  196. package/dist/types/excalidraw/components/Modal.d.ts +11 -0
  197. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
  198. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
  199. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
  200. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +7 -0
  201. package/dist/types/excalidraw/components/PenModeButton.d.ts +12 -0
  202. package/dist/types/excalidraw/components/Popover.d.ts +16 -0
  203. package/dist/types/excalidraw/components/ProjectName.d.ts +10 -0
  204. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +16 -0
  205. package/dist/types/excalidraw/components/PublishLibrary.d.ts +16 -0
  206. package/dist/types/excalidraw/components/QuickSearch.d.ts +9 -0
  207. package/dist/types/excalidraw/components/RadioGroup.d.ts +13 -0
  208. package/dist/types/excalidraw/components/RadioSelection.d.ts +20 -0
  209. package/dist/types/excalidraw/components/Range.d.ts +14 -0
  210. package/dist/types/excalidraw/components/SVGLayer.d.ts +7 -0
  211. package/dist/types/excalidraw/components/ScrollableList.d.ts +8 -0
  212. package/dist/types/excalidraw/components/SearchMenu.d.ts +5 -0
  213. package/dist/types/excalidraw/components/Section.d.ts +6 -0
  214. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +70 -0
  215. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -0
  216. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -0
  217. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -0
  218. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -0
  219. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -0
  220. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -0
  221. package/dist/types/excalidraw/components/Sidebar/common.d.ts +34 -0
  222. package/dist/types/excalidraw/components/Spinner.d.ts +8 -0
  223. package/dist/types/excalidraw/components/Stack.d.ts +15 -0
  224. package/dist/types/excalidraw/components/Stats/Angle.d.ts +11 -0
  225. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -0
  226. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +10 -0
  227. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +11 -0
  228. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +44 -0
  229. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +11 -0
  230. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -0
  231. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -0
  232. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -0
  233. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -0
  234. package/dist/types/excalidraw/components/Stats/Position.d.ts +12 -0
  235. package/dist/types/excalidraw/components/Stats/index.d.ts +35 -0
  236. package/dist/types/excalidraw/components/Stats/utils.d.ts +19 -0
  237. package/dist/types/excalidraw/components/Switch.d.ts +9 -0
  238. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  239. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  240. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  241. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  242. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  243. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  244. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  245. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +7 -0
  246. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  247. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +13 -0
  248. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -0
  249. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +11 -0
  250. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +21 -0
  251. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -0
  252. package/dist/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -0
  253. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -0
  254. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -0
  255. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -0
  256. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -0
  257. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  258. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  259. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  260. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +33 -0
  261. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  262. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  263. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  264. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  265. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  266. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  267. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  268. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  269. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  270. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  271. package/dist/types/excalidraw/components/TextField.d.ts +22 -0
  272. package/dist/types/excalidraw/components/Toast.d.ts +13 -0
  273. package/dist/types/excalidraw/components/ToolButton.d.ts +49 -0
  274. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  275. package/dist/types/excalidraw/components/Tooltip.d.ts +18 -0
  276. package/dist/types/excalidraw/components/Trans.d.ts +9 -0
  277. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  278. package/dist/types/excalidraw/components/UserList.d.ts +18 -0
  279. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +34 -0
  280. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -0
  281. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -0
  282. package/dist/types/excalidraw/components/canvases/index.d.ts +3 -0
  283. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +98 -0
  284. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +17 -0
  285. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
  286. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +37 -0
  287. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  288. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +9 -0
  289. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +18 -0
  290. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -0
  291. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +16 -0
  292. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
  293. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  294. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  295. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  296. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -0
  297. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +6 -0
  298. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +5 -0
  299. package/dist/types/excalidraw/components/footer/Footer.d.ts +12 -0
  300. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -0
  301. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -0
  302. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +10 -0
  303. package/dist/types/excalidraw/components/icons.d.ts +253 -0
  304. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +82 -0
  305. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +87 -0
  306. package/dist/types/excalidraw/components/shapes.d.ts +263 -0
  307. package/dist/types/excalidraw/context/tunnels.d.ts +21 -0
  308. package/dist/types/excalidraw/context/ui-appState.d.ts +4 -0
  309. package/dist/types/excalidraw/cursor.d.ts +5 -0
  310. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +8 -0
  311. package/dist/types/excalidraw/data/blob.d.ts +370 -0
  312. package/dist/types/excalidraw/data/encode.d.ts +55 -0
  313. package/dist/types/excalidraw/data/encryption.d.ts +9 -0
  314. package/dist/types/excalidraw/data/filesystem.d.ts +19 -0
  315. package/dist/types/excalidraw/data/image.d.ts +9 -0
  316. package/dist/types/excalidraw/data/index.d.ts +21 -0
  317. package/dist/types/excalidraw/data/json.d.ts +183 -0
  318. package/dist/types/excalidraw/data/library.d.ts +127 -0
  319. package/dist/types/excalidraw/data/resave.d.ts +10 -0
  320. package/dist/types/excalidraw/data/restore.d.ts +41 -0
  321. package/dist/types/excalidraw/data/types.d.ts +48 -0
  322. package/dist/types/excalidraw/deburr.d.ts +1 -0
  323. package/dist/types/excalidraw/editor-jotai.d.ts +56 -0
  324. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  325. package/dist/types/excalidraw/errors.d.ts +43 -0
  326. package/dist/types/excalidraw/fonts/Cascadia/index.d.ts +2 -0
  327. package/dist/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -0
  328. package/dist/types/excalidraw/fonts/Emoji/index.d.ts +2 -0
  329. package/dist/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +25 -0
  330. package/dist/types/excalidraw/fonts/Excalifont/index.d.ts +2 -0
  331. package/dist/types/excalidraw/fonts/Fonts.d.ts +79 -0
  332. package/dist/types/excalidraw/fonts/Helvetica/index.d.ts +2 -0
  333. package/dist/types/excalidraw/fonts/Liberation/index.d.ts +2 -0
  334. package/dist/types/excalidraw/fonts/Lilita/index.d.ts +2 -0
  335. package/dist/types/excalidraw/fonts/Nunito/index.d.ts +2 -0
  336. package/dist/types/excalidraw/fonts/Virgil/index.d.ts +2 -0
  337. package/dist/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -0
  338. package/dist/types/excalidraw/fonts/index.d.ts +1 -0
  339. package/dist/types/excalidraw/gesture.d.ts +6 -0
  340. package/dist/types/excalidraw/history.d.ts +48 -0
  341. package/dist/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -0
  342. package/dist/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -0
  343. package/dist/types/excalidraw/hooks/useCreatePortalContainer.d.ts +4 -0
  344. package/dist/types/excalidraw/hooks/useEmitter.d.ts +2 -0
  345. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -0
  346. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +21 -0
  347. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -0
  348. package/dist/types/excalidraw/hooks/useStable.d.ts +1 -0
  349. package/dist/types/excalidraw/hooks/useStableCallback.d.ts +4 -0
  350. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  351. package/dist/types/excalidraw/hooks/useTransition.d.ts +2 -0
  352. package/dist/types/excalidraw/i18n.d.ts +24 -0
  353. package/dist/types/excalidraw/laser-trails.d.ts +20 -0
  354. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  355. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  356. package/dist/types/excalidraw/mermaid.d.ts +2 -0
  357. package/dist/types/excalidraw/reactUtils.d.ts +14 -0
  358. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  359. package/dist/types/excalidraw/renderer/helpers.d.ts +16 -0
  360. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +14 -0
  361. package/dist/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -0
  362. package/dist/types/excalidraw/renderer/renderSnaps.d.ts +2 -0
  363. package/dist/types/excalidraw/renderer/roundRect.d.ts +11 -0
  364. package/dist/types/excalidraw/renderer/staticScene.d.ts +14 -0
  365. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +5 -0
  366. package/dist/types/excalidraw/scene/Renderer.d.ts +30 -0
  367. package/dist/types/excalidraw/scene/export.d.ts +36 -0
  368. package/dist/types/excalidraw/scene/index.d.ts +4 -0
  369. package/dist/types/excalidraw/scene/normalize.d.ts +4 -0
  370. package/dist/types/excalidraw/scene/scroll.d.ts +18 -0
  371. package/dist/types/excalidraw/scene/scrollbars.d.ts +11 -0
  372. package/dist/types/excalidraw/scene/types.d.ts +137 -0
  373. package/dist/types/excalidraw/scene/zoom.d.ts +12 -0
  374. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  375. package/dist/types/excalidraw/snapping.d.ts +111 -0
  376. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -0
  377. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -0
  378. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -0
  379. package/dist/types/excalidraw/subset/subset-main.d.ts +12 -0
  380. package/dist/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -0
  381. package/dist/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -0
  382. package/dist/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -0
  383. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -0
  384. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -0
  385. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  386. package/dist/types/excalidraw/types.d.ts +798 -0
  387. package/dist/types/excalidraw/workers.d.ts +36 -0
  388. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +28 -0
  389. package/dist/types/math/src/angle.d.ts +19 -0
  390. package/dist/types/math/src/constants.d.ts +3 -0
  391. package/dist/types/math/src/curve.d.ts +77 -0
  392. package/dist/types/math/src/ellipse.d.ts +44 -0
  393. package/dist/types/math/src/index.d.ts +13 -0
  394. package/dist/types/math/src/line.d.ts +17 -0
  395. package/dist/types/math/src/point.d.ts +127 -0
  396. package/dist/types/math/src/polygon.d.ts +6 -0
  397. package/dist/types/math/src/range.d.ts +42 -0
  398. package/dist/types/math/src/rectangle.d.ts +5 -0
  399. package/dist/types/math/src/segment.d.ts +40 -0
  400. package/dist/types/math/src/triangle.d.ts +11 -0
  401. package/dist/types/math/src/types.d.ts +130 -0
  402. package/dist/types/math/src/utils.d.ts +7 -0
  403. package/dist/types/math/src/vector.d.ts +94 -0
  404. package/dist/types/utils/src/bbox.d.ts +9 -0
  405. package/dist/types/utils/src/export.d.ts +35 -0
  406. package/dist/types/utils/src/index.d.ts +4 -0
  407. package/dist/types/utils/src/shape.d.ts +58 -0
  408. package/dist/types/utils/src/withinBounds.d.ts +19 -0
  409. package/package.json +69 -0
@@ -0,0 +1,1154 @@
1
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
+ import type { AppClassProperties, AppState } from "../types";
3
+ export declare const actionSelectAllElementsInFrame: {
4
+ name: "selectAllElementsInFrame";
5
+ label: string;
6
+ trackEvent: {
7
+ category: "canvas";
8
+ };
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
10
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
+ appState: {
12
+ selectedElementIds: Record<string, true>;
13
+ contextMenu: {
14
+ items: import("../components/ContextMenu").ContextMenuItems;
15
+ top: number;
16
+ left: number;
17
+ } | null;
18
+ showWelcomeScreen: boolean;
19
+ isLoading: boolean;
20
+ errorMessage: React.ReactNode;
21
+ activeEmbeddable: {
22
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
+ state: "hover" | "active";
24
+ } | null;
25
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
+ isBindingEnabled: boolean;
30
+ boxSelectionMode: import("../types").BoxSelectionMode;
31
+ bindingPreference: "enabled" | "disabled";
32
+ isMidpointSnappingEnabled: boolean;
33
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
+ suggestedBinding: {
35
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
+ midPoint?: import("@excalidraw/math").GlobalPoint;
37
+ } | null;
38
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
39
+ frameRendering: {
40
+ enabled: boolean;
41
+ name: boolean;
42
+ outline: boolean;
43
+ clip: boolean;
44
+ };
45
+ editingFrame: string | null;
46
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
47
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
48
+ activeTool: {
49
+ lastActiveTool: import("../types").ActiveTool | null;
50
+ locked: boolean;
51
+ fromSelection: boolean;
52
+ } & import("../types").ActiveTool;
53
+ preferredSelectionTool: {
54
+ type: "selection" | "lasso";
55
+ initialized: boolean;
56
+ };
57
+ penMode: boolean;
58
+ penDetected: boolean;
59
+ exportBackground: boolean;
60
+ exportEmbedScene: boolean;
61
+ exportWithDarkMode: boolean;
62
+ exportScale: number;
63
+ currentItemStrokeColor: string;
64
+ currentItemBackgroundColor: string;
65
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
66
+ currentItemStrokeWidth: number;
67
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
68
+ currentItemRoughness: number;
69
+ currentItemOpacity: number;
70
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
71
+ currentItemFontSize: number;
72
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
73
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
74
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
75
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
76
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
77
+ currentItemArrowType: "sharp" | "round" | "elbow";
78
+ viewBackgroundColor: string;
79
+ scrollX: number;
80
+ scrollY: number;
81
+ cursorButton: "up" | "down";
82
+ scrolledOutside: boolean;
83
+ name: string | null;
84
+ isResizing: boolean;
85
+ isRotating: boolean;
86
+ zoom: import("../types").Zoom;
87
+ openMenu: "canvas" | null;
88
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
89
+ openSidebar: {
90
+ name: import("../types").SidebarName;
91
+ tab?: import("../types").SidebarTabName;
92
+ } | null;
93
+ openDialog: null | {
94
+ name: "imageExport" | "help" | "jsonExport";
95
+ } | {
96
+ name: "ttd";
97
+ tab: "text-to-diagram" | "mermaid";
98
+ } | {
99
+ name: "commandPalette";
100
+ } | {
101
+ name: "settings";
102
+ } | {
103
+ name: "elementLinkSelector";
104
+ sourceElementId: ExcalidrawElement["id"];
105
+ } | {
106
+ name: "charts";
107
+ data: import("../charts").Spreadsheet;
108
+ rawText: string;
109
+ };
110
+ defaultSidebarDockedPreference: boolean;
111
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
112
+ hoveredElementIds: Readonly<{
113
+ [id: string]: true;
114
+ }>;
115
+ previousSelectedElementIds: {
116
+ [id: string]: true;
117
+ };
118
+ selectedElementsAreBeingDragged: boolean;
119
+ shouldCacheIgnoreZoom: boolean;
120
+ toast: {
121
+ message: React.ReactNode;
122
+ closable?: boolean;
123
+ duration?: number;
124
+ } | null;
125
+ zenModeEnabled: boolean;
126
+ theme: import("@excalidraw/element/types").Theme;
127
+ gridSize: number;
128
+ gridStep: number;
129
+ gridModeEnabled: boolean;
130
+ viewModeEnabled: boolean;
131
+ selectedGroupIds: {
132
+ [groupId: string]: boolean;
133
+ };
134
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
135
+ width: number;
136
+ height: number;
137
+ offsetTop: number;
138
+ offsetLeft: number;
139
+ fileHandle: FileSystemFileHandle | null;
140
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
141
+ stats: {
142
+ open: boolean;
143
+ panels: number;
144
+ };
145
+ showHyperlinkPopup: false | "info" | "editor";
146
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
147
+ snapLines: readonly import("../snapping").SnapLine[];
148
+ originSnapOffset: {
149
+ x: number;
150
+ y: number;
151
+ } | null;
152
+ objectsSnapModeEnabled: boolean;
153
+ userToFollow: import("../types").UserToFollow | null;
154
+ followedBy: Set<import("../types").SocketId>;
155
+ isCropping: boolean;
156
+ croppingElementId: ExcalidrawElement["id"] | null;
157
+ searchMatches: Readonly<{
158
+ focusedId: ExcalidrawElement["id"] | null;
159
+ matches: readonly import("../types").SearchMatch[];
160
+ }> | null;
161
+ activeLockedId: string | null;
162
+ lockedMultiSelections: {
163
+ [groupId: string]: true;
164
+ };
165
+ bindMode: import("@excalidraw/element/types").BindMode;
166
+ };
167
+ captureUpdate: "IMMEDIATELY";
168
+ } | {
169
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
170
+ appState: Readonly<AppState>;
171
+ captureUpdate: "EVENTUALLY";
172
+ };
173
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
174
+ } & {
175
+ keyTest?: undefined;
176
+ };
177
+ export declare const actionRemoveAllElementsFromFrame: {
178
+ name: "removeAllElementsFromFrame";
179
+ label: string;
180
+ trackEvent: {
181
+ category: "history";
182
+ };
183
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
184
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
185
+ appState: {
186
+ selectedElementIds: {
187
+ [x: string]: true;
188
+ };
189
+ contextMenu: {
190
+ items: import("../components/ContextMenu").ContextMenuItems;
191
+ top: number;
192
+ left: number;
193
+ } | null;
194
+ showWelcomeScreen: boolean;
195
+ isLoading: boolean;
196
+ errorMessage: React.ReactNode;
197
+ activeEmbeddable: {
198
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
199
+ state: "hover" | "active";
200
+ } | null;
201
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
202
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
203
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
204
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
205
+ isBindingEnabled: boolean;
206
+ boxSelectionMode: import("../types").BoxSelectionMode;
207
+ bindingPreference: "enabled" | "disabled";
208
+ isMidpointSnappingEnabled: boolean;
209
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
210
+ suggestedBinding: {
211
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
212
+ midPoint?: import("@excalidraw/math").GlobalPoint;
213
+ } | null;
214
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
215
+ frameRendering: {
216
+ enabled: boolean;
217
+ name: boolean;
218
+ outline: boolean;
219
+ clip: boolean;
220
+ };
221
+ editingFrame: string | null;
222
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
223
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
224
+ activeTool: {
225
+ lastActiveTool: import("../types").ActiveTool | null;
226
+ locked: boolean;
227
+ fromSelection: boolean;
228
+ } & import("../types").ActiveTool;
229
+ preferredSelectionTool: {
230
+ type: "selection" | "lasso";
231
+ initialized: boolean;
232
+ };
233
+ penMode: boolean;
234
+ penDetected: boolean;
235
+ exportBackground: boolean;
236
+ exportEmbedScene: boolean;
237
+ exportWithDarkMode: boolean;
238
+ exportScale: number;
239
+ currentItemStrokeColor: string;
240
+ currentItemBackgroundColor: string;
241
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
242
+ currentItemStrokeWidth: number;
243
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
244
+ currentItemRoughness: number;
245
+ currentItemOpacity: number;
246
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
247
+ currentItemFontSize: number;
248
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
249
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
250
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
251
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
252
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
253
+ currentItemArrowType: "sharp" | "round" | "elbow";
254
+ viewBackgroundColor: string;
255
+ scrollX: number;
256
+ scrollY: number;
257
+ cursorButton: "up" | "down";
258
+ scrolledOutside: boolean;
259
+ name: string | null;
260
+ isResizing: boolean;
261
+ isRotating: boolean;
262
+ zoom: import("../types").Zoom;
263
+ openMenu: "canvas" | null;
264
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
265
+ openSidebar: {
266
+ name: import("../types").SidebarName;
267
+ tab?: import("../types").SidebarTabName;
268
+ } | null;
269
+ openDialog: null | {
270
+ name: "imageExport" | "help" | "jsonExport";
271
+ } | {
272
+ name: "ttd";
273
+ tab: "text-to-diagram" | "mermaid";
274
+ } | {
275
+ name: "commandPalette";
276
+ } | {
277
+ name: "settings";
278
+ } | {
279
+ name: "elementLinkSelector";
280
+ sourceElementId: ExcalidrawElement["id"];
281
+ } | {
282
+ name: "charts";
283
+ data: import("../charts").Spreadsheet;
284
+ rawText: string;
285
+ };
286
+ defaultSidebarDockedPreference: boolean;
287
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
288
+ hoveredElementIds: Readonly<{
289
+ [id: string]: true;
290
+ }>;
291
+ previousSelectedElementIds: {
292
+ [id: string]: true;
293
+ };
294
+ selectedElementsAreBeingDragged: boolean;
295
+ shouldCacheIgnoreZoom: boolean;
296
+ toast: {
297
+ message: React.ReactNode;
298
+ closable?: boolean;
299
+ duration?: number;
300
+ } | null;
301
+ zenModeEnabled: boolean;
302
+ theme: import("@excalidraw/element/types").Theme;
303
+ gridSize: number;
304
+ gridStep: number;
305
+ gridModeEnabled: boolean;
306
+ viewModeEnabled: boolean;
307
+ selectedGroupIds: {
308
+ [groupId: string]: boolean;
309
+ };
310
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
311
+ width: number;
312
+ height: number;
313
+ offsetTop: number;
314
+ offsetLeft: number;
315
+ fileHandle: FileSystemFileHandle | null;
316
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
317
+ stats: {
318
+ open: boolean;
319
+ panels: number;
320
+ };
321
+ showHyperlinkPopup: false | "info" | "editor";
322
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
323
+ snapLines: readonly import("../snapping").SnapLine[];
324
+ originSnapOffset: {
325
+ x: number;
326
+ y: number;
327
+ } | null;
328
+ objectsSnapModeEnabled: boolean;
329
+ userToFollow: import("../types").UserToFollow | null;
330
+ followedBy: Set<import("../types").SocketId>;
331
+ isCropping: boolean;
332
+ croppingElementId: ExcalidrawElement["id"] | null;
333
+ searchMatches: Readonly<{
334
+ focusedId: ExcalidrawElement["id"] | null;
335
+ matches: readonly import("../types").SearchMatch[];
336
+ }> | null;
337
+ activeLockedId: string | null;
338
+ lockedMultiSelections: {
339
+ [groupId: string]: true;
340
+ };
341
+ bindMode: import("@excalidraw/element/types").BindMode;
342
+ };
343
+ captureUpdate: "IMMEDIATELY";
344
+ } | {
345
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
346
+ appState: Readonly<AppState>;
347
+ captureUpdate: "EVENTUALLY";
348
+ };
349
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
350
+ } & {
351
+ keyTest?: undefined;
352
+ };
353
+ export declare const actionupdateFrameRendering: {
354
+ name: "updateFrameRendering";
355
+ label: string;
356
+ viewMode: true;
357
+ trackEvent: {
358
+ category: "canvas";
359
+ };
360
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
361
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
362
+ appState: {
363
+ frameRendering: {
364
+ enabled: boolean;
365
+ name: boolean;
366
+ outline: boolean;
367
+ clip: boolean;
368
+ };
369
+ contextMenu: {
370
+ items: import("../components/ContextMenu").ContextMenuItems;
371
+ top: number;
372
+ left: number;
373
+ } | null;
374
+ showWelcomeScreen: boolean;
375
+ isLoading: boolean;
376
+ errorMessage: React.ReactNode;
377
+ activeEmbeddable: {
378
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
379
+ state: "hover" | "active";
380
+ } | null;
381
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
382
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
383
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
384
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
385
+ isBindingEnabled: boolean;
386
+ boxSelectionMode: import("../types").BoxSelectionMode;
387
+ bindingPreference: "enabled" | "disabled";
388
+ isMidpointSnappingEnabled: boolean;
389
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
390
+ suggestedBinding: {
391
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
392
+ midPoint?: import("@excalidraw/math").GlobalPoint;
393
+ } | null;
394
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
395
+ editingFrame: string | null;
396
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
397
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
398
+ activeTool: {
399
+ lastActiveTool: import("../types").ActiveTool | null;
400
+ locked: boolean;
401
+ fromSelection: boolean;
402
+ } & import("../types").ActiveTool;
403
+ preferredSelectionTool: {
404
+ type: "selection" | "lasso";
405
+ initialized: boolean;
406
+ };
407
+ penMode: boolean;
408
+ penDetected: boolean;
409
+ exportBackground: boolean;
410
+ exportEmbedScene: boolean;
411
+ exportWithDarkMode: boolean;
412
+ exportScale: number;
413
+ currentItemStrokeColor: string;
414
+ currentItemBackgroundColor: string;
415
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
416
+ currentItemStrokeWidth: number;
417
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
418
+ currentItemRoughness: number;
419
+ currentItemOpacity: number;
420
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
421
+ currentItemFontSize: number;
422
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
423
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
424
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
425
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
426
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
427
+ currentItemArrowType: "sharp" | "round" | "elbow";
428
+ viewBackgroundColor: string;
429
+ scrollX: number;
430
+ scrollY: number;
431
+ cursorButton: "up" | "down";
432
+ scrolledOutside: boolean;
433
+ name: string | null;
434
+ isResizing: boolean;
435
+ isRotating: boolean;
436
+ zoom: import("../types").Zoom;
437
+ openMenu: "canvas" | null;
438
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
439
+ openSidebar: {
440
+ name: import("../types").SidebarName;
441
+ tab?: import("../types").SidebarTabName;
442
+ } | null;
443
+ openDialog: null | {
444
+ name: "imageExport" | "help" | "jsonExport";
445
+ } | {
446
+ name: "ttd";
447
+ tab: "text-to-diagram" | "mermaid";
448
+ } | {
449
+ name: "commandPalette";
450
+ } | {
451
+ name: "settings";
452
+ } | {
453
+ name: "elementLinkSelector";
454
+ sourceElementId: ExcalidrawElement["id"];
455
+ } | {
456
+ name: "charts";
457
+ data: import("../charts").Spreadsheet;
458
+ rawText: string;
459
+ };
460
+ defaultSidebarDockedPreference: boolean;
461
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
462
+ selectedElementIds: Readonly<{
463
+ [id: string]: true;
464
+ }>;
465
+ hoveredElementIds: Readonly<{
466
+ [id: string]: true;
467
+ }>;
468
+ previousSelectedElementIds: {
469
+ [id: string]: true;
470
+ };
471
+ selectedElementsAreBeingDragged: boolean;
472
+ shouldCacheIgnoreZoom: boolean;
473
+ toast: {
474
+ message: React.ReactNode;
475
+ closable?: boolean;
476
+ duration?: number;
477
+ } | null;
478
+ zenModeEnabled: boolean;
479
+ theme: import("@excalidraw/element/types").Theme;
480
+ gridSize: number;
481
+ gridStep: number;
482
+ gridModeEnabled: boolean;
483
+ viewModeEnabled: boolean;
484
+ selectedGroupIds: {
485
+ [groupId: string]: boolean;
486
+ };
487
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
488
+ width: number;
489
+ height: number;
490
+ offsetTop: number;
491
+ offsetLeft: number;
492
+ fileHandle: FileSystemFileHandle | null;
493
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
494
+ stats: {
495
+ open: boolean;
496
+ panels: number;
497
+ };
498
+ showHyperlinkPopup: false | "info" | "editor";
499
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
500
+ snapLines: readonly import("../snapping").SnapLine[];
501
+ originSnapOffset: {
502
+ x: number;
503
+ y: number;
504
+ } | null;
505
+ objectsSnapModeEnabled: boolean;
506
+ userToFollow: import("../types").UserToFollow | null;
507
+ followedBy: Set<import("../types").SocketId>;
508
+ isCropping: boolean;
509
+ croppingElementId: ExcalidrawElement["id"] | null;
510
+ searchMatches: Readonly<{
511
+ focusedId: ExcalidrawElement["id"] | null;
512
+ matches: readonly import("../types").SearchMatch[];
513
+ }> | null;
514
+ activeLockedId: string | null;
515
+ lockedMultiSelections: {
516
+ [groupId: string]: true;
517
+ };
518
+ bindMode: import("@excalidraw/element/types").BindMode;
519
+ };
520
+ captureUpdate: "EVENTUALLY";
521
+ };
522
+ checked: (appState: AppState) => boolean;
523
+ } & {
524
+ keyTest?: undefined;
525
+ };
526
+ export declare const actionSetFrameAsActiveTool: {
527
+ name: "setFrameAsActiveTool";
528
+ label: string;
529
+ trackEvent: {
530
+ category: "toolbar";
531
+ };
532
+ icon: import("react/jsx-runtime").JSX.Element;
533
+ viewMode: false;
534
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
535
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
536
+ appState: {
537
+ activeTool: {
538
+ lastActiveTool: import("../types").ActiveTool | null;
539
+ locked: boolean;
540
+ fromSelection: boolean;
541
+ } & import("../types").ActiveTool;
542
+ contextMenu: {
543
+ items: import("../components/ContextMenu").ContextMenuItems;
544
+ top: number;
545
+ left: number;
546
+ } | null;
547
+ showWelcomeScreen: boolean;
548
+ isLoading: boolean;
549
+ errorMessage: React.ReactNode;
550
+ activeEmbeddable: {
551
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
552
+ state: "hover" | "active";
553
+ } | null;
554
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
555
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
556
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
557
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
558
+ isBindingEnabled: boolean;
559
+ boxSelectionMode: import("../types").BoxSelectionMode;
560
+ bindingPreference: "enabled" | "disabled";
561
+ isMidpointSnappingEnabled: boolean;
562
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
563
+ suggestedBinding: {
564
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
565
+ midPoint?: import("@excalidraw/math").GlobalPoint;
566
+ } | null;
567
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
568
+ frameRendering: {
569
+ enabled: boolean;
570
+ name: boolean;
571
+ outline: boolean;
572
+ clip: boolean;
573
+ };
574
+ editingFrame: string | null;
575
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
576
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
577
+ preferredSelectionTool: {
578
+ type: "selection" | "lasso";
579
+ initialized: boolean;
580
+ };
581
+ penMode: boolean;
582
+ penDetected: boolean;
583
+ exportBackground: boolean;
584
+ exportEmbedScene: boolean;
585
+ exportWithDarkMode: boolean;
586
+ exportScale: number;
587
+ currentItemStrokeColor: string;
588
+ currentItemBackgroundColor: string;
589
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
590
+ currentItemStrokeWidth: number;
591
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
592
+ currentItemRoughness: number;
593
+ currentItemOpacity: number;
594
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
595
+ currentItemFontSize: number;
596
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
597
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
598
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
599
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
600
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
601
+ currentItemArrowType: "sharp" | "round" | "elbow";
602
+ viewBackgroundColor: string;
603
+ scrollX: number;
604
+ scrollY: number;
605
+ cursorButton: "up" | "down";
606
+ scrolledOutside: boolean;
607
+ name: string | null;
608
+ isResizing: boolean;
609
+ isRotating: boolean;
610
+ zoom: import("../types").Zoom;
611
+ openMenu: "canvas" | null;
612
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
613
+ openSidebar: {
614
+ name: import("../types").SidebarName;
615
+ tab?: import("../types").SidebarTabName;
616
+ } | null;
617
+ openDialog: null | {
618
+ name: "imageExport" | "help" | "jsonExport";
619
+ } | {
620
+ name: "ttd";
621
+ tab: "text-to-diagram" | "mermaid";
622
+ } | {
623
+ name: "commandPalette";
624
+ } | {
625
+ name: "settings";
626
+ } | {
627
+ name: "elementLinkSelector";
628
+ sourceElementId: ExcalidrawElement["id"];
629
+ } | {
630
+ name: "charts";
631
+ data: import("../charts").Spreadsheet;
632
+ rawText: string;
633
+ };
634
+ defaultSidebarDockedPreference: boolean;
635
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
636
+ selectedElementIds: Readonly<{
637
+ [id: string]: true;
638
+ }>;
639
+ hoveredElementIds: Readonly<{
640
+ [id: string]: true;
641
+ }>;
642
+ previousSelectedElementIds: {
643
+ [id: string]: true;
644
+ };
645
+ selectedElementsAreBeingDragged: boolean;
646
+ shouldCacheIgnoreZoom: boolean;
647
+ toast: {
648
+ message: React.ReactNode;
649
+ closable?: boolean;
650
+ duration?: number;
651
+ } | null;
652
+ zenModeEnabled: boolean;
653
+ theme: import("@excalidraw/element/types").Theme;
654
+ gridSize: number;
655
+ gridStep: number;
656
+ gridModeEnabled: boolean;
657
+ viewModeEnabled: boolean;
658
+ selectedGroupIds: {
659
+ [groupId: string]: boolean;
660
+ };
661
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
662
+ width: number;
663
+ height: number;
664
+ offsetTop: number;
665
+ offsetLeft: number;
666
+ fileHandle: FileSystemFileHandle | null;
667
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
668
+ stats: {
669
+ open: boolean;
670
+ panels: number;
671
+ };
672
+ showHyperlinkPopup: false | "info" | "editor";
673
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
674
+ snapLines: readonly import("../snapping").SnapLine[];
675
+ originSnapOffset: {
676
+ x: number;
677
+ y: number;
678
+ } | null;
679
+ objectsSnapModeEnabled: boolean;
680
+ userToFollow: import("../types").UserToFollow | null;
681
+ followedBy: Set<import("../types").SocketId>;
682
+ isCropping: boolean;
683
+ croppingElementId: ExcalidrawElement["id"] | null;
684
+ searchMatches: Readonly<{
685
+ focusedId: ExcalidrawElement["id"] | null;
686
+ matches: readonly import("../types").SearchMatch[];
687
+ }> | null;
688
+ activeLockedId: string | null;
689
+ lockedMultiSelections: {
690
+ [groupId: string]: true;
691
+ };
692
+ bindMode: import("@excalidraw/element/types").BindMode;
693
+ };
694
+ captureUpdate: "EVENTUALLY";
695
+ };
696
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
697
+ } & {
698
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
699
+ };
700
+ export declare const actionWrapSelectionInFrame: {
701
+ name: "wrapSelectionInFrame";
702
+ label: string;
703
+ trackEvent: {
704
+ category: "element";
705
+ };
706
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
707
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
708
+ elements: ((Readonly<{
709
+ id: string;
710
+ x: number;
711
+ y: number;
712
+ strokeColor: string;
713
+ backgroundColor: string;
714
+ fillStyle: import("@excalidraw/element/types").FillStyle;
715
+ strokeWidth: number;
716
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
717
+ roundness: null | {
718
+ type: import("@excalidraw/element/types").RoundnessType;
719
+ value?: number;
720
+ };
721
+ roughness: number;
722
+ opacity: number;
723
+ width: number;
724
+ height: number;
725
+ angle: import("@excalidraw/math").Radians;
726
+ seed: number;
727
+ version: number;
728
+ versionNonce: number;
729
+ index: import("@excalidraw/element/types").FractionalIndex | null;
730
+ isDeleted: boolean;
731
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
732
+ frameId: string | null;
733
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
734
+ updated: number;
735
+ link: string | null;
736
+ locked: boolean;
737
+ customData?: Record<string, any>;
738
+ }> & Readonly<{
739
+ type: "line" | "arrow";
740
+ points: readonly import("@excalidraw/math").LocalPoint[];
741
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
742
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
743
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
744
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
745
+ }> & {
746
+ index: import("@excalidraw/element/types").FractionalIndex;
747
+ }) | (Readonly<{
748
+ id: string;
749
+ x: number;
750
+ y: number;
751
+ strokeColor: string;
752
+ backgroundColor: string;
753
+ fillStyle: import("@excalidraw/element/types").FillStyle;
754
+ strokeWidth: number;
755
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
756
+ roundness: null | {
757
+ type: import("@excalidraw/element/types").RoundnessType;
758
+ value?: number;
759
+ };
760
+ roughness: number;
761
+ opacity: number;
762
+ width: number;
763
+ height: number;
764
+ angle: import("@excalidraw/math").Radians;
765
+ seed: number;
766
+ version: number;
767
+ versionNonce: number;
768
+ index: import("@excalidraw/element/types").FractionalIndex | null;
769
+ isDeleted: boolean;
770
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
771
+ frameId: string | null;
772
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
773
+ updated: number;
774
+ link: string | null;
775
+ locked: boolean;
776
+ customData?: Record<string, any>;
777
+ }> & {
778
+ type: "selection";
779
+ } & {
780
+ index: import("@excalidraw/element/types").FractionalIndex;
781
+ }) | (Readonly<{
782
+ id: string;
783
+ x: number;
784
+ y: number;
785
+ strokeColor: string;
786
+ backgroundColor: string;
787
+ fillStyle: import("@excalidraw/element/types").FillStyle;
788
+ strokeWidth: number;
789
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
790
+ roundness: null | {
791
+ type: import("@excalidraw/element/types").RoundnessType;
792
+ value?: number;
793
+ };
794
+ roughness: number;
795
+ opacity: number;
796
+ width: number;
797
+ height: number;
798
+ angle: import("@excalidraw/math").Radians;
799
+ seed: number;
800
+ version: number;
801
+ versionNonce: number;
802
+ index: import("@excalidraw/element/types").FractionalIndex | null;
803
+ isDeleted: boolean;
804
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
805
+ frameId: string | null;
806
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
807
+ updated: number;
808
+ link: string | null;
809
+ locked: boolean;
810
+ customData?: Record<string, any>;
811
+ }> & {
812
+ type: "rectangle";
813
+ } & {
814
+ index: import("@excalidraw/element/types").FractionalIndex;
815
+ }) | (Readonly<{
816
+ id: string;
817
+ x: number;
818
+ y: number;
819
+ strokeColor: string;
820
+ backgroundColor: string;
821
+ fillStyle: import("@excalidraw/element/types").FillStyle;
822
+ strokeWidth: number;
823
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
824
+ roundness: null | {
825
+ type: import("@excalidraw/element/types").RoundnessType;
826
+ value?: number;
827
+ };
828
+ roughness: number;
829
+ opacity: number;
830
+ width: number;
831
+ height: number;
832
+ angle: import("@excalidraw/math").Radians;
833
+ seed: number;
834
+ version: number;
835
+ versionNonce: number;
836
+ index: import("@excalidraw/element/types").FractionalIndex | null;
837
+ isDeleted: boolean;
838
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
839
+ frameId: string | null;
840
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
841
+ updated: number;
842
+ link: string | null;
843
+ locked: boolean;
844
+ customData?: Record<string, any>;
845
+ }> & {
846
+ type: "diamond";
847
+ } & {
848
+ index: import("@excalidraw/element/types").FractionalIndex;
849
+ }) | (Readonly<{
850
+ id: string;
851
+ x: number;
852
+ y: number;
853
+ strokeColor: string;
854
+ backgroundColor: string;
855
+ fillStyle: import("@excalidraw/element/types").FillStyle;
856
+ strokeWidth: number;
857
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
858
+ roundness: null | {
859
+ type: import("@excalidraw/element/types").RoundnessType;
860
+ value?: number;
861
+ };
862
+ roughness: number;
863
+ opacity: number;
864
+ width: number;
865
+ height: number;
866
+ angle: import("@excalidraw/math").Radians;
867
+ seed: number;
868
+ version: number;
869
+ versionNonce: number;
870
+ index: import("@excalidraw/element/types").FractionalIndex | null;
871
+ isDeleted: boolean;
872
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
873
+ frameId: string | null;
874
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
875
+ updated: number;
876
+ link: string | null;
877
+ locked: boolean;
878
+ customData?: Record<string, any>;
879
+ }> & {
880
+ type: "ellipse";
881
+ } & {
882
+ index: import("@excalidraw/element/types").FractionalIndex;
883
+ }) | (Readonly<{
884
+ id: string;
885
+ x: number;
886
+ y: number;
887
+ strokeColor: string;
888
+ backgroundColor: string;
889
+ fillStyle: import("@excalidraw/element/types").FillStyle;
890
+ strokeWidth: number;
891
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
892
+ roundness: null | {
893
+ type: import("@excalidraw/element/types").RoundnessType;
894
+ value?: number;
895
+ };
896
+ roughness: number;
897
+ opacity: number;
898
+ width: number;
899
+ height: number;
900
+ angle: import("@excalidraw/math").Radians;
901
+ seed: number;
902
+ version: number;
903
+ versionNonce: number;
904
+ index: import("@excalidraw/element/types").FractionalIndex | null;
905
+ isDeleted: boolean;
906
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
907
+ frameId: string | null;
908
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
909
+ updated: number;
910
+ link: string | null;
911
+ locked: boolean;
912
+ customData?: Record<string, any>;
913
+ }> & Readonly<{
914
+ type: "embeddable";
915
+ }> & {
916
+ index: import("@excalidraw/element/types").FractionalIndex;
917
+ }) | (Readonly<{
918
+ id: string;
919
+ x: number;
920
+ y: number;
921
+ strokeColor: string;
922
+ backgroundColor: string;
923
+ fillStyle: import("@excalidraw/element/types").FillStyle;
924
+ strokeWidth: number;
925
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
926
+ roundness: null | {
927
+ type: import("@excalidraw/element/types").RoundnessType;
928
+ value?: number;
929
+ };
930
+ roughness: number;
931
+ opacity: number;
932
+ width: number;
933
+ height: number;
934
+ angle: import("@excalidraw/math").Radians;
935
+ seed: number;
936
+ version: number;
937
+ versionNonce: number;
938
+ index: import("@excalidraw/element/types").FractionalIndex | null;
939
+ isDeleted: boolean;
940
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
941
+ frameId: string | null;
942
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
943
+ updated: number;
944
+ link: string | null;
945
+ locked: boolean;
946
+ customData?: Record<string, any>;
947
+ }> & Readonly<{
948
+ type: "iframe";
949
+ customData?: {
950
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
951
+ };
952
+ }> & {
953
+ index: import("@excalidraw/element/types").FractionalIndex;
954
+ }) | (Readonly<{
955
+ id: string;
956
+ x: number;
957
+ y: number;
958
+ strokeColor: string;
959
+ backgroundColor: string;
960
+ fillStyle: import("@excalidraw/element/types").FillStyle;
961
+ strokeWidth: number;
962
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
963
+ roundness: null | {
964
+ type: import("@excalidraw/element/types").RoundnessType;
965
+ value?: number;
966
+ };
967
+ roughness: number;
968
+ opacity: number;
969
+ width: number;
970
+ height: number;
971
+ angle: import("@excalidraw/math").Radians;
972
+ seed: number;
973
+ version: number;
974
+ versionNonce: number;
975
+ index: import("@excalidraw/element/types").FractionalIndex | null;
976
+ isDeleted: boolean;
977
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
978
+ frameId: string | null;
979
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
980
+ updated: number;
981
+ link: string | null;
982
+ locked: boolean;
983
+ customData?: Record<string, any>;
984
+ }> & Readonly<{
985
+ type: "image";
986
+ fileId: import("@excalidraw/element/types").FileId | null;
987
+ status: "pending" | "saved" | "error";
988
+ scale: [number, number];
989
+ crop: import("@excalidraw/element/types").ImageCrop | null;
990
+ }> & {
991
+ index: import("@excalidraw/element/types").FractionalIndex;
992
+ }) | (Readonly<{
993
+ id: string;
994
+ x: number;
995
+ y: number;
996
+ strokeColor: string;
997
+ backgroundColor: string;
998
+ fillStyle: import("@excalidraw/element/types").FillStyle;
999
+ strokeWidth: number;
1000
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1001
+ roundness: null | {
1002
+ type: import("@excalidraw/element/types").RoundnessType;
1003
+ value?: number;
1004
+ };
1005
+ roughness: number;
1006
+ opacity: number;
1007
+ width: number;
1008
+ height: number;
1009
+ angle: import("@excalidraw/math").Radians;
1010
+ seed: number;
1011
+ version: number;
1012
+ versionNonce: number;
1013
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1014
+ isDeleted: boolean;
1015
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1016
+ frameId: string | null;
1017
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1018
+ updated: number;
1019
+ link: string | null;
1020
+ locked: boolean;
1021
+ customData?: Record<string, any>;
1022
+ }> & {
1023
+ type: "frame";
1024
+ name: string | null;
1025
+ } & {
1026
+ index: import("@excalidraw/element/types").FractionalIndex;
1027
+ }) | (Readonly<{
1028
+ id: string;
1029
+ x: number;
1030
+ y: number;
1031
+ strokeColor: string;
1032
+ backgroundColor: string;
1033
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1034
+ strokeWidth: number;
1035
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1036
+ roundness: null | {
1037
+ type: import("@excalidraw/element/types").RoundnessType;
1038
+ value?: number;
1039
+ };
1040
+ roughness: number;
1041
+ opacity: number;
1042
+ width: number;
1043
+ height: number;
1044
+ angle: import("@excalidraw/math").Radians;
1045
+ seed: number;
1046
+ version: number;
1047
+ versionNonce: number;
1048
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1049
+ isDeleted: boolean;
1050
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1051
+ frameId: string | null;
1052
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1053
+ updated: number;
1054
+ link: string | null;
1055
+ locked: boolean;
1056
+ customData?: Record<string, any>;
1057
+ }> & {
1058
+ type: "magicframe";
1059
+ name: string | null;
1060
+ } & {
1061
+ index: import("@excalidraw/element/types").FractionalIndex;
1062
+ }) | (Readonly<{
1063
+ id: string;
1064
+ x: number;
1065
+ y: number;
1066
+ strokeColor: string;
1067
+ backgroundColor: string;
1068
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1069
+ strokeWidth: number;
1070
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1071
+ roundness: null | {
1072
+ type: import("@excalidraw/element/types").RoundnessType;
1073
+ value?: number;
1074
+ };
1075
+ roughness: number;
1076
+ opacity: number;
1077
+ width: number;
1078
+ height: number;
1079
+ angle: import("@excalidraw/math").Radians;
1080
+ seed: number;
1081
+ version: number;
1082
+ versionNonce: number;
1083
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1084
+ isDeleted: boolean;
1085
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1086
+ frameId: string | null;
1087
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1088
+ updated: number;
1089
+ link: string | null;
1090
+ locked: boolean;
1091
+ customData?: Record<string, any>;
1092
+ }> & Readonly<{
1093
+ type: "text";
1094
+ fontSize: number;
1095
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1096
+ text: string;
1097
+ textAlign: import("@excalidraw/element/types").TextAlign;
1098
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
1099
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
1100
+ originalText: string;
1101
+ autoResize: boolean;
1102
+ lineHeight: number & {
1103
+ _brand: "unitlessLineHeight";
1104
+ };
1105
+ }> & {
1106
+ index: import("@excalidraw/element/types").FractionalIndex;
1107
+ }) | (Readonly<{
1108
+ id: string;
1109
+ x: number;
1110
+ y: number;
1111
+ strokeColor: string;
1112
+ backgroundColor: string;
1113
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1114
+ strokeWidth: number;
1115
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1116
+ roundness: null | {
1117
+ type: import("@excalidraw/element/types").RoundnessType;
1118
+ value?: number;
1119
+ };
1120
+ roughness: number;
1121
+ opacity: number;
1122
+ width: number;
1123
+ height: number;
1124
+ angle: import("@excalidraw/math").Radians;
1125
+ seed: number;
1126
+ version: number;
1127
+ versionNonce: number;
1128
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1129
+ isDeleted: boolean;
1130
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1131
+ frameId: string | null;
1132
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1133
+ updated: number;
1134
+ link: string | null;
1135
+ locked: boolean;
1136
+ customData?: Record<string, any>;
1137
+ }> & Readonly<{
1138
+ type: "freedraw";
1139
+ points: readonly import("@excalidraw/math").LocalPoint[];
1140
+ pressures: readonly number[];
1141
+ simulatePressure: boolean;
1142
+ }> & {
1143
+ index: import("@excalidraw/element/types").FractionalIndex;
1144
+ }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
1145
+ appState: {
1146
+ selectedElementIds: {
1147
+ [x: string]: true;
1148
+ };
1149
+ };
1150
+ captureUpdate: "IMMEDIATELY";
1151
+ };
1152
+ } & {
1153
+ keyTest?: undefined;
1154
+ };