Move utils source into src/

This commit is contained in:
Marcel Mraz 2025-03-24 12:15:37 +01:00
parent ba0a9e0cb4
commit 4a182f985b
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
31 changed files with 47 additions and 49 deletions

View file

@ -11,7 +11,7 @@ import {
pointRotateRads,
} from "@excalidraw/math";
import { getCurvePathOps } from "@excalidraw/utils/geometry/shape";
import { getCurvePathOps } from "@excalidraw/utils/shape";
import type {
Degrees,

View file

@ -16,7 +16,7 @@ import {
} from "@excalidraw/math/ellipse";
import { isPointInShape, isPointOnShape } from "@excalidraw/utils/collision";
import { getPolygonShape } from "@excalidraw/utils/geometry/shape";
import { getPolygonShape } from "@excalidraw/utils/shape";
import type {
GlobalPoint,
@ -26,7 +26,7 @@ import type {
Radians,
} from "@excalidraw/math";
import type { GeometricShape } from "@excalidraw/utils/geometry/shape";
import type { GeometricShape } from "@excalidraw/utils/shape";
import type { FrameNameBounds } from "@excalidraw/excalidraw/types";

View file

@ -9,7 +9,7 @@ import {
vectorFromPoint,
} from "@excalidraw/math";
import { getCurvePathOps } from "@excalidraw/utils/geometry/shape";
import { getCurvePathOps } from "@excalidraw/utils/shape";
import {
DRAGGING_THRESHOLD,
@ -20,7 +20,7 @@ import {
tupleToCoors,
} from "@excalidraw/common";
// TODO: remove the dependency on the scene
// TODO: remove direct dependency on the scene, should be passed in or injected instead
import Scene from "@excalidraw/excalidraw/scene/Scene";
import type { Store } from "@excalidraw/excalidraw/store";

View file

@ -5,7 +5,7 @@ import {
toBrandedType,
} from "@excalidraw/common";
// TODO_SEP: should be passed in or injected instead
// TODO: remove direct dependency on the scene, should be passed in or injected instead
import Scene from "@excalidraw/excalidraw/scene/Scene";
import type { Radians } from "@excalidraw/math";

View file

@ -23,7 +23,7 @@ import {
getFreedrawShape,
getPolygonShape,
type GeometricShape,
} from "@excalidraw/utils/geometry/shape";
} from "@excalidraw/utils/shape";
import type { NormalizedZoomValue, Zoom } from "@excalidraw/excalidraw/types";

View file

@ -17,12 +17,12 @@ import {
render,
} from "@excalidraw/excalidraw/tests/test-utils";
import "@excalidraw/utils/test-utils";
import type { LocalPoint } from "@excalidraw/math";
import { bindLinearElement } from "../src/binding";
import "../../utils/test-utils";
import type {
ExcalidrawArrowElement,
ExcalidrawBindableElement,