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.
Type Parameters
Section titled “Type Parameters”M extends PlacedMark = PlacedMark
Properties
Section titled “Properties”
optionaldefs?: (props) =>ReactNode
Defined in: packages/react/src/types.ts:57
Shared SVG definitions (gradients, patterns, symbols), rendered once per drawing.
Parameters
Section titled “Parameters”idPrefix
Section titled “idPrefix”string
legends
Section titled “legends”readonly LegendGroup[]
Returns
Section titled “Returns”ReactNode
mark: (
props) =>ReactNode
Defined in: packages/react/src/types.ts:59
Draws one mark.
Parameters
Section titled “Parameters”MarkProps<M>
Returns
Section titled “Returns”ReactNode
name:
string
Defined in: packages/react/src/types.ts:55
A name for debugging and for telling renderers apart.