visualization

This commit is contained in:
Nate Hammer 2023-04-30 20:00:34 -04:00
parent 27fd3ec7f9
commit 5b9eb58aea
12 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,15 @@
$( document ).ready(function(){
// Custom Cytoscape.JS code goes here.
// Example: add linkouts to nodes that opens the "href" node attribute on click
// cy.on('tap', 'node', function(){
// try { // your browser may block popups
// window.open( this.data('href') );
// } catch(e){ // fall back on url change
// window.location.href = this.data('href');
// }
// });
// For more options, check out http://js.cytoscape.org/
});

View file

@ -0,0 +1,29 @@
$(function() {
"use strict";
function e(e, n) {
for (var t = n.length, o = 0; t >= o; o++) {
var s = n[o].title;
if (s === e) return n[o]
}
return null
}
var n = "#cy",
network = networks[Object.keys(networks)[0]],
style = styles[0];
$(n).cytoscape({
layout: {
name: "preset",
padding: 10
},
boxSelectionEnabled: !0,
ready: function() {
window.cy = this,
cy.load(network.elements), console.log(network);
console.log(style);
var o = e("default", style);
null === o && (o = style), cy.style().fromJson(o.style).update()
}
})
});

File diff suppressed because it is too large Load diff