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

    Class Fill

    An interface to represent fill

    Index

    Constructors

    Properties

    blendMode?: string

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

    color?: Color

    Color of the fill.

    gradient?: Gradient

    Gradient of the fill.

    opacity?: number

    Opacity of the fill. A number in interval [0, 1].

    type: string

    Type of the fill. Possible values are "color" and "gradient"

    Accessors

    • get ALLOWED_FIELDS(): string[]

      Returns string[]

    • get BLEND_MODE(): {
          COLOR: "color";
          COLOR_BURN: "color-burn";
          COLOR_DODGE: "color-dodge";
          DARKEN: "darken";
          DARKER_COLOR: "darker-color";
          DESTINATION_ATOP: "destination-atop";
          DESTINATION_IN: "destination-in";
          DESTINATION_OUT: "destination-out";
          DESTINATION_OVER: "destination-over";
          DIFFERENCE: "difference";
          DISSOLVE: "dissolve";
          DIVIDE: "divide";
          EXCLUSION: "exclusion";
          HARD_LIGHT: "hard-light";
          HARD_MIX: "hard-mix";
          HUE: "hue";
          LIGHTEN: "lighten";
          LIGHTER_COLOR: "lighter-color";
          LINEAR_BURN: "linear-burn";
          LINEAR_DODGE: "linear-dodge";
          LINEAR_LIGHT: "linear-light";
          LUMINOSITY: "luminosity";
          MULTIPLY: "multiply";
          NORMAL: "normal";
          OVERLAY: "overlay";
          PIN_LIGHT: "pin-light";
          SATURATION: "saturation";
          SCREEN: "screen";
          SOFT_LIGHT: "soft-light";
          SOURCE_ATOP: "source-atop";
          SOURCE_IN: "source-in";
          SOURCE_OUT: "source-out";
          SUBTRACT: "subtract";
          VIVID_LIGHT: "vivid-light";
      }

      Returns {
          COLOR: "color";
          COLOR_BURN: "color-burn";
          COLOR_DODGE: "color-dodge";
          DARKEN: "darken";
          DARKER_COLOR: "darker-color";
          DESTINATION_ATOP: "destination-atop";
          DESTINATION_IN: "destination-in";
          DESTINATION_OUT: "destination-out";
          DESTINATION_OVER: "destination-over";
          DIFFERENCE: "difference";
          DISSOLVE: "dissolve";
          DIVIDE: "divide";
          EXCLUSION: "exclusion";
          HARD_LIGHT: "hard-light";
          HARD_MIX: "hard-mix";
          HUE: "hue";
          LIGHTEN: "lighten";
          LIGHTER_COLOR: "lighter-color";
          LINEAR_BURN: "linear-burn";
          LINEAR_DODGE: "linear-dodge";
          LINEAR_LIGHT: "linear-light";
          LUMINOSITY: "luminosity";
          MULTIPLY: "multiply";
          NORMAL: "normal";
          OVERLAY: "overlay";
          PIN_LIGHT: "pin-light";
          SATURATION: "saturation";
          SCREEN: "screen";
          SOFT_LIGHT: "soft-light";
          SOURCE_ATOP: "source-atop";
          SOURCE_IN: "source-in";
          SOURCE_OUT: "source-out";
          SUBTRACT: "subtract";
          VIVID_LIGHT: "vivid-light";
      }

    • get TYPE(): Record<string, string>

      Returns Record<string, string>

    Methods

    • Creates a Fill instance from a JSON string

      Parameters

      • json: string

        JSON string representing a fill

      Returns Fill

      A new Fill instance