mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 05:08:12 +08:00
remove experimental shimmer
This commit is contained in:
@@ -17,6 +17,7 @@ import ColorControl from "../controls/color";
|
|||||||
vertices,
|
vertices,
|
||||||
metadata,
|
metadata,
|
||||||
color: state.controls.color,
|
color: state.controls.color,
|
||||||
|
continuousSelection: state.controls.continuousSelection,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
class Graph extends React.Component {
|
class Graph extends React.Component {
|
||||||
@@ -27,7 +28,6 @@ class Graph extends React.Component {
|
|||||||
drawn: false,
|
drawn: false,
|
||||||
svg: null,
|
svg: null,
|
||||||
context: null,
|
context: null,
|
||||||
shimmer: false,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,29 +39,15 @@ class Graph extends React.Component {
|
|||||||
// nextProps.expressions &&
|
// nextProps.expressions &&
|
||||||
// nextProps.expressionsCountsMap &&
|
// nextProps.expressionsCountsMap &&
|
||||||
) {
|
) {
|
||||||
if (this.state.shimmer) {
|
drawGraph(
|
||||||
if (this.state.interval) { window.clearInterval(this.state.interval) }
|
nextProps.vertices,
|
||||||
const interval = window.setInterval(() => {
|
this.state.context,
|
||||||
drawGraph(
|
nextProps.expressionsCountsMap,
|
||||||
nextProps.vertices,
|
nextProps.color,
|
||||||
this.state.context,
|
nextProps.ranges, /* assumption that this exists if vertices does both are on cells */
|
||||||
nextProps.expressionsCountsMap,
|
nextProps.metadata,
|
||||||
nextProps.color,
|
nextProps.continuousSelection, /* continuousSelected should probably inform a global 'is active' array rather than be consumed so specifically here */
|
||||||
nextProps.ranges, /* assumption that this exists if vertices does both are on cells */
|
)
|
||||||
nextProps.metadata,
|
|
||||||
)
|
|
||||||
}, 100)
|
|
||||||
this.setState({interval})
|
|
||||||
} else {
|
|
||||||
drawGraph(
|
|
||||||
nextProps.vertices,
|
|
||||||
this.state.context,
|
|
||||||
nextProps.expressionsCountsMap,
|
|
||||||
nextProps.color,
|
|
||||||
nextProps.ranges, /* assumption that this exists if vertices does both are on cells */
|
|
||||||
nextProps.metadata,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user