Skip to content

Documentation / @ripl/core / PolylineSegment

Interface: PolylineSegment ​

Defined in: packages/core/src/elements/polyline.ts:48

A span of a polyline's points stroked with its own dash pattern.

Properties ​

PropertyTypeDescriptionDefined in
fromnumberIndex of the point the span starts at.packages/core/src/elements/polyline.ts:50
lineDash?number[]Dash pattern stroked over the span; inherits the polyline's own dash pattern when omitted.packages/core/src/elements/polyline.ts:54
lineDashOffset?numberOffset into the span's dash pattern; inherits the polyline's own offset when omitted.packages/core/src/elements/polyline.ts:56
tonumberIndex of the point the span ends at; the span covers the line drawn between the two points.packages/core/src/elements/polyline.ts:52