feat: add first-class text layers
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { Rect, Size, Transform } from "@core/geometry";
|
||||
import type { TextStyle } from "@core/text-layer";
|
||||
|
||||
export type InputLayerId = string;
|
||||
export type InputArtboardId = string;
|
||||
@@ -17,6 +18,7 @@ type InputBaseLayer = {
|
||||
export type InputLayer =
|
||||
| (InputBaseLayer & { type: "group"; children: InputLayer[] })
|
||||
| (InputBaseLayer & { type: "adjustment" })
|
||||
| (InputBaseLayer & { type: "text"; content: string; style: TextStyle })
|
||||
| (InputBaseLayer & { type: "image" | "raster"; assetId: string });
|
||||
|
||||
export type InputDocument = {
|
||||
|
||||
Reference in New Issue
Block a user