Shadow
Kind: class
new Shadow(x, y, blur, color, visible)
Creates a drop shadow style object with the given properties.
The visible
argument is optional and defaults to true.
Param | Type |
---|---|
x | number |
y | number |
blur | number |
color | !Color |
visible | ?boolean |
shadow.x : number
X offset of the shadow relative to the shape it is attached to, in global coordinates (i.e. independent of the shape's rotation or any parent's rotation). May be negative.
Kind: instance property of Shadow
shadow.y : number
Y offset of the shadow relative to the shape it is attached to, in global coordinates (i.e. independent of the shape's rotation or any parent's rotation). May be negative.
Kind: instance property of Shadow
shadow.blur : number
>= 0
Kind: instance property of Shadow
shadow.color : !Color
Kind: instance property of Shadow
shadow.visible : boolean
If false, the shadow is not rendered. The user can toggle this via a checkbox in the Properties panel.