Move utility types in common

This commit is contained in:
Marcel Mraz 2025-03-18 19:43:21 +01:00
parent 0a7e9c51d6
commit e1ea33836e
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
46 changed files with 76 additions and 50 deletions

View file

@ -13,7 +13,7 @@ import {
isLinearElement,
} from "@excalidraw/element/typeChecks";
import type { Mutable } from "@excalidraw/excalidraw/utility-types";
import type { Mutable } from "@excalidraw/common/utility-types";
import type {
ExcalidrawElement,

View file

@ -25,7 +25,7 @@ import type {
import type { AppState } from "@excalidraw/excalidraw/types";
import type { Mutable } from "@excalidraw/excalidraw/utility-types";
import type { Mutable } from "@excalidraw/common/utility-types";
import { LinearElementEditor } from "./linearElementEditor";
import { getBoundTextElement, getContainerElement } from "./textElement";

View file

@ -6,7 +6,7 @@ import {
} from "@excalidraw/common";
import type { ExcalidrawProps } from "@excalidraw/excalidraw/types";
import type { MarkRequired } from "@excalidraw/excalidraw/utility-types";
import type { MarkRequired } from "@excalidraw/common/utility-types";
import { newTextElement } from "./newElement";
import { wrapText } from "./textWrapping";

View file

@ -29,7 +29,7 @@ import type {
StaticCanvasAppState,
} from "@excalidraw/excalidraw/types";
import type { ReadonlySetLike } from "@excalidraw/excalidraw/utility-types";
import type { ReadonlySetLike } from "@excalidraw/common/utility-types";
import { getElementsInGroup, selectGroupsFromGivenElements } from "./groups";

View file

@ -17,7 +17,7 @@ import type {
AppState,
InteractiveCanvasAppState,
} from "@excalidraw/excalidraw/types";
import type { Mutable } from "@excalidraw/excalidraw/utility-types";
import type { Mutable } from "@excalidraw/common/utility-types";
export const selectGroup = (
groupId: GroupId,

View file

@ -43,7 +43,7 @@ import type {
Zoom,
} from "@excalidraw/excalidraw/types";
import type { Mutable } from "@excalidraw/excalidraw/utility-types";
import type { Mutable } from "@excalidraw/common/utility-types";
import {
bindOrUnbindLinearElement,

View file

@ -10,7 +10,7 @@ import Scene from "@excalidraw/excalidraw/scene/Scene";
import type { Radians } from "@excalidraw/math";
import type { Mutable } from "@excalidraw/excalidraw/utility-types";
import type { Mutable } from "@excalidraw/common/utility-types";
import { ShapeCache } from "./ShapeCache";

View file

@ -25,7 +25,7 @@ import type {
MarkOptional,
Merge,
Mutable,
} from "@excalidraw/excalidraw/utility-types";
} from "@excalidraw/common/utility-types";
import { getResizedElementAbsoluteCoords } from "./bounds";
import { bumpVersion, newElementWith } from "./mutateElement";

View file

@ -22,7 +22,7 @@ import type Scene from "@excalidraw/excalidraw/scene/Scene";
import type { PointerDownState } from "@excalidraw/excalidraw/types";
import type { Mutable } from "@excalidraw/excalidraw/utility-types";
import type { Mutable } from "@excalidraw/common/utility-types";
import { getArrowLocalFixedPoints, updateBoundElements } from "./binding";
import {

View file

@ -11,7 +11,7 @@ import {
import type { AppState } from "@excalidraw/excalidraw/types";
import type { ExtractSetType } from "@excalidraw/excalidraw/utility-types";
import type { ExtractSetType } from "@excalidraw/common/utility-types";
import {
resetOriginalContainerCache,

View file

@ -2,7 +2,7 @@ import { ROUNDNESS, assertNever } from "@excalidraw/common";
import type { ElementOrToolType } from "@excalidraw/excalidraw/types";
import type { MarkNonNullable } from "@excalidraw/excalidraw/utility-types";
import type { MarkNonNullable } from "@excalidraw/common/utility-types";
import type { Bounds } from "./bounds";
import type {

View file

@ -13,7 +13,7 @@ import type {
MarkNonNullable,
Merge,
ValueOf,
} from "@excalidraw/excalidraw/utility-types";
} from "@excalidraw/common/utility-types";
export type ChartType = "bar" | "line";
export type FillStyle = "hachure" | "cross-hatch" | "solid" | "zigzag";