Defines a border style
Property | Type | Required |
---|---|---|
class | const | Required |
isEnabled | boolean | Required |
color | Color | Optional |
fillType | FillType | Required |
position | BorderPosition | Required |
thickness | number | Required |
strokeWeightsIndependent | boolean | Optional |
topWeight | number | Optional |
leftWeight | number | Optional |
bottomWeight | number | Optional |
rightWeight | number | Optional |
contextSettings | GraphicsContextSettings | Required |
gradient | Gradient | Optional |
pattern | Pattern | Optional |
style | integer | Required |
dashedPattern | Array<number> | Required |
dashedOffset | number | Required |
lineCapStyle | LineCapStyle | Required |
startMarkerType | MarkerType | Optional |
endMarkerType | MarkerType | Optional |
lineJoinStyle | LineJoinStyle | Required |
miterLimit | number | Required |
flat | number | Required |
Description
no description
Type
const
Value
constant: the value of this property must be equal to:
json"border"
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
Description
For rectangle, enable or disable the four side stroke weight independently. Default is false.
Type
boolean
Description
Used only when strokeWeightsIndependent is true to specify the stroke weight at the top of the rectangle. Default is 0.
Type
number
Description
Used only when strokeWeightsIndependent is true to specify the stroke weight at the left of the rectangle. Default is 0.
Type
number
Description
Used only when strokeWeightsIndependent is true to specify the stroke weight at the bottom of the rectangle. Default is 0.
Type
number
Description
Used only when strokeWeightsIndependent is true to specify the stroke weight at the right of the rectangle. Default is 0.
Type
number
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:
Value | Explanation |
---|---|
0 | solid |
1 | dotted |
2 | dashed |
Description
A set of alternating dashes (filled regions) and gaps (empty regions). (applies to 'dashed' borders)
Type
Array<number>