in examples/website/plot/plot-layer/plot-layer.js [112:180]
renderLayers() {
const {xScale, yScale, zScale} = this.state;
const {
getPosition,
getColor,
uCount,
vCount,
lightStrength,
fontSize,
xTicks,
yTicks,
zTicks,
xTickFormat,
yTickFormat,
zTickFormat,
xTitle,
yTitle,
zTitle,
axesPadding,
axesColor,
drawAxes,
updateTriggers
} = this.props;
return [
new SurfaceLayer(
{
getPosition,
getColor,
uCount,
vCount,
xScale,
yScale,
zScale,
lightStrength
},
this.getSubLayerProps({
id: 'surface',
updateTriggers
})
),
new AxesLayer(
{
xScale,
yScale,
zScale,
fontSize,
xTicks,
yTicks,
zTicks,
xTickFormat,
yTickFormat,
zTickFormat,
xTitle,
yTitle,
zTitle,
padding: axesPadding,
color: axesColor
},
this.getSubLayerProps({
id: 'axes'
}),
{
visible: drawAxes,
pickable: false
}
)
];
}