feat(core): add raster layer type

This commit is contained in:
syntaxbullet
2026-07-03 17:34:02 +02:00
parent c946fb4c93
commit 665f4a5340
10 changed files with 66 additions and 5 deletions

View File

@@ -16,3 +16,4 @@ export type { ArtboardId, AssetId, DocumentId, LayerId } from "./id";
export type { ImageLayer } from "./image-layer";
export type { Layer } from "./layer";
export type { LayerGroup } from "./layer-group";
export type { RasterLayer } from "./raster-layer";

View File

@@ -1,4 +1,5 @@
import type { ImageLayer } from "./image-layer";
import type { LayerGroup } from "./layer-group";
import type { RasterLayer } from "./raster-layer";
export type Layer = ImageLayer | LayerGroup;
export type Layer = ImageLayer | RasterLayer | LayerGroup;

7
core/raster-layer.ts Normal file
View File

@@ -0,0 +1,7 @@
import type { BaseLayer } from "./base-layer";
import type { AssetId } from "./id";
export type RasterLayer = BaseLayer & {
type: "raster";
assetId: AssetId;
};