mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-24 13:48:12 +08:00
rename scatter render func
This commit is contained in:
@@ -63,7 +63,7 @@ export const drawScatterplotCanvasUsingRenderQueue = (
|
||||
|
||||
const _currentCellSelectionMap = _.keyBy(currentCellSelection, "CellName"); /* move me to the reducer */
|
||||
|
||||
const _renderLinesWithFunctionReturnedByQueue = renderQueue(
|
||||
const _renderScatterplotWithFunctionReturnedByQueue = renderQueue(
|
||||
drawScatterplotCanvas(
|
||||
context,
|
||||
xScale,
|
||||
@@ -77,8 +77,8 @@ export const drawScatterplotCanvasUsingRenderQueue = (
|
||||
)
|
||||
)
|
||||
|
||||
_renderLinesWithFunctionReturnedByQueue(expression.data.cells)
|
||||
return _renderLinesWithFunctionReturnedByQueue;
|
||||
_renderScatterplotWithFunctionReturnedByQueue(expression.data.cells)
|
||||
return _renderScatterplotWithFunctionReturnedByQueue;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -94,7 +94,6 @@ class Scatterplot extends React.Component {
|
||||
nextProps.scatterplotXXaccessor &&
|
||||
nextProps.scatterplotYYaccessor
|
||||
) {
|
||||
console.log('expression in scatterplot: ', nextProps)
|
||||
const xScale = d3.scaleLinear()
|
||||
.domain(d3.extent(nextProps.expression.data.cells, (cell, i) => {
|
||||
return cell.e[nextProps.expression.data.genes.indexOf(nextProps.scatterplotXXaccessor)]
|
||||
|
||||
Reference in New Issue
Block a user