Move fractional index in element

This commit is contained in:
Marcel Mraz 2025-03-18 19:28:58 +01:00
parent 1c5b8372b9
commit 3782407c76
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
18 changed files with 88 additions and 45 deletions

View file

@ -2,13 +2,13 @@ import throttle from "lodash.throttle";
import { ENV, arrayToMap } from "@excalidraw/common";
import type { OrderedExcalidrawElement } from "@excalidraw/element/types";
import {
orderByFractionalIndex,
syncInvalidIndices,
validateFractionalIndices,
} from "../fractionalIndex";
} from "@excalidraw/element/fractionalIndex";
import type { OrderedExcalidrawElement } from "@excalidraw/element/types";
import type { AppState } from "../types";
import type { MakeBrand } from "../utility-types";

View file

@ -41,6 +41,8 @@ import {
isUsingAdaptiveRadius,
} from "@excalidraw/element/typeChecks";
import { syncInvalidIndices } from "@excalidraw/element/fractionalIndex";
import type { LocalPoint, Radians } from "@excalidraw/math";
import type {
@ -62,7 +64,6 @@ import type {
import { getDefaultAppState } from "../appState";
import { getLineHeight } from "../fonts/FontMetadata";
import { syncInvalidIndices } from "../fractionalIndex";
import {
getNormalizedGridSize,
getNormalizedGridStep,

View file

@ -34,6 +34,8 @@ import {
} from "@excalidraw/element/textMeasurements";
import { isArrowElement } from "@excalidraw/element/typeChecks";
import { syncInvalidIndices } from "@excalidraw/element/fractionalIndex";
import type { ElementConstructorOpts } from "@excalidraw/element/newElement";
import type {
@ -58,7 +60,6 @@ import type {
} from "@excalidraw/element/types";
import { getLineHeight } from "../fonts/FontMetadata";
import { syncInvalidIndices } from "../fractionalIndex";
import type { MarkOptional } from "../utility-types";