Don't import from subpaths

This commit is contained in:
Marcel Mraz 2025-05-01 12:47:42 +02:00
parent 192c4e7658
commit 259017bc45
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
113 changed files with 429 additions and 458 deletions

View file

@ -5,7 +5,7 @@ import {
type LocalPoint,
} from "@excalidraw/math";
import type { Bounds } from "@excalidraw/element/bounds";
import type { Bounds } from "@excalidraw/element";
export type LineSegment<P extends LocalPoint | GlobalPoint> = [P, P];

View file

@ -1,4 +1,4 @@
export * from "./export";
export * from "./withinBounds";
export * from "./bbox";
export { getCommonBounds } from "@excalidraw/element/bounds";
export { getCommonBounds } from "@excalidraw/element";

View file

@ -34,7 +34,7 @@ import {
type LocalPoint,
} from "@excalidraw/math";
import { getElementAbsoluteCoords } from "@excalidraw/element/bounds";
import { getElementAbsoluteCoords } from "@excalidraw/element";
import type {
ElementsMap,

View file

@ -1,12 +1,12 @@
import { arrayToMap } from "@excalidraw/common";
import { getElementBounds } from "@excalidraw/element/bounds";
import { getElementBounds } from "@excalidraw/element";
import {
isArrowElement,
isExcalidrawElement,
isFreeDrawElement,
isLinearElement,
isTextElement,
} from "@excalidraw/element/typeChecks";
} from "@excalidraw/element";
import {
rangeIncludesValue,
pointFrom,
@ -14,7 +14,7 @@ import {
rangeInclusive,
} from "@excalidraw/math";
import type { Bounds } from "@excalidraw/element/bounds";
import type { Bounds } from "@excalidraw/element";
import type {
ExcalidrawElement,
ExcalidrawFreeDrawElement,