mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 16:08:11 +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 _currentCellSelectionMap = _.keyBy(currentCellSelection, "CellName"); /* move me to the reducer */
|
||||||
|
|
||||||
const _renderLinesWithFunctionReturnedByQueue = renderQueue(
|
const _renderScatterplotWithFunctionReturnedByQueue = renderQueue(
|
||||||
drawScatterplotCanvas(
|
drawScatterplotCanvas(
|
||||||
context,
|
context,
|
||||||
xScale,
|
xScale,
|
||||||
@@ -77,8 +77,8 @@ export const drawScatterplotCanvasUsingRenderQueue = (
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
_renderLinesWithFunctionReturnedByQueue(expression.data.cells)
|
_renderScatterplotWithFunctionReturnedByQueue(expression.data.cells)
|
||||||
return _renderLinesWithFunctionReturnedByQueue;
|
return _renderScatterplotWithFunctionReturnedByQueue;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ class Scatterplot extends React.Component {
|
|||||||
nextProps.scatterplotXXaccessor &&
|
nextProps.scatterplotXXaccessor &&
|
||||||
nextProps.scatterplotYYaccessor
|
nextProps.scatterplotYYaccessor
|
||||||
) {
|
) {
|
||||||
console.log('expression in scatterplot: ', nextProps)
|
|
||||||
const xScale = d3.scaleLinear()
|
const xScale = d3.scaleLinear()
|
||||||
.domain(d3.extent(nextProps.expression.data.cells, (cell, i) => {
|
.domain(d3.extent(nextProps.expression.data.cells, (cell, i) => {
|
||||||
return cell.e[nextProps.expression.data.genes.indexOf(nextProps.scatterplotXXaccessor)]
|
return cell.e[nextProps.expression.data.genes.indexOf(nextProps.scatterplotXXaccessor)]
|
||||||
|
|||||||
Reference in New Issue
Block a user