ReadonlycapThe VectorComposite.LineCap — how the ends of open sub-paths and dash segments are rendered.
ReadonlydashedWhether this stroke is dashed — true when an explicit dash pattern is set,
false for a continuous line (the default).
ReadonlyjoinThe VectorComposite.LineJoin — how corners between connected path segments are rendered.
ReadonlymiterThe miter limit — controls when a Miter join falls back to a bevel. Always greater than or equal to 1.
ReadonlywidthThe stroke width in the composite's coordinate space. Always greater than 0.
StaticgetReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
An immutable stroke style — width, line cap, line join, miter limit, and an optional dash pattern. Produced by VectorStrokeBuilder#build and never mutated after. A stroke carries only style (no path geometry), so it is freely shareable: pass the same
VectorStroketo multiple VectorCompositeBuilder#addStroke calls to stroke several paths with one style. Exposes read-only metadata — VectorStroke#width, VectorStroke#cap, VectorStroke#join, VectorStroke#miterLimit, and VectorStroke#dashed.Since
Lens Scripting Version 370
Snap OS
Example