@mocanvas/editor · class

Polygon2d

declare class Polygon2d extends Geometry2d

A closed run of straight segments.


Methods · 3

constructor(config: Flags & {
getVertices(): Vec[]
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.