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