|
@@ -50,11 +50,16 @@ graph.update = function(newState) { |
|
|
if (editor.selection) { |
|
|
if (editor.selection) { |
|
|
console.log(editor.selection); |
|
|
console.log(editor.selection); |
|
|
var node = editor.selection; |
|
|
var node = editor.selection; |
|
|
editor.grid.position.copy(abj.node[node].position); |
|
|
|
|
|
gui.controls.target.copy(abj.node[node].position); |
|
|
|
|
|
node_name.innerHTML = "Node " + node; |
|
|
|
|
|
node_data.className = "visible"; |
|
|
|
|
|
node_vop.innerHTML = "VOP: " + abj.node[node].vop; |
|
|
|
|
|
|
|
|
if (Object.prototype.hasOwnProperty.call(abj.node, node)) { |
|
|
|
|
|
editor.grid.position.copy(abj.node[node].position); |
|
|
|
|
|
gui.controls.target.copy(abj.node[node].position); |
|
|
|
|
|
node_name.innerHTML = "Node " + node; |
|
|
|
|
|
node_data.className = "visible"; |
|
|
|
|
|
node_vop.innerHTML = "VOP: " + abj.node[node].vop; |
|
|
|
|
|
} else { |
|
|
|
|
|
editor.selection = undefined; |
|
|
|
|
|
node_data.className = "hidden"; |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
node_data.className = "hidden"; |
|
|
node_data.className = "hidden"; |
|
|
} |
|
|
} |
|
|