Documentation
    Preparing search index...

    Interface Polyline2D

    A flattened polyline, and whether it closes back on its first point.

    The currency between §51's flattening and §52's expansion: Path.polylines produces these, expandStroke consumes them. closed is the one bit Point2D[] cannot carry and the one bit a stroke cannot do without — a closed ring is joined at every vertex and capped at none.

    interface Polyline2D {
        closed: boolean;
        points: readonly Point2D[];
    }
    Index
    closed: boolean

    Whether a segment runs from the last point back to the first.

    points: readonly Point2D[]

    The polyline's points. A closed ring does not repeat its first.