Skip to content

VectorLayer

Defined in: core/backend.ts:55

A named layer’s vector view — everything a CPU rasterizer or serializer needs, with no GPU buffers. RenderLayer is this plus the buffers; the export-only stash a backend keeps for toSVG() (Backend.setExportLayers, #200) is this alone, since instanced-lane content is never uploaded as Scene geometry.

optional clipTo?: string

Defined in: core/backend.ts:59

Name of an earlier layer whose filled silhouette clips this one.


drawables: DrawableVector[]

Defined in: core/backend.ts:57


name: string

Defined in: core/backend.ts:56


optional sizeMode?: "world" | "screen"

Defined in: core/backend.ts:65

“world” (default): geometry scales with zoom. “screen”: constant pixel size — points and anchored glyphs keep a constant radius/size around their projected anchor, and strokes keep a constant pixel width about their world centerline. Applies to all geometry types.