Skip to content

Renderer

Defined in: packages/react/src/types.ts:53

Draws marks. mark draws one mark centred on the origin, node.size across, running along the x axis: the canvas positions and rotates it, so a renderer never changes layout, counts or selection. It should honour node.color, node.shape and node.lightness (see markOpacity), since those carry data. defs runs once per drawing. Marks are memoised and selection is drawn by the canvas (dimming the rest), so mark must depend on its props alone. The canvas transitions the fill, fill-opacity and stroke of each mark’s top-level elements.

M extends PlacedMark = PlacedMark

optional defs?: (props) => ReactNode

Defined in: packages/react/src/types.ts:57

Shared SVG definitions (gradients, patterns, symbols), rendered once per drawing.

string

readonly LegendGroup[]

ReactNode


mark: (props) => ReactNode

Defined in: packages/react/src/types.ts:59

Draws one mark.

MarkProps<M>

ReactNode


name: string

Defined in: packages/react/src/types.ts:55

A name for debugging and for telling renderers apart.