mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-02 10:58:11 +08:00
Small fix
This commit is contained in:
@@ -803,10 +803,11 @@ class Graph extends React.Component {
|
|||||||
});
|
});
|
||||||
|
|
||||||
updateReglAndRender(asyncProps, prevAsyncProps) {
|
updateReglAndRender(asyncProps, prevAsyncProps) {
|
||||||
const { positions, colors, flags, height, width } = asyncProps;
|
const { positions, colors, flags, height, width, imageUnderlay } =
|
||||||
|
asyncProps;
|
||||||
this.cachedAsyncProps = asyncProps;
|
this.cachedAsyncProps = asyncProps;
|
||||||
const { pointBuffer, colorBuffer, flagBuffer } = this.state;
|
const { pointBuffer, colorBuffer, flagBuffer } = this.state;
|
||||||
let needToRenderCanvas = true;
|
let needToRenderCanvas = false;
|
||||||
|
|
||||||
console.log("updateReglAndRender");
|
console.log("updateReglAndRender");
|
||||||
|
|
||||||
@@ -825,6 +826,9 @@ class Graph extends React.Component {
|
|||||||
flagBuffer({ data: flags, dimension: 1 });
|
flagBuffer({ data: flags, dimension: 1 });
|
||||||
needToRenderCanvas = true;
|
needToRenderCanvas = true;
|
||||||
}
|
}
|
||||||
|
if (imageUnderlay !== prevAsyncProps?.imageUnderlay) {
|
||||||
|
needToRenderCanvas = true;
|
||||||
|
}
|
||||||
if (needToRenderCanvas) this.renderCanvas();
|
if (needToRenderCanvas) this.renderCanvas();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user