changed result json
This commit is contained in:
parent
ea9862eddc
commit
4c325af655
1 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,7 @@ const CONFIG = {
|
|||
'nodeRadius': 5,
|
||||
'nodeRepositionPadding': 12,
|
||||
'baseUrl': 'https://www.securityvision.io/wiki/index.php/',
|
||||
'dataUrl': 'result3.json',
|
||||
'dataUrl': 'remote_biometric_identification.json',
|
||||
'preSimulate': false, // run simulation before starting, so we don't start with lines jumping around
|
||||
'labels': {
|
||||
'rotate': true,
|
||||
|
@ -367,6 +367,8 @@ class NodeMap {
|
|||
this.resizeEvent = window.addEventListener('resize', this.resize.bind(this));
|
||||
this.tooltipEl = document.getElementById('tooltip');
|
||||
this.selectedNode = null;
|
||||
|
||||
document.getElementById('closeSelection').addEventListener('click', (ev) => this.deselectNode());
|
||||
}
|
||||
|
||||
resize() {
|
||||
|
@ -841,6 +843,8 @@ class NodeMap {
|
|||
links.forEach(l => document.getElementById(getLinkId(l)).classList.add('linkedSelected'));
|
||||
|
||||
this.container.classed('selectedNode', true);
|
||||
|
||||
document.body.classList.add('selectedNode');
|
||||
// TODO: show details;
|
||||
|
||||
// alert('not yet implemented');
|
||||
|
@ -857,6 +861,7 @@ class NodeMap {
|
|||
els[0].classList.remove('linkedSelected');
|
||||
}
|
||||
this.container.classed('selectedNode', false);
|
||||
document.body.classList.remove('selectedNode');
|
||||
}
|
||||
|
||||
update() {
|
||||
|
|
Loading…
Reference in a new issue