Skip to content

RendererCapabilities

RendererCapabilities = object

Defined in: render/capabilities.ts:16

What an output medium can actually draw.

A terminal is a grid of character cells with roughly a one-to-two aspect ratio and, at best, two-by-four subcell resolution through braille; a canvas is continuous and unbounded. Rather than let each renderer discover it cannot honour a spec halfway through, it declares its limits up front and resolvePlot picks something it can draw.

channels: ReadonlySet<Channel>

Defined in: render/capabilities.ts:19


colorDepth: 0 | 4 | 8 | 24

Defined in: render/capabilities.ts:22

Bits of colour available. 0 means none, so schemes map to glyph ramps.


continuous: boolean

Defined in: render/capabilities.ts:24

false when positions quantise to discrete cells rather than to points.


coords: ReadonlySet<CoordKind>

Defined in: render/capabilities.ts:18


marks: ReadonlySet<Mark>

Defined in: render/capabilities.ts:17


optional maxMarks?: number

Defined in: render/capabilities.ts:29

Beyond this, a renderer would produce an unreadable result. Unbounded when absent.


transforms: ReadonlySet<TransformSpec["kind"]>

Defined in: render/capabilities.ts:20