Skip to content

pieToDrawables

pieToDrawables(p, screen, tolerance?): DrawableVector[]

Defined in: core/instanced-vector.ts:161

Instanced pie wedges → one filled arc sector per wedge. Screen sizeMode pins the sector at a constant pixel size around its (projected) centre via the drawable anchor, as tracePieWedges does — so a screen wedge is an anchored glyph and bakes at anchoredCurveTolerance, exactly like its Canvas/SVG Scene twin (#283); a world wedge is world-scaled and bakes at tolerance. A wedge with an outer band (borders, #507) is two drawables: its inner sector, then the band as an annular sector in its darker colour (id count + i), as the shader draws it in one instance.

InstancedPieData

boolean

number = DEFAULT_CURVE_TOLERANCE

DrawableVector[]