Skip to content

WaffleCanvasProps

Defined in: packages/waffle/src/react/WaffleCanvas.tsx:5

Props of WaffleCanvas. useWaffle’s canvasProps supplies most of them.

optional className?: string

Defined in: packages/waffle/src/react/WaffleCanvas.tsx:26

Extra class on the canvas’s wrapper, beside dp-canvas and dp-waffle.


description: string

Defined in: packages/waffle/src/react/WaffleCanvas.tsx:11

What it shows, in words (core’s describeProfile writes one).


layout: WaffleLayout

Defined in: packages/waffle/src/react/WaffleCanvas.tsx:7

What to draw: from useWaffle (canvasProps) or layoutWaffle.


optional motion?: Motion

Defined in: packages/waffle/src/react/WaffleCanvas.tsx:24

How cells move when the view changes. See @data-profile/react’s Motion.


optional onSelect?: (selection) => void

Defined in: packages/waffle/src/react/WaffleCanvas.tsx:20

Called when a cell is clicked, with its category in the arranging dimension, or null when that is already the selection.

Selection | null

void


optional renderer?: Renderer<WaffleCell>

Defined in: packages/waffle/src/react/WaffleCanvas.tsx:13

Draws each cell’s mark. Defaults to @data-profile/react’s shapesRenderer.


optional selected?: Selection | null

Defined in: packages/waffle/src/react/WaffleCanvas.tsx:15

Cells in this category of this dimension are highlighted, the rest dimmed.


title: string

Defined in: packages/waffle/src/react/WaffleCanvas.tsx:9

The drawing’s accessible name.


optional unit?: string

Defined in: packages/waffle/src/react/WaffleCanvas.tsx:22

Names what one item is, for the selection announcement. Defaults to “items”.