object

Shadow

Defines a shadow style

Properties
PropertyTypeRequired
classconstRequired
isEnabledbooleanRequired
colorColorRequired
offsetXnumberRequired
offsetYnumberRequired
blurnumberRequired
spreadnumberRequired
contextSettingsGraphicsContextSettingsRequired
innerbooleanRequired
showBehindTransparentAreasbooleanOptional

class

Required

Description

no description

Type

const

Value

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

json
"shadow"

isEnabled

Required

Description

no description

Type

boolean

color

Required

Description

The color of the shadow.

Type

Color

offsetX

Required

Description

Horizontal offset of the shadow.

Type

number

offsetY

Required

Description

Vertical offset of the shadow.

Type

number

blur

Required

Description

Blur value of the shadow.

Type

number

spread

Required

Description

Spread amount of the shadow contour.

Type

number

contextSettings

Required

Description

no description

inner

Required

Description

True means inner shadows. False means shadows.

Type

boolean

showBehindTransparentAreas

Optional

Description

When the object itself has a transparent fill, if the object has a shadow(not inner shadow), whether the shadow can be seen through the object itself. (default false)

Type

boolean

Daruma Feedback