@excalidraw/element 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 (232) hide show
  1. package/dist/dev/index.js +4410 -2226
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +18 -18
  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/visualdebug.d.ts +59 -0
  44. package/dist/types/element/src/zindex.d.ts +7 -1
  45. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +99 -160
  46. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  47. package/dist/types/excalidraw/actions/actionBoundText.d.ts +71 -112
  48. package/dist/types/excalidraw/actions/actionCanvas.d.ts +424 -858
  49. package/dist/types/excalidraw/actions/actionClipboard.d.ts +90 -892
  50. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -55
  51. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +118 -183
  52. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  53. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  54. package/dist/types/excalidraw/actions/actionElementLink.d.ts +26 -53
  55. package/dist/types/excalidraw/actions/actionElementLock.d.ts +70 -111
  56. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +35 -56
  57. package/dist/types/excalidraw/actions/actionExport.d.ts +153 -1166
  58. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -404
  59. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  60. package/dist/types/excalidraw/actions/actionFrame.d.ts +235 -354
  61. package/dist/types/excalidraw/actions/actionGroup.d.ts +74 -123
  62. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +143 -202
  63. package/dist/types/excalidraw/actions/actionLink.d.ts +33 -54
  64. package/dist/types/excalidraw/actions/actionMenu.d.ts +24 -51
  65. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
  66. package/dist/types/excalidraw/actions/actionProperties.d.ts +131 -2576
  67. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -62
  68. package/dist/types/excalidraw/actions/actionStyles.d.ts +34 -55
  69. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  70. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +34 -55
  71. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -55
  72. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +23 -50
  73. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  74. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +34 -55
  75. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +34 -55
  76. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +35 -56
  77. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  78. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  79. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  80. package/dist/types/excalidraw/actions/types.d.ts +3 -3
  81. package/dist/types/excalidraw/appState.d.ts +13 -13
  82. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  83. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  84. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  85. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  86. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  87. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  88. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  89. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  90. package/dist/types/excalidraw/clipboard.d.ts +11 -35
  91. package/dist/types/excalidraw/components/Actions.d.ts +5 -2
  92. package/dist/types/excalidraw/components/App.d.ts +68 -60
  93. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  94. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  95. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -2
  96. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  97. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  98. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  99. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  100. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  101. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  102. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  103. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  104. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  105. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
  106. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  107. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  108. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  109. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  110. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  111. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  112. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  113. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  114. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  115. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  116. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  117. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  118. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  119. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  120. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  121. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  122. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  123. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  124. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  125. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  126. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  127. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  128. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  129. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  130. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  131. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  132. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  133. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  134. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  135. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  136. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  137. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  138. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  139. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  140. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  141. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  142. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  143. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  144. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  145. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  146. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  147. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  148. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  149. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  150. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  151. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  152. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  153. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  154. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  155. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  156. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  157. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  158. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  159. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  160. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  161. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  162. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  163. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  164. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  165. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  166. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  167. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  168. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  169. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  170. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  171. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  172. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  173. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  174. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  175. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  176. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  177. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  178. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  179. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  181. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  182. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  183. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  184. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  185. package/dist/types/excalidraw/components/icons.d.ts +27 -13
  186. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  187. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -2
  188. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  189. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  190. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  191. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  192. package/dist/types/excalidraw/data/blob.d.ts +319 -3
  193. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  194. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  195. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  196. package/dist/types/excalidraw/data/index.d.ts +3 -3
  197. package/dist/types/excalidraw/data/json.d.ts +158 -2
  198. package/dist/types/excalidraw/data/library.d.ts +24 -9
  199. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  200. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  201. package/dist/types/excalidraw/errors.d.ts +14 -0
  202. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  203. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  204. package/dist/types/excalidraw/i18n.d.ts +2 -2
  205. package/dist/types/excalidraw/index.d.ts +8 -7
  206. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  207. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  208. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  209. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  210. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  211. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  212. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  213. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  214. package/dist/types/excalidraw/snapping.d.ts +5 -5
  215. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  216. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  217. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  218. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  219. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  220. package/dist/types/excalidraw/types.d.ts +34 -29
  221. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  222. package/dist/types/math/src/point.d.ts +6 -1
  223. package/dist/types/math/src/polygon.d.ts +2 -2
  224. package/dist/types/math/src/range.d.ts +1 -3
  225. package/dist/types/math/src/segment.d.ts +3 -3
  226. package/dist/types/math/src/types.d.ts +25 -1
  227. package/dist/types/utils/src/bbox.d.ts +1 -1
  228. package/dist/types/utils/src/export.d.ts +5 -5
  229. package/dist/types/utils/src/shape.d.ts +6 -6
  230. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  231. package/package.json +9 -3
  232. package/dist/types/excalidraw/charts.d.ts +0 -27
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  export declare const actionAddToLibrary: {
3
2
  name: "addToLibrary";
4
3
  trackEvent: {
5
4
  category: "element";
6
5
  };
7
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
6
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
8
7
  captureUpdate: "EVENTUALLY";
9
8
  appState: {
10
9
  toast: {
@@ -17,10 +16,10 @@ export declare const actionAddToLibrary: {
17
16
  } | null;
18
17
  showWelcomeScreen: boolean;
19
18
  isLoading: boolean;
20
- errorMessage: import("react").ReactNode;
19
+ errorMessage: React.ReactNode;
21
20
  activeEmbeddable: {
22
21
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
- state: "active" | "hover";
22
+ state: "hover" | "active";
24
23
  } | null;
25
24
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
25
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -28,7 +27,10 @@ export declare const actionAddToLibrary: {
28
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
28
  isBindingEnabled: boolean;
30
29
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
+ suggestedBinding: {
31
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
32
+ midPoint?: import("@excalidraw/math").GlobalPoint;
33
+ } | null;
32
34
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
35
  frameRendering: {
34
36
  enabled: boolean;
@@ -56,19 +58,19 @@ export declare const actionAddToLibrary: {
56
58
  exportScale: number;
57
59
  currentItemStrokeColor: string;
58
60
  currentItemBackgroundColor: string;
59
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
61
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
60
62
  currentItemStrokeWidth: number;
61
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
63
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
62
64
  currentItemRoughness: number;
63
65
  currentItemOpacity: number;
64
- currentItemFontFamily: number;
66
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
65
67
  currentItemFontSize: number;
66
- currentItemTextAlign: string;
68
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
67
69
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
68
70
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
69
- currentHoveredFontFamily: number | null;
71
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
70
72
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
71
- currentItemArrowType: "round" | "sharp" | "elbow";
73
+ currentItemArrowType: "sharp" | "round" | "elbow";
72
74
  viewBackgroundColor: string;
73
75
  scrollX: number;
74
76
  scrollY: number;
@@ -77,26 +79,30 @@ export declare const actionAddToLibrary: {
77
79
  name: string | null;
78
80
  isResizing: boolean;
79
81
  isRotating: boolean;
80
- zoom: Readonly<{
81
- value: import("../types").NormalizedZoomValue;
82
- }>;
82
+ zoom: import("../types").Zoom;
83
83
  openMenu: "canvas" | null;
84
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
85
85
  openSidebar: {
86
- name: string;
87
- tab?: string | undefined;
86
+ name: import("../types").SidebarName;
87
+ tab?: import("../types").SidebarTabName;
88
88
  } | null;
89
- openDialog: {
89
+ openDialog: null | {
90
90
  name: "imageExport" | "help" | "jsonExport";
91
91
  } | {
92
92
  name: "ttd";
93
- tab: "mermaid" | "text-to-diagram";
93
+ tab: "text-to-diagram" | "mermaid";
94
94
  } | {
95
95
  name: "commandPalette";
96
+ } | {
97
+ name: "settings";
96
98
  } | {
97
99
  name: "elementLinkSelector";
98
- sourceElementId: string;
99
- } | null;
100
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
101
+ } | {
102
+ name: "charts";
103
+ data: import("../charts").Spreadsheet;
104
+ rawText: string;
105
+ };
100
106
  defaultSidebarDockedPreference: boolean;
101
107
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
102
108
  selectedElementIds: Readonly<{
@@ -119,45 +125,18 @@ export declare const actionAddToLibrary: {
119
125
  selectedGroupIds: {
120
126
  [groupId: string]: boolean;
121
127
  };
122
- editingGroupId: string | null;
128
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
123
129
  width: number;
124
130
  height: number;
125
131
  offsetTop: number;
126
132
  offsetLeft: number;
127
133
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
128
- collaborators: Map<import("../types").SocketId, Readonly<{
129
- pointer?: import("../types").CollaboratorPointer | undefined;
130
- button?: "up" | "down" | undefined;
131
- selectedElementIds?: Readonly<{
132
- [id: string]: true;
133
- }> | undefined;
134
- username?: string | null | undefined;
135
- userState?: import("@excalidraw/common").UserIdleState | undefined;
136
- color?: {
137
- background: string;
138
- stroke: string;
139
- } | undefined;
140
- avatarUrl?: string | undefined;
141
- id?: string | undefined;
142
- socketId?: import("../types").SocketId | undefined;
143
- isCurrentUser?: boolean | undefined;
144
- isInCall?: boolean | undefined;
145
- isSpeaking?: boolean | undefined;
146
- isMuted?: boolean | undefined;
147
- }>>;
134
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
148
135
  stats: {
149
136
  open: boolean;
150
137
  panels: number;
151
138
  };
152
- currentChartType: import("@excalidraw/element/types").ChartType;
153
- pasteDialog: {
154
- shown: false;
155
- data: null;
156
- } | {
157
- shown: true;
158
- data: import("../charts").Spreadsheet;
159
- };
160
- showHyperlinkPopup: false | "editor" | "info";
139
+ showHyperlinkPopup: false | "info" | "editor";
161
140
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
141
  snapLines: readonly import("../snapping").SnapLine[];
163
142
  originSnapOffset: {
@@ -168,16 +147,16 @@ export declare const actionAddToLibrary: {
168
147
  userToFollow: import("../types").UserToFollow | null;
169
148
  followedBy: Set<import("../types").SocketId>;
170
149
  isCropping: boolean;
171
- croppingElementId: string | null;
150
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
172
151
  searchMatches: Readonly<{
173
- focusedId: string | null;
152
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
174
153
  matches: readonly import("../types").SearchMatch[];
175
154
  }> | null;
176
155
  activeLockedId: string | null;
177
156
  lockedMultiSelections: {
178
157
  [groupId: string]: true;
179
158
  };
180
- stylesPanelMode: "compact" | "full" | "mobile";
159
+ bindMode: import("@excalidraw/element/types").BindMode;
181
160
  };
182
161
  } | {
183
162
  captureUpdate: "EVENTUALLY";
@@ -192,7 +171,7 @@ export declare const actionAddToLibrary: {
192
171
  isLoading: boolean;
193
172
  activeEmbeddable: {
194
173
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
195
- state: "active" | "hover";
174
+ state: "hover" | "active";
196
175
  } | null;
197
176
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
198
177
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -200,7 +179,10 @@ export declare const actionAddToLibrary: {
200
179
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
201
180
  isBindingEnabled: boolean;
202
181
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
203
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
182
+ suggestedBinding: {
183
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
184
+ midPoint?: import("@excalidraw/math").GlobalPoint;
185
+ } | null;
204
186
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
205
187
  frameRendering: {
206
188
  enabled: boolean;
@@ -228,19 +210,19 @@ export declare const actionAddToLibrary: {
228
210
  exportScale: number;
229
211
  currentItemStrokeColor: string;
230
212
  currentItemBackgroundColor: string;
231
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
213
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
232
214
  currentItemStrokeWidth: number;
233
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
215
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
234
216
  currentItemRoughness: number;
235
217
  currentItemOpacity: number;
236
- currentItemFontFamily: number;
218
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
237
219
  currentItemFontSize: number;
238
- currentItemTextAlign: string;
220
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
239
221
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
240
222
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
241
- currentHoveredFontFamily: number | null;
223
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
242
224
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
243
- currentItemArrowType: "round" | "sharp" | "elbow";
225
+ currentItemArrowType: "sharp" | "round" | "elbow";
244
226
  viewBackgroundColor: string;
245
227
  scrollX: number;
246
228
  scrollY: number;
@@ -249,26 +231,30 @@ export declare const actionAddToLibrary: {
249
231
  name: string | null;
250
232
  isResizing: boolean;
251
233
  isRotating: boolean;
252
- zoom: Readonly<{
253
- value: import("../types").NormalizedZoomValue;
254
- }>;
234
+ zoom: import("../types").Zoom;
255
235
  openMenu: "canvas" | null;
256
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
236
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
257
237
  openSidebar: {
258
- name: string;
259
- tab?: string | undefined;
238
+ name: import("../types").SidebarName;
239
+ tab?: import("../types").SidebarTabName;
260
240
  } | null;
261
- openDialog: {
241
+ openDialog: null | {
262
242
  name: "imageExport" | "help" | "jsonExport";
263
243
  } | {
264
244
  name: "ttd";
265
- tab: "mermaid" | "text-to-diagram";
245
+ tab: "text-to-diagram" | "mermaid";
266
246
  } | {
267
247
  name: "commandPalette";
248
+ } | {
249
+ name: "settings";
268
250
  } | {
269
251
  name: "elementLinkSelector";
270
- sourceElementId: string;
271
- } | null;
252
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
253
+ } | {
254
+ name: "charts";
255
+ data: import("../charts").Spreadsheet;
256
+ rawText: string;
257
+ };
272
258
  defaultSidebarDockedPreference: boolean;
273
259
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
274
260
  selectedElementIds: Readonly<{
@@ -284,8 +270,8 @@ export declare const actionAddToLibrary: {
284
270
  shouldCacheIgnoreZoom: boolean;
285
271
  toast: {
286
272
  message: string;
287
- closable?: boolean | undefined;
288
- duration?: number | undefined;
273
+ closable?: boolean;
274
+ duration?: number;
289
275
  } | null;
290
276
  zenModeEnabled: boolean;
291
277
  theme: import("@excalidraw/element/types").Theme;
@@ -296,45 +282,18 @@ export declare const actionAddToLibrary: {
296
282
  selectedGroupIds: {
297
283
  [groupId: string]: boolean;
298
284
  };
299
- editingGroupId: string | null;
285
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
300
286
  width: number;
301
287
  height: number;
302
288
  offsetTop: number;
303
289
  offsetLeft: number;
304
290
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
305
- collaborators: Map<import("../types").SocketId, Readonly<{
306
- pointer?: import("../types").CollaboratorPointer | undefined;
307
- button?: "up" | "down" | undefined;
308
- selectedElementIds?: Readonly<{
309
- [id: string]: true;
310
- }> | undefined;
311
- username?: string | null | undefined;
312
- userState?: import("@excalidraw/common").UserIdleState | undefined;
313
- color?: {
314
- background: string;
315
- stroke: string;
316
- } | undefined;
317
- avatarUrl?: string | undefined;
318
- id?: string | undefined;
319
- socketId?: import("../types").SocketId | undefined;
320
- isCurrentUser?: boolean | undefined;
321
- isInCall?: boolean | undefined;
322
- isSpeaking?: boolean | undefined;
323
- isMuted?: boolean | undefined;
324
- }>>;
291
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
325
292
  stats: {
326
293
  open: boolean;
327
294
  panels: number;
328
295
  };
329
- currentChartType: import("@excalidraw/element/types").ChartType;
330
- pasteDialog: {
331
- shown: false;
332
- data: null;
333
- } | {
334
- shown: true;
335
- data: import("../charts").Spreadsheet;
336
- };
337
- showHyperlinkPopup: false | "editor" | "info";
296
+ showHyperlinkPopup: false | "info" | "editor";
338
297
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
339
298
  snapLines: readonly import("../snapping").SnapLine[];
340
299
  originSnapOffset: {
@@ -345,16 +304,16 @@ export declare const actionAddToLibrary: {
345
304
  userToFollow: import("../types").UserToFollow | null;
346
305
  followedBy: Set<import("../types").SocketId>;
347
306
  isCropping: boolean;
348
- croppingElementId: string | null;
307
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
349
308
  searchMatches: Readonly<{
350
- focusedId: string | null;
309
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
351
310
  matches: readonly import("../types").SearchMatch[];
352
311
  }> | null;
353
312
  activeLockedId: string | null;
354
313
  lockedMultiSelections: {
355
314
  [groupId: string]: true;
356
315
  };
357
- stylesPanelMode: "compact" | "full" | "mobile";
316
+ bindMode: import("@excalidraw/element/types").BindMode;
358
317
  };
359
318
  }> | {
360
319
  captureUpdate: "EVENTUALLY";
@@ -369,7 +328,7 @@ export declare const actionAddToLibrary: {
369
328
  isLoading: boolean;
370
329
  activeEmbeddable: {
371
330
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
372
- state: "active" | "hover";
331
+ state: "hover" | "active";
373
332
  } | null;
374
333
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
375
334
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -377,7 +336,10 @@ export declare const actionAddToLibrary: {
377
336
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
378
337
  isBindingEnabled: boolean;
379
338
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
380
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
339
+ suggestedBinding: {
340
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
341
+ midPoint?: import("@excalidraw/math").GlobalPoint;
342
+ } | null;
381
343
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
382
344
  frameRendering: {
383
345
  enabled: boolean;
@@ -405,19 +367,19 @@ export declare const actionAddToLibrary: {
405
367
  exportScale: number;
406
368
  currentItemStrokeColor: string;
407
369
  currentItemBackgroundColor: string;
408
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
370
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
409
371
  currentItemStrokeWidth: number;
410
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
372
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
411
373
  currentItemRoughness: number;
412
374
  currentItemOpacity: number;
413
- currentItemFontFamily: number;
375
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
414
376
  currentItemFontSize: number;
415
- currentItemTextAlign: string;
377
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
416
378
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
417
379
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
418
- currentHoveredFontFamily: number | null;
380
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
419
381
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
420
- currentItemArrowType: "round" | "sharp" | "elbow";
382
+ currentItemArrowType: "sharp" | "round" | "elbow";
421
383
  viewBackgroundColor: string;
422
384
  scrollX: number;
423
385
  scrollY: number;
@@ -426,26 +388,30 @@ export declare const actionAddToLibrary: {
426
388
  name: string | null;
427
389
  isResizing: boolean;
428
390
  isRotating: boolean;
429
- zoom: Readonly<{
430
- value: import("../types").NormalizedZoomValue;
431
- }>;
391
+ zoom: import("../types").Zoom;
432
392
  openMenu: "canvas" | null;
433
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
393
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
434
394
  openSidebar: {
435
- name: string;
436
- tab?: string | undefined;
395
+ name: import("../types").SidebarName;
396
+ tab?: import("../types").SidebarTabName;
437
397
  } | null;
438
- openDialog: {
398
+ openDialog: null | {
439
399
  name: "imageExport" | "help" | "jsonExport";
440
400
  } | {
441
401
  name: "ttd";
442
- tab: "mermaid" | "text-to-diagram";
402
+ tab: "text-to-diagram" | "mermaid";
443
403
  } | {
444
404
  name: "commandPalette";
405
+ } | {
406
+ name: "settings";
445
407
  } | {
446
408
  name: "elementLinkSelector";
447
- sourceElementId: string;
448
- } | null;
409
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
410
+ } | {
411
+ name: "charts";
412
+ data: import("../charts").Spreadsheet;
413
+ rawText: string;
414
+ };
449
415
  defaultSidebarDockedPreference: boolean;
450
416
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
451
417
  selectedElementIds: Readonly<{
@@ -461,8 +427,8 @@ export declare const actionAddToLibrary: {
461
427
  shouldCacheIgnoreZoom: boolean;
462
428
  toast: {
463
429
  message: string;
464
- closable?: boolean | undefined;
465
- duration?: number | undefined;
430
+ closable?: boolean;
431
+ duration?: number;
466
432
  } | null;
467
433
  zenModeEnabled: boolean;
468
434
  theme: import("@excalidraw/element/types").Theme;
@@ -473,45 +439,18 @@ export declare const actionAddToLibrary: {
473
439
  selectedGroupIds: {
474
440
  [groupId: string]: boolean;
475
441
  };
476
- editingGroupId: string | null;
442
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
477
443
  width: number;
478
444
  height: number;
479
445
  offsetTop: number;
480
446
  offsetLeft: number;
481
447
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
482
- collaborators: Map<import("../types").SocketId, Readonly<{
483
- pointer?: import("../types").CollaboratorPointer | undefined;
484
- button?: "up" | "down" | undefined;
485
- selectedElementIds?: Readonly<{
486
- [id: string]: true;
487
- }> | undefined;
488
- username?: string | null | undefined;
489
- userState?: import("@excalidraw/common").UserIdleState | undefined;
490
- color?: {
491
- background: string;
492
- stroke: string;
493
- } | undefined;
494
- avatarUrl?: string | undefined;
495
- id?: string | undefined;
496
- socketId?: import("../types").SocketId | undefined;
497
- isCurrentUser?: boolean | undefined;
498
- isInCall?: boolean | undefined;
499
- isSpeaking?: boolean | undefined;
500
- isMuted?: boolean | undefined;
501
- }>>;
448
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
502
449
  stats: {
503
450
  open: boolean;
504
451
  panels: number;
505
452
  };
506
- currentChartType: import("@excalidraw/element/types").ChartType;
507
- pasteDialog: {
508
- shown: false;
509
- data: null;
510
- } | {
511
- shown: true;
512
- data: import("../charts").Spreadsheet;
513
- };
514
- showHyperlinkPopup: false | "editor" | "info";
453
+ showHyperlinkPopup: false | "info" | "editor";
515
454
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
516
455
  snapLines: readonly import("../snapping").SnapLine[];
517
456
  originSnapOffset: {
@@ -522,16 +461,16 @@ export declare const actionAddToLibrary: {
522
461
  userToFollow: import("../types").UserToFollow | null;
523
462
  followedBy: Set<import("../types").SocketId>;
524
463
  isCropping: boolean;
525
- croppingElementId: string | null;
464
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
526
465
  searchMatches: Readonly<{
527
- focusedId: string | null;
466
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
528
467
  matches: readonly import("../types").SearchMatch[];
529
468
  }> | null;
530
469
  activeLockedId: string | null;
531
470
  lockedMultiSelections: {
532
471
  [groupId: string]: true;
533
472
  };
534
- stylesPanelMode: "compact" | "full" | "mobile";
473
+ bindMode: import("@excalidraw/element/types").BindMode;
535
474
  };
536
475
  };
537
476
  label: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppClassProperties, AppState, UIAppState } from "../types";
4
3
  export declare const alignActionsPredicate: (appState: UIAppState, app: AppClassProperties) => boolean;
@@ -10,7 +9,7 @@ export declare const actionAlignTop: {
10
9
  category: "element";
11
10
  };
12
11
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
13
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
12
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
14
13
  appState: Readonly<AppState>;
15
14
  elements: ExcalidrawElement[];
16
15
  captureUpdate: "IMMEDIATELY";
@@ -28,7 +27,7 @@ export declare const actionAlignBottom: {
28
27
  category: "element";
29
28
  };
30
29
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
31
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
30
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
32
31
  appState: Readonly<AppState>;
33
32
  elements: ExcalidrawElement[];
34
33
  captureUpdate: "IMMEDIATELY";
@@ -46,7 +45,7 @@ export declare const actionAlignLeft: {
46
45
  category: "element";
47
46
  };
48
47
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
49
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
48
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
50
49
  appState: Readonly<AppState>;
51
50
  elements: ExcalidrawElement[];
52
51
  captureUpdate: "IMMEDIATELY";
@@ -64,7 +63,7 @@ export declare const actionAlignRight: {
64
63
  category: "element";
65
64
  };
66
65
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
67
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
66
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
68
67
  appState: Readonly<AppState>;
69
68
  elements: ExcalidrawElement[];
70
69
  captureUpdate: "IMMEDIATELY";
@@ -82,7 +81,7 @@ export declare const actionAlignVerticallyCentered: {
82
81
  category: "element";
83
82
  };
84
83
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
85
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
84
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
86
85
  appState: Readonly<AppState>;
87
86
  elements: ExcalidrawElement[];
88
87
  captureUpdate: "IMMEDIATELY";
@@ -99,7 +98,7 @@ export declare const actionAlignHorizontallyCentered: {
99
98
  category: "element";
100
99
  };
101
100
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
102
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
101
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
103
102
  appState: Readonly<AppState>;
104
103
  elements: ExcalidrawElement[];
105
104
  captureUpdate: "IMMEDIATELY";