@excalidraw/element 0.18.0-042a6979d → 0.18.0-063e025

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 (308) hide show
  1. package/dist/dev/index.js +7295 -4299
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +20 -19
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +59 -39
  8. package/dist/types/common/src/constants.d.ts +46 -33
  9. package/dist/types/common/src/editorInterface.d.ts +34 -0
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +5 -0
  12. package/dist/types/common/src/keys.d.ts +1 -1
  13. package/dist/types/common/src/utility-types.d.ts +0 -1
  14. package/dist/types/common/src/utils.d.ts +46 -76
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +11 -7
  17. package/dist/types/element/src/align.d.ts +2 -2
  18. package/dist/types/element/src/arrowheads.d.ts +3 -0
  19. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  20. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  21. package/dist/types/element/src/binding.d.ts +69 -50
  22. package/dist/types/element/src/bounds.d.ts +26 -19
  23. package/dist/types/element/src/collision.d.ts +7 -2
  24. package/dist/types/element/src/comparisons.d.ts +8 -7
  25. package/dist/types/element/src/delta.d.ts +0 -1
  26. package/dist/types/element/src/distribute.d.ts +3 -2
  27. package/dist/types/element/src/dragElements.d.ts +3 -3
  28. package/dist/types/element/src/duplicate.d.ts +7 -6
  29. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  30. package/dist/types/element/src/embeddable.d.ts +2 -2
  31. package/dist/types/element/src/flowchart.d.ts +3 -3
  32. package/dist/types/element/src/fractionalIndex.d.ts +4 -4
  33. package/dist/types/element/src/frame.d.ts +14 -9
  34. package/dist/types/element/src/groups.d.ts +9 -9
  35. package/dist/types/element/src/heading.d.ts +2 -1
  36. package/dist/types/element/src/image.d.ts +1 -11
  37. package/dist/types/element/src/index.d.ts +6 -4
  38. package/dist/types/element/src/linearElementEditor.d.ts +31 -30
  39. package/dist/types/element/src/mutateElement.d.ts +5 -1
  40. package/dist/types/element/src/newElement.d.ts +7 -6
  41. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  42. package/dist/types/element/src/renderElement.d.ts +4 -10
  43. package/dist/types/element/src/resizeElements.d.ts +12 -12
  44. package/dist/types/element/src/resizeTest.d.ts +6 -5
  45. package/dist/types/element/src/selection.d.ts +14 -14
  46. package/dist/types/element/src/shape.d.ts +9 -8
  47. package/dist/types/element/src/textElement.d.ts +9 -9
  48. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  49. package/dist/types/element/src/textWrapping.d.ts +26 -0
  50. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  51. package/dist/types/element/src/transformHandles.d.ts +8 -27
  52. package/dist/types/element/src/typeChecks.d.ts +29 -31
  53. package/dist/types/element/src/types.d.ts +20 -14
  54. package/dist/types/element/src/utils.d.ts +9 -4
  55. package/dist/types/element/src/visualdebug.d.ts +58 -0
  56. package/dist/types/element/src/zindex.d.ts +7 -1
  57. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +143 -177
  58. package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
  59. package/dist/types/excalidraw/actions/actionBoundText.d.ts +102 -125
  60. package/dist/types/excalidraw/actions/actionCanvas.d.ts +522 -1194
  61. package/dist/types/excalidraw/actions/actionClipboard.d.ts +104 -868
  62. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +49 -61
  63. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +164 -202
  64. package/dist/types/excalidraw/actions/actionDeselect.d.ts +161 -0
  65. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -6
  66. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  67. package/dist/types/excalidraw/actions/actionElementLink.d.ts +41 -59
  68. package/dist/types/excalidraw/actions/actionElementLock.d.ts +101 -124
  69. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +50 -62
  70. package/dist/types/excalidraw/actions/actionExport.d.ts +179 -1407
  71. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
  72. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  73. package/dist/types/excalidraw/actions/actionFrame.d.ts +304 -386
  74. package/dist/types/excalidraw/actions/actionGroup.d.ts +112 -143
  75. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +162 -211
  76. package/dist/types/excalidraw/actions/actionLink.d.ts +48 -60
  77. package/dist/types/excalidraw/actions/actionMenu.d.ts +40 -424
  78. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
  79. package/dist/types/excalidraw/actions/actionProperties.d.ts +181 -2525
  80. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +56 -72
  81. package/dist/types/excalidraw/actions/actionStyles.d.ts +49 -60
  82. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  83. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +174 -0
  84. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +53 -66
  85. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +174 -0
  86. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +50 -62
  87. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +41 -60
  88. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  89. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +50 -62
  90. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +50 -62
  91. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +51 -63
  92. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  93. package/dist/types/excalidraw/actions/index.d.ts +5 -2
  94. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  95. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  96. package/dist/types/excalidraw/actions/types.d.ts +7 -7
  97. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  98. package/dist/types/excalidraw/appState.d.ts +24 -15
  99. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  100. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  101. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  102. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  103. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  104. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  105. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  106. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  107. package/dist/types/excalidraw/clipboard.d.ts +57 -19
  108. package/dist/types/excalidraw/components/Actions.d.ts +23 -7
  109. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  110. package/dist/types/excalidraw/components/App.d.ts +179 -100
  111. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  112. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  113. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  114. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -3
  115. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  116. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  117. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  118. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -2
  119. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  120. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  121. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  122. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  123. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -4
  124. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  125. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  126. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  127. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  128. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  129. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  130. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -2
  131. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  132. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  133. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  134. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  135. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  136. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  137. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  138. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  139. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  140. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  141. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  142. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  143. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  144. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  145. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  146. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  147. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  148. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  149. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  150. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  151. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  152. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  153. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  154. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  155. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  156. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  157. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  158. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  159. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  160. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  161. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +16 -22
  162. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  163. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  164. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  165. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  166. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  167. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  168. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  169. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  170. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  171. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  172. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -3
  173. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  174. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  175. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  176. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  177. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  178. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  179. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  180. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  181. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  182. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  183. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  184. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  185. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  186. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  187. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  188. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  189. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  190. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  191. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  192. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  193. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  194. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  195. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  196. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  197. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  198. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  199. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  200. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  201. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  202. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  203. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  204. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  205. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  206. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  207. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  208. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  209. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  210. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  211. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  212. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  213. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +8 -4
  214. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
  215. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  216. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  217. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  218. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  219. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  220. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  221. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  222. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  223. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  224. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  225. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  226. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  227. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  228. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  229. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  230. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  231. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  232. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
  233. package/dist/types/excalidraw/components/icons.d.ts +51 -21
  234. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +24 -3
  235. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  236. package/dist/types/excalidraw/components/shapes.d.ts +209 -1
  237. package/dist/types/excalidraw/data/blob.d.ts +331 -12
  238. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  239. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  240. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  241. package/dist/types/excalidraw/data/index.d.ts +8 -9
  242. package/dist/types/excalidraw/data/json.d.ts +171 -3
  243. package/dist/types/excalidraw/data/library.d.ts +25 -10
  244. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  245. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  246. package/dist/types/excalidraw/data/types.d.ts +4 -1
  247. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  248. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  249. package/dist/types/excalidraw/errors.d.ts +14 -0
  250. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  251. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +2 -2
  252. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  253. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  254. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  255. package/dist/types/excalidraw/i18n.d.ts +2 -2
  256. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  257. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  258. package/dist/types/excalidraw/renderer/animation.d.ts +16 -0
  259. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  260. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +7 -15
  261. package/dist/types/excalidraw/scene/Renderer.d.ts +428 -18
  262. package/dist/types/excalidraw/scene/export.d.ts +4 -4
  263. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  264. package/dist/types/excalidraw/scene/types.d.ts +23 -8
  265. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  266. package/dist/types/excalidraw/snapping.d.ts +12 -12
  267. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  268. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  269. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  270. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  271. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  272. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  273. package/dist/types/excalidraw/types.d.ts +294 -43
  274. package/dist/types/excalidraw/viewport.d.ts +316 -0
  275. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +8 -5
  276. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  277. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  278. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  279. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  280. package/dist/types/laser-pointer/src/state.d.ts +35 -0
  281. package/dist/types/math/src/constants.d.ts +0 -1
  282. package/dist/types/math/src/curve.d.ts +4 -1
  283. package/dist/types/math/src/point.d.ts +8 -2
  284. package/dist/types/math/src/polygon.d.ts +2 -2
  285. package/dist/types/math/src/range.d.ts +1 -3
  286. package/dist/types/math/src/segment.d.ts +4 -3
  287. package/dist/types/math/src/types.d.ts +25 -1
  288. package/dist/types/utils/src/export.d.ts +8 -8
  289. package/dist/types/utils/src/index.d.ts +1 -2
  290. package/dist/types/utils/src/shape.d.ts +6 -6
  291. package/package.json +10 -3
  292. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  293. package/dist/types/excalidraw/charts.d.ts +0 -27
  294. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  295. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  296. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  297. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  298. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  299. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  300. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  301. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  302. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  303. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  304. package/dist/types/excalidraw/index.d.ts +0 -47
  305. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  306. package/dist/types/excalidraw/scene/scroll.d.ts +0 -23
  307. package/dist/types/utils/src/bbox.d.ts +0 -9
  308. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  export declare const withInternalFallback: <P>(componentName: string, Component: React.FC<P>) => React.FC<P & {
3
- __fallback?: boolean | undefined;
3
+ __fallback?: boolean;
4
4
  }>;
@@ -1,10 +1,10 @@
1
1
  import type { GlobalPoint, Radians } from "@excalidraw/math";
2
- import type { Bounds } from "@excalidraw/element";
2
+ import type { Bounds } from "@excalidraw/common";
3
3
  import type { ElementsMap, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
4
- import type { AppState, UIAppState } from "../../types";
4
+ import type { AppState } from "../../types";
5
5
  export declare const DEFAULT_LINK_SIZE = 12;
6
6
  export declare const EXTERNAL_LINK_IMG: HTMLImageElement;
7
7
  export declare const ELEMENT_LINK_IMG: HTMLImageElement;
8
- export declare const getLinkHandleFromCoords: ([x1, y1, x2, y2]: Bounds, angle: Radians, appState: Pick<UIAppState, "zoom">) => Bounds;
8
+ export declare const getLinkHandleFromCoords: ([x1, y1, x2, y2]: Bounds, angle: Radians, appState: Pick<AppState, "zoom">) => Bounds;
9
9
  export declare const isPointHittingLinkIcon: (element: NonDeletedExcalidrawElement, elementsMap: ElementsMap, appState: AppState, [x, y]: GlobalPoint) => boolean;
10
10
  export declare const isPointHittingLink: (element: NonDeletedExcalidrawElement, elementsMap: ElementsMap, appState: AppState, [x, y]: GlobalPoint, isMobile: boolean) => boolean;
@@ -11,6 +11,7 @@ export declare const PlusPromoIcon: import("react/jsx-runtime").JSX.Element;
11
11
  export declare const LibraryIcon: import("react/jsx-runtime").JSX.Element;
12
12
  export declare const PlusIcon: import("react/jsx-runtime").JSX.Element;
13
13
  export declare const DotsIcon: import("react/jsx-runtime").JSX.Element;
14
+ export declare const DotsHorizontalIcon: import("react/jsx-runtime").JSX.Element;
14
15
  export declare const PinIcon: import("react/jsx-runtime").JSX.Element;
15
16
  export declare const polygonIcon: import("react/jsx-runtime").JSX.Element;
16
17
  export declare const UnlockedIcon: import("react/jsx-runtime").JSX.Element;
@@ -30,6 +31,7 @@ export declare const LineIcon: import("react/jsx-runtime").JSX.Element;
30
31
  export declare const PenModeIcon: import("react/jsx-runtime").JSX.Element;
31
32
  export declare const FreedrawIcon: import("react/jsx-runtime").JSX.Element;
32
33
  export declare const TextIcon: import("react/jsx-runtime").JSX.Element;
34
+ export declare const TextSizeIcon: import("react/jsx-runtime").JSX.Element;
33
35
  export declare const ImageIcon: import("react/jsx-runtime").JSX.Element;
34
36
  export declare const EraserIcon: import("react/jsx-runtime").JSX.Element;
35
37
  export declare const ZoomInIcon: import("react/jsx-runtime").JSX.Element;
@@ -112,41 +114,54 @@ export declare const StrokeStyleDottedIcon: import("react/jsx-runtime").JSX.Elem
112
114
  export declare const SloppinessArchitectIcon: import("react/jsx-runtime").JSX.Element;
113
115
  export declare const SloppinessArtistIcon: import("react/jsx-runtime").JSX.Element;
114
116
  export declare const SloppinessCartoonistIcon: import("react/jsx-runtime").JSX.Element;
117
+ export declare const strokeVariabilityConstantIcon: import("react/jsx-runtime").JSX.Element;
118
+ export declare const strokeVariabilityVariableIcon: import("react/jsx-runtime").JSX.Element;
115
119
  export declare const EdgeSharpIcon: import("react/jsx-runtime").JSX.Element;
116
120
  export declare const EdgeRoundIcon: import("react/jsx-runtime").JSX.Element;
117
- export declare const ArrowheadNoneIcon: import("react/jsx-runtime").JSX.Element;
121
+ export declare const ArrowheadNoneIcon: React.MemoExoticComponent<({ flip }: {
122
+ flip?: boolean;
123
+ }) => import("react/jsx-runtime").JSX.Element>;
118
124
  export declare const ArrowheadArrowIcon: React.MemoExoticComponent<({ flip }: {
119
- flip?: boolean | undefined;
125
+ flip?: boolean;
126
+ }) => import("react/jsx-runtime").JSX.Element>;
127
+ export declare const ArrowheadTriangleIcon: React.MemoExoticComponent<({ flip }: {
128
+ flip?: boolean;
129
+ }) => import("react/jsx-runtime").JSX.Element>;
130
+ export declare const ArrowheadTriangleOutlineIcon: React.MemoExoticComponent<({ flip }: {
131
+ flip?: boolean;
120
132
  }) => import("react/jsx-runtime").JSX.Element>;
121
133
  export declare const ArrowheadCircleIcon: React.MemoExoticComponent<({ flip }: {
122
- flip?: boolean | undefined;
134
+ flip?: boolean;
123
135
  }) => import("react/jsx-runtime").JSX.Element>;
124
136
  export declare const ArrowheadCircleOutlineIcon: React.MemoExoticComponent<({ flip }: {
125
- flip?: boolean | undefined;
137
+ flip?: boolean;
126
138
  }) => import("react/jsx-runtime").JSX.Element>;
127
- export declare const ArrowheadBarIcon: React.MemoExoticComponent<({ flip }: {
128
- flip?: boolean | undefined;
139
+ export declare const ArrowheadDiamondIcon: React.MemoExoticComponent<({ flip }: {
140
+ flip?: boolean;
129
141
  }) => import("react/jsx-runtime").JSX.Element>;
130
- export declare const ArrowheadTriangleIcon: React.MemoExoticComponent<({ flip }: {
131
- flip?: boolean | undefined;
142
+ export declare const ArrowheadDiamondOutlineIcon: React.MemoExoticComponent<({ flip }: {
143
+ flip?: boolean;
132
144
  }) => import("react/jsx-runtime").JSX.Element>;
133
- export declare const ArrowheadTriangleOutlineIcon: React.MemoExoticComponent<({ flip }: {
134
- flip?: boolean | undefined;
145
+ export declare const ArrowheadBarIcon: React.MemoExoticComponent<({ flip }: {
146
+ flip?: boolean;
135
147
  }) => import("react/jsx-runtime").JSX.Element>;
136
- export declare const ArrowheadDiamondIcon: React.MemoExoticComponent<({ flip }: {
137
- flip?: boolean | undefined;
148
+ export declare const ArrowheadCardinalityOneIcon: React.MemoExoticComponent<({ flip }: {
149
+ flip?: boolean;
138
150
  }) => import("react/jsx-runtime").JSX.Element>;
139
- export declare const ArrowheadDiamondOutlineIcon: React.MemoExoticComponent<({ flip }: {
140
- flip?: boolean | undefined;
151
+ export declare const ArrowheadCardinalityManyIcon: React.MemoExoticComponent<({ flip }: {
152
+ flip?: boolean;
153
+ }) => import("react/jsx-runtime").JSX.Element>;
154
+ export declare const ArrowheadCardinalityOneOrManyIcon: React.MemoExoticComponent<({ flip }: {
155
+ flip?: boolean;
141
156
  }) => import("react/jsx-runtime").JSX.Element>;
142
- export declare const ArrowheadCrowfootIcon: React.MemoExoticComponent<({ flip }: {
143
- flip?: boolean | undefined;
157
+ export declare const ArrowheadCardinalityExactlyOneIcon: React.MemoExoticComponent<({ flip }: {
158
+ flip?: boolean;
144
159
  }) => import("react/jsx-runtime").JSX.Element>;
145
- export declare const ArrowheadCrowfootOneIcon: React.MemoExoticComponent<({ flip }: {
146
- flip?: boolean | undefined;
160
+ export declare const ArrowheadCardinalityZeroOrOneIcon: React.MemoExoticComponent<({ flip }: {
161
+ flip?: boolean;
147
162
  }) => import("react/jsx-runtime").JSX.Element>;
148
- export declare const ArrowheadCrowfootOneOrManyIcon: React.MemoExoticComponent<({ flip }: {
149
- flip?: boolean | undefined;
163
+ export declare const ArrowheadCardinalityZeroOrManyIcon: React.MemoExoticComponent<({ flip }: {
164
+ flip?: boolean;
150
165
  }) => import("react/jsx-runtime").JSX.Element>;
151
166
  export declare const FontSizeSmallIcon: import("react/jsx-runtime").JSX.Element;
152
167
  export declare const FontSizeMediumIcon: import("react/jsx-runtime").JSX.Element;
@@ -155,6 +170,7 @@ export declare const FontSizeExtraLargeIcon: import("react/jsx-runtime").JSX.Ele
155
170
  export declare const fontSizeIcon: import("react/jsx-runtime").JSX.Element;
156
171
  export declare const FontFamilyHeadingIcon: import("react/jsx-runtime").JSX.Element;
157
172
  export declare const FontFamilyNormalIcon: import("react/jsx-runtime").JSX.Element;
173
+ export declare const codeIcon: import("react/jsx-runtime").JSX.Element;
158
174
  export declare const FontFamilyCodeIcon: import("react/jsx-runtime").JSX.Element;
159
175
  export declare const TextAlignLeftIcon: import("react/jsx-runtime").JSX.Element;
160
176
  export declare const TextAlignCenterIcon: import("react/jsx-runtime").JSX.Element;
@@ -184,6 +200,8 @@ export declare const eyeDropperIcon: import("react/jsx-runtime").JSX.Element;
184
200
  export declare const extraToolsIcon: import("react/jsx-runtime").JSX.Element;
185
201
  export declare const frameToolIcon: import("react/jsx-runtime").JSX.Element;
186
202
  export declare const mermaidLogoIcon: import("react/jsx-runtime").JSX.Element;
203
+ export declare const RetryIcon: import("react/jsx-runtime").JSX.Element;
204
+ export declare const stackPushIcon: import("react/jsx-runtime").JSX.Element;
187
205
  export declare const ArrowRightIcon: import("react/jsx-runtime").JSX.Element;
188
206
  export declare const laserPointerToolIcon: import("react/jsx-runtime").JSX.Element;
189
207
  export declare const MagicIcon: import("react/jsx-runtime").JSX.Element;
@@ -195,7 +213,8 @@ export declare const eyeClosedIcon: import("react/jsx-runtime").JSX.Element;
195
213
  export declare const brainIcon: import("react/jsx-runtime").JSX.Element;
196
214
  export declare const brainIconThin: import("react/jsx-runtime").JSX.Element;
197
215
  export declare const searchIcon: import("react/jsx-runtime").JSX.Element;
198
- export declare const clockIcon: import("react/jsx-runtime").JSX.Element;
216
+ export declare const historyCommandIcon: import("react/jsx-runtime").JSX.Element;
217
+ export declare const historyIcon: import("react/jsx-runtime").JSX.Element;
199
218
  export declare const microphoneIcon: import("react/jsx-runtime").JSX.Element;
200
219
  export declare const microphoneMutedIcon: import("react/jsx-runtime").JSX.Element;
201
220
  export declare const boltIcon: import("react/jsx-runtime").JSX.Element;
@@ -222,4 +241,15 @@ export declare const collapseUpIcon: import("react/jsx-runtime").JSX.Element;
222
241
  export declare const upIcon: import("react/jsx-runtime").JSX.Element;
223
242
  export declare const cropIcon: import("react/jsx-runtime").JSX.Element;
224
243
  export declare const elementLinkIcon: import("react/jsx-runtime").JSX.Element;
244
+ export declare const resizeIcon: import("react/jsx-runtime").JSX.Element;
245
+ export declare const adjustmentsIcon: import("react/jsx-runtime").JSX.Element;
246
+ export declare const strokeIcon: import("react/jsx-runtime").JSX.Element;
247
+ export declare const pencilIcon: import("react/jsx-runtime").JSX.Element;
248
+ export declare const chevronLeftIcon: import("react/jsx-runtime").JSX.Element;
249
+ export declare const sidebarRightIcon: import("react/jsx-runtime").JSX.Element;
250
+ export declare const messageCircleIcon: import("react/jsx-runtime").JSX.Element;
251
+ export declare const presentationIcon: import("react/jsx-runtime").JSX.Element;
252
+ export declare const emptyIcon: import("react/jsx-runtime").JSX.Element;
253
+ export declare const chevronRight: import("react/jsx-runtime").JSX.Element;
254
+ export declare const settingsIcon: import("react/jsx-runtime").JSX.Element;
225
255
  export {};
@@ -35,11 +35,14 @@ export declare const ClearCanvas: {
35
35
  export declare const ToggleTheme: {
36
36
  (props: {
37
37
  allowSystemTheme: true;
38
+ /**
39
+ * Controls the theme of this UI component only.
40
+ * You should subscribe to `props.onThemeChange` and control the theme
41
+ * upstream.
42
+ */
38
43
  theme: Theme | "system";
39
- onSelect: (theme: Theme | "system") => void;
40
44
  } | {
41
- allowSystemTheme?: false | undefined;
42
- onSelect?: ((theme: Theme) => void) | undefined;
45
+ allowSystemTheme: false;
43
46
  }): import("react/jsx-runtime").JSX.Element | null;
44
47
  displayName: string;
45
48
  };
@@ -62,3 +65,21 @@ export declare const LiveCollaborationTrigger: {
62
65
  }): import("react/jsx-runtime").JSX.Element;
63
66
  displayName: string;
64
67
  };
68
+ export declare const PreferencesToggleGridModeItem: () => import("react/jsx-runtime").JSX.Element;
69
+ export declare const PreferencesToggleZenModeItem: () => import("react/jsx-runtime").JSX.Element;
70
+ export declare const Preferences: {
71
+ ({ children, additionalItems, }: {
72
+ children?: React.ReactNode;
73
+ additionalItems?: React.ReactNode;
74
+ }): import("react/jsx-runtime").JSX.Element;
75
+ ToggleToolLock: () => import("react/jsx-runtime").JSX.Element;
76
+ BoxSelectionMode: () => import("react/jsx-runtime").JSX.Element;
77
+ ToggleSnapMode: () => import("react/jsx-runtime").JSX.Element;
78
+ ToggleArrowBinding: () => import("react/jsx-runtime").JSX.Element;
79
+ ToggleMidpointSnapping: () => import("react/jsx-runtime").JSX.Element;
80
+ ToggleGridMode: () => import("react/jsx-runtime").JSX.Element;
81
+ ToggleZenMode: () => import("react/jsx-runtime").JSX.Element;
82
+ ToggleViewMode: () => import("react/jsx-runtime").JSX.Element;
83
+ ToggleElementProperties: () => import("react/jsx-runtime").JSX.Element;
84
+ displayName: string;
85
+ };
@@ -5,43 +5,25 @@ declare const MainMenu: React.FC<{
5
5
  /**
6
6
  * Called when any menu item is selected (clicked on).
7
7
  */
8
- onSelect?: ((event: Event) => void) | undefined;
8
+ onSelect?: (event: Event) => void;
9
9
  } & {
10
- __fallback?: boolean | undefined;
10
+ __fallback?: boolean;
11
11
  }> & {
12
12
  Trigger: {
13
13
  ({ className, children, onToggle, title, ...rest }: {
14
- className?: string | undefined;
14
+ className?: string;
15
15
  children: React.ReactNode;
16
16
  onToggle: () => void;
17
- title?: string | undefined;
17
+ title?: string;
18
18
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
19
19
  displayName: string;
20
20
  };
21
21
  Item: {
22
- ({ icon, value, order, children, shortcut, className, hovered, selected, textStyle, onSelect, onClick, ...rest }: {
23
- icon?: React.JSX.Element | undefined;
24
- value?: string | number | undefined;
25
- order?: number | undefined;
26
- onSelect?: ((event: Event) => void) | undefined;
27
- children: React.ReactNode;
28
- /**
29
- * Called when any menu item is selected (clicked on).
30
- */
31
- shortcut?: string | undefined;
32
- hovered?: boolean | undefined;
33
- selected?: boolean | undefined;
34
- textStyle?: React.CSSProperties | undefined;
35
- className?: string | undefined;
36
- } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
22
+ ({ icon, badge, value, children, shortcut, className, selected, onSelect, ...rest }: import("../dropdownMenu/DropdownMenuItem").DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element;
37
23
  displayName: string;
38
24
  Badge: {
39
25
  ({ type, children, }: {
40
- type?: import("../../../common/src/utility-types").ValueOf<{
41
- readonly GREEN: "green";
42
- readonly RED: "red";
43
- readonly BLUE: "blue";
44
- }> | undefined;
26
+ type?: import("@excalidraw/common/utility-types").ValueOf<typeof import("../dropdownMenu/DropdownMenuItem").DropDownMenuItemBadgeType>;
45
27
  children: React.ReactNode;
46
28
  }): import("react/jsx-runtime").JSX.Element;
47
29
  displayName: string;
@@ -50,27 +32,27 @@ declare const MainMenu: React.FC<{
50
32
  ItemLink: {
51
33
  ({ icon, shortcut, href, children, onSelect, className, selected, rel, ...rest }: {
52
34
  href: string;
53
- icon?: React.JSX.Element | undefined;
35
+ icon?: React.JSX.Element;
54
36
  children: React.ReactNode;
55
- shortcut?: string | undefined;
56
- className?: string | undefined;
57
- selected?: boolean | undefined;
58
- onSelect?: ((event: Event) => void) | undefined;
59
- rel?: string | undefined;
37
+ shortcut?: string;
38
+ className?: string;
39
+ selected?: boolean;
40
+ onSelect?: (event: Event) => void;
41
+ rel?: string;
60
42
  } & React.AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
61
43
  displayName: string;
62
44
  };
63
45
  ItemCustom: ({ children, className, selected, ...rest }: {
64
46
  children: React.ReactNode;
65
- className?: string | undefined;
66
- selected?: boolean | undefined;
47
+ className?: string;
48
+ selected?: boolean;
67
49
  } & React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
68
50
  Group: {
69
51
  ({ children, className, style, title, }: {
70
52
  children: React.ReactNode;
71
- className?: string | undefined;
72
- style?: React.CSSProperties | undefined;
73
- title?: string | undefined;
53
+ className?: string;
54
+ style?: React.CSSProperties;
55
+ title?: string;
74
56
  }): import("react/jsx-runtime").JSX.Element;
75
57
  displayName: string;
76
58
  };
@@ -78,6 +60,28 @@ declare const MainMenu: React.FC<{
78
60
  (): import("react/jsx-runtime").JSX.Element;
79
61
  displayName: string;
80
62
  };
63
+ Sub: {
64
+ ({ children }: {
65
+ children?: React.ReactNode;
66
+ }): import("react/jsx-runtime").JSX.Element;
67
+ Trigger: {
68
+ ({ children, icon, shortcut, className, }: {
69
+ children: React.ReactNode;
70
+ icon?: React.JSX.Element;
71
+ shortcut?: string;
72
+ className?: string;
73
+ }): import("react/jsx-runtime").JSX.Element;
74
+ displayName: string;
75
+ };
76
+ Content: {
77
+ ({ children, className, }: {
78
+ children?: React.ReactNode;
79
+ className?: string;
80
+ }): import("react/jsx-runtime").JSX.Element;
81
+ displayName: string;
82
+ };
83
+ displayName: string;
84
+ };
81
85
  DefaultItems: typeof DefaultItems;
82
86
  };
83
87
  export default MainMenu;
@@ -1,62 +1,270 @@
1
+ import type { AppClassProperties } from "../types";
1
2
  export declare const SHAPES: readonly [{
3
+ readonly icon: import("react/jsx-runtime").JSX.Element;
4
+ readonly value: "hand";
5
+ readonly key: "h";
6
+ readonly numericKey: null;
7
+ readonly fillable: false;
8
+ readonly toolbar: true;
9
+ }, {
2
10
  readonly icon: import("react/jsx-runtime").JSX.Element;
3
11
  readonly value: "selection";
4
12
  readonly key: "v";
5
13
  readonly numericKey: "1";
6
14
  readonly fillable: true;
15
+ readonly toolbar: true;
7
16
  }, {
8
17
  readonly icon: import("react/jsx-runtime").JSX.Element;
9
18
  readonly value: "rectangle";
10
19
  readonly key: "r";
11
20
  readonly numericKey: "2";
12
21
  readonly fillable: true;
22
+ readonly toolbar: true;
13
23
  }, {
14
24
  readonly icon: import("react/jsx-runtime").JSX.Element;
15
25
  readonly value: "diamond";
16
26
  readonly key: "d";
17
27
  readonly numericKey: "3";
18
28
  readonly fillable: true;
29
+ readonly toolbar: true;
19
30
  }, {
20
31
  readonly icon: import("react/jsx-runtime").JSX.Element;
21
32
  readonly value: "ellipse";
22
33
  readonly key: "o";
23
34
  readonly numericKey: "4";
24
35
  readonly fillable: true;
36
+ readonly toolbar: true;
25
37
  }, {
26
38
  readonly icon: import("react/jsx-runtime").JSX.Element;
27
39
  readonly value: "arrow";
28
40
  readonly key: "a";
29
41
  readonly numericKey: "5";
30
42
  readonly fillable: true;
43
+ readonly toolbar: true;
31
44
  }, {
32
45
  readonly icon: import("react/jsx-runtime").JSX.Element;
33
46
  readonly value: "line";
34
47
  readonly key: "l";
35
48
  readonly numericKey: "6";
36
49
  readonly fillable: true;
50
+ readonly toolbar: true;
37
51
  }, {
38
52
  readonly icon: import("react/jsx-runtime").JSX.Element;
39
53
  readonly value: "freedraw";
40
54
  readonly key: readonly ["p", "x"];
41
55
  readonly numericKey: "7";
42
56
  readonly fillable: false;
57
+ readonly toolbar: true;
43
58
  }, {
44
59
  readonly icon: import("react/jsx-runtime").JSX.Element;
45
60
  readonly value: "text";
46
61
  readonly key: "t";
47
62
  readonly numericKey: "8";
48
63
  readonly fillable: false;
64
+ readonly toolbar: true;
49
65
  }, {
50
66
  readonly icon: import("react/jsx-runtime").JSX.Element;
51
67
  readonly value: "image";
52
68
  readonly key: null;
53
69
  readonly numericKey: "9";
54
70
  readonly fillable: false;
71
+ readonly toolbar: true;
55
72
  }, {
56
73
  readonly icon: import("react/jsx-runtime").JSX.Element;
57
74
  readonly value: "eraser";
58
75
  readonly key: "e";
59
76
  readonly numericKey: "0";
60
77
  readonly fillable: false;
78
+ readonly toolbar: true;
79
+ }, {
80
+ readonly icon: import("react/jsx-runtime").JSX.Element;
81
+ readonly value: "laser";
82
+ readonly key: "k";
83
+ readonly numericKey: null;
84
+ readonly fillable: false;
85
+ readonly toolbar: false;
61
86
  }];
62
- export declare const findShapeByKey: (key: string) => "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | null;
87
+ export declare const getToolbarTools: (app: AppClassProperties) => readonly [{
88
+ readonly icon: import("react/jsx-runtime").JSX.Element;
89
+ readonly value: "hand";
90
+ readonly key: "h";
91
+ readonly numericKey: null;
92
+ readonly fillable: false;
93
+ readonly toolbar: true;
94
+ }, {
95
+ readonly icon: import("react/jsx-runtime").JSX.Element;
96
+ readonly value: "selection";
97
+ readonly key: "v";
98
+ readonly numericKey: "1";
99
+ readonly fillable: true;
100
+ readonly toolbar: true;
101
+ }, {
102
+ readonly icon: import("react/jsx-runtime").JSX.Element;
103
+ readonly value: "rectangle";
104
+ readonly key: "r";
105
+ readonly numericKey: "2";
106
+ readonly fillable: true;
107
+ readonly toolbar: true;
108
+ }, {
109
+ readonly icon: import("react/jsx-runtime").JSX.Element;
110
+ readonly value: "diamond";
111
+ readonly key: "d";
112
+ readonly numericKey: "3";
113
+ readonly fillable: true;
114
+ readonly toolbar: true;
115
+ }, {
116
+ readonly icon: import("react/jsx-runtime").JSX.Element;
117
+ readonly value: "ellipse";
118
+ readonly key: "o";
119
+ readonly numericKey: "4";
120
+ readonly fillable: true;
121
+ readonly toolbar: true;
122
+ }, {
123
+ readonly icon: import("react/jsx-runtime").JSX.Element;
124
+ readonly value: "arrow";
125
+ readonly key: "a";
126
+ readonly numericKey: "5";
127
+ readonly fillable: true;
128
+ readonly toolbar: true;
129
+ }, {
130
+ readonly icon: import("react/jsx-runtime").JSX.Element;
131
+ readonly value: "line";
132
+ readonly key: "l";
133
+ readonly numericKey: "6";
134
+ readonly fillable: true;
135
+ readonly toolbar: true;
136
+ }, {
137
+ readonly icon: import("react/jsx-runtime").JSX.Element;
138
+ readonly value: "freedraw";
139
+ readonly key: readonly ["p", "x"];
140
+ readonly numericKey: "7";
141
+ readonly fillable: false;
142
+ readonly toolbar: true;
143
+ }, {
144
+ readonly icon: import("react/jsx-runtime").JSX.Element;
145
+ readonly value: "text";
146
+ readonly key: "t";
147
+ readonly numericKey: "8";
148
+ readonly fillable: false;
149
+ readonly toolbar: true;
150
+ }, {
151
+ readonly icon: import("react/jsx-runtime").JSX.Element;
152
+ readonly value: "image";
153
+ readonly key: null;
154
+ readonly numericKey: "9";
155
+ readonly fillable: false;
156
+ readonly toolbar: true;
157
+ }, {
158
+ readonly icon: import("react/jsx-runtime").JSX.Element;
159
+ readonly value: "eraser";
160
+ readonly key: "e";
161
+ readonly numericKey: "0";
162
+ readonly fillable: false;
163
+ readonly toolbar: true;
164
+ }, {
165
+ readonly icon: import("react/jsx-runtime").JSX.Element;
166
+ readonly value: "laser";
167
+ readonly key: "k";
168
+ readonly numericKey: null;
169
+ readonly fillable: false;
170
+ readonly toolbar: false;
171
+ }] | readonly [{
172
+ readonly icon: import("react/jsx-runtime").JSX.Element;
173
+ readonly value: "hand";
174
+ readonly key: "h";
175
+ readonly numericKey: null;
176
+ readonly fillable: false;
177
+ readonly toolbar: true;
178
+ }, {
179
+ readonly value: "lasso";
180
+ readonly icon: import("react/jsx-runtime").JSX.Element;
181
+ readonly key: "v";
182
+ readonly numericKey: "1";
183
+ readonly fillable: true;
184
+ readonly toolbar: true;
185
+ }, ...({
186
+ readonly icon: import("react/jsx-runtime").JSX.Element;
187
+ readonly value: "hand";
188
+ readonly key: "h";
189
+ readonly numericKey: null;
190
+ readonly fillable: false;
191
+ readonly toolbar: true;
192
+ } | {
193
+ readonly icon: import("react/jsx-runtime").JSX.Element;
194
+ readonly value: "selection";
195
+ readonly key: "v";
196
+ readonly numericKey: "1";
197
+ readonly fillable: true;
198
+ readonly toolbar: true;
199
+ } | {
200
+ readonly icon: import("react/jsx-runtime").JSX.Element;
201
+ readonly value: "rectangle";
202
+ readonly key: "r";
203
+ readonly numericKey: "2";
204
+ readonly fillable: true;
205
+ readonly toolbar: true;
206
+ } | {
207
+ readonly icon: import("react/jsx-runtime").JSX.Element;
208
+ readonly value: "diamond";
209
+ readonly key: "d";
210
+ readonly numericKey: "3";
211
+ readonly fillable: true;
212
+ readonly toolbar: true;
213
+ } | {
214
+ readonly icon: import("react/jsx-runtime").JSX.Element;
215
+ readonly value: "ellipse";
216
+ readonly key: "o";
217
+ readonly numericKey: "4";
218
+ readonly fillable: true;
219
+ readonly toolbar: true;
220
+ } | {
221
+ readonly icon: import("react/jsx-runtime").JSX.Element;
222
+ readonly value: "arrow";
223
+ readonly key: "a";
224
+ readonly numericKey: "5";
225
+ readonly fillable: true;
226
+ readonly toolbar: true;
227
+ } | {
228
+ readonly icon: import("react/jsx-runtime").JSX.Element;
229
+ readonly value: "line";
230
+ readonly key: "l";
231
+ readonly numericKey: "6";
232
+ readonly fillable: true;
233
+ readonly toolbar: true;
234
+ } | {
235
+ readonly icon: import("react/jsx-runtime").JSX.Element;
236
+ readonly value: "freedraw";
237
+ readonly key: readonly ["p", "x"];
238
+ readonly numericKey: "7";
239
+ readonly fillable: false;
240
+ readonly toolbar: true;
241
+ } | {
242
+ readonly icon: import("react/jsx-runtime").JSX.Element;
243
+ readonly value: "text";
244
+ readonly key: "t";
245
+ readonly numericKey: "8";
246
+ readonly fillable: false;
247
+ readonly toolbar: true;
248
+ } | {
249
+ readonly icon: import("react/jsx-runtime").JSX.Element;
250
+ readonly value: "image";
251
+ readonly key: null;
252
+ readonly numericKey: "9";
253
+ readonly fillable: false;
254
+ readonly toolbar: true;
255
+ } | {
256
+ readonly icon: import("react/jsx-runtime").JSX.Element;
257
+ readonly value: "eraser";
258
+ readonly key: "e";
259
+ readonly numericKey: "0";
260
+ readonly fillable: false;
261
+ readonly toolbar: true;
262
+ } | {
263
+ readonly icon: import("react/jsx-runtime").JSX.Element;
264
+ readonly value: "laser";
265
+ readonly key: "k";
266
+ readonly numericKey: null;
267
+ readonly fillable: false;
268
+ readonly toolbar: false;
269
+ })[]];
270
+ export declare const findShapeByKey: (key: string, app: AppClassProperties) => "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "lasso" | "eraser" | "hand" | "laser" | null;