Skip to content

GroupOptions

Defined in: core/scene.ts:123

Per-group options for Scene.group.

optional anchoredTolerance?: number

Defined in: core/scene.ts:134

Curve-flattening tolerance for drawables recorded with an anchor (default: the Scene’s own tolerance, i.e. no distinction). Unanchored drawables always use the Scene’s tolerance.

The Scene does not know how a group will be rendered; the caller does. An anchored glyph in a sizeMode: "screen" layer is drawn as constant-pixel offsets from its projected anchor, so its bake is already screen-space and wants a pixel tolerance, not a world one — the engines pass anchoredCurveTolerance(tolerance, sizeMode === "screen") here (#283). Appends (Scene.appendToGroup) inherit it.