mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 03:18:12 +08:00
move clear rect up to scatterplot, since drawscatterplot is now per cell
This commit is contained in:
@@ -74,6 +74,8 @@ class Scatterplot extends React.Component {
|
|||||||
this.state.xScale &&
|
this.state.xScale &&
|
||||||
this.state.yScale
|
this.state.yScale
|
||||||
) {
|
) {
|
||||||
|
/* clear canvas */
|
||||||
|
this.state.ctx.clearRect(0, 0, width, height);
|
||||||
drawScatterplotCanvas(
|
drawScatterplotCanvas(
|
||||||
this.state.ctx,
|
this.state.ctx,
|
||||||
this.state.xScale,
|
this.state.xScale,
|
||||||
|
|||||||
Reference in New Issue
Block a user