Constructors
constructor
new Stroke( color?: Color , width?: number , linecap?: "butt" | "square" | "round" , linejoin?: "miter" | "round" | "bevel" ) : Stroke
Parameters
Optional color: Color
Optional width: number
Optional linecap: "butt" | "square" | "round"
Optional linejoin: "miter" | "round" | "bevel"
Properties
Static DEFAULT
DEFAULT
: Stroke = new Stroke(Color.BLACK, 1)
Static NONE
NONE
: Stroke = new Stroke(Color.BLACK, 0)
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
The styling to use in outlining a shape.
For more details on its individual properties, please see:
https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Fills_and_Strokes
Note that once a Stroke is constructed you cannot change its properties. To obtain a different Stroke style, simply construct a new Stroke object and assign it to a Shape's stroke property instead.