mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-26 18:48:11 +08:00
no flashing
This commit is contained in:
@@ -60,6 +60,8 @@ export const drawScatterplotCanvasUsingRenderQueue = (
|
||||
scatterplotXXaccessor,
|
||||
scatterplotYYaccessor
|
||||
) => {
|
||||
/* clear canvas */
|
||||
context.clearRect(0, 0, width, height);
|
||||
|
||||
const _currentCellSelectionMap = _.keyBy(currentCellSelection, "CellName"); /* move me to the reducer */
|
||||
|
||||
|
||||
@@ -74,8 +74,6 @@ class Scatterplot extends React.Component {
|
||||
this.state.xScale &&
|
||||
this.state.yScale
|
||||
) {
|
||||
/* clear canvas */
|
||||
this.state.ctx.clearRect(0, 0, width, height);
|
||||
drawScatterplotCanvas(
|
||||
this.state.ctx,
|
||||
this.state.xScale,
|
||||
|
||||
Reference in New Issue
Block a user