feat(transform): add transform session commands

This commit is contained in:
syntaxbullet
2026-07-03 16:06:58 +02:00
parent 03d4d4a3b9
commit bf5d9f5371
9 changed files with 186 additions and 1 deletions

16
editor/transform.ts Normal file
View File

@@ -0,0 +1,16 @@
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;
};