@zeplin/extension-model
    Preparing search index...

    Class Shadow

    An interface to represent shadow of a Layer.

    Index

    Constructors

    Properties

    blendMode?: string

    Blend mode of the shadow. Possible values are defined in Fill.BLEND_MODE

    blurRadius: number

    Radius of the blur applied to the shadow. It is a positive integer.

    color: Color

    Color used in the shadow.

    enabled: boolean = true

    Whether the shadow is enabled

    offsetX: number

    Horizontal distance of the shadow.

    offsetY: number

    Vertical distance of the shadow.

    opacity?: number

    Opacity of the shadow.

    spread: number

    Spread of the shadow.

    Type of the shadow. Possible values are defined in Shadow.TYPE

    Accessors

    • get ALLOWED_FIELDS(): string[]

      Returns string[]

    Methods

    • Creates a Shadow instance from a JSON string

      Parameters

      • json: string

        JSON string representing a shadow

      Returns Shadow

      A new Shadow instance