feat: add panzoom widget to network view

This commit is contained in:
James Graham
2021-05-12 20:32:18 +01:00
parent e7a113c4ee
commit 8ca1ba3d95
2 changed files with 15 additions and 1 deletions

View File

@@ -100,6 +100,9 @@ function get_network() {
style: network_style
});
// Add pan + zoom widget with cytoscape-panzoom
cy.panzoom();
// Load people and add to graph
var person_set = JSON.parse(document.getElementById('person-set-data').textContent);