17 lines
395 B
TypeScript
17 lines
395 B
TypeScript
import type { Rect, Vec2D } from "@core/geometry";
|
|
import type { ArtboardId } from "@core/id";
|
|
|
|
export type TransformHandle = "body" | "n" | "ne" | "e" | "se" | "s" | "sw" | "w" | "nw";
|
|
|
|
export type TransformTarget = {
|
|
type: "artboard";
|
|
id: ArtboardId;
|
|
};
|
|
|
|
export type TransformSession = {
|
|
target: TransformTarget;
|
|
handle: TransformHandle;
|
|
startPoint: Vec2D;
|
|
initialBounds: Rect;
|
|
};
|