From 07bf09839184335b4b595517deea3a8b7cfff5ab Mon Sep 17 00:00:00 2001 From: AntoineC Date: Fri, 11 Jan 2019 16:41:59 +0100 Subject: [PATCH] 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. --- types/paper/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/paper/index.d.ts b/types/paper/index.d.ts index 5709826f6a..d77a4d35c2 100644 --- a/types/paper/index.d.ts +++ b/types/paper/index.d.ts @@ -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.