@excalidraw/math 0.18.0-5fffc47 → 0.18.0-60b2758

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 (231) hide show
  1. package/dist/dev/index.js +3 -3
  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/bounds.d.ts +10 -0
  6. package/dist/types/common/src/colors.d.ts +59 -39
  7. package/dist/types/common/src/constants.d.ts +19 -27
  8. package/dist/types/common/src/editorInterface.d.ts +34 -0
  9. package/dist/types/common/src/font-metadata.d.ts +1 -3
  10. package/dist/types/common/src/index.d.ts +3 -0
  11. package/dist/types/common/src/keys.d.ts +1 -1
  12. package/dist/types/common/src/utility-types.d.ts +0 -1
  13. package/dist/types/common/src/utils.d.ts +50 -39
  14. package/dist/types/element/src/Scene.d.ts +3 -3
  15. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  16. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  17. package/dist/types/element/src/binding.d.ts +66 -46
  18. package/dist/types/element/src/bounds.d.ts +2 -10
  19. package/dist/types/element/src/collision.d.ts +7 -2
  20. package/dist/types/element/src/comparisons.d.ts +7 -7
  21. package/dist/types/element/src/distribute.d.ts +2 -1
  22. package/dist/types/element/src/dragElements.d.ts +3 -3
  23. package/dist/types/element/src/duplicate.d.ts +3 -3
  24. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  25. package/dist/types/element/src/frame.d.ts +5 -1
  26. package/dist/types/element/src/heading.d.ts +2 -1
  27. package/dist/types/element/src/image.d.ts +1 -11
  28. package/dist/types/element/src/index.d.ts +3 -3
  29. package/dist/types/element/src/linearElementEditor.d.ts +18 -20
  30. package/dist/types/element/src/mutateElement.d.ts +3 -1
  31. package/dist/types/element/src/newElement.d.ts +6 -6
  32. package/dist/types/element/src/renderElement.d.ts +1 -7
  33. package/dist/types/element/src/resizeElements.d.ts +10 -10
  34. package/dist/types/element/src/resizeTest.d.ts +6 -5
  35. package/dist/types/element/src/selection.d.ts +3 -7
  36. package/dist/types/element/src/shape.d.ts +8 -7
  37. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  38. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  39. package/dist/types/element/src/transformHandles.d.ts +8 -27
  40. package/dist/types/element/src/typeChecks.d.ts +4 -7
  41. package/dist/types/element/src/types.d.ts +8 -12
  42. package/dist/types/element/src/utils.d.ts +8 -3
  43. package/dist/types/element/src/zindex.d.ts +7 -1
  44. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +141 -202
  45. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  46. package/dist/types/excalidraw/actions/actionBoundText.d.ts +71 -112
  47. package/dist/types/excalidraw/actions/actionCanvas.d.ts +424 -858
  48. package/dist/types/excalidraw/actions/actionClipboard.d.ts +105 -907
  49. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -55
  50. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +115 -180
  51. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  52. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  53. package/dist/types/excalidraw/actions/actionElementLink.d.ts +44 -71
  54. package/dist/types/excalidraw/actions/actionElementLock.d.ts +70 -111
  55. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +50 -71
  56. package/dist/types/excalidraw/actions/actionExport.d.ts +153 -1166
  57. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -404
  58. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  59. package/dist/types/excalidraw/actions/actionFrame.d.ts +221 -340
  60. package/dist/types/excalidraw/actions/actionGroup.d.ts +74 -123
  61. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +126 -185
  62. package/dist/types/excalidraw/actions/actionLink.d.ts +51 -72
  63. package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -65
  64. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
  65. package/dist/types/excalidraw/actions/actionProperties.d.ts +131 -2576
  66. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -62
  67. package/dist/types/excalidraw/actions/actionStyles.d.ts +34 -55
  68. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  69. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +50 -71
  70. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +50 -71
  71. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +38 -65
  72. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  73. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +49 -70
  74. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +50 -71
  75. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +50 -71
  76. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  77. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  78. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  79. package/dist/types/excalidraw/actions/types.d.ts +3 -3
  80. package/dist/types/excalidraw/appState.d.ts +20 -20
  81. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  82. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  83. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  84. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  85. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  86. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  87. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  88. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  89. package/dist/types/excalidraw/clipboard.d.ts +11 -35
  90. package/dist/types/excalidraw/components/Actions.d.ts +5 -2
  91. package/dist/types/excalidraw/components/App.d.ts +68 -60
  92. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  93. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  94. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -2
  95. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  96. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  97. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  98. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  99. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  100. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  101. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  102. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  103. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
  105. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  106. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  107. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  108. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  109. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  110. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  111. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  112. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  113. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  114. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  115. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  116. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  117. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  118. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  119. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  120. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  121. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  122. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  123. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  124. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  125. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  126. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  127. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  128. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  129. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  130. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  131. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  132. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  133. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  134. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  135. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  136. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  137. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  138. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  139. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  140. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  141. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  142. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  143. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  144. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  145. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  146. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  147. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  148. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  149. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  150. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  151. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  152. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  153. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  154. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  155. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  156. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  157. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  158. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  159. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  160. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  161. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  162. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  163. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  164. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  165. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  166. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  167. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  168. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  169. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  170. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  171. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  172. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  173. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  174. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  175. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  176. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  177. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  178. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  179. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  180. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  181. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  182. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  183. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  184. package/dist/types/excalidraw/components/icons.d.ts +27 -13
  185. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  186. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -2
  187. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  188. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  189. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  190. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  191. package/dist/types/excalidraw/data/blob.d.ts +319 -3
  192. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  193. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  194. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  195. package/dist/types/excalidraw/data/index.d.ts +3 -3
  196. package/dist/types/excalidraw/data/json.d.ts +158 -2
  197. package/dist/types/excalidraw/data/library.d.ts +24 -9
  198. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  199. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  200. package/dist/types/excalidraw/errors.d.ts +14 -0
  201. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  202. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  203. package/dist/types/excalidraw/i18n.d.ts +2 -2
  204. package/dist/types/excalidraw/index.d.ts +8 -7
  205. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  206. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  207. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  208. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  209. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  210. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  211. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  212. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  213. package/dist/types/excalidraw/snapping.d.ts +5 -5
  214. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  215. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  216. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  217. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  218. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  219. package/dist/types/excalidraw/types.d.ts +34 -29
  220. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  221. package/dist/types/math/src/point.d.ts +6 -1
  222. package/dist/types/math/src/polygon.d.ts +2 -2
  223. package/dist/types/math/src/range.d.ts +1 -3
  224. package/dist/types/math/src/segment.d.ts +3 -3
  225. package/dist/types/math/src/types.d.ts +25 -1
  226. package/dist/types/utils/src/bbox.d.ts +1 -1
  227. package/dist/types/utils/src/export.d.ts +5 -5
  228. package/dist/types/utils/src/shape.d.ts +6 -6
  229. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  230. package/package.json +2 -2
  231. package/dist/types/excalidraw/charts.d.ts +0 -27
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  export declare const actionLink: {
3
2
  name: "hyperlink";
4
- label: (elements: readonly import("../../element/src/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
3
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
5
4
  icon: import("react/jsx-runtime").JSX.Element;
6
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
7
- elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
5
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
6
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
8
7
  appState: {
9
8
  showHyperlinkPopup: "editor";
10
9
  openMenu: null;
@@ -15,19 +14,22 @@ export declare const actionLink: {
15
14
  } | null;
16
15
  showWelcomeScreen: boolean;
17
16
  isLoading: boolean;
18
- errorMessage: import("react").ReactNode;
17
+ errorMessage: React.ReactNode;
19
18
  activeEmbeddable: {
20
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
19
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
20
+ state: "hover" | "active";
22
21
  } | null;
23
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
22
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
23
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
24
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
25
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
26
  isBindingEnabled: boolean;
28
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
27
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
+ suggestedBinding: {
29
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
30
+ midPoint?: import("@excalidraw/math").GlobalPoint;
31
+ } | null;
32
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
33
  frameRendering: {
32
34
  enabled: boolean;
33
35
  name: boolean;
@@ -35,8 +37,8 @@ export declare const actionLink: {
35
37
  clip: boolean;
36
38
  };
37
39
  editingFrame: string | null;
38
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
40
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
42
  activeTool: {
41
43
  lastActiveTool: import("../types").ActiveTool | null;
42
44
  locked: boolean;
@@ -54,19 +56,19 @@ export declare const actionLink: {
54
56
  exportScale: number;
55
57
  currentItemStrokeColor: string;
56
58
  currentItemBackgroundColor: string;
57
- currentItemFillStyle: import("../../element/src/types").FillStyle;
59
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
58
60
  currentItemStrokeWidth: number;
59
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
61
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
60
62
  currentItemRoughness: number;
61
63
  currentItemOpacity: number;
62
- currentItemFontFamily: number;
64
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
63
65
  currentItemFontSize: number;
64
- currentItemTextAlign: string;
65
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
66
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
67
- currentHoveredFontFamily: number | null;
68
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
69
- currentItemArrowType: "round" | "sharp" | "elbow";
66
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
67
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
68
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
69
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
70
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
71
+ currentItemArrowType: "sharp" | "round" | "elbow";
70
72
  viewBackgroundColor: string;
71
73
  scrollX: number;
72
74
  scrollY: number;
@@ -75,27 +77,31 @@ export declare const actionLink: {
75
77
  name: string | null;
76
78
  isResizing: boolean;
77
79
  isRotating: boolean;
78
- zoom: Readonly<{
79
- value: import("../types").NormalizedZoomValue;
80
- }>;
81
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
80
+ zoom: import("../types").Zoom;
81
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
82
82
  openSidebar: {
83
- name: string;
84
- tab?: string | undefined;
83
+ name: import("../types").SidebarName;
84
+ tab?: import("../types").SidebarTabName;
85
85
  } | null;
86
- openDialog: {
86
+ openDialog: null | {
87
87
  name: "imageExport" | "help" | "jsonExport";
88
88
  } | {
89
89
  name: "ttd";
90
- tab: "mermaid" | "text-to-diagram";
90
+ tab: "text-to-diagram" | "mermaid";
91
91
  } | {
92
92
  name: "commandPalette";
93
+ } | {
94
+ name: "settings";
93
95
  } | {
94
96
  name: "elementLinkSelector";
95
- sourceElementId: string;
96
- } | null;
97
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
98
+ } | {
99
+ name: "charts";
100
+ data: import("../charts").Spreadsheet;
101
+ rawText: string;
102
+ };
97
103
  defaultSidebarDockedPreference: boolean;
98
- lastPointerDownWith: import("../../element/src/types").PointerType;
104
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
99
105
  selectedElementIds: Readonly<{
100
106
  [id: string]: true;
101
107
  }>;
@@ -109,11 +115,11 @@ export declare const actionLink: {
109
115
  shouldCacheIgnoreZoom: boolean;
110
116
  toast: {
111
117
  message: string;
112
- closable?: boolean | undefined;
113
- duration?: number | undefined;
118
+ closable?: boolean;
119
+ duration?: number;
114
120
  } | null;
115
121
  zenModeEnabled: boolean;
116
- theme: import("../../element/src/types").Theme;
122
+ theme: import("@excalidraw/element/types").Theme;
117
123
  gridSize: number;
118
124
  gridStep: number;
119
125
  gridModeEnabled: boolean;
@@ -121,44 +127,17 @@ export declare const actionLink: {
121
127
  selectedGroupIds: {
122
128
  [groupId: string]: boolean;
123
129
  };
124
- editingGroupId: string | null;
130
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
125
131
  width: number;
126
132
  height: number;
127
133
  offsetTop: number;
128
134
  offsetLeft: number;
129
135
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
130
- collaborators: Map<import("../types").SocketId, Readonly<{
131
- pointer?: import("../types").CollaboratorPointer | undefined;
132
- button?: "up" | "down" | undefined;
133
- selectedElementIds?: Readonly<{
134
- [id: string]: true;
135
- }> | undefined;
136
- username?: string | null | undefined;
137
- userState?: import("@excalidraw/common").UserIdleState | undefined;
138
- color?: {
139
- background: string;
140
- stroke: string;
141
- } | undefined;
142
- avatarUrl?: string | undefined;
143
- id?: string | undefined;
144
- socketId?: import("../types").SocketId | undefined;
145
- isCurrentUser?: boolean | undefined;
146
- isInCall?: boolean | undefined;
147
- isSpeaking?: boolean | undefined;
148
- isMuted?: boolean | undefined;
149
- }>>;
136
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
150
137
  stats: {
151
138
  open: boolean;
152
139
  panels: number;
153
140
  };
154
- currentChartType: import("../../element/src/types").ChartType;
155
- pasteDialog: {
156
- shown: false;
157
- data: null;
158
- } | {
159
- shown: true;
160
- data: import("../charts").Spreadsheet;
161
- };
162
141
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
142
  snapLines: readonly import("../snapping").SnapLine[];
164
143
  originSnapOffset: {
@@ -169,16 +148,16 @@ export declare const actionLink: {
169
148
  userToFollow: import("../types").UserToFollow | null;
170
149
  followedBy: Set<import("../types").SocketId>;
171
150
  isCropping: boolean;
172
- croppingElementId: string | null;
151
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
173
152
  searchMatches: Readonly<{
174
- focusedId: string | null;
153
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
175
154
  matches: readonly import("../types").SearchMatch[];
176
155
  }> | null;
177
156
  activeLockedId: string | null;
178
157
  lockedMultiSelections: {
179
158
  [groupId: string]: true;
180
159
  };
181
- stylesPanelMode: "compact" | "full" | "mobile";
160
+ bindMode: import("@excalidraw/element/types").BindMode;
182
161
  };
183
162
  captureUpdate: "IMMEDIATELY";
184
163
  };
@@ -187,7 +166,7 @@ export declare const actionLink: {
187
166
  action: string;
188
167
  };
189
168
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
190
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
169
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
191
170
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
192
171
  } & {
193
172
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const actionShortcuts: {
3
2
  name: "toggleShortcuts";
4
3
  label: string;
@@ -8,7 +7,7 @@ export declare const actionShortcuts: {
8
7
  category: "menu";
9
8
  action: string;
10
9
  };
11
- perform: (_elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
10
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, { focusContainer }: import("../types").AppClassProperties) => {
12
11
  appState: {
13
12
  openDialog: {
14
13
  name: "help";
@@ -22,19 +21,22 @@ export declare const actionShortcuts: {
22
21
  } | null;
23
22
  showWelcomeScreen: boolean;
24
23
  isLoading: boolean;
25
- errorMessage: import("react").ReactNode;
24
+ errorMessage: React.ReactNode;
26
25
  activeEmbeddable: {
27
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
28
- state: "active" | "hover";
26
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
27
+ state: "hover" | "active";
29
28
  } | null;
30
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
31
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
32
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
33
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
29
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
30
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
32
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
34
33
  isBindingEnabled: boolean;
35
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
36
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
37
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
34
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
+ suggestedBinding: {
36
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
+ midPoint?: import("@excalidraw/math").GlobalPoint;
38
+ } | null;
39
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
38
40
  frameRendering: {
39
41
  enabled: boolean;
40
42
  name: boolean;
@@ -42,8 +44,8 @@ export declare const actionShortcuts: {
42
44
  clip: boolean;
43
45
  };
44
46
  editingFrame: string | null;
45
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
46
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
47
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
48
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
47
49
  activeTool: {
48
50
  lastActiveTool: import("../types").ActiveTool | null;
49
51
  locked: boolean;
@@ -61,19 +63,19 @@ export declare const actionShortcuts: {
61
63
  exportScale: number;
62
64
  currentItemStrokeColor: string;
63
65
  currentItemBackgroundColor: string;
64
- currentItemFillStyle: import("../../element/src/types").FillStyle;
66
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
65
67
  currentItemStrokeWidth: number;
66
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
68
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
67
69
  currentItemRoughness: number;
68
70
  currentItemOpacity: number;
69
- currentItemFontFamily: number;
71
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
70
72
  currentItemFontSize: number;
71
- currentItemTextAlign: string;
72
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
73
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
74
- currentHoveredFontFamily: number | null;
75
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
76
- currentItemArrowType: "round" | "sharp" | "elbow";
73
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
74
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
75
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
76
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
77
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
78
+ currentItemArrowType: "sharp" | "round" | "elbow";
77
79
  viewBackgroundColor: string;
78
80
  scrollX: number;
79
81
  scrollY: number;
@@ -82,15 +84,13 @@ export declare const actionShortcuts: {
82
84
  name: string | null;
83
85
  isResizing: boolean;
84
86
  isRotating: boolean;
85
- zoom: Readonly<{
86
- value: import("../types").NormalizedZoomValue;
87
- }>;
87
+ zoom: import("../types").Zoom;
88
88
  openSidebar: {
89
- name: string;
90
- tab?: string | undefined;
89
+ name: import("../types").SidebarName;
90
+ tab?: import("../types").SidebarTabName;
91
91
  } | null;
92
92
  defaultSidebarDockedPreference: boolean;
93
- lastPointerDownWith: import("../../element/src/types").PointerType;
93
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
94
94
  selectedElementIds: Readonly<{
95
95
  [id: string]: true;
96
96
  }>;
@@ -104,11 +104,11 @@ export declare const actionShortcuts: {
104
104
  shouldCacheIgnoreZoom: boolean;
105
105
  toast: {
106
106
  message: string;
107
- closable?: boolean | undefined;
108
- duration?: number | undefined;
107
+ closable?: boolean;
108
+ duration?: number;
109
109
  } | null;
110
110
  zenModeEnabled: boolean;
111
- theme: import("../../element/src/types").Theme;
111
+ theme: import("@excalidraw/element/types").Theme;
112
112
  gridSize: number;
113
113
  gridStep: number;
114
114
  gridModeEnabled: boolean;
@@ -116,45 +116,18 @@ export declare const actionShortcuts: {
116
116
  selectedGroupIds: {
117
117
  [groupId: string]: boolean;
118
118
  };
119
- editingGroupId: string | null;
119
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
120
120
  width: number;
121
121
  height: number;
122
122
  offsetTop: number;
123
123
  offsetLeft: number;
124
124
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
125
- collaborators: Map<import("../types").SocketId, Readonly<{
126
- pointer?: import("../types").CollaboratorPointer | undefined;
127
- button?: "up" | "down" | undefined;
128
- selectedElementIds?: Readonly<{
129
- [id: string]: true;
130
- }> | undefined;
131
- username?: string | null | undefined;
132
- userState?: import("@excalidraw/common").UserIdleState | undefined;
133
- color?: {
134
- background: string;
135
- stroke: string;
136
- } | undefined;
137
- avatarUrl?: string | undefined;
138
- id?: string | undefined;
139
- socketId?: import("../types").SocketId | undefined;
140
- isCurrentUser?: boolean | undefined;
141
- isInCall?: boolean | undefined;
142
- isSpeaking?: boolean | undefined;
143
- isMuted?: boolean | undefined;
144
- }>>;
125
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
145
126
  stats: {
146
127
  open: boolean;
147
128
  panels: number;
148
129
  };
149
- currentChartType: import("../../element/src/types").ChartType;
150
- pasteDialog: {
151
- shown: false;
152
- data: null;
153
- } | {
154
- shown: true;
155
- data: import("../charts").Spreadsheet;
156
- };
157
- showHyperlinkPopup: false | "editor" | "info";
130
+ showHyperlinkPopup: false | "info" | "editor";
158
131
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
159
132
  snapLines: readonly import("../snapping").SnapLine[];
160
133
  originSnapOffset: {
@@ -165,16 +138,16 @@ export declare const actionShortcuts: {
165
138
  userToFollow: import("../types").UserToFollow | null;
166
139
  followedBy: Set<import("../types").SocketId>;
167
140
  isCropping: boolean;
168
- croppingElementId: string | null;
141
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
169
142
  searchMatches: Readonly<{
170
- focusedId: string | null;
143
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
171
144
  matches: readonly import("../types").SearchMatch[];
172
145
  }> | null;
173
146
  activeLockedId: string | null;
174
147
  lockedMultiSelections: {
175
148
  [groupId: string]: true;
176
149
  };
177
- stylesPanelMode: "compact" | "full" | "mobile";
150
+ bindMode: import("@excalidraw/element/types").BindMode;
178
151
  };
179
152
  captureUpdate: "EVENTUALLY";
180
153
  };