feat: add core domain model foundations
This commit is contained in:
16
core/base-layer.ts
Normal file
16
core/base-layer.ts
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user