Skip to content

Commit

Permalink
Fix eslint errors in Molecule3DViewer component
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Jan 18, 2019
1 parent cdc96f0 commit 840d441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dash_bio/bundle.js

Large diffs are not rendered by default.

17 changes: 2 additions & 15 deletions src/lib/components/Molecule3dViewer.js
Expand Up @@ -15,7 +15,8 @@ export default class Molecule3dViewer extends Component {

onRenderNewData(glviewer) {
glviewer.center();
glviewer.zoom(0.8)
const zoomRatio = 0.8;
glviewer.zoom(zoomRatio)
}

shouldComponentUpdate(nextProps) {
Expand All @@ -31,20 +32,6 @@ export default class Molecule3dViewer extends Component {
render() {
const {
id,
color,
modelData,
atoms,
bonds,
backgroundColor,
backgroundOpacity,
atomLabelsShown,
selectionType,
selectedAtomIds,
labels,
setProps,
styles,
onRenderNewData,
onChangeSelection,
}=this.props;

return (
Expand Down

0 comments on commit 840d441

Please sign in to comment.