Skip to content

instancedVectorLayers

instancedVectorLayers(layers, k, tolerance?): VectorLayer[]

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

One emit of the instanced lanes → the export-only vector layers a serializer can draw (#200).

k is the live view scale, needed only to bake the screen-sizeMode shapes whose constant-pixel terms (arrow tip setback, half-arrow taper/bend) are non-linear in the zoom: those bake to world coordinates at k and are emitted as sizeMode: "world", exactly as the Canvas/SVG Scene twin does. Circles, pies and lines carry their sizeMode through — the serializers already place a screen-mode circle at a projected centre with a constant radius.

readonly InstancedLayer[]

number

number = DEFAULT_CURVE_TOLERANCE

VectorLayer[]