Shadow
Typeobject
Backlinks1Define a shadow style of an object.
Property | Type | Required |
---|---|---|
class | string | Required |
isEnabled | boolean | Required |
color | Color | Required |
offsetX | number | Required |
offsetY | number | Required |
blur | number | Required |
spread | number | Required |
contextSettings | GraphicsContextSettings | Required |
inner | boolean | Required |
showBehindTransparentAreas | boolean | Optional |
offsetX​
RequiredDescription
The horizontal offset of the shadow in relation to the object. Direction to the right.
Type
number
offsetY​
RequiredDescription
The vertical upward offset of the shadow in relation to the object.
Type
number
spread​
RequiredDescription
The distance that the shadow spreads from the object, the farther it is, the larger the shadow.
Type
number
contextSettings​
RequiredDescription
The opacity and blending-related configurations of the shadow.
showBehindTransparentAreas​
OptionalDescription
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