@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-835eb8d

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 (302) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/chunk-CP5DND7P.js +7 -0
  3. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  4. package/dist/dev/chunk-FB2NA5UG.js +4132 -0
  5. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  6. package/dist/dev/chunk-N4PQJPAH.js +5666 -0
  7. package/dist/dev/chunk-N4PQJPAH.js.map +7 -0
  8. package/dist/dev/{chunk-LMHBUWQS.js → chunk-PWQMCSHA.js} +27 -8
  9. package/dist/dev/chunk-PWQMCSHA.js.map +7 -0
  10. package/dist/dev/data/{image-V26YBSDB.js → image-RT6RLBUE.js} +3 -3
  11. package/dist/dev/index.css +3573 -3309
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +31657 -23863
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-V3NQTBPG.js} +2 -2
  16. package/dist/dev/subset-shared.chunk.js +2 -2
  17. package/dist/dev/subset-worker.chunk.js +2 -2
  18. package/dist/prod/chunk-A66AFZZU.js +7 -0
  19. package/dist/prod/chunk-GF46JCB3.js +12 -0
  20. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  21. package/dist/prod/chunk-SVEJI6WL.js +4 -0
  22. package/dist/prod/data/image-HPGPBQV2.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +27 -16
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-LQE6K457.js} +1 -1
  26. package/dist/prod/subset-shared.chunk.js +1 -1
  27. package/dist/prod/subset-worker.chunk.js +1 -1
  28. package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
  29. package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
  30. package/dist/types/{excalidraw → common/src}/constants.d.ts +49 -12
  31. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  32. package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +15 -5
  33. package/dist/types/common/src/index.d.ts +12 -0
  34. package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
  35. package/dist/types/common/src/promise-pool.d.ts +6 -0
  36. package/dist/types/{excalidraw → common/src}/utility-types.d.ts +5 -0
  37. package/dist/types/{excalidraw → common/src}/utils.d.ts +25 -11
  38. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +19 -18
  39. package/dist/types/element/src/align.d.ts +8 -0
  40. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +30 -19
  41. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +20 -7
  42. package/dist/types/element/src/collision.d.ts +32 -0
  43. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  44. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +1 -1
  45. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +78 -41
  46. package/dist/types/element/src/distance.d.ts +3 -0
  47. package/dist/types/{excalidraw → element/src}/distribute.d.ts +3 -2
  48. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +5 -4
  49. package/dist/types/element/src/duplicate.d.ts +63 -0
  50. package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +1 -1
  51. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  52. package/dist/types/element/src/embeddable.d.ts +10 -0
  53. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +4 -3
  54. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +12 -3
  55. package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
  56. package/dist/types/{excalidraw → element/src}/groups.d.ts +6 -5
  57. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  58. package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  59. package/dist/types/element/src/index.d.ts +58 -0
  60. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +24 -37
  61. package/dist/types/element/src/mutateElement.d.ts +21 -0
  62. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -43
  63. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  64. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +6 -3
  65. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +7 -6
  66. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  67. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -7
  68. package/dist/types/element/src/shape.d.ts +42 -0
  69. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  70. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +3 -3
  71. package/dist/types/element/src/store.d.ts +237 -0
  72. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
  73. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  74. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +21 -3
  75. package/dist/types/{excalidraw/element → element/src}/types.d.ts +17 -4
  76. package/dist/types/element/src/utils.d.ts +31 -0
  77. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  78. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +103 -109
  79. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  80. package/dist/types/excalidraw/actions/actionBoundText.d.ts +74 -78
  81. package/dist/types/excalidraw/actions/actionCanvas.d.ts +653 -502
  82. package/dist/types/excalidraw/actions/actionClipboard.d.ts +218 -228
  83. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +36 -38
  84. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +108 -113
  85. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  86. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  87. package/dist/types/excalidraw/actions/actionElementLink.d.ts +39 -41
  88. package/dist/types/excalidraw/actions/actionElementLock.d.ts +86 -92
  89. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +36 -48
  90. package/dist/types/excalidraw/actions/actionExport.d.ts +369 -387
  91. package/dist/types/excalidraw/actions/actionFinalize.d.ts +104 -67
  92. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  93. package/dist/types/excalidraw/actions/actionFrame.d.ts +260 -268
  94. package/dist/types/excalidraw/actions/actionGroup.d.ts +71 -75
  95. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  96. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +564 -42
  97. package/dist/types/excalidraw/actions/actionLink.d.ts +37 -39
  98. package/dist/types/excalidraw/actions/actionMenu.d.ts +104 -110
  99. package/dist/types/excalidraw/actions/actionNavigate.d.ts +69 -73
  100. package/dist/types/excalidraw/actions/actionProperties.d.ts +512 -525
  101. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -39
  102. package/dist/types/excalidraw/actions/actionStyles.d.ts +38 -40
  103. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  104. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +36 -38
  105. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +36 -38
  106. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +35 -209
  107. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  108. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -38
  109. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +36 -39
  110. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +36 -39
  111. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  112. package/dist/types/excalidraw/actions/index.d.ts +2 -1
  113. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  114. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  115. package/dist/types/excalidraw/actions/types.d.ts +6 -5
  116. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  117. package/dist/types/excalidraw/appState.d.ts +39 -28
  118. package/dist/types/excalidraw/charts.d.ts +1 -1
  119. package/dist/types/excalidraw/clipboard.d.ts +71 -8
  120. package/dist/types/excalidraw/components/Actions.d.ts +10 -7
  121. package/dist/types/excalidraw/components/App.d.ts +51 -32
  122. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  123. package/dist/types/excalidraw/components/ButtonIcon.d.ts +2 -1
  124. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  125. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +11 -6
  126. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  128. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -5
  129. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -4
  130. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -3
  131. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  132. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +4 -4
  133. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  134. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +2 -1
  135. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  136. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  137. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  138. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  139. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  140. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  141. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  142. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  143. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  144. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  145. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  146. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  147. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +3 -2
  148. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  149. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -2
  150. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  151. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  152. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  153. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  154. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  155. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  156. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  157. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  158. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  159. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  160. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  161. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +4 -4
  162. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  163. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  164. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  165. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  166. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  167. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  168. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  169. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  170. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  171. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  172. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  173. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  174. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  175. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  176. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  177. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  178. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  179. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +14 -4
  180. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  181. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  182. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  183. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  185. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  186. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  187. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  188. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  189. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  190. package/dist/types/excalidraw/components/TextField.d.ts +2 -1
  191. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  192. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  193. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  194. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  195. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  196. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  197. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  198. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  202. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  203. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
  204. package/dist/types/excalidraw/components/icons.d.ts +11 -1
  205. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  206. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  207. package/dist/types/excalidraw/components/shapes.d.ts +190 -0
  208. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  209. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  210. package/dist/types/excalidraw/data/blob.d.ts +7 -11
  211. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  212. package/dist/types/excalidraw/data/index.d.ts +2 -2
  213. package/dist/types/excalidraw/data/json.d.ts +1 -1
  214. package/dist/types/excalidraw/data/library.d.ts +3 -3
  215. package/dist/types/excalidraw/data/reconcile.d.ts +3 -2
  216. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  217. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  218. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  219. package/dist/types/excalidraw/data/types.d.ts +6 -3
  220. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  221. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  222. package/dist/types/excalidraw/errors.d.ts +0 -3
  223. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  224. package/dist/types/excalidraw/history.d.ts +31 -23
  225. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  226. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  227. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  228. package/dist/types/excalidraw/i18n.d.ts +1 -1
  229. package/dist/types/excalidraw/index.d.ts +18 -16
  230. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  231. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  232. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  233. package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
  234. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  235. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  236. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -4
  237. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  238. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  239. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  240. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  241. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  242. package/dist/types/excalidraw/snapping.d.ts +5 -6
  243. package/dist/types/excalidraw/types.d.ts +50 -26
  244. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  245. package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
  246. package/dist/types/math/src/constants.d.ts +3 -0
  247. package/dist/types/math/src/curve.d.ts +74 -0
  248. package/dist/types/math/{index.d.ts → src/index.d.ts} +1 -0
  249. package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
  250. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  251. package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +2 -0
  252. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +2 -1
  253. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  254. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +8 -2
  255. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  256. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  257. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  258. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  259. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  260. package/history.ts +148 -109
  261. package/package.json +26 -11
  262. package/dist/dev/chunk-3SN6HYVK.js +0 -25695
  263. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  264. package/dist/dev/chunk-53KHN5WM.js +0 -7
  265. package/dist/dev/chunk-53KHN5WM.js.map +0 -7
  266. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  267. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  268. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  269. package/dist/prod/chunk-36CXSE6H.js +0 -34
  270. package/dist/prod/chunk-6U3AYISY.js +0 -12
  271. package/dist/prod/chunk-EIO257PC.js +0 -86
  272. package/dist/prod/chunk-G5N3DNGT.js +0 -7
  273. package/dist/prod/data/image-N4WCURRR.js +0 -1
  274. package/dist/types/excalidraw/align.d.ts +0 -7
  275. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  276. package/dist/types/excalidraw/element/collision.d.ts +0 -26
  277. package/dist/types/excalidraw/element/distance.d.ts +0 -3
  278. package/dist/types/excalidraw/element/index.d.ts +0 -26
  279. package/dist/types/excalidraw/element/mutateElement.d.ts +0 -13
  280. package/dist/types/excalidraw/element/utils.d.ts +0 -21
  281. package/dist/types/excalidraw/scene/Shape.d.ts +0 -17
  282. package/dist/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  283. package/dist/types/excalidraw/shapes.d.ts +0 -85
  284. package/dist/types/excalidraw/store.d.ts +0 -129
  285. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  286. package/dist/types/math/curve.d.ts +0 -40
  287. package/dist/types/utils/collision.d.ts +0 -9
  288. /package/dist/dev/data/{image-V26YBSDB.js.map → image-RT6RLBUE.js.map} +0 -0
  289. /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-V3NQTBPG.js.map} +0 -0
  290. /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  291. /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  292. /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  293. /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  294. /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  295. /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  296. /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  297. /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  298. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  299. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  300. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  301. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  302. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -1,18 +1,49 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "../element/linearElementEditor";
3
- import type { ExcalidrawLinearElement } from "../element/types";
2
+ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
4
3
  export declare const actionToggleLinearEditor: {
5
4
  name: "toggleLinearEditor";
6
5
  category: string;
7
- label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
6
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
8
7
  keywords: string[];
9
8
  trackEvent: {
10
9
  category: "element";
11
10
  };
12
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
13
- perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
11
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
14
13
  appState: {
15
- editingLinearElement: LinearElementEditor | null;
14
+ selectedLinearElement: {
15
+ isEditing: boolean;
16
+ elementId: string & {
17
+ _brand: "excalidrawLinearElementId";
18
+ };
19
+ selectedPointsIndices: readonly number[] | null;
20
+ pointerDownState: Readonly<{
21
+ prevSelectedPointsIndices: readonly number[] | null;
22
+ lastClickedPoint: number;
23
+ lastClickedIsEndPoint: boolean;
24
+ origin: Readonly<{
25
+ x: number;
26
+ y: number;
27
+ }> | null;
28
+ segmentMidpoint: {
29
+ value: import("@excalidraw/math").GlobalPoint | null;
30
+ index: number | null;
31
+ added: boolean;
32
+ };
33
+ }>;
34
+ isDragging: boolean;
35
+ lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
36
+ pointerOffset: Readonly<{
37
+ x: number;
38
+ y: number;
39
+ }>;
40
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
41
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
42
+ hoverPointIndex: number;
43
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
44
+ elbowed: boolean;
45
+ customLineAngle: number | null;
46
+ };
16
47
  contextMenu: {
17
48
  items: import("../components/ContextMenu").ContextMenuItems;
18
49
  top: number;
@@ -22,17 +53,17 @@ export declare const actionToggleLinearEditor: {
22
53
  isLoading: boolean;
23
54
  errorMessage: import("react").ReactNode;
24
55
  activeEmbeddable: {
25
- element: import("../element/types").NonDeletedExcalidrawElement;
26
- state: "hover" | "active";
56
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
57
+ state: "active" | "hover";
27
58
  } | null;
28
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
29
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
30
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
31
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
59
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
60
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
61
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
62
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
63
  isBindingEnabled: boolean;
33
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
34
- suggestedBindings: import("../element/binding").SuggestedBinding[];
35
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
64
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
65
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
66
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
67
  frameRendering: {
37
68
  enabled: boolean;
38
69
  name: boolean;
@@ -40,11 +71,12 @@ export declare const actionToggleLinearEditor: {
40
71
  clip: boolean;
41
72
  };
42
73
  editingFrame: string | null;
43
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
44
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
74
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
75
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
76
  activeTool: {
46
77
  lastActiveTool: import("../types").ActiveTool | null;
47
78
  locked: boolean;
79
+ fromSelection: boolean;
48
80
  } & import("../types").ActiveTool;
49
81
  penMode: boolean;
50
82
  penDetected: boolean;
@@ -54,18 +86,18 @@ export declare const actionToggleLinearEditor: {
54
86
  exportScale: number;
55
87
  currentItemStrokeColor: string;
56
88
  currentItemBackgroundColor: string;
57
- currentItemFillStyle: import("../element/types").FillStyle;
89
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
58
90
  currentItemStrokeWidth: number;
59
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
91
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
60
92
  currentItemRoughness: number;
61
93
  currentItemOpacity: number;
62
94
  currentItemFontFamily: number;
63
95
  currentItemFontSize: number;
64
96
  currentItemTextAlign: string;
65
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
66
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
97
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
98
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
67
99
  currentHoveredFontFamily: number | null;
68
- currentItemRoundness: import("../element/types").StrokeRoundness;
100
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
69
101
  currentItemArrowType: "round" | "sharp" | "elbow";
70
102
  viewBackgroundColor: string;
71
103
  scrollX: number;
@@ -79,7 +111,7 @@ export declare const actionToggleLinearEditor: {
79
111
  value: import("../types").NormalizedZoomValue;
80
112
  }>;
81
113
  openMenu: "canvas" | "shape" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
114
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
115
  openSidebar: {
84
116
  name: string;
85
117
  tab?: string | undefined;
@@ -88,7 +120,7 @@ export declare const actionToggleLinearEditor: {
88
120
  name: "imageExport" | "help" | "jsonExport";
89
121
  } | {
90
122
  name: "ttd";
91
- tab: "text-to-diagram" | "mermaid";
123
+ tab: "mermaid" | "text-to-diagram";
92
124
  } | {
93
125
  name: "commandPalette";
94
126
  } | {
@@ -96,7 +128,7 @@ export declare const actionToggleLinearEditor: {
96
128
  sourceElementId: string;
97
129
  } | null;
98
130
  defaultSidebarDockedPreference: boolean;
99
- lastPointerDownWith: import("../element/types").PointerType;
131
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
100
132
  selectedElementIds: Readonly<{
101
133
  [id: string]: true;
102
134
  }>;
@@ -114,7 +146,7 @@ export declare const actionToggleLinearEditor: {
114
146
  duration?: number | undefined;
115
147
  } | null;
116
148
  zenModeEnabled: boolean;
117
- theme: import("../element/types").Theme;
149
+ theme: import("@excalidraw/element/types").Theme;
118
150
  gridSize: number;
119
151
  gridStep: number;
120
152
  gridModeEnabled: boolean;
@@ -135,7 +167,7 @@ export declare const actionToggleLinearEditor: {
135
167
  [id: string]: true;
136
168
  }> | undefined;
137
169
  username?: string | null | undefined;
138
- userState?: import("..").UserIdleState | undefined;
170
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
139
171
  color?: {
140
172
  background: string;
141
173
  stroke: string;
@@ -152,7 +184,7 @@ export declare const actionToggleLinearEditor: {
152
184
  open: boolean;
153
185
  panels: number;
154
186
  };
155
- currentChartType: import("../element/types").ChartType;
187
+ currentChartType: import("@excalidraw/element/types").ChartType;
156
188
  pasteDialog: {
157
189
  shown: false;
158
190
  data: null;
@@ -160,9 +192,7 @@ export declare const actionToggleLinearEditor: {
160
192
  shown: true;
161
193
  data: import("../charts").Spreadsheet;
162
194
  };
163
- pendingImageElementId: string | null;
164
- showHyperlinkPopup: false | "info" | "editor";
165
- selectedLinearElement: LinearElementEditor | null;
195
+ showHyperlinkPopup: false | "editor" | "info";
166
196
  snapLines: readonly import("../snapping").SnapLine[];
167
197
  originSnapOffset: {
168
198
  x: number;
@@ -173,20 +203,512 @@ export declare const actionToggleLinearEditor: {
173
203
  followedBy: Set<import("../types").SocketId>;
174
204
  isCropping: boolean;
175
205
  croppingElementId: string | null;
176
- searchMatches: readonly {
177
- id: string;
178
- focus: boolean;
179
- matchedLines: {
180
- offsetX: number;
181
- offsetY: number;
182
- width: number;
183
- height: number;
184
- }[];
185
- }[];
206
+ searchMatches: Readonly<{
207
+ focusedId: string | null;
208
+ matches: readonly import("../types").SearchMatch[];
209
+ }> | null;
210
+ activeLockedId: string | null;
211
+ lockedMultiSelections: {
212
+ [groupId: string]: true;
213
+ };
214
+ stylesPanelMode: "compact" | "full";
186
215
  };
187
216
  captureUpdate: "IMMEDIATELY";
188
217
  };
189
- PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
218
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
219
+ } & {
220
+ keyTest?: undefined;
221
+ };
222
+ export declare const actionTogglePolygon: {
223
+ name: "togglePolygon";
224
+ category: string;
225
+ icon: import("react/jsx-runtime").JSX.Element;
226
+ keywords: string[];
227
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
228
+ trackEvent: {
229
+ category: "element";
230
+ };
231
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
232
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): false | {
233
+ elements: ((Readonly<{
234
+ id: string;
235
+ x: number;
236
+ y: number;
237
+ strokeColor: string;
238
+ backgroundColor: string;
239
+ fillStyle: import("@excalidraw/element/types").FillStyle;
240
+ strokeWidth: number;
241
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
242
+ roundness: {
243
+ type: import("@excalidraw/element/types").RoundnessType;
244
+ value?: number | undefined;
245
+ } | null;
246
+ roughness: number;
247
+ opacity: number;
248
+ width: number;
249
+ height: number;
250
+ angle: import("@excalidraw/math").Radians;
251
+ seed: number;
252
+ version: number;
253
+ versionNonce: number;
254
+ index: import("@excalidraw/element/types").FractionalIndex | null;
255
+ isDeleted: boolean;
256
+ groupIds: readonly string[];
257
+ frameId: string | null;
258
+ boundElements: readonly Readonly<{
259
+ id: string;
260
+ type: "arrow" | "text";
261
+ }>[] | null;
262
+ updated: number;
263
+ link: string | null;
264
+ locked: boolean;
265
+ customData?: Record<string, any> | undefined;
266
+ }> & Readonly<{
267
+ type: "line" | "arrow";
268
+ points: readonly import("@excalidraw/math").LocalPoint[];
269
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
270
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
271
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
272
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
273
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
274
+ }> & {
275
+ index: import("@excalidraw/element/types").FractionalIndex;
276
+ }) | (Readonly<{
277
+ id: string;
278
+ x: number;
279
+ y: number;
280
+ strokeColor: string;
281
+ backgroundColor: string;
282
+ fillStyle: import("@excalidraw/element/types").FillStyle;
283
+ strokeWidth: number;
284
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
285
+ roundness: {
286
+ type: import("@excalidraw/element/types").RoundnessType;
287
+ value?: number | undefined;
288
+ } | null;
289
+ roughness: number;
290
+ opacity: number;
291
+ width: number;
292
+ height: number;
293
+ angle: import("@excalidraw/math").Radians;
294
+ seed: number;
295
+ version: number;
296
+ versionNonce: number;
297
+ index: import("@excalidraw/element/types").FractionalIndex | null;
298
+ isDeleted: boolean;
299
+ groupIds: readonly string[];
300
+ frameId: string | null;
301
+ boundElements: readonly Readonly<{
302
+ id: string;
303
+ type: "arrow" | "text";
304
+ }>[] | null;
305
+ updated: number;
306
+ link: string | null;
307
+ locked: boolean;
308
+ customData?: Record<string, any> | undefined;
309
+ }> & {
310
+ type: "selection";
311
+ } & {
312
+ index: import("@excalidraw/element/types").FractionalIndex;
313
+ }) | (Readonly<{
314
+ id: string;
315
+ x: number;
316
+ y: number;
317
+ strokeColor: string;
318
+ backgroundColor: string;
319
+ fillStyle: import("@excalidraw/element/types").FillStyle;
320
+ strokeWidth: number;
321
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
322
+ roundness: {
323
+ type: import("@excalidraw/element/types").RoundnessType;
324
+ value?: number | undefined;
325
+ } | null;
326
+ roughness: number;
327
+ opacity: number;
328
+ width: number;
329
+ height: number;
330
+ angle: import("@excalidraw/math").Radians;
331
+ seed: number;
332
+ version: number;
333
+ versionNonce: number;
334
+ index: import("@excalidraw/element/types").FractionalIndex | null;
335
+ isDeleted: boolean;
336
+ groupIds: readonly string[];
337
+ frameId: string | null;
338
+ boundElements: readonly Readonly<{
339
+ id: string;
340
+ type: "arrow" | "text";
341
+ }>[] | null;
342
+ updated: number;
343
+ link: string | null;
344
+ locked: boolean;
345
+ customData?: Record<string, any> | undefined;
346
+ }> & {
347
+ type: "rectangle";
348
+ } & {
349
+ index: import("@excalidraw/element/types").FractionalIndex;
350
+ }) | (Readonly<{
351
+ id: string;
352
+ x: number;
353
+ y: number;
354
+ strokeColor: string;
355
+ backgroundColor: string;
356
+ fillStyle: import("@excalidraw/element/types").FillStyle;
357
+ strokeWidth: number;
358
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
359
+ roundness: {
360
+ type: import("@excalidraw/element/types").RoundnessType;
361
+ value?: number | undefined;
362
+ } | null;
363
+ roughness: number;
364
+ opacity: number;
365
+ width: number;
366
+ height: number;
367
+ angle: import("@excalidraw/math").Radians;
368
+ seed: number;
369
+ version: number;
370
+ versionNonce: number;
371
+ index: import("@excalidraw/element/types").FractionalIndex | null;
372
+ isDeleted: boolean;
373
+ groupIds: readonly string[];
374
+ frameId: string | null;
375
+ boundElements: readonly Readonly<{
376
+ id: string;
377
+ type: "arrow" | "text";
378
+ }>[] | null;
379
+ updated: number;
380
+ link: string | null;
381
+ locked: boolean;
382
+ customData?: Record<string, any> | undefined;
383
+ }> & {
384
+ type: "diamond";
385
+ } & {
386
+ index: import("@excalidraw/element/types").FractionalIndex;
387
+ }) | (Readonly<{
388
+ id: string;
389
+ x: number;
390
+ y: number;
391
+ strokeColor: string;
392
+ backgroundColor: string;
393
+ fillStyle: import("@excalidraw/element/types").FillStyle;
394
+ strokeWidth: number;
395
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
396
+ roundness: {
397
+ type: import("@excalidraw/element/types").RoundnessType;
398
+ value?: number | undefined;
399
+ } | null;
400
+ roughness: number;
401
+ opacity: number;
402
+ width: number;
403
+ height: number;
404
+ angle: import("@excalidraw/math").Radians;
405
+ seed: number;
406
+ version: number;
407
+ versionNonce: number;
408
+ index: import("@excalidraw/element/types").FractionalIndex | null;
409
+ isDeleted: boolean;
410
+ groupIds: readonly string[];
411
+ frameId: string | null;
412
+ boundElements: readonly Readonly<{
413
+ id: string;
414
+ type: "arrow" | "text";
415
+ }>[] | null;
416
+ updated: number;
417
+ link: string | null;
418
+ locked: boolean;
419
+ customData?: Record<string, any> | undefined;
420
+ }> & {
421
+ type: "ellipse";
422
+ } & {
423
+ index: import("@excalidraw/element/types").FractionalIndex;
424
+ }) | (Readonly<{
425
+ id: string;
426
+ x: number;
427
+ y: number;
428
+ strokeColor: string;
429
+ backgroundColor: string;
430
+ fillStyle: import("@excalidraw/element/types").FillStyle;
431
+ strokeWidth: number;
432
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
433
+ roundness: {
434
+ type: import("@excalidraw/element/types").RoundnessType;
435
+ value?: number | undefined;
436
+ } | null;
437
+ roughness: number;
438
+ opacity: number;
439
+ width: number;
440
+ height: number;
441
+ angle: import("@excalidraw/math").Radians;
442
+ seed: number;
443
+ version: number;
444
+ versionNonce: number;
445
+ index: import("@excalidraw/element/types").FractionalIndex | null;
446
+ isDeleted: boolean;
447
+ groupIds: readonly string[];
448
+ frameId: string | null;
449
+ boundElements: readonly Readonly<{
450
+ id: string;
451
+ type: "arrow" | "text";
452
+ }>[] | null;
453
+ updated: number;
454
+ link: string | null;
455
+ locked: boolean;
456
+ customData?: Record<string, any> | undefined;
457
+ }> & Readonly<{
458
+ type: "embeddable";
459
+ }> & {
460
+ index: import("@excalidraw/element/types").FractionalIndex;
461
+ }) | (Readonly<{
462
+ id: string;
463
+ x: number;
464
+ y: number;
465
+ strokeColor: string;
466
+ backgroundColor: string;
467
+ fillStyle: import("@excalidraw/element/types").FillStyle;
468
+ strokeWidth: number;
469
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
470
+ roundness: {
471
+ type: import("@excalidraw/element/types").RoundnessType;
472
+ value?: number | undefined;
473
+ } | null;
474
+ roughness: number;
475
+ opacity: number;
476
+ width: number;
477
+ height: number;
478
+ angle: import("@excalidraw/math").Radians;
479
+ seed: number;
480
+ version: number;
481
+ versionNonce: number;
482
+ index: import("@excalidraw/element/types").FractionalIndex | null;
483
+ isDeleted: boolean;
484
+ groupIds: readonly string[];
485
+ frameId: string | null;
486
+ boundElements: readonly Readonly<{
487
+ id: string;
488
+ type: "arrow" | "text";
489
+ }>[] | null;
490
+ updated: number;
491
+ link: string | null;
492
+ locked: boolean;
493
+ customData?: Record<string, any> | undefined;
494
+ }> & Readonly<{
495
+ type: "iframe";
496
+ customData?: {
497
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
498
+ } | undefined;
499
+ }> & {
500
+ index: import("@excalidraw/element/types").FractionalIndex;
501
+ }) | (Readonly<{
502
+ id: string;
503
+ x: number;
504
+ y: number;
505
+ strokeColor: string;
506
+ backgroundColor: string;
507
+ fillStyle: import("@excalidraw/element/types").FillStyle;
508
+ strokeWidth: number;
509
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
510
+ roundness: {
511
+ type: import("@excalidraw/element/types").RoundnessType;
512
+ value?: number | undefined;
513
+ } | null;
514
+ roughness: number;
515
+ opacity: number;
516
+ width: number;
517
+ height: number;
518
+ angle: import("@excalidraw/math").Radians;
519
+ seed: number;
520
+ version: number;
521
+ versionNonce: number;
522
+ index: import("@excalidraw/element/types").FractionalIndex | null;
523
+ isDeleted: boolean;
524
+ groupIds: readonly string[];
525
+ frameId: string | null;
526
+ boundElements: readonly Readonly<{
527
+ id: string;
528
+ type: "arrow" | "text";
529
+ }>[] | null;
530
+ updated: number;
531
+ link: string | null;
532
+ locked: boolean;
533
+ customData?: Record<string, any> | undefined;
534
+ }> & Readonly<{
535
+ type: "image";
536
+ fileId: import("@excalidraw/element/types").FileId | null;
537
+ status: "pending" | "error" | "saved";
538
+ scale: [number, number];
539
+ crop: import("@excalidraw/element/types").ImageCrop | null;
540
+ }> & {
541
+ index: import("@excalidraw/element/types").FractionalIndex;
542
+ }) | (Readonly<{
543
+ id: string;
544
+ x: number;
545
+ y: number;
546
+ strokeColor: string;
547
+ backgroundColor: string;
548
+ fillStyle: import("@excalidraw/element/types").FillStyle;
549
+ strokeWidth: number;
550
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
551
+ roundness: {
552
+ type: import("@excalidraw/element/types").RoundnessType;
553
+ value?: number | undefined;
554
+ } | null;
555
+ roughness: number;
556
+ opacity: number;
557
+ width: number;
558
+ height: number;
559
+ angle: import("@excalidraw/math").Radians;
560
+ seed: number;
561
+ version: number;
562
+ versionNonce: number;
563
+ index: import("@excalidraw/element/types").FractionalIndex | null;
564
+ isDeleted: boolean;
565
+ groupIds: readonly string[];
566
+ frameId: string | null;
567
+ boundElements: readonly Readonly<{
568
+ id: string;
569
+ type: "arrow" | "text";
570
+ }>[] | null;
571
+ updated: number;
572
+ link: string | null;
573
+ locked: boolean;
574
+ customData?: Record<string, any> | undefined;
575
+ }> & {
576
+ type: "frame";
577
+ name: string | null;
578
+ } & {
579
+ index: import("@excalidraw/element/types").FractionalIndex;
580
+ }) | (Readonly<{
581
+ id: string;
582
+ x: number;
583
+ y: number;
584
+ strokeColor: string;
585
+ backgroundColor: string;
586
+ fillStyle: import("@excalidraw/element/types").FillStyle;
587
+ strokeWidth: number;
588
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
589
+ roundness: {
590
+ type: import("@excalidraw/element/types").RoundnessType;
591
+ value?: number | undefined;
592
+ } | null;
593
+ roughness: number;
594
+ opacity: number;
595
+ width: number;
596
+ height: number;
597
+ angle: import("@excalidraw/math").Radians;
598
+ seed: number;
599
+ version: number;
600
+ versionNonce: number;
601
+ index: import("@excalidraw/element/types").FractionalIndex | null;
602
+ isDeleted: boolean;
603
+ groupIds: readonly string[];
604
+ frameId: string | null;
605
+ boundElements: readonly Readonly<{
606
+ id: string;
607
+ type: "arrow" | "text";
608
+ }>[] | null;
609
+ updated: number;
610
+ link: string | null;
611
+ locked: boolean;
612
+ customData?: Record<string, any> | undefined;
613
+ }> & {
614
+ type: "magicframe";
615
+ name: string | null;
616
+ } & {
617
+ index: import("@excalidraw/element/types").FractionalIndex;
618
+ }) | (Readonly<{
619
+ id: string;
620
+ x: number;
621
+ y: number;
622
+ strokeColor: string;
623
+ backgroundColor: string;
624
+ fillStyle: import("@excalidraw/element/types").FillStyle;
625
+ strokeWidth: number;
626
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
627
+ roundness: {
628
+ type: import("@excalidraw/element/types").RoundnessType;
629
+ value?: number | undefined;
630
+ } | null;
631
+ roughness: number;
632
+ opacity: number;
633
+ width: number;
634
+ height: number;
635
+ angle: import("@excalidraw/math").Radians;
636
+ seed: number;
637
+ version: number;
638
+ versionNonce: number;
639
+ index: import("@excalidraw/element/types").FractionalIndex | null;
640
+ isDeleted: boolean;
641
+ groupIds: readonly string[];
642
+ frameId: string | null;
643
+ boundElements: readonly Readonly<{
644
+ id: string;
645
+ type: "arrow" | "text";
646
+ }>[] | null;
647
+ updated: number;
648
+ link: string | null;
649
+ locked: boolean;
650
+ customData?: Record<string, any> | undefined;
651
+ }> & Readonly<{
652
+ type: "text";
653
+ fontSize: number;
654
+ fontFamily: number;
655
+ text: string;
656
+ textAlign: string;
657
+ verticalAlign: string;
658
+ containerId: string | null;
659
+ originalText: string;
660
+ autoResize: boolean;
661
+ lineHeight: number & {
662
+ _brand: "unitlessLineHeight";
663
+ };
664
+ }> & {
665
+ index: import("@excalidraw/element/types").FractionalIndex;
666
+ }) | (Readonly<{
667
+ id: string;
668
+ x: number;
669
+ y: number;
670
+ strokeColor: string;
671
+ backgroundColor: string;
672
+ fillStyle: import("@excalidraw/element/types").FillStyle;
673
+ strokeWidth: number;
674
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
675
+ roundness: {
676
+ type: import("@excalidraw/element/types").RoundnessType;
677
+ value?: number | undefined;
678
+ } | null;
679
+ roughness: number;
680
+ opacity: number;
681
+ width: number;
682
+ height: number;
683
+ angle: import("@excalidraw/math").Radians;
684
+ seed: number;
685
+ version: number;
686
+ versionNonce: number;
687
+ index: import("@excalidraw/element/types").FractionalIndex | null;
688
+ isDeleted: boolean;
689
+ groupIds: readonly string[];
690
+ frameId: string | null;
691
+ boundElements: readonly Readonly<{
692
+ id: string;
693
+ type: "arrow" | "text";
694
+ }>[] | null;
695
+ updated: number;
696
+ link: string | null;
697
+ locked: boolean;
698
+ customData?: Record<string, any> | undefined;
699
+ }> & Readonly<{
700
+ type: "freedraw";
701
+ points: readonly import("@excalidraw/math").LocalPoint[];
702
+ pressures: readonly number[];
703
+ simulatePressure: boolean;
704
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
705
+ }> & {
706
+ index: import("@excalidraw/element/types").FractionalIndex;
707
+ }))[];
708
+ appState: Readonly<import("../types").AppState>;
709
+ captureUpdate: "IMMEDIATELY";
710
+ };
711
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
190
712
  } & {
191
713
  keyTest?: undefined;
192
714
  };