Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudet committed Apr 25, 2023
1 parent 2ed061e commit 4cb8548
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions askomics/react/src/routes/overview/overview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class Overview extends Component {
this.firstRender = true
this.setState({
is2D: checked
})
})
}

draw2DNode (node, ctx, globalScale){
Expand Down Expand Up @@ -250,7 +250,7 @@ export default class Overview extends Component {
}).then(response => {
this.firstRender = true
this.initGraph()
this.setState({ waiting: false })
this.setState({ waiting: false })
})
}
}
Expand All @@ -261,7 +261,7 @@ export default class Overview extends Component {
}
}

zoom (){
zoom (){
this.firstRender && this.myRef.current.zoomToFit(1000, 80)
this.firstRender = false
}
Expand Down Expand Up @@ -315,8 +315,7 @@ export default class Overview extends Component {
return sprite;
}}
nodeThreeObjectExtend={true}
onNodeClick={this.focus}
/>
/>
)}
</SizeMe>
</>
Expand Down Expand Up @@ -372,12 +371,12 @@ export default class Overview extends Component {
unCheckedChildren="3D"
defaultChecked={true}
className="asko-switch-3d"
/>
/>
</div>
</h2>
<hr />
Drag and scroll to interact with the graph. Click on a node to focus.
<Button style={{float: "right"}} onClick={this.zoomOut}>Reset zoom</Button>
<Button style={{float: "right"}} onClick={this.zoomOut}>Reset zoom</Button>
<br/>
<WaitingDiv waiting={this.state.waiting} center />
<br />
Expand Down

0 comments on commit 4cb8548

Please sign in to comment.