WaffleCanvasProps
Defined in: packages/waffle/src/react/WaffleCanvas.tsx:5
Props of WaffleCanvas. useWaffle’s canvasProps supplies most of them.
Properties
Section titled “Properties”className?
Section titled “className?”
optionalclassName?:string
Defined in: packages/waffle/src/react/WaffleCanvas.tsx:26
Extra class on the canvas’s wrapper, beside dp-canvas and dp-waffle.
description
Section titled “description”description:
string
Defined in: packages/waffle/src/react/WaffleCanvas.tsx:11
What it shows, in words (core’s describeProfile writes one).
layout
Section titled “layout”layout:
WaffleLayout
Defined in: packages/waffle/src/react/WaffleCanvas.tsx:7
What to draw: from useWaffle (canvasProps) or layoutWaffle.
motion?
Section titled “motion?”
optionalmotion?:Motion
Defined in: packages/waffle/src/react/WaffleCanvas.tsx:24
How cells move when the view changes. See @data-profile/react’s Motion.
onSelect?
Section titled “onSelect?”
optionalonSelect?: (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.
Parameters
Section titled “Parameters”selection
Section titled “selection”Selection | null
Returns
Section titled “Returns”void
renderer?
Section titled “renderer?”
optionalrenderer?:Renderer<WaffleCell>
Defined in: packages/waffle/src/react/WaffleCanvas.tsx:13
Draws each cell’s mark. Defaults to @data-profile/react’s shapesRenderer.
selected?
Section titled “selected?”
optionalselected?: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.
optionalunit?:string
Defined in: packages/waffle/src/react/WaffleCanvas.tsx:22
Names what one item is, for the selection announcement. Defaults to “items”.