refactor(transform): resolve target bounds
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
import type { Rect, Vec2D } from "@core/geometry";
|
||||
import type { ArtboardId } from "@core/id";
|
||||
import type { ArtboardId, LayerId } from "@core/id";
|
||||
|
||||
export type TransformHandle = "body" | "n" | "ne" | "e" | "se" | "s" | "sw" | "w" | "nw";
|
||||
|
||||
export type TransformTarget = {
|
||||
type: "artboard";
|
||||
id: ArtboardId;
|
||||
};
|
||||
export type TransformTarget =
|
||||
| {
|
||||
type: "artboard";
|
||||
id: ArtboardId;
|
||||
}
|
||||
| {
|
||||
type: "layer";
|
||||
id: LayerId;
|
||||
};
|
||||
|
||||
export type TransformSession = {
|
||||
target: TransformTarget;
|
||||
|
||||
Reference in New Issue
Block a user