@add-on-hlapi-sdk / Stroke
Interface: Stroke
Represents a stroke in the scenegraph. See StrokableNode.
Hierarchy
↳
Stroke
Table of contents
Properties
Properties
color
• Readonly
color: Color
The color of a stroke.
Inherited from
dashOffset
• Readonly
dashOffset: number
Number of pixels the beginning of dash pattern should be offset along the stroke.
Inherited from
dashPattern
• Readonly
dashPattern: number
[]
If empty, this is a solid stroke. If non-empty, the values alternate between length of a rendered and blank segment, repeated along the length of the stroke. The first value represents the first solid segment.
Inherited from
position
• Readonly
position: StrokePositionValue
The position of the stroke relative to the outline of the shape.
width
• Readonly
width: number
The thickness of a stroke. Must be from MIN_STROKE_WIDTH to MAX_STROKE_WIDTH.