Skip to content

Commit

Permalink
feat(waffle): update the doc to indicate that the canvas implementati…
Browse files Browse the repository at this point in the history
…on does not support custom layers
  • Loading branch information
plouc committed May 7, 2023
1 parent f12f12d commit 06a80c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/waffle/src/WaffleCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
CanvasProps,
Datum,
isDataCell,
// LayerId,
TooltipComponent,
Cell,
} from './types'
Expand Down Expand Up @@ -46,7 +45,6 @@ const InnerWaffleCanvas = <D extends Datum>({
fillDirection = canvasDefaultProps.fillDirection,
hiddenIds = canvasDefaultProps.hiddenIds,
padding = canvasDefaultProps.padding,
// layers = svgDefaultProps.layers as LayerId[],
colors = canvasDefaultProps.colors as OrdinalColorScaleConfig<D>,
emptyColor = canvasDefaultProps.emptyColor,
emptyOpacity = canvasDefaultProps.emptyOpacity,
Expand Down
2 changes: 1 addition & 1 deletion website/src/data/components/waffle/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const props: ChartProperty[] = [
group: 'Customization',
help: 'Define layers, please use the appropriate variant for custom layers.',
defaultValue: svgDefaultProps.layers,
flavors: allFlavors,
flavors: ['svg', 'html'],
},
{
key: 'cellComponent',
Expand Down

0 comments on commit 06a80c6

Please sign in to comment.