Skip to content

Commit

Permalink
testbed: add title
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Jan 17, 2024
1 parent 9159033 commit ffb21d9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/app/provider-browser/provider-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class ProviderBrowser implements ForwardingProvider {
x: node.position[1] * 2,
y: -node.position[0] * 8,
color: node['ndn-up'] ? undefined : COLOR_MAP['orange'],
title: `${node.name}\n${node.https}\n${node.prefix}`,
});

for (const neighbor of json[nid].neighbors) {
Expand All @@ -100,7 +101,17 @@ export class ProviderBrowser implements ForwardingProvider {

// Add to topology
this.topo.network.setOptions({
physics: { enabled: false },
interaction: {
tooltipDelay: 0,
},
physics: {
barnesHut: {
gravitationalConstant: -14,
springConstant: 0,
centralGravity: 0,
damping: 0.2,
},
},
edges: { smooth: false },
});
this.topo.nodes.add(nodes);
Expand Down

0 comments on commit ffb21d9

Please sign in to comment.