Fix changing layout
parent
4380bd2273
commit
0ab3f2a5f9
|
@ -277,7 +277,9 @@ export default class GraphContainer extends Component {
|
||||||
|
|
||||||
relayout() {
|
relayout() {
|
||||||
closeTooltip();
|
closeTooltip();
|
||||||
|
this.clearScale();
|
||||||
sigma.layouts.stopForceLink();
|
sigma.layouts.stopForceLink();
|
||||||
|
|
||||||
if (appStore.dagre) {
|
if (appStore.dagre) {
|
||||||
sigma.layouts.dagre.start(this.state.sigmaInstance);
|
sigma.layouts.dagre.start(this.state.sigmaInstance);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -312,6 +312,7 @@ if (!existsSync(imagepath)){
|
||||||
global.closeTooltip = function(){
|
global.closeTooltip = function(){
|
||||||
if (appStore.currentTooltip !== null){
|
if (appStore.currentTooltip !== null){
|
||||||
appStore.currentTooltip.close();
|
appStore.currentTooltip.close();
|
||||||
|
appStore.currentTooltip = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue