refactor: separate elements logic into a standalone package (#9285)

This commit is contained in:
Marcel Mraz
2025-03-26 15:24:59 +01:00
committed by GitHub
parent a18f059188
commit 432a46ef9e
372 changed files with 3463 additions and 2463 deletions
@@ -1,17 +1,19 @@
import { pointFrom, pointRotateRads } from "@excalidraw/math";
import { MIME_TYPES } from "@excalidraw/common";
import { getElementAbsoluteCoords } from "@excalidraw/element/bounds";
import { hitElementBoundingBox } from "@excalidraw/element/collision";
import { DEFAULT_LINK_SIZE } from "@excalidraw/element/renderElement";
import type { GlobalPoint, Radians } from "@excalidraw/math";
import { MIME_TYPES } from "../../constants";
import { getElementAbsoluteCoords } from "../../element/bounds";
import { hitElementBoundingBox } from "../../element/collision";
import { DEFAULT_LINK_SIZE } from "../../renderer/renderElement";
import type { Bounds } from "../../element/bounds";
import type { Bounds } from "@excalidraw/element/bounds";
import type {
ElementsMap,
NonDeletedExcalidrawElement,
} from "../../element/types";
} from "@excalidraw/element/types";
import type { AppState, UIAppState } from "../../types";
export const EXTERNAL_LINK_IMG = document.createElement("img");