INNER CODE UNIT · JavaScript

nodeActive

KiranGershenfeld/VisualizingTwitchCommunities · Website/js/main.js:445

function nodeActive(a) {
    
	var groupByDirection=false;
	if (config.informationPanel.groupByEdgeDirection && config.informationPanel.groupByEdgeDirection==true)	groupByDirection=true;
	
    sigInst.neighbors = {};
    sigInst.detail = !0;
    var b = sigInst._core.graph.nodesIndex[a];
    
    selectedIndex = sigInst._core.graph.nodes.indexOf(b);
    sigInst._core.graph.nodes[selectedIndex].forceLabel = true;
    sigInst._core.graph.nodes[selectedIndex].active = true;

    //failed attempt at zooming in on searched nodes
    /*
    console.log(b.label)
    console.log(b.displayX, b.displayY)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…