class Geometry · Computations

PackCirclesAlongCurveOptions

Options for Pack.circlesAlongCircle, circlesAlongArc, circlesAlongPolygon and circlesAlongPolyline (necklace maps: circles placed on a curve around a map, all scaled by one factor).

All fields are optional. Numbers can be given as plain numbers or as reactive values; the value they hold when the function runs is used.

Properties

maxScaleoptional

maxScale?: number | Real

The largest factor for the radii (default: no limit), e.g. 1: never larger than given.

orderoptional

order?: "curve" | "given"

The order of the circles along the curve: "curve" (default) follows the closest points of their homes; "given" keeps the order of the list, in the direction of the curve (on a closed curve, around it). A home out of that order pulls its circle as close as the order allows.

paddingoptional

padding?: number | Real

The smallest gap between two circles (default 0), absolute: it is not scaled with the circles. If the circles don't fit even at size 0 with this padding, the padding is reduced as much as needed.

previousoptional

previous?: (Circle | null | undefined)[]

The layout of the last update, one entry per circle in the same order (usually the last result), or null / undefined (or missing at the end) for a circle without one. The circles keep the order they had there, so homes that pass each other (e.g. while dragging) don't make circles swap; a circle without an entry takes its place by its home. With order: "given" the list decides the order.