Skip to content

GroupBuilder

Defined in: core/scene.ts:122

drawable(id, draw, opts?): void

Defined in: core/scene.ts:123

string | number

(ctx) => void

DrawableOpts

void


point(id, x, y, radius, lineWidth?): void

Defined in: core/scene.ts:133

A single circle at (x, y) with the given radius (reference px), filled and — when lineWidth > 0 — stroked on that radius, i.e. covering [radius − w/2, radius + w/2] in the stroke colour. That is the ring encoding for a bordered glyph (a disc with a border of thickness w inside outer radius R is radius = R − w/2, lineWidth = w), the exact vector equivalent of what the instanced-circle fragment shader paints — and unlike two stacked discs it composites each region ONCE, so a translucent fill keeps its ring (#269). points() (GeoJSON MultiPoint) has no ring semantics and stays fill-only.

string | number

number

number

number

number

void


points(id, centers, radius): void

Defined in: core/scene.ts:135

Multiple circles (one drawable, e.g. a GeoJSON MultiPoint).

string | number

readonly [number, number][]

number

void