Skip to content

DEFAULT_CURVE_TOLERANCE

const DEFAULT_CURVE_TOLERANCE: 0.25 = 0.25

Defined in: core/flatten.ts:20

Default flattening tolerance, in world units — the max deviation between a curve and the polyline it is baked to. Every curve is baked ONCE, at build time, and the view transform only scales the result, so a facet of t world units is t·k screen px at zoom k (#45). Engines expose this as curveTolerance; set it to 0.25 / kMax for a chart that needs sub-pixel curves at zoom kMax.