Shadow
Kind: class
new Shadow()#
â–¸ new Shadow(x
, y
, blur
, color
, visible
): Shadow
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 |
x#
â–¸ 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
y#
â–¸ 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
blur#
â–¸ blur: number
number
must be >= 0.
Kind: instance property of Shadow
color#
â–¸ color: Color
Kind: instance property of Shadow
visible#
â–¸ visible: boolean
If false, the shadow is not rendered. The user can toggle this via a checkbox in the Properties panel.
Kind: instance property of Shadow