Skip to content

Commit

Permalink
Merge branch 'workAnlisha' of github.com:BackofenLab/AxoWise into wor…
Browse files Browse the repository at this point in the history
…kAnlisha
  • Loading branch information
anlisha-maharjan committed Jan 23, 2025
2 parents 3a3af83 + 33c6b35 commit 9d1db79
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
16 changes: 9 additions & 7 deletions frontend/src/components/visualization/CitationVis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,13 @@ export default {
? "rgba(255, 255, 255," + com.highlight_opacity + ")"
: "rgba(0, 100, 100, " + com.base_opacity + ")";
}
sigma_instance.graph.nodes().forEach(function (n) {
var node = sigma_instance.graph.getNodeFromIndex(n.id);
!proteins.has(n.id)
? (node.color = "rgb(0,100,100)")
: (node.color = "rgb(255,255,255)");
});
}
sigma_instance.graph.nodes().forEach(function (n) {
var node = sigma_instance.graph.getNodeFromIndex(n.id);
!proteins.has(n.id)
? (node.color = "rgb(0,100,100)")
: (node.color = "rgb(255,255,255)");
});
this.$store.commit("assign_highlightedSet", highlighted_edges);
sigma_instance.refresh();
Expand Down Expand Up @@ -368,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 @@ -756,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 @@ -899,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 9d1db79

Please sign in to comment.