type Geometry · Shapes

ShapeLike

type ShapeLike = Vector[] | number[][]

Points written as an array: [[x, y], …] or [{ x, y }, …].

Accepted where a parameter has the type Polygon | ShapeLike, Polyline | ShapeLike and so on. The points are read when the function is called; nothing links to the array afterwards.