update remaining paths to use utils workspace
This commit is contained in:
parent
927e36c7b4
commit
53a0428705
@ -72,7 +72,7 @@
|
|||||||
"locales-coverage:description": "node scripts/locales-coverage-description.js",
|
"locales-coverage:description": "node scripts/locales-coverage-description.js",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
|
"prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
|
||||||
"start": "yarn workspace @excalidraw/utils run build:esm && yarn --cwd ./excalidraw-app start",
|
"start": "yarn clear:workspaces && yarn workspace @excalidraw/utils run build:esm && yarn --cwd ./excalidraw-app start",
|
||||||
"start:app:production": "npm run build && npx http-server build -a localhost -p 5001 -o",
|
"start:app:production": "npm run build && npx http-server build -a localhost -p 5001 -o",
|
||||||
"test:all": "yarn test:typecheck && yarn test:code && yarn test:other && yarn test:app --watch=false",
|
"test:all": "yarn test:typecheck && yarn test:code && yarn test:other && yarn test:app --watch=false",
|
||||||
"test:app": "vitest",
|
"test:app": "vitest",
|
||||||
|
@ -231,8 +231,8 @@ import {
|
|||||||
getFreedrawShape,
|
getFreedrawShape,
|
||||||
getPolygonShape,
|
getPolygonShape,
|
||||||
getSelectionBoxShape,
|
getSelectionBoxShape,
|
||||||
} from "../../utils/geometry/shape";
|
} from "@excalidraw/utils";
|
||||||
import { isPointInShape } from "../../utils/collision";
|
import { isPointInShape } from "@excalidraw/utils";
|
||||||
import {
|
import {
|
||||||
AppClassProperties,
|
AppClassProperties,
|
||||||
AppProps,
|
AppProps,
|
||||||
|
@ -12,7 +12,7 @@ import {
|
|||||||
Polygon,
|
Polygon,
|
||||||
GeometricShape,
|
GeometricShape,
|
||||||
getPolygonShape,
|
getPolygonShape,
|
||||||
} from "../../utils/geometry/shape";
|
} from "@excalidraw/utils";
|
||||||
import { isPointInShape, isPointOnShape } from "@excalidraw/utils";
|
import { isPointInShape, isPointOnShape } from "@excalidraw/utils";
|
||||||
import { isTransparent } from "../utils";
|
import { isTransparent } from "../utils";
|
||||||
import {
|
import {
|
||||||
|
@ -17,12 +17,8 @@ import {
|
|||||||
import { AppState, Device, Zoom } from "../types";
|
import { AppState, Device, Zoom } from "../types";
|
||||||
import { Bounds, getElementAbsoluteCoords } from "./bounds";
|
import { Bounds, getElementAbsoluteCoords } from "./bounds";
|
||||||
import { SIDE_RESIZING_THRESHOLD } from "../constants";
|
import { SIDE_RESIZING_THRESHOLD } from "../constants";
|
||||||
import {
|
import { angleToDegrees, pointOnLine, pointRotate } from "@excalidraw/utils";
|
||||||
angleToDegrees,
|
import { Line, Point } from "@excalidraw/utils";
|
||||||
pointOnLine,
|
|
||||||
pointRotate,
|
|
||||||
} from "../../utils/geometry/geometry";
|
|
||||||
import { Line, Point } from "../../utils/geometry/shape";
|
|
||||||
import { isLinearElement } from "./typeChecks";
|
import { isLinearElement } from "./typeChecks";
|
||||||
|
|
||||||
const isInsideTransformHandle = (
|
const isInsideTransformHandle = (
|
||||||
|
@ -2,3 +2,5 @@ export * from "./export";
|
|||||||
export * from "./withinBounds";
|
export * from "./withinBounds";
|
||||||
export * from "./bbox";
|
export * from "./bbox";
|
||||||
export * from "./collision";
|
export * from "./collision";
|
||||||
|
export * from "./geometry/shape";
|
||||||
|
export * from "./geometry/geometry";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user