@excalidraw/math 0.18.0-1b287a8ba → 0.18.0-6d75c4b34

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.
@@ -1,8 +1,7 @@
1
- import type { AppState } from "@excalidraw/excalidraw/types";
2
1
  import type { Scene } from "./Scene";
3
2
  import type { ExcalidrawElement } from "./types";
4
3
  export interface Alignment {
5
4
  position: "start" | "center" | "end";
6
5
  axis: "x" | "y";
7
6
  }
8
- export declare const alignElements: (selectedElements: ExcalidrawElement[], alignment: Alignment, scene: Scene, appState: Readonly<AppState>) => ExcalidrawElement[];
7
+ export declare const alignElements: (selectedElements: ExcalidrawElement[], alignment: Alignment, scene: Scene) => ExcalidrawElement[];
@@ -1,7 +1,6 @@
1
- import type { AppState } from "@excalidraw/excalidraw/types";
2
1
  import type { ElementsMap, ExcalidrawElement } from "./types";
3
2
  export interface Distribution {
4
3
  space: "between";
5
4
  axis: "x" | "y";
6
5
  }
7
- export declare const distributeElements: (selectedElements: ExcalidrawElement[], elementsMap: ElementsMap, distribution: Distribution, appState: Readonly<AppState>) => ExcalidrawElement[];
6
+ export declare const distributeElements: (selectedElements: ExcalidrawElement[], elementsMap: ElementsMap, distribution: Distribution) => ExcalidrawElement[];
@@ -31,4 +31,3 @@ export declare const getNonDeletedGroupIds: (elements: ElementsMap) => Set<strin
31
31
  export declare const elementsAreInSameGroup: (elements: readonly ExcalidrawElement[]) => boolean;
32
32
  export declare const isInGroup: (element: NonDeletedExcalidrawElement) => boolean;
33
33
  export declare const getNewGroupIdsForDuplication: (groupIds: ExcalidrawElement["groupIds"], editingGroupId: AppState["editingGroupId"], mapper: (groupId: GroupId) => GroupId) => string[];
34
- export declare const getSelectedElementsByGroup: (selectedElements: ExcalidrawElement[], elementsMap: ElementsMap, appState: Readonly<AppState>) => ExcalidrawElement[][];
@@ -29,7 +29,6 @@ export { Sidebar } from "./components/Sidebar/Sidebar";
29
29
  export { Button } from "./components/Button";
30
30
  export { Footer };
31
31
  export { MainMenu };
32
- export { Ellipsify } from "./components/Ellipsify";
33
32
  export { useDevice } from "./components/App";
34
33
  export { WelcomeScreen };
35
34
  export { LiveCollaborationTrigger };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@excalidraw/math",
3
- "version": "0.18.0-1b287a8ba",
3
+ "version": "0.18.0-6d75c4b34",
4
4
  "type": "module",
5
5
  "types": "./dist/types/math/src/index.d.ts",
6
6
  "main": "./dist/prod/index.js",
@@ -61,6 +61,6 @@
61
61
  "build:esm": "rimraf dist && node ../../scripts/buildBase.js && yarn gen:types"
62
62
  },
63
63
  "dependencies": {
64
- "@excalidraw/common": "0.18.0-1b287a8ba"
64
+ "@excalidraw/common": "0.18.0-6d75c4b34"
65
65
  }
66
66
  }
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Ellipsify: ({ children, ...rest }: {
3
- children: React.ReactNode;
4
- } & import("react").HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;