Skip to main content

Shadow

Typeobject
Backlinks1

Define a shadow style of an object.

PropertyTypeRequired
classstringRequired
isEnabledbooleanRequired
colorColorRequired
offsetXnumberRequired
offsetYnumberRequired
blurnumberRequired
spreadnumberRequired
contextSettingsGraphicsContextSettingsRequired
innerbooleanRequired
showBehindTransparentAreasbooleanOptional

class​

Required

Type

string

Value

constant: the value of this property must be equal to:

"shadow"

isEnabled​

Required

Description

no description

Type

boolean

color​

Required

Description

The color of the shadow.

Type

Color

offsetX​

Required

Description

The horizontal offset of the shadow in relation to the object. Direction to the right.

Type

number

offsetY​

Required

Description

The vertical upward offset of the shadow in relation to the object.

Type

number

blur​

Required

Description

The degree of shadow blur.

Type

number

spread​

Required

Description

The distance that the shadow spreads from the object, the farther it is, the larger the shadow.

Type

number

contextSettings​

Required

Description

The opacity and blending-related configurations of the shadow.

inner​

Required

Description

If true, it's an inner shadow.

Type

boolean

showBehindTransparentAreas​

Optional

Description

When the object has a transparent fill and a non-inner shadow, whether the shadow is visible through the transparent area. Default value is false.

Type

boolean