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 {
edges.push(this.mapEdge(edge, 'protein-protein', wrappers));
}
for (const edge of network.edges) {
edges.push(this.mapEdge(edge, 'protein-protein', wrappers));
}
return {
nodes,
edges,
......
......@@ -41,13 +41,16 @@ export class NetworkSettings {
};
private static analysisEdges = {
smooth: false,
length: 400,
};
private static analysisPhysics = {
enabled: true,
stabilization: {
enabled: true,
},
repulsion: {
centralGravity: 0,
},
solver: 'repulsion',
};
private static analysisBigPhysics = {
enabled: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment