@excalidraw/math 0.18.0-d1f3982 → 0.18.0-d9e8a33

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 (254) hide show
  1. package/dist/dev/index.js +40 -10
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +1 -1
  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 +19 -11
  9. package/dist/types/common/src/editorInterface.d.ts +1 -1
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +4 -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 +51 -40
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +5 -3
  17. package/dist/types/element/src/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  19. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  20. package/dist/types/element/src/binding.d.ts +67 -48
  21. package/dist/types/element/src/bounds.d.ts +7 -13
  22. package/dist/types/element/src/collision.d.ts +7 -2
  23. package/dist/types/element/src/comparisons.d.ts +7 -7
  24. package/dist/types/element/src/distribute.d.ts +2 -1
  25. package/dist/types/element/src/dragElements.d.ts +3 -3
  26. package/dist/types/element/src/duplicate.d.ts +3 -3
  27. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +6 -2
  30. package/dist/types/element/src/heading.d.ts +2 -1
  31. package/dist/types/element/src/image.d.ts +1 -11
  32. package/dist/types/element/src/index.d.ts +4 -3
  33. package/dist/types/element/src/linearElementEditor.d.ts +23 -22
  34. package/dist/types/element/src/mutateElement.d.ts +5 -1
  35. package/dist/types/element/src/newElement.d.ts +6 -6
  36. package/dist/types/element/src/renderElement.d.ts +1 -7
  37. package/dist/types/element/src/resizeElements.d.ts +10 -10
  38. package/dist/types/element/src/resizeTest.d.ts +1 -1
  39. package/dist/types/element/src/selection.d.ts +10 -10
  40. package/dist/types/element/src/shape.d.ts +9 -8
  41. package/dist/types/element/src/textElement.d.ts +1 -1
  42. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  43. package/dist/types/element/src/textWrapping.d.ts +26 -0
  44. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  45. package/dist/types/element/src/transformHandles.d.ts +3 -23
  46. package/dist/types/element/src/typeChecks.d.ts +4 -7
  47. package/dist/types/element/src/types.d.ts +12 -13
  48. package/dist/types/element/src/utils.d.ts +9 -4
  49. package/dist/types/element/src/zindex.d.ts +7 -1
  50. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +152 -201
  51. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  52. package/dist/types/excalidraw/actions/actionBoundText.d.ts +82 -115
  53. package/dist/types/excalidraw/actions/actionCanvas.d.ts +484 -869
  54. package/dist/types/excalidraw/actions/actionClipboard.d.ts +113 -903
  55. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +39 -56
  56. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +129 -182
  57. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +48 -71
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +80 -113
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +54 -71
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +161 -1427
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -402
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +241 -344
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +85 -126
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +131 -186
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +56 -73
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -65
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -367
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +142 -2566
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +42 -63
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +39 -55
  75. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  76. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  77. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +54 -71
  78. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +54 -71
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -65
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +53 -70
  83. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +54 -71
  84. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +54 -71
  85. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  86. package/dist/types/excalidraw/actions/index.d.ts +3 -0
  87. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  90. package/dist/types/excalidraw/appState.d.ts +24 -20
  91. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  92. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  93. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  94. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  95. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  96. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  97. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  98. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  99. package/dist/types/excalidraw/clipboard.d.ts +13 -38
  100. package/dist/types/excalidraw/components/Actions.d.ts +5 -2
  101. package/dist/types/excalidraw/components/App.d.ts +93 -56
  102. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  103. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  104. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  105. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  106. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  107. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  108. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  109. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  110. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  111. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  112. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  114. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  115. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  116. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  117. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  118. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  119. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  120. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  121. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  122. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  123. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  124. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  125. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  126. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  127. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  128. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  129. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  130. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  131. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  132. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  133. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  134. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  135. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  136. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  137. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  138. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  139. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  140. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  141. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  142. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  143. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  144. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  145. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  146. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  147. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  148. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  149. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  150. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  151. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  152. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  153. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  154. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  155. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  156. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  157. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  158. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  159. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  160. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  161. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  162. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  163. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  164. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  165. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  166. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  167. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  168. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  169. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  170. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  171. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  172. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  173. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  174. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  175. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  176. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  177. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  178. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  179. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +5 -2
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  181. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  182. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  183. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  184. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  185. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  186. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  187. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  188. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  193. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  194. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  195. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  196. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  197. package/dist/types/excalidraw/components/icons.d.ts +44 -21
  198. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  199. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
  200. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  201. package/dist/types/excalidraw/data/blob.d.ts +328 -7
  202. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  203. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  204. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  205. package/dist/types/excalidraw/data/index.d.ts +4 -5
  206. package/dist/types/excalidraw/data/json.d.ts +171 -4
  207. package/dist/types/excalidraw/data/library.d.ts +24 -9
  208. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  209. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  210. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  211. package/dist/types/excalidraw/errors.d.ts +14 -0
  212. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  213. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  214. package/dist/types/excalidraw/i18n.d.ts +2 -2
  215. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  216. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  217. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  218. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  219. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  220. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  221. package/dist/types/excalidraw/scene/types.d.ts +19 -2
  222. package/dist/types/excalidraw/snapping.d.ts +5 -5
  223. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  224. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  225. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  226. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  227. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  228. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  229. package/dist/types/excalidraw/types.d.ts +109 -21
  230. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  231. package/dist/types/math/src/curve.d.ts +4 -1
  232. package/dist/types/math/src/point.d.ts +7 -2
  233. package/dist/types/math/src/polygon.d.ts +2 -2
  234. package/dist/types/math/src/range.d.ts +1 -3
  235. package/dist/types/math/src/segment.d.ts +3 -3
  236. package/dist/types/math/src/types.d.ts +25 -1
  237. package/dist/types/utils/src/bbox.d.ts +1 -1
  238. package/dist/types/utils/src/export.d.ts +5 -5
  239. package/dist/types/utils/src/shape.d.ts +6 -6
  240. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  241. package/package.json +2 -2
  242. package/dist/types/excalidraw/charts.d.ts +0 -27
  243. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  244. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  245. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  246. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  247. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  248. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -22
  249. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  250. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  251. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  252. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  253. package/dist/types/excalidraw/index.d.ts +0 -46
  254. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import type { JSX } from "react";
3
+ declare const DropdownMenuSubTrigger: {
4
+ ({ children, icon, shortcut, className, }: {
5
+ children: React.ReactNode;
6
+ icon?: JSX.Element;
7
+ shortcut?: string;
8
+ className?: string;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ export default DropdownMenuSubTrigger;
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  declare const MenuTrigger: {
3
2
  ({ className, children, onToggle, title, ...rest }: {
4
- className?: string | undefined;
3
+ className?: string;
5
4
  children: React.ReactNode;
6
5
  onToggle: () => void;
7
- title?: string | undefined;
8
- } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
6
+ title?: string;
7
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
9
8
  displayName: string;
10
9
  };
11
10
  export default MenuTrigger;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  export declare const DropdownMenuContentPropsContext: React.Context<{
3
- onSelect?: ((event: Event) => void) | undefined;
3
+ onSelect?: (event: Event) => void;
4
4
  }>;
5
5
  export declare const getDropdownMenuItemClassName: (className?: string, selected?: boolean, hovered?: boolean) => string;
6
- export declare const useHandleDropdownMenuItemClick: (origOnClick: React.MouseEventHandler<HTMLAnchorElement | HTMLButtonElement> | undefined, onSelect: ((event: Event) => void) | undefined) => (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement, MouseEvent>) => void;
6
+ export declare const useHandleDropdownMenuItemSelect: (onSelect: ((event: Event) => void) | undefined) => (event: Event) => void;
@@ -1,3 +1,5 @@
1
1
  import React from "react";
2
2
  export declare const getMenuTriggerComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
3
3
  export declare const getMenuContentComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
4
+ export declare const getSubMenuTriggerComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
5
+ export declare const getSubMenuContentComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
@@ -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,5 +1,5 @@
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
4
  import type { AppState, UIAppState } from "../../types";
5
5
  export declare const DEFAULT_LINK_SIZE = 12;
@@ -116,39 +116,50 @@ export declare const SloppinessArtistIcon: import("react/jsx-runtime").JSX.Eleme
116
116
  export declare const SloppinessCartoonistIcon: import("react/jsx-runtime").JSX.Element;
117
117
  export declare const EdgeSharpIcon: import("react/jsx-runtime").JSX.Element;
118
118
  export declare const EdgeRoundIcon: import("react/jsx-runtime").JSX.Element;
119
- export declare const ArrowheadNoneIcon: import("react/jsx-runtime").JSX.Element;
119
+ export declare const ArrowheadNoneIcon: React.MemoExoticComponent<({ flip }: {
120
+ flip?: boolean;
121
+ }) => import("react/jsx-runtime").JSX.Element>;
120
122
  export declare const ArrowheadArrowIcon: React.MemoExoticComponent<({ flip }: {
121
- flip?: boolean | undefined;
123
+ flip?: boolean;
124
+ }) => import("react/jsx-runtime").JSX.Element>;
125
+ export declare const ArrowheadTriangleIcon: React.MemoExoticComponent<({ flip }: {
126
+ flip?: boolean;
127
+ }) => import("react/jsx-runtime").JSX.Element>;
128
+ export declare const ArrowheadTriangleOutlineIcon: React.MemoExoticComponent<({ flip }: {
129
+ flip?: boolean;
122
130
  }) => import("react/jsx-runtime").JSX.Element>;
123
131
  export declare const ArrowheadCircleIcon: React.MemoExoticComponent<({ flip }: {
124
- flip?: boolean | undefined;
132
+ flip?: boolean;
125
133
  }) => import("react/jsx-runtime").JSX.Element>;
126
134
  export declare const ArrowheadCircleOutlineIcon: React.MemoExoticComponent<({ flip }: {
127
- flip?: boolean | undefined;
135
+ flip?: boolean;
128
136
  }) => import("react/jsx-runtime").JSX.Element>;
129
- export declare const ArrowheadBarIcon: React.MemoExoticComponent<({ flip }: {
130
- flip?: boolean | undefined;
137
+ export declare const ArrowheadDiamondIcon: React.MemoExoticComponent<({ flip }: {
138
+ flip?: boolean;
131
139
  }) => import("react/jsx-runtime").JSX.Element>;
132
- export declare const ArrowheadTriangleIcon: React.MemoExoticComponent<({ flip }: {
133
- flip?: boolean | undefined;
140
+ export declare const ArrowheadDiamondOutlineIcon: React.MemoExoticComponent<({ flip }: {
141
+ flip?: boolean;
134
142
  }) => import("react/jsx-runtime").JSX.Element>;
135
- export declare const ArrowheadTriangleOutlineIcon: React.MemoExoticComponent<({ flip }: {
136
- flip?: boolean | undefined;
143
+ export declare const ArrowheadBarIcon: React.MemoExoticComponent<({ flip }: {
144
+ flip?: boolean;
137
145
  }) => import("react/jsx-runtime").JSX.Element>;
138
- export declare const ArrowheadDiamondIcon: React.MemoExoticComponent<({ flip }: {
139
- flip?: boolean | undefined;
146
+ export declare const ArrowheadCardinalityOneIcon: React.MemoExoticComponent<({ flip }: {
147
+ flip?: boolean;
140
148
  }) => import("react/jsx-runtime").JSX.Element>;
141
- export declare const ArrowheadDiamondOutlineIcon: React.MemoExoticComponent<({ flip }: {
142
- flip?: boolean | undefined;
149
+ export declare const ArrowheadCardinalityManyIcon: React.MemoExoticComponent<({ flip }: {
150
+ flip?: boolean;
151
+ }) => import("react/jsx-runtime").JSX.Element>;
152
+ export declare const ArrowheadCardinalityOneOrManyIcon: React.MemoExoticComponent<({ flip }: {
153
+ flip?: boolean;
143
154
  }) => import("react/jsx-runtime").JSX.Element>;
144
- export declare const ArrowheadCrowfootIcon: React.MemoExoticComponent<({ flip }: {
145
- flip?: boolean | undefined;
155
+ export declare const ArrowheadCardinalityExactlyOneIcon: React.MemoExoticComponent<({ flip }: {
156
+ flip?: boolean;
146
157
  }) => import("react/jsx-runtime").JSX.Element>;
147
- export declare const ArrowheadCrowfootOneIcon: React.MemoExoticComponent<({ flip }: {
148
- flip?: boolean | undefined;
158
+ export declare const ArrowheadCardinalityZeroOrOneIcon: React.MemoExoticComponent<({ flip }: {
159
+ flip?: boolean;
149
160
  }) => import("react/jsx-runtime").JSX.Element>;
150
- export declare const ArrowheadCrowfootOneOrManyIcon: React.MemoExoticComponent<({ flip }: {
151
- flip?: boolean | undefined;
161
+ export declare const ArrowheadCardinalityZeroOrManyIcon: React.MemoExoticComponent<({ flip }: {
162
+ flip?: boolean;
152
163
  }) => import("react/jsx-runtime").JSX.Element>;
153
164
  export declare const FontSizeSmallIcon: import("react/jsx-runtime").JSX.Element;
154
165
  export declare const FontSizeMediumIcon: import("react/jsx-runtime").JSX.Element;
@@ -157,6 +168,7 @@ export declare const FontSizeExtraLargeIcon: import("react/jsx-runtime").JSX.Ele
157
168
  export declare const fontSizeIcon: import("react/jsx-runtime").JSX.Element;
158
169
  export declare const FontFamilyHeadingIcon: import("react/jsx-runtime").JSX.Element;
159
170
  export declare const FontFamilyNormalIcon: import("react/jsx-runtime").JSX.Element;
171
+ export declare const codeIcon: import("react/jsx-runtime").JSX.Element;
160
172
  export declare const FontFamilyCodeIcon: import("react/jsx-runtime").JSX.Element;
161
173
  export declare const TextAlignLeftIcon: import("react/jsx-runtime").JSX.Element;
162
174
  export declare const TextAlignCenterIcon: import("react/jsx-runtime").JSX.Element;
@@ -186,6 +198,8 @@ export declare const eyeDropperIcon: import("react/jsx-runtime").JSX.Element;
186
198
  export declare const extraToolsIcon: import("react/jsx-runtime").JSX.Element;
187
199
  export declare const frameToolIcon: import("react/jsx-runtime").JSX.Element;
188
200
  export declare const mermaidLogoIcon: import("react/jsx-runtime").JSX.Element;
201
+ export declare const RetryIcon: import("react/jsx-runtime").JSX.Element;
202
+ export declare const stackPushIcon: import("react/jsx-runtime").JSX.Element;
189
203
  export declare const ArrowRightIcon: import("react/jsx-runtime").JSX.Element;
190
204
  export declare const laserPointerToolIcon: import("react/jsx-runtime").JSX.Element;
191
205
  export declare const MagicIcon: import("react/jsx-runtime").JSX.Element;
@@ -197,7 +211,8 @@ export declare const eyeClosedIcon: import("react/jsx-runtime").JSX.Element;
197
211
  export declare const brainIcon: import("react/jsx-runtime").JSX.Element;
198
212
  export declare const brainIconThin: import("react/jsx-runtime").JSX.Element;
199
213
  export declare const searchIcon: import("react/jsx-runtime").JSX.Element;
200
- export declare const clockIcon: import("react/jsx-runtime").JSX.Element;
214
+ export declare const historyCommandIcon: import("react/jsx-runtime").JSX.Element;
215
+ export declare const historyIcon: import("react/jsx-runtime").JSX.Element;
201
216
  export declare const microphoneIcon: import("react/jsx-runtime").JSX.Element;
202
217
  export declare const microphoneMutedIcon: import("react/jsx-runtime").JSX.Element;
203
218
  export declare const boltIcon: import("react/jsx-runtime").JSX.Element;
@@ -227,4 +242,12 @@ export declare const elementLinkIcon: import("react/jsx-runtime").JSX.Element;
227
242
  export declare const resizeIcon: import("react/jsx-runtime").JSX.Element;
228
243
  export declare const adjustmentsIcon: import("react/jsx-runtime").JSX.Element;
229
244
  export declare const strokeIcon: import("react/jsx-runtime").JSX.Element;
245
+ export declare const pencilIcon: import("react/jsx-runtime").JSX.Element;
246
+ export declare const chevronLeftIcon: import("react/jsx-runtime").JSX.Element;
247
+ export declare const sidebarRightIcon: import("react/jsx-runtime").JSX.Element;
248
+ export declare const messageCircleIcon: import("react/jsx-runtime").JSX.Element;
249
+ export declare const presentationIcon: import("react/jsx-runtime").JSX.Element;
250
+ export declare const emptyIcon: import("react/jsx-runtime").JSX.Element;
251
+ export declare const chevronRight: import("react/jsx-runtime").JSX.Element;
252
+ export declare const settingsIcon: import("react/jsx-runtime").JSX.Element;
230
253
  export {};
@@ -38,8 +38,8 @@ export declare const ToggleTheme: {
38
38
  theme: Theme | "system";
39
39
  onSelect: (theme: Theme | "system") => void;
40
40
  } | {
41
- allowSystemTheme?: false | undefined;
42
- onSelect?: ((theme: Theme) => void) | undefined;
41
+ allowSystemTheme?: false;
42
+ onSelect?: (theme: Theme) => void;
43
43
  }): import("react/jsx-runtime").JSX.Element | null;
44
44
  displayName: string;
45
45
  };
@@ -62,3 +62,21 @@ export declare const LiveCollaborationTrigger: {
62
62
  }): import("react/jsx-runtime").JSX.Element;
63
63
  displayName: string;
64
64
  };
65
+ export declare const PreferencesToggleGridModeItem: () => import("react/jsx-runtime").JSX.Element;
66
+ export declare const PreferencesToggleZenModeItem: () => import("react/jsx-runtime").JSX.Element;
67
+ export declare const Preferences: {
68
+ ({ children, additionalItems, }: {
69
+ children?: React.ReactNode;
70
+ additionalItems?: React.ReactNode;
71
+ }): import("react/jsx-runtime").JSX.Element;
72
+ ToggleToolLock: () => import("react/jsx-runtime").JSX.Element;
73
+ BoxSelectionMode: () => import("react/jsx-runtime").JSX.Element;
74
+ ToggleSnapMode: () => import("react/jsx-runtime").JSX.Element;
75
+ ToggleArrowBinding: () => import("react/jsx-runtime").JSX.Element;
76
+ ToggleMidpointSnapping: () => import("react/jsx-runtime").JSX.Element;
77
+ ToggleGridMode: () => import("react/jsx-runtime").JSX.Element;
78
+ ToggleZenMode: () => import("react/jsx-runtime").JSX.Element;
79
+ ToggleViewMode: () => import("react/jsx-runtime").JSX.Element;
80
+ ToggleElementProperties: () => import("react/jsx-runtime").JSX.Element;
81
+ displayName: string;
82
+ };
@@ -5,40 +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
- shortcut?: string | undefined;
29
- hovered?: boolean | undefined;
30
- selected?: boolean | undefined;
31
- textStyle?: React.CSSProperties | undefined;
32
- className?: string | undefined;
33
- } & 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;
34
23
  displayName: string;
35
24
  Badge: {
36
25
  ({ type, children, }: {
37
- type?: import("../../../common/src/utility-types").ValueOf<{
38
- readonly GREEN: "green";
39
- readonly RED: "red";
40
- readonly BLUE: "blue";
41
- }> | undefined;
26
+ type?: import("@excalidraw/common/utility-types").ValueOf<typeof import("../dropdownMenu/DropdownMenuItem").DropDownMenuItemBadgeType>;
42
27
  children: React.ReactNode;
43
28
  }): import("react/jsx-runtime").JSX.Element;
44
29
  displayName: string;
@@ -47,27 +32,27 @@ declare const MainMenu: React.FC<{
47
32
  ItemLink: {
48
33
  ({ icon, shortcut, href, children, onSelect, className, selected, rel, ...rest }: {
49
34
  href: string;
50
- icon?: React.JSX.Element | undefined;
35
+ icon?: React.JSX.Element;
51
36
  children: React.ReactNode;
52
- shortcut?: string | undefined;
53
- className?: string | undefined;
54
- selected?: boolean | undefined;
55
- onSelect?: ((event: Event) => void) | undefined;
56
- rel?: string | undefined;
37
+ shortcut?: string;
38
+ className?: string;
39
+ selected?: boolean;
40
+ onSelect?: (event: Event) => void;
41
+ rel?: string;
57
42
  } & React.AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
58
43
  displayName: string;
59
44
  };
60
45
  ItemCustom: ({ children, className, selected, ...rest }: {
61
46
  children: React.ReactNode;
62
- className?: string | undefined;
63
- selected?: boolean | undefined;
47
+ className?: string;
48
+ selected?: boolean;
64
49
  } & React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
65
50
  Group: {
66
51
  ({ children, className, style, title, }: {
67
52
  children: React.ReactNode;
68
- className?: string | undefined;
69
- style?: React.CSSProperties | undefined;
70
- title?: string | undefined;
53
+ className?: string;
54
+ style?: React.CSSProperties;
55
+ title?: string;
71
56
  }): import("react/jsx-runtime").JSX.Element;
72
57
  displayName: string;
73
58
  };
@@ -75,6 +60,28 @@ declare const MainMenu: React.FC<{
75
60
  (): import("react/jsx-runtime").JSX.Element;
76
61
  displayName: string;
77
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
+ };
78
85
  DefaultItems: typeof DefaultItems;
79
86
  };
80
87
  export default MainMenu;
@@ -1,190 +1,263 @@
1
1
  import type { AppClassProperties } from "../types";
2
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
+ }, {
3
10
  readonly icon: import("react/jsx-runtime").JSX.Element;
4
11
  readonly value: "selection";
5
12
  readonly key: "v";
6
13
  readonly numericKey: "1";
7
14
  readonly fillable: true;
15
+ readonly toolbar: true;
8
16
  }, {
9
17
  readonly icon: import("react/jsx-runtime").JSX.Element;
10
18
  readonly value: "rectangle";
11
19
  readonly key: "r";
12
20
  readonly numericKey: "2";
13
21
  readonly fillable: true;
22
+ readonly toolbar: true;
14
23
  }, {
15
24
  readonly icon: import("react/jsx-runtime").JSX.Element;
16
25
  readonly value: "diamond";
17
26
  readonly key: "d";
18
27
  readonly numericKey: "3";
19
28
  readonly fillable: true;
29
+ readonly toolbar: true;
20
30
  }, {
21
31
  readonly icon: import("react/jsx-runtime").JSX.Element;
22
32
  readonly value: "ellipse";
23
33
  readonly key: "o";
24
34
  readonly numericKey: "4";
25
35
  readonly fillable: true;
36
+ readonly toolbar: true;
26
37
  }, {
27
38
  readonly icon: import("react/jsx-runtime").JSX.Element;
28
39
  readonly value: "arrow";
29
40
  readonly key: "a";
30
41
  readonly numericKey: "5";
31
42
  readonly fillable: true;
43
+ readonly toolbar: true;
32
44
  }, {
33
45
  readonly icon: import("react/jsx-runtime").JSX.Element;
34
46
  readonly value: "line";
35
47
  readonly key: "l";
36
48
  readonly numericKey: "6";
37
49
  readonly fillable: true;
50
+ readonly toolbar: true;
38
51
  }, {
39
52
  readonly icon: import("react/jsx-runtime").JSX.Element;
40
53
  readonly value: "freedraw";
41
54
  readonly key: readonly ["p", "x"];
42
55
  readonly numericKey: "7";
43
56
  readonly fillable: false;
57
+ readonly toolbar: true;
44
58
  }, {
45
59
  readonly icon: import("react/jsx-runtime").JSX.Element;
46
60
  readonly value: "text";
47
61
  readonly key: "t";
48
62
  readonly numericKey: "8";
49
63
  readonly fillable: false;
64
+ readonly toolbar: true;
50
65
  }, {
51
66
  readonly icon: import("react/jsx-runtime").JSX.Element;
52
67
  readonly value: "image";
53
68
  readonly key: null;
54
69
  readonly numericKey: "9";
55
70
  readonly fillable: false;
71
+ readonly toolbar: true;
56
72
  }, {
57
73
  readonly icon: import("react/jsx-runtime").JSX.Element;
58
74
  readonly value: "eraser";
59
75
  readonly key: "e";
60
76
  readonly numericKey: "0";
61
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;
62
86
  }];
63
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
+ }, {
64
95
  readonly icon: import("react/jsx-runtime").JSX.Element;
65
96
  readonly value: "selection";
66
97
  readonly key: "v";
67
98
  readonly numericKey: "1";
68
99
  readonly fillable: true;
100
+ readonly toolbar: true;
69
101
  }, {
70
102
  readonly icon: import("react/jsx-runtime").JSX.Element;
71
103
  readonly value: "rectangle";
72
104
  readonly key: "r";
73
105
  readonly numericKey: "2";
74
106
  readonly fillable: true;
107
+ readonly toolbar: true;
75
108
  }, {
76
109
  readonly icon: import("react/jsx-runtime").JSX.Element;
77
110
  readonly value: "diamond";
78
111
  readonly key: "d";
79
112
  readonly numericKey: "3";
80
113
  readonly fillable: true;
114
+ readonly toolbar: true;
81
115
  }, {
82
116
  readonly icon: import("react/jsx-runtime").JSX.Element;
83
117
  readonly value: "ellipse";
84
118
  readonly key: "o";
85
119
  readonly numericKey: "4";
86
120
  readonly fillable: true;
121
+ readonly toolbar: true;
87
122
  }, {
88
123
  readonly icon: import("react/jsx-runtime").JSX.Element;
89
124
  readonly value: "arrow";
90
125
  readonly key: "a";
91
126
  readonly numericKey: "5";
92
127
  readonly fillable: true;
128
+ readonly toolbar: true;
93
129
  }, {
94
130
  readonly icon: import("react/jsx-runtime").JSX.Element;
95
131
  readonly value: "line";
96
132
  readonly key: "l";
97
133
  readonly numericKey: "6";
98
134
  readonly fillable: true;
135
+ readonly toolbar: true;
99
136
  }, {
100
137
  readonly icon: import("react/jsx-runtime").JSX.Element;
101
138
  readonly value: "freedraw";
102
139
  readonly key: readonly ["p", "x"];
103
140
  readonly numericKey: "7";
104
141
  readonly fillable: false;
142
+ readonly toolbar: true;
105
143
  }, {
106
144
  readonly icon: import("react/jsx-runtime").JSX.Element;
107
145
  readonly value: "text";
108
146
  readonly key: "t";
109
147
  readonly numericKey: "8";
110
148
  readonly fillable: false;
149
+ readonly toolbar: true;
111
150
  }, {
112
151
  readonly icon: import("react/jsx-runtime").JSX.Element;
113
152
  readonly value: "image";
114
153
  readonly key: null;
115
154
  readonly numericKey: "9";
116
155
  readonly fillable: false;
156
+ readonly toolbar: true;
117
157
  }, {
118
158
  readonly icon: import("react/jsx-runtime").JSX.Element;
119
159
  readonly value: "eraser";
120
160
  readonly key: "e";
121
161
  readonly numericKey: "0";
122
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;
123
171
  }] | readonly [{
124
172
  readonly value: "lasso";
125
173
  readonly icon: import("react/jsx-runtime").JSX.Element;
126
174
  readonly key: "v";
127
175
  readonly numericKey: "1";
128
176
  readonly fillable: true;
177
+ readonly toolbar: true;
129
178
  }, ...({
179
+ readonly icon: import("react/jsx-runtime").JSX.Element;
180
+ readonly value: "hand";
181
+ readonly key: "h";
182
+ readonly numericKey: null;
183
+ readonly fillable: false;
184
+ readonly toolbar: true;
185
+ } | {
130
186
  readonly icon: import("react/jsx-runtime").JSX.Element;
131
187
  readonly value: "selection";
132
188
  readonly key: "v";
133
189
  readonly numericKey: "1";
134
190
  readonly fillable: true;
191
+ readonly toolbar: true;
135
192
  } | {
136
193
  readonly icon: import("react/jsx-runtime").JSX.Element;
137
194
  readonly value: "rectangle";
138
195
  readonly key: "r";
139
196
  readonly numericKey: "2";
140
197
  readonly fillable: true;
198
+ readonly toolbar: true;
141
199
  } | {
142
200
  readonly icon: import("react/jsx-runtime").JSX.Element;
143
201
  readonly value: "diamond";
144
202
  readonly key: "d";
145
203
  readonly numericKey: "3";
146
204
  readonly fillable: true;
205
+ readonly toolbar: true;
147
206
  } | {
148
207
  readonly icon: import("react/jsx-runtime").JSX.Element;
149
208
  readonly value: "ellipse";
150
209
  readonly key: "o";
151
210
  readonly numericKey: "4";
152
211
  readonly fillable: true;
212
+ readonly toolbar: true;
153
213
  } | {
154
214
  readonly icon: import("react/jsx-runtime").JSX.Element;
155
215
  readonly value: "arrow";
156
216
  readonly key: "a";
157
217
  readonly numericKey: "5";
158
218
  readonly fillable: true;
219
+ readonly toolbar: true;
159
220
  } | {
160
221
  readonly icon: import("react/jsx-runtime").JSX.Element;
161
222
  readonly value: "line";
162
223
  readonly key: "l";
163
224
  readonly numericKey: "6";
164
225
  readonly fillable: true;
226
+ readonly toolbar: true;
165
227
  } | {
166
228
  readonly icon: import("react/jsx-runtime").JSX.Element;
167
229
  readonly value: "freedraw";
168
230
  readonly key: readonly ["p", "x"];
169
231
  readonly numericKey: "7";
170
232
  readonly fillable: false;
233
+ readonly toolbar: true;
171
234
  } | {
172
235
  readonly icon: import("react/jsx-runtime").JSX.Element;
173
236
  readonly value: "text";
174
237
  readonly key: "t";
175
238
  readonly numericKey: "8";
176
239
  readonly fillable: false;
240
+ readonly toolbar: true;
177
241
  } | {
178
242
  readonly icon: import("react/jsx-runtime").JSX.Element;
179
243
  readonly value: "image";
180
244
  readonly key: null;
181
245
  readonly numericKey: "9";
182
246
  readonly fillable: false;
247
+ readonly toolbar: true;
183
248
  } | {
184
249
  readonly icon: import("react/jsx-runtime").JSX.Element;
185
250
  readonly value: "eraser";
186
251
  readonly key: "e";
187
252
  readonly numericKey: "0";
188
253
  readonly fillable: false;
254
+ readonly toolbar: true;
255
+ } | {
256
+ readonly icon: import("react/jsx-runtime").JSX.Element;
257
+ readonly value: "laser";
258
+ readonly key: "k";
259
+ readonly numericKey: null;
260
+ readonly fillable: false;
261
+ readonly toolbar: false;
189
262
  })[]];
190
- export declare const findShapeByKey: (key: string, app: AppClassProperties) => "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "lasso" | "eraser" | null;
263
+ export declare const findShapeByKey: (key: string, app: AppClassProperties) => "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "lasso" | "eraser" | "hand" | "laser" | null;