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,13 +1,16 @@
import { reconcileElements } from "../../data/reconcile";
import { syncInvalidIndices } from "../../fractionalIndex";
import { randomInteger } from "../../random";
import { cloneJSON } from "../../utils";
import { syncInvalidIndices } from "@excalidraw/element/fractionalIndex";
import { randomInteger, cloneJSON } from "@excalidraw/common";
import type { RemoteExcalidrawElement } from "../../data/reconcile";
import type {
ExcalidrawElement,
OrderedExcalidrawElement,
} from "../../element/types";
} from "@excalidraw/element/types";
import { reconcileElements } from "../../data/reconcile";
import type { RemoteExcalidrawElement } from "../../data/reconcile";
import type { AppState } from "../../types";
type Id = string;