Shadow style properties

Shadows are only applicable to ImagePrimitive and RectanglePrimitive. They allow to display a drop shadow that you can position compared to your primitive itself.

Properties

  • shadowRadius
  • shadowColor
  • shadowXOffset
  • shadowYOffset

shadowRadius

TypeDefault valueSupported value
numbernullNot applicable

Describes the spread radius of the shadow.

The larger this value, the bigger the blur, so the shadow becomes bigger and lighter. 0 will make the shadow to not display any blur and will be sharp.

Caution

Negative values are not allowed.

shadowColor

TypeDefault valueSupported value
stringnullNot applicable

Describes the color of the shadow using format defined in theme.

shadowXOffset

TypeDefault valueSupported value
numbernullNot applicable

Describes the vertical offset in pixels to position the shadow compared to the primitive itself. Value can be positive or negative.

shadowYOffset

TypeDefault valueSupported value
numbernullNot applicable

Describes the horizontal offset in pixels to position the shadow compared to the primitive itself.

Value can be positive or negative.