mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Update fill
type to accpet CanvasGradient
This commit is contained in:
parent
68b4ea3cb6
commit
01f4bb605e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user