Update fill type to accpet CanvasGradient

This commit is contained in:
Elazar Kopyrin 2024-06-03 20:20:05 +03:00
parent 68b4ea3cb6
commit 01f4bb605e

View File

@ -26,7 +26,7 @@ export type LineJoin = 'round' | 'bevel' | 'miter';
export type LineCap = 'butt' | 'round' | 'square';
export interface ShapeConfig extends NodeConfig {
fill?: string;
fill?: string | CanvasGradient;
fillPatternImage?: HTMLImageElement;
fillPatternX?: number;
fillPatternY?: number;