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

    Class Border

    An interface to represent borders on a Layer

    Index

    Constructors

    Properties

    blendMode?: string

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

    dashPattern?: DashPattern

    Dash pattern of the border.

    enabled: boolean = true

    Whether the border is enabled

    fill: Fill

    Fill of the border.

    individualThickness?: IndividualThickness

    Individual thickness of the border.

    join?: JoinType

    Join type of the border. Possible values are defined in Border.JOIN_TYPES

    miterLimit?: number

    A positive integer that denotes the limit of the miter if join type is miter.

    position?: BorderPosition

    Position of the border. Possible values are "center", "inside", or "outside".

    thickness?: number

    A positive integer that denotes the thickness of the order.

    Accessors

    • get ALLOWED_FIELDS(): string[]

      Returns string[]

    • get JOIN_TYPES(): Record<string, JoinType>

      Returns Record<string, JoinType>

    Methods

    • Creates a Border instance from a JSON string

      Parameters

      • json: string

        JSON string representing a border

      Returns Border

      A new Border instance