Skip to content

Commit

Permalink
Merge branch 'fix_220' of github.com:mboudet/flaskomics into fix_220
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudet committed Apr 26, 2023
2 parents 1b9a5ad + 4cb8548 commit 440e8f8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions askomics/react/src/routes/overview/overview.jsx
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 @@ -325,8 +325,7 @@ export default class Overview extends Component {
return sprite;
}}
nodeThreeObjectExtend={true}
onNodeClick={this.focus}
/>
/>
)}
</SizeMe>
</>
Expand Down Expand Up @@ -382,12 +381,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 440e8f8

Please sign in to comment.