mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 06:07:13 +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 type LineCap = 'butt' | 'round' | 'square';
|
||||||
|
|
||||||
export interface ShapeConfig extends NodeConfig {
|
export interface ShapeConfig extends NodeConfig {
|
||||||
fill?: string;
|
fill?: string | CanvasGradient;
|
||||||
fillPatternImage?: HTMLImageElement;
|
fillPatternImage?: HTMLImageElement;
|
||||||
fillPatternX?: number;
|
fillPatternX?: number;
|
||||||
fillPatternY?: number;
|
fillPatternY?: number;
|
||||||
|
Loading…
Reference in New Issue
Block a user