@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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppClassProperties, AppState } from "../types";
4
3
  export declare const actionDeleteSelected: {
@@ -9,7 +8,7 @@ export declare const actionDeleteSelected: {
9
8
  category: "element";
10
9
  action: string;
11
10
  };
12
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => false | {
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
13
12
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
14
13
  appState: {
15
14
  selectedLinearElement: null;
@@ -20,10 +19,10 @@ export declare const actionDeleteSelected: {
20
19
  } | null;
21
20
  showWelcomeScreen: boolean;
22
21
  isLoading: boolean;
23
- errorMessage: import("react").ReactNode;
22
+ errorMessage: React.ReactNode;
24
23
  activeEmbeddable: {
25
24
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
26
- state: "active" | "hover";
25
+ state: "hover" | "active";
27
26
  } | null;
28
27
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
29
28
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -31,7 +30,10 @@ export declare const actionDeleteSelected: {
31
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
31
  isBindingEnabled: boolean;
33
32
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
33
+ suggestedBinding: {
34
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
+ midPoint?: import("@excalidraw/math").GlobalPoint;
36
+ } | null;
35
37
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
38
  frameRendering: {
37
39
  enabled: boolean;
@@ -59,19 +61,19 @@ export declare const actionDeleteSelected: {
59
61
  exportScale: number;
60
62
  currentItemStrokeColor: string;
61
63
  currentItemBackgroundColor: string;
62
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
64
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
63
65
  currentItemStrokeWidth: number;
64
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
66
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
65
67
  currentItemRoughness: number;
66
68
  currentItemOpacity: number;
67
- currentItemFontFamily: number;
69
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
68
70
  currentItemFontSize: number;
69
- currentItemTextAlign: string;
71
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
70
72
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
71
73
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
- currentHoveredFontFamily: number | null;
74
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
73
75
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
74
- currentItemArrowType: "round" | "sharp" | "elbow";
76
+ currentItemArrowType: "sharp" | "round" | "elbow";
75
77
  viewBackgroundColor: string;
76
78
  scrollX: number;
77
79
  scrollY: number;
@@ -80,26 +82,30 @@ export declare const actionDeleteSelected: {
80
82
  name: string | null;
81
83
  isResizing: boolean;
82
84
  isRotating: boolean;
83
- zoom: Readonly<{
84
- value: import("../types").NormalizedZoomValue;
85
- }>;
85
+ zoom: import("../types").Zoom;
86
86
  openMenu: "canvas" | null;
87
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
87
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
88
88
  openSidebar: {
89
- name: string;
90
- tab?: string | undefined;
89
+ name: import("../types").SidebarName;
90
+ tab?: import("../types").SidebarTabName;
91
91
  } | null;
92
- openDialog: {
92
+ openDialog: null | {
93
93
  name: "imageExport" | "help" | "jsonExport";
94
94
  } | {
95
95
  name: "ttd";
96
- tab: "mermaid" | "text-to-diagram";
96
+ tab: "text-to-diagram" | "mermaid";
97
97
  } | {
98
98
  name: "commandPalette";
99
+ } | {
100
+ name: "settings";
99
101
  } | {
100
102
  name: "elementLinkSelector";
101
- sourceElementId: string;
102
- } | null;
103
+ sourceElementId: ExcalidrawElement["id"];
104
+ } | {
105
+ name: "charts";
106
+ data: import("../charts").Spreadsheet;
107
+ rawText: string;
108
+ };
103
109
  defaultSidebarDockedPreference: boolean;
104
110
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
105
111
  selectedElementIds: Readonly<{
@@ -115,8 +121,8 @@ export declare const actionDeleteSelected: {
115
121
  shouldCacheIgnoreZoom: boolean;
116
122
  toast: {
117
123
  message: string;
118
- closable?: boolean | undefined;
119
- duration?: number | undefined;
124
+ closable?: boolean;
125
+ duration?: number;
120
126
  } | null;
121
127
  zenModeEnabled: boolean;
122
128
  theme: import("@excalidraw/element/types").Theme;
@@ -127,45 +133,18 @@ export declare const actionDeleteSelected: {
127
133
  selectedGroupIds: {
128
134
  [groupId: string]: boolean;
129
135
  };
130
- editingGroupId: string | null;
136
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
131
137
  width: number;
132
138
  height: number;
133
139
  offsetTop: number;
134
140
  offsetLeft: number;
135
141
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
136
- collaborators: Map<import("../types").SocketId, Readonly<{
137
- pointer?: import("../types").CollaboratorPointer | undefined;
138
- button?: "up" | "down" | undefined;
139
- selectedElementIds?: Readonly<{
140
- [id: string]: true;
141
- }> | undefined;
142
- username?: string | null | undefined;
143
- userState?: import("@excalidraw/common").UserIdleState | undefined;
144
- color?: {
145
- background: string;
146
- stroke: string;
147
- } | undefined;
148
- avatarUrl?: string | undefined;
149
- id?: string | undefined;
150
- socketId?: import("../types").SocketId | undefined;
151
- isCurrentUser?: boolean | undefined;
152
- isInCall?: boolean | undefined;
153
- isSpeaking?: boolean | undefined;
154
- isMuted?: boolean | undefined;
155
- }>>;
142
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
156
143
  stats: {
157
144
  open: boolean;
158
145
  panels: number;
159
146
  };
160
- currentChartType: import("@excalidraw/element/types").ChartType;
161
- pasteDialog: {
162
- shown: false;
163
- data: null;
164
- } | {
165
- shown: true;
166
- data: import("../charts").Spreadsheet;
167
- };
168
- showHyperlinkPopup: false | "editor" | "info";
147
+ showHyperlinkPopup: false | "info" | "editor";
169
148
  snapLines: readonly import("../snapping").SnapLine[];
170
149
  originSnapOffset: {
171
150
  x: number;
@@ -175,16 +154,16 @@ export declare const actionDeleteSelected: {
175
154
  userToFollow: import("../types").UserToFollow | null;
176
155
  followedBy: Set<import("../types").SocketId>;
177
156
  isCropping: boolean;
178
- croppingElementId: string | null;
157
+ croppingElementId: ExcalidrawElement["id"] | null;
179
158
  searchMatches: Readonly<{
180
- focusedId: string | null;
159
+ focusedId: ExcalidrawElement["id"] | null;
181
160
  matches: readonly import("../types").SearchMatch[];
182
161
  }> | null;
183
162
  activeLockedId: string | null;
184
163
  lockedMultiSelections: {
185
164
  [groupId: string]: true;
186
165
  };
187
- stylesPanelMode: "compact" | "full" | "mobile";
166
+ bindMode: import("@excalidraw/element/types").BindMode;
188
167
  };
189
168
  captureUpdate: "IMMEDIATELY";
190
169
  } | {
@@ -192,36 +171,36 @@ export declare const actionDeleteSelected: {
192
171
  appState: {
193
172
  selectedLinearElement: {
194
173
  selectedPointsIndices: number[];
195
- startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
196
- endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
197
- elementId: string & {
174
+ elementId: ExcalidrawElement["id"] & {
198
175
  _brand: "excalidrawLinearElementId";
199
176
  };
200
- pointerDownState: Readonly<{
177
+ initialState: Readonly<{
201
178
  prevSelectedPointsIndices: readonly number[] | null;
202
179
  lastClickedPoint: number;
203
- lastClickedIsEndPoint: boolean;
204
- origin: Readonly<{
205
- x: number;
206
- y: number;
207
- }> | null;
180
+ origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
208
181
  segmentMidpoint: {
209
182
  value: import("@excalidraw/math").GlobalPoint | null;
210
183
  index: number | null;
211
184
  added: boolean;
212
185
  };
186
+ arrowStartIsInside: boolean;
187
+ altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
213
188
  }>;
214
189
  isDragging: boolean;
215
190
  lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
191
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
216
192
  pointerOffset: Readonly<{
217
193
  x: number;
218
194
  y: number;
219
195
  }>;
220
196
  hoverPointIndex: number;
221
197
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
198
+ hoveredFocusPointBinding: "start" | "end" | null;
199
+ draggedFocusPointBinding: "start" | "end" | null;
222
200
  elbowed: boolean;
223
201
  customLineAngle: number | null;
224
202
  isEditing: boolean;
203
+ pointerDownState: never;
225
204
  };
226
205
  contextMenu: {
227
206
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -230,10 +209,10 @@ export declare const actionDeleteSelected: {
230
209
  } | null;
231
210
  showWelcomeScreen: boolean;
232
211
  isLoading: boolean;
233
- errorMessage: import("react").ReactNode;
212
+ errorMessage: React.ReactNode;
234
213
  activeEmbeddable: {
235
214
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
236
- state: "active" | "hover";
215
+ state: "hover" | "active";
237
216
  } | null;
238
217
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
239
218
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -241,7 +220,10 @@ export declare const actionDeleteSelected: {
241
220
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
242
221
  isBindingEnabled: boolean;
243
222
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
244
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
223
+ suggestedBinding: {
224
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
225
+ midPoint?: import("@excalidraw/math").GlobalPoint;
226
+ } | null;
245
227
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
246
228
  frameRendering: {
247
229
  enabled: boolean;
@@ -269,19 +251,19 @@ export declare const actionDeleteSelected: {
269
251
  exportScale: number;
270
252
  currentItemStrokeColor: string;
271
253
  currentItemBackgroundColor: string;
272
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
254
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
273
255
  currentItemStrokeWidth: number;
274
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
256
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
275
257
  currentItemRoughness: number;
276
258
  currentItemOpacity: number;
277
- currentItemFontFamily: number;
259
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
278
260
  currentItemFontSize: number;
279
- currentItemTextAlign: string;
261
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
280
262
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
281
263
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
282
- currentHoveredFontFamily: number | null;
264
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
283
265
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
284
- currentItemArrowType: "round" | "sharp" | "elbow";
266
+ currentItemArrowType: "sharp" | "round" | "elbow";
285
267
  viewBackgroundColor: string;
286
268
  scrollX: number;
287
269
  scrollY: number;
@@ -290,26 +272,30 @@ export declare const actionDeleteSelected: {
290
272
  name: string | null;
291
273
  isResizing: boolean;
292
274
  isRotating: boolean;
293
- zoom: Readonly<{
294
- value: import("../types").NormalizedZoomValue;
295
- }>;
275
+ zoom: import("../types").Zoom;
296
276
  openMenu: "canvas" | null;
297
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
277
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
298
278
  openSidebar: {
299
- name: string;
300
- tab?: string | undefined;
279
+ name: import("../types").SidebarName;
280
+ tab?: import("../types").SidebarTabName;
301
281
  } | null;
302
- openDialog: {
282
+ openDialog: null | {
303
283
  name: "imageExport" | "help" | "jsonExport";
304
284
  } | {
305
285
  name: "ttd";
306
- tab: "mermaid" | "text-to-diagram";
286
+ tab: "text-to-diagram" | "mermaid";
307
287
  } | {
308
288
  name: "commandPalette";
289
+ } | {
290
+ name: "settings";
309
291
  } | {
310
292
  name: "elementLinkSelector";
311
- sourceElementId: string;
312
- } | null;
293
+ sourceElementId: ExcalidrawElement["id"];
294
+ } | {
295
+ name: "charts";
296
+ data: import("../charts").Spreadsheet;
297
+ rawText: string;
298
+ };
313
299
  defaultSidebarDockedPreference: boolean;
314
300
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
315
301
  selectedElementIds: Readonly<{
@@ -325,8 +311,8 @@ export declare const actionDeleteSelected: {
325
311
  shouldCacheIgnoreZoom: boolean;
326
312
  toast: {
327
313
  message: string;
328
- closable?: boolean | undefined;
329
- duration?: number | undefined;
314
+ closable?: boolean;
315
+ duration?: number;
330
316
  } | null;
331
317
  zenModeEnabled: boolean;
332
318
  theme: import("@excalidraw/element/types").Theme;
@@ -337,45 +323,18 @@ export declare const actionDeleteSelected: {
337
323
  selectedGroupIds: {
338
324
  [groupId: string]: boolean;
339
325
  };
340
- editingGroupId: string | null;
326
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
341
327
  width: number;
342
328
  height: number;
343
329
  offsetTop: number;
344
330
  offsetLeft: number;
345
331
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
346
- collaborators: Map<import("../types").SocketId, Readonly<{
347
- pointer?: import("../types").CollaboratorPointer | undefined;
348
- button?: "up" | "down" | undefined;
349
- selectedElementIds?: Readonly<{
350
- [id: string]: true;
351
- }> | undefined;
352
- username?: string | null | undefined;
353
- userState?: import("@excalidraw/common").UserIdleState | undefined;
354
- color?: {
355
- background: string;
356
- stroke: string;
357
- } | undefined;
358
- avatarUrl?: string | undefined;
359
- id?: string | undefined;
360
- socketId?: import("../types").SocketId | undefined;
361
- isCurrentUser?: boolean | undefined;
362
- isInCall?: boolean | undefined;
363
- isSpeaking?: boolean | undefined;
364
- isMuted?: boolean | undefined;
365
- }>>;
332
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
366
333
  stats: {
367
334
  open: boolean;
368
335
  panels: number;
369
336
  };
370
- currentChartType: import("@excalidraw/element/types").ChartType;
371
- pasteDialog: {
372
- shown: false;
373
- data: null;
374
- } | {
375
- shown: true;
376
- data: import("../charts").Spreadsheet;
377
- };
378
- showHyperlinkPopup: false | "editor" | "info";
337
+ showHyperlinkPopup: false | "info" | "editor";
379
338
  snapLines: readonly import("../snapping").SnapLine[];
380
339
  originSnapOffset: {
381
340
  x: number;
@@ -385,16 +344,16 @@ export declare const actionDeleteSelected: {
385
344
  userToFollow: import("../types").UserToFollow | null;
386
345
  followedBy: Set<import("../types").SocketId>;
387
346
  isCropping: boolean;
388
- croppingElementId: string | null;
347
+ croppingElementId: ExcalidrawElement["id"] | null;
389
348
  searchMatches: Readonly<{
390
- focusedId: string | null;
349
+ focusedId: ExcalidrawElement["id"] | null;
391
350
  matches: readonly import("../types").SearchMatch[];
392
351
  }> | null;
393
352
  activeLockedId: string | null;
394
353
  lockedMultiSelections: {
395
354
  [groupId: string]: true;
396
355
  };
397
- stylesPanelMode: "compact" | "full" | "mobile";
356
+ bindMode: import("@excalidraw/element/types").BindMode;
398
357
  };
399
358
  captureUpdate: "IMMEDIATELY";
400
359
  } | {
@@ -406,15 +365,12 @@ export declare const actionDeleteSelected: {
406
365
  fromSelection: boolean;
407
366
  } & import("../types").ActiveTool;
408
367
  multiElement: null;
368
+ newElement: null;
409
369
  activeEmbeddable: null;
410
370
  selectedLinearElement: null;
411
- editingGroupId: string | null;
412
- selectedElementIds: Readonly<{
413
- [id: string]: true;
414
- }>;
415
- selectedGroupIds: {
416
- [groupId: string]: boolean;
417
- };
371
+ editingGroupId: AppState["editingGroupId"];
372
+ selectedElementIds: AppState["selectedElementIds"];
373
+ selectedGroupIds: AppState["selectedGroupIds"];
418
374
  contextMenu: {
419
375
  items: import("../components/ContextMenu").ContextMenuItems;
420
376
  top: number;
@@ -422,13 +378,15 @@ export declare const actionDeleteSelected: {
422
378
  } | null;
423
379
  showWelcomeScreen: boolean;
424
380
  isLoading: boolean;
425
- errorMessage: import("react").ReactNode;
426
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
381
+ errorMessage: React.ReactNode;
427
382
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
428
383
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
429
384
  isBindingEnabled: boolean;
430
385
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
431
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
386
+ suggestedBinding: {
387
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
388
+ midPoint?: import("@excalidraw/math").GlobalPoint;
389
+ } | null;
432
390
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
433
391
  frameRendering: {
434
392
  enabled: boolean;
@@ -451,19 +409,19 @@ export declare const actionDeleteSelected: {
451
409
  exportScale: number;
452
410
  currentItemStrokeColor: string;
453
411
  currentItemBackgroundColor: string;
454
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
412
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
455
413
  currentItemStrokeWidth: number;
456
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
414
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
457
415
  currentItemRoughness: number;
458
416
  currentItemOpacity: number;
459
- currentItemFontFamily: number;
417
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
460
418
  currentItemFontSize: number;
461
- currentItemTextAlign: string;
419
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
462
420
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
463
421
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
464
- currentHoveredFontFamily: number | null;
422
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
465
423
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
466
- currentItemArrowType: "round" | "sharp" | "elbow";
424
+ currentItemArrowType: "sharp" | "round" | "elbow";
467
425
  viewBackgroundColor: string;
468
426
  scrollX: number;
469
427
  scrollY: number;
@@ -472,26 +430,30 @@ export declare const actionDeleteSelected: {
472
430
  name: string | null;
473
431
  isResizing: boolean;
474
432
  isRotating: boolean;
475
- zoom: Readonly<{
476
- value: import("../types").NormalizedZoomValue;
477
- }>;
433
+ zoom: import("../types").Zoom;
478
434
  openMenu: "canvas" | null;
479
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
435
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
480
436
  openSidebar: {
481
- name: string;
482
- tab?: string | undefined;
437
+ name: import("../types").SidebarName;
438
+ tab?: import("../types").SidebarTabName;
483
439
  } | null;
484
- openDialog: {
440
+ openDialog: null | {
485
441
  name: "imageExport" | "help" | "jsonExport";
486
442
  } | {
487
443
  name: "ttd";
488
- tab: "mermaid" | "text-to-diagram";
444
+ tab: "text-to-diagram" | "mermaid";
489
445
  } | {
490
446
  name: "commandPalette";
447
+ } | {
448
+ name: "settings";
491
449
  } | {
492
450
  name: "elementLinkSelector";
493
- sourceElementId: string;
494
- } | null;
451
+ sourceElementId: ExcalidrawElement["id"];
452
+ } | {
453
+ name: "charts";
454
+ data: import("../charts").Spreadsheet;
455
+ rawText: string;
456
+ };
495
457
  defaultSidebarDockedPreference: boolean;
496
458
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
497
459
  hoveredElementIds: Readonly<{
@@ -504,8 +466,8 @@ export declare const actionDeleteSelected: {
504
466
  shouldCacheIgnoreZoom: boolean;
505
467
  toast: {
506
468
  message: string;
507
- closable?: boolean | undefined;
508
- duration?: number | undefined;
469
+ closable?: boolean;
470
+ duration?: number;
509
471
  } | null;
510
472
  zenModeEnabled: boolean;
511
473
  theme: import("@excalidraw/element/types").Theme;
@@ -518,39 +480,12 @@ export declare const actionDeleteSelected: {
518
480
  offsetTop: number;
519
481
  offsetLeft: number;
520
482
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
521
- collaborators: Map<import("../types").SocketId, Readonly<{
522
- pointer?: import("../types").CollaboratorPointer | undefined;
523
- button?: "up" | "down" | undefined;
524
- selectedElementIds?: Readonly<{
525
- [id: string]: true;
526
- }> | undefined;
527
- username?: string | null | undefined;
528
- userState?: import("@excalidraw/common").UserIdleState | undefined;
529
- color?: {
530
- background: string;
531
- stroke: string;
532
- } | undefined;
533
- avatarUrl?: string | undefined;
534
- id?: string | undefined;
535
- socketId?: import("../types").SocketId | undefined;
536
- isCurrentUser?: boolean | undefined;
537
- isInCall?: boolean | undefined;
538
- isSpeaking?: boolean | undefined;
539
- isMuted?: boolean | undefined;
540
- }>>;
483
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
541
484
  stats: {
542
485
  open: boolean;
543
486
  panels: number;
544
487
  };
545
- currentChartType: import("@excalidraw/element/types").ChartType;
546
- pasteDialog: {
547
- shown: false;
548
- data: null;
549
- } | {
550
- shown: true;
551
- data: import("../charts").Spreadsheet;
552
- };
553
- showHyperlinkPopup: false | "editor" | "info";
488
+ showHyperlinkPopup: false | "info" | "editor";
554
489
  snapLines: readonly import("../snapping").SnapLine[];
555
490
  originSnapOffset: {
556
491
  x: number;
@@ -560,21 +495,21 @@ export declare const actionDeleteSelected: {
560
495
  userToFollow: import("../types").UserToFollow | null;
561
496
  followedBy: Set<import("../types").SocketId>;
562
497
  isCropping: boolean;
563
- croppingElementId: string | null;
498
+ croppingElementId: ExcalidrawElement["id"] | null;
564
499
  searchMatches: Readonly<{
565
- focusedId: string | null;
500
+ focusedId: ExcalidrawElement["id"] | null;
566
501
  matches: readonly import("../types").SearchMatch[];
567
502
  }> | null;
568
503
  activeLockedId: string | null;
569
504
  lockedMultiSelections: {
570
505
  [groupId: string]: true;
571
506
  };
572
- stylesPanelMode: "compact" | "full" | "mobile";
507
+ bindMode: import("@excalidraw/element/types").BindMode;
573
508
  };
574
509
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
575
510
  };
576
511
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
577
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
512
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
578
513
  } & {
579
514
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
580
515
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppClassProperties, AppState } from "../types";
4
3
  export declare const distributeHorizontally: {
@@ -7,7 +6,7 @@ export declare const distributeHorizontally: {
7
6
  trackEvent: {
8
7
  category: "element";
9
8
  };
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
11
10
  appState: Readonly<AppState>;
12
11
  elements: ExcalidrawElement[];
13
12
  captureUpdate: "IMMEDIATELY";
@@ -23,7 +22,7 @@ export declare const distributeVertically: {
23
22
  trackEvent: {
24
23
  category: "element";
25
24
  };
26
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
25
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
27
26
  appState: Readonly<AppState>;
28
27
  elements: ExcalidrawElement[];
29
28
  captureUpdate: "IMMEDIATELY";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const actionDuplicateSelection: {
3
2
  name: "duplicateSelection";
4
3
  label: string;
@@ -6,13 +5,13 @@ export declare const actionDuplicateSelection: {
6
5
  trackEvent: {
7
6
  category: "element";
8
7
  };
9
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
10
- elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
8
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: unknown, app: import("../types").AppClassProperties) => false | {
9
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
10
  appState: import("../types").AppState;
12
11
  captureUpdate: "IMMEDIATELY";
13
12
  };
14
13
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
15
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
14
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
16
15
  } & {
17
16
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
18
17
  };