mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 20:21:46 +00:00
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:
Vendored
+2
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user