Move scene folder into src

This commit is contained in:
Deepen Timalsina 2025-04-14 21:12:42 +05:45
parent d9721802e7
commit 1ed3aeb81c
74 changed files with 100 additions and 102 deletions

View file

@ -6,7 +6,7 @@ import { ROUGHNESS, isTransparent, assertNever } from "@excalidraw/common";
import type { Mutable } from "@excalidraw/common/utility-types";
import type { EmbedsValidationStatus } from "@excalidraw/excalidraw/types";
import type { ElementShapes } from "@excalidraw/excalidraw/scene/types";
import type { ElementShapes } from "@excalidraw/excalidraw/src/scene/types";
import {
isElbowArrow,

View file

@ -9,7 +9,7 @@ import type {
import type {
ElementShape,
ElementShapes,
} from "@excalidraw/excalidraw/scene/types";
} from "@excalidraw/excalidraw/src/scene/types";
import { _generateElementShape } from "./Shape";

View file

@ -1,4 +1,4 @@
import type Scene from "@excalidraw/excalidraw/scene/Scene";
import type Scene from "@excalidraw/excalidraw/src/scene/Scene";
import { updateBoundElements } from "./binding";
import { getCommonBoundingBox } from "./bounds";

View file

@ -31,7 +31,7 @@ import { isPointOnShape } from "@excalidraw/utils/collision";
import type { LocalPoint, Radians } from "@excalidraw/math";
import type Scene from "@excalidraw/excalidraw/scene/Scene";
import type Scene from "@excalidraw/excalidraw/src/scene/Scene";
import type { AppState } from "@excalidraw/excalidraw/types";

View file

@ -11,7 +11,7 @@ import type {
PointerDownState,
} from "@excalidraw/excalidraw/types";
import type Scene from "@excalidraw/excalidraw/scene/Scene";
import type Scene from "@excalidraw/excalidraw/src/scene/Scene";
import type { NonDeletedExcalidrawElement } from "@excalidraw/element/types";

View file

@ -3,7 +3,7 @@ import { isPointWithinBounds, pointFrom } from "@excalidraw/math";
import { doLineSegmentsIntersect } from "@excalidraw/utils/bbox";
import { elementsOverlappingBBox } from "@excalidraw/utils/withinBounds";
import type { ExcalidrawElementsIncludingDeleted } from "@excalidraw/excalidraw/scene/Scene";
import type { ExcalidrawElementsIncludingDeleted } from "@excalidraw/excalidraw/src/scene/Scene";
import type {
AppClassProperties,

View file

@ -22,7 +22,7 @@ import {
// TODO: remove direct dependency on the scene, should be passed in or injected instead
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
import Scene from "@excalidraw/excalidraw/scene/Scene";
import Scene from "@excalidraw/excalidraw/src/scene/Scene";
import type { Store } from "@excalidraw/excalidraw/store";

View file

@ -7,7 +7,7 @@ import {
// TODO: remove direct dependency on the scene, should be passed in or injected instead
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
import Scene from "@excalidraw/excalidraw/scene/Scene";
import Scene from "@excalidraw/excalidraw/src/scene/Scene";
import type { Radians } from "@excalidraw/math";

View file

@ -30,7 +30,7 @@ import type {
StaticCanvasRenderConfig,
RenderableElementsMap,
InteractiveCanvasRenderConfig,
} from "@excalidraw/excalidraw/scene/types";
} from "@excalidraw/excalidraw/src/scene/types";
import { getElementAbsoluteCoords } from "./bounds";
import { getUncroppedImageElement } from "./cropElement";

View file

@ -17,7 +17,7 @@ import {
import type { GlobalPoint } from "@excalidraw/math";
import type Scene from "@excalidraw/excalidraw/scene/Scene";
import type Scene from "@excalidraw/excalidraw/src/scene/Scene";
import type { PointerDownState } from "@excalidraw/excalidraw/types";

View file

@ -2,7 +2,7 @@ import { arrayToMap, findIndex, findLastIndex } from "@excalidraw/common";
import type { AppState } from "@excalidraw/excalidraw/types";
import type Scene from "@excalidraw/excalidraw/scene/Scene";
import type Scene from "@excalidraw/excalidraw/src/scene/Scene";
import { isFrameLikeElement } from "./typeChecks";