@mocanvas/editor · class

Polyline2d

declare class Polyline2d extends Geometry2d

An open run of straight segments.


Methods · 4

constructor(config: Flags & {
getVertices(): Vec[]
get segments(): Edge2d[]

The outline as individual edges, for anything that walks it segment by segment.

toPathWords(): number[]

Properties · 1

readonly points: Vec[]

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.