object

Border

Defines a border style

Properties
PropertyTypeRequired
classconstRequired
isEnabledbooleanRequired
colorColorOptional
fillTypeFillTypeRequired
positionBorderPositionRequired
thicknessnumberRequired
strokeWeightsIndependentbooleanOptional
topWeightnumberOptional
leftWeightnumberOptional
bottomWeightnumberOptional
rightWeightnumberOptional
contextSettingsGraphicsContextSettingsRequired
gradientGradientOptional
patternPatternOptional
styleintegerRequired
dashedPatternArray<number>Required
dashedOffsetnumberRequired
lineCapStyleLineCapStyleRequired
startMarkerTypeMarkerTypeOptional
endMarkerTypeMarkerTypeOptional
lineJoinStyleLineJoinStyleRequired
miterLimitnumberRequired
flatnumberRequired

class

Required

Description

no description

Type

const

Value

constant: the value of this property must be equal to:

json
"border"

isEnabled

Required

Description

no description

Type

boolean

color

Optional

Description

no description

Type

Color

fillType

Required

Description

no description

position

Required

Description

no description

thickness

Required

Description

Thickness of the border. A line width of 0 is acceptable, this is interpreted as the thinnest line width that can be rendered at device resolution. This item only work if strokeWeightsIndependent is false.

Type

number

strokeWeightsIndependent

Optional

Description

For rectangle, enable or disable the four side stroke weight independently. Default is false.

Type

boolean

topWeight

Optional

Description

Used only when strokeWeightsIndependent is true to specify the stroke weight at the top of the rectangle. Default is 0.

Type

number

leftWeight

Optional

Description

Used only when strokeWeightsIndependent is true to specify the stroke weight at the left of the rectangle. Default is 0.

Type

number

bottomWeight

Optional

Description

Used only when strokeWeightsIndependent is true to specify the stroke weight at the bottom of the rectangle. Default is 0.

Type

number

rightWeight

Optional

Description

Used only when strokeWeightsIndependent is true to specify the stroke weight at the right of the rectangle. Default is 0.

Type

number

contextSettings

Required

Description

no description

gradient

Optional

Description

no description

pattern

Optional

Description

no description

style

Required

Description

Type of the border style, the dashed style is further specified in dashedOffset and dashedPattern.

Type

integer

Value

enum: the value of this property must be equal to one of the following values:

ValueExplanation
0solid
1dotted
2dashed

dashedPattern

Required

Description

A set of alternating dashes (filled regions) and gaps (empty regions). (applies to 'dashed' borders)

Type

Array<number>

dashedOffset

Required

Description

no description

Type

number

lineCapStyle

Required

Description

no description

startMarkerType

Optional

Description

no description

endMarkerType

Optional

Description

no description

lineJoinStyle

Required

Description

no description

miterLimit

Required

Description

no description

Type

number

flat

Required

Description

no description

Type

number

Value

maximum: the value of this number must smaller than or equal to: 100

minimum: the value of this number must greater than or equal to: 0

Daruma Feedback