Stroke
Constructors
Properties
.colorColor
The color of the stroke
.hairlineboolean
Hairline strokes represent a "very thin" stroke. They're usually used for cut or score lines. When exported, hairline strokes are converted to a stroke with a width defined in the project settings.
Note that when hairline is true the following stroke properties will
have no effect.
.widthnumber
The width of the stroke
.alignment("centered" | "inner" | "outer")
The alignment of the stroke in relation to the inside or outside of the path. This property only affects closed paths.
.cap("butt" | "round" | "square")
The shape to use at the endpoints of open paths.
.join("miter" | "round" | "bevel")
The shape to use at the corners of the path.
.miterLimitnumber
When join is set to "miter", this limits the ratio of the miter length
to the stroke width. When the limit is exceeded, a "bevel" join will be
used.
Defines a stroke style.