class Geometry · Computations

PackCirclesAroundOptions

Options for Pack.circlesAround (circles packed tightly around a point; the radii stay).

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

groupPaddingoptional

groupPadding?: number | Real

The smallest gap between two clusters (default: padding).

groupsoptional

groups?: number[]

One group key per circle, in the order of the circles: circles with the same number form a cluster, and the clusters are packed with each other. A missing key (or NaN) puts the circle in a cluster of its own.

orderoptional

order?: "given" | "size"

The order in which the circles are packed: "size" (default) packs the large ones first, so they end up in the middle; "given" keeps the order of the list. Groups follow the same rule: by their total area, or in the order of their first circle.

paddingoptional

padding?: number | Real

The smallest gap between two circles (default 0).