@zsviczian/excalidraw 0.18.0-60 → 0.18.0-62

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