mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-25 16:28:12 +08:00
paintbrush and intialize
This commit is contained in:
@@ -22,13 +22,11 @@ import {
|
||||
const metadata = state.cells.cells && state.cells.cells.data.metadata ? state.cells.cells.data.metadata : null;
|
||||
|
||||
const initializeRanges = state.initialize.data && state.initialize.data.data.ranges ? state.initialize.data.data.ranges : null;
|
||||
const initializeMetadata = state.initialize.data && state.initialize.data.data.metadata ? state.initialize.data.data.metadata : null;
|
||||
|
||||
return {
|
||||
ranges,
|
||||
metadata,
|
||||
initializeRanges,
|
||||
initializeMetadata,
|
||||
colorAccessor: state.controls.colorAccessor,
|
||||
colorScale: state.controls.colorScale,
|
||||
graphBrushSelection: state.controls.graphBrushSelection,
|
||||
@@ -74,7 +72,6 @@ class Continuous extends React.Component {
|
||||
this.state.svg,
|
||||
this.state.ctx,
|
||||
dimensions,
|
||||
nextProps.initializeMetadata, /* PERF this means brushes are always filtering on everything */
|
||||
xscale,
|
||||
height,
|
||||
width,
|
||||
|
||||
@@ -9,7 +9,6 @@ const drawAxes = (
|
||||
svg,
|
||||
ctx,
|
||||
dimensions,
|
||||
metadata,
|
||||
xscale,
|
||||
height,
|
||||
width,
|
||||
@@ -56,7 +55,7 @@ const drawAxes = (
|
||||
.on("click", (d) => { handleColorAction(d.key) })
|
||||
.attr("class", styles.title)
|
||||
.attr("text-anchor", "start")
|
||||
.text(function(d) { return "description" in d ? d.description + " 🎨" : d.key + " 🎨"; });
|
||||
.text(function(d) { return "description" in d ? d.description + " 🖌️" : d.key + " 🖌️"; });
|
||||
|
||||
// Add and store a brush for each axis.
|
||||
axes.append("g")
|
||||
|
||||
Reference in New Issue
Block a user