feat: add core domain model foundations

This commit is contained in:
syntaxbullet
2026-07-02 23:11:14 +02:00
parent 5f767a6688
commit 02df52c978
14 changed files with 133 additions and 1 deletions

16
core/base-layer.ts Normal file
View File

@@ -0,0 +1,16 @@
import type { Transform } from "./geometry";
import type { LayerId } from "./id";
export type LayerClippingMask = {
maskLayerId: LayerId;
};
export type BaseLayer = {
id: LayerId;
name: string;
visible: boolean;
locked: boolean;
opacity: number;
transform: Transform;
clippingMask?: LayerClippingMask;
};