mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-15 18:25:58 +01:00
feat: use @excalidraw/utils as a workspace in the codebase
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Bounds } from "../excalidraw/element/bounds";
|
||||
import { Point } from "../excalidraw/types";
|
||||
import type { Bounds } from "../excalidraw/element/bounds";
|
||||
import type { Point } from "../excalidraw/types";
|
||||
|
||||
export type LineSegment = [Point, Point];
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Point, Polygon, GeometricShape } from "./geometry/shape";
|
||||
import type { Point, Polygon, GeometricShape } from "./geometry/shape";
|
||||
import {
|
||||
pointInEllipse,
|
||||
pointInPolygon,
|
||||
|
||||
@@ -3,12 +3,6 @@ import {
|
||||
exportToSvg as _exportToSvg,
|
||||
} from "../excalidraw/scene/export";
|
||||
import { getDefaultAppState } from "../excalidraw/appState";
|
||||
import { AppState, BinaryFiles } from "../excalidraw/types";
|
||||
import {
|
||||
ExcalidrawElement,
|
||||
ExcalidrawFrameLikeElement,
|
||||
NonDeleted,
|
||||
} from "../excalidraw/element/types";
|
||||
import { restore } from "../excalidraw/data/restore";
|
||||
import { MIME_TYPES } from "../excalidraw/constants";
|
||||
import { encodePngMetadata } from "../excalidraw/data/image";
|
||||
@@ -19,6 +13,13 @@ import {
|
||||
copyToClipboard,
|
||||
} from "../excalidraw/clipboard";
|
||||
|
||||
import type { AppState, BinaryFiles } from "../excalidraw/types";
|
||||
import type {
|
||||
ExcalidrawElement,
|
||||
ExcalidrawFrameLikeElement,
|
||||
NonDeleted,
|
||||
} from "../excalidraw/element/types";
|
||||
|
||||
export { MIME_TYPES };
|
||||
|
||||
type ExportOpts = {
|
||||
|
||||
Reference in New Issue
Block a user