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.
Properties
Section titled “Properties”channels
Section titled “channels”channels:
ReadonlySet<Channel>
Defined in: render/capabilities.ts:19
colorDepth
Section titled “colorDepth”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
Section titled “continuous”continuous:
boolean
Defined in: render/capabilities.ts:24
false when positions quantise to discrete cells rather than to points.
coords
Section titled “coords”coords:
ReadonlySet<CoordKind>
Defined in: render/capabilities.ts:18
marks:
ReadonlySet<Mark>
Defined in: render/capabilities.ts:17
maxMarks?
Section titled “maxMarks?”
optionalmaxMarks?:number
Defined in: render/capabilities.ts:29
Beyond this, a renderer would produce an unreadable result. Unbounded when absent.
transforms
Section titled “transforms”transforms:
ReadonlySet<TransformSpec["kind"]>
Defined in: render/capabilities.ts:20