Fix and align shadowOffset type

shadowOffset property accept different types and only one was defined. Also shadowOffset exists in Item class and in Style class and types were different.
This commit is contained in:
AntoineC
2019-01-11 16:41:59 +01:00
committed by GitHub
parent 70fe269343
commit 07bf098391
+2 -2
View File
@@ -1563,7 +1563,7 @@ declare module paper {
* The shadow’s offset.
* Default - 0
*/
shadowOffset: number;
shadowOffset: number | number[] | {x: number, y: number} | Point;
/**
* The color the item is highlighted with when selected. If the item does not specify its own color, the color defined by its layer is used instead.
@@ -4371,7 +4371,7 @@ declare module paper {
* The shadow's offset.
* Default: 0
*/
shadowOffset?: Point;
shadowOffset?: number | number[] | {x: number, y: number} | Point;
/**
* The color the item is highlighted with when selected. If the item does not specify its own color, the color defined by its layer is used instead.