Skip to content
Snippets Groups Projects
Commit 227eb588 authored by Julian Matschinske's avatar Julian Matschinske
Browse files

Merge branch 'better-layout' into 'master'

Use repulsion physics

See merge request covid-19/frontend!131
parents c3fe228c f4604d6c
No related branches found
No related tags found
No related merge requests found
...@@ -371,10 +371,6 @@ export class AnalysisPanelComponent implements OnInit, OnChanges { ...@@ -371,10 +371,6 @@ export class AnalysisPanelComponent implements OnInit, OnChanges {
edges.push(this.mapEdge(edge, 'protein-protein', wrappers)); edges.push(this.mapEdge(edge, 'protein-protein', wrappers));
} }
for (const edge of network.edges) {
edges.push(this.mapEdge(edge, 'protein-protein', wrappers));
}
return { return {
nodes, nodes,
edges, edges,
......
...@@ -41,13 +41,16 @@ export class NetworkSettings { ...@@ -41,13 +41,16 @@ export class NetworkSettings {
}; };
private static analysisEdges = { private static analysisEdges = {
smooth: false, smooth: false,
length: 400,
}; };
private static analysisPhysics = { private static analysisPhysics = {
enabled: true, enabled: true,
stabilization: { stabilization: {
enabled: true, enabled: true,
}, },
repulsion: {
centralGravity: 0,
},
solver: 'repulsion',
}; };
private static analysisBigPhysics = { private static analysisBigPhysics = {
enabled: false, enabled: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment