mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Update fill
and stroke
GetSet type to accept CanvasGradient
This commit is contained in:
parent
01f4bb605e
commit
52977b5c0c
@ -766,7 +766,7 @@ export class Shape<
|
|||||||
dash: GetSet<number[], this>;
|
dash: GetSet<number[], this>;
|
||||||
dashEnabled: GetSet<boolean, this>;
|
dashEnabled: GetSet<boolean, this>;
|
||||||
dashOffset: GetSet<number, this>;
|
dashOffset: GetSet<number, this>;
|
||||||
fill: GetSet<string, this>;
|
fill: GetSet<string | CanvasGradient, this>;
|
||||||
fillEnabled: GetSet<boolean, this>;
|
fillEnabled: GetSet<boolean, this>;
|
||||||
fillLinearGradientColorStops: GetSet<Array<number | string>, this>;
|
fillLinearGradientColorStops: GetSet<Array<number | string>, this>;
|
||||||
fillLinearGradientStartPoint: GetSet<Vector2d, this>;
|
fillLinearGradientStartPoint: GetSet<Vector2d, this>;
|
||||||
@ -815,7 +815,7 @@ export class Shape<
|
|||||||
shadowOffsetY: GetSet<number, this>;
|
shadowOffsetY: GetSet<number, this>;
|
||||||
shadowOpacity: GetSet<number, this>;
|
shadowOpacity: GetSet<number, this>;
|
||||||
shadowBlur: GetSet<number, this>;
|
shadowBlur: GetSet<number, this>;
|
||||||
stroke: GetSet<string, this>;
|
stroke: GetSet<string | CanvasGradient, this>;
|
||||||
strokeEnabled: GetSet<boolean, this>;
|
strokeEnabled: GetSet<boolean, this>;
|
||||||
fillAfterStrokeEnabled: GetSet<boolean, this>;
|
fillAfterStrokeEnabled: GetSet<boolean, this>;
|
||||||
strokeScaleEnabled: GetSet<boolean, this>;
|
strokeScaleEnabled: GetSet<boolean, this>;
|
||||||
|
Loading…
Reference in New Issue
Block a user