Skip to content

Commit

Permalink
NN-653 Added refresh to centering in case of cluttering
Browse files Browse the repository at this point in the history
  • Loading branch information
TripZz committed Jan 23, 2025
1 parent 0dbd20b commit 33c6b35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/components/visualization/CitationVis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ export default {
angle: sigma_instance.camera.angle,
});
this.get_module_circles();
sigma_instance.refresh();
},
activeNode(event, special) {
this.special_label = special;
Expand Down Expand Up @@ -755,6 +756,7 @@ export default {
sigma_instance = new sigma();
var camera = sigma_instance.addCamera();
this.$nextTick(() => {
sigma_instance.addRenderer({
container: this.$refs.sigmaContainer,
type: "canvas",
Expand Down Expand Up @@ -898,6 +900,7 @@ export default {
});
sigma_instance.refresh();
});
},
activated() {
sigma_instance.refresh();
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/visualization/MainVis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ export default {
angle: sigma_instance.camera.angle,
});
this.get_module_circles();
sigma_instance.refresh()
},
activeNode(event, special) {
this.special_label = special;
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/components/visualization/TermVis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ export default {
angle: sigma_instance.camera.angle,
});
this.get_module_circles();
sigma_instance.refresh();
},
activeNode(event, special) {
this.special_label = special;
Expand Down Expand Up @@ -749,6 +750,7 @@ export default {
sigma_instance = new sigma();
var camera = sigma_instance.addCamera();
this.$nextTick(() => {
sigma_instance.addRenderer({
container: this.$refs.sigmaContainer,
type: "canvas",
Expand Down Expand Up @@ -895,6 +897,7 @@ export default {
});
sigma_instance.refresh();
});
},
activated() {
sigma_instance.refresh();
Expand Down

0 comments on commit 33c6b35

Please sign in to comment.