diff --git a/01_Code/physical_computing_interface/dnn/graph.js b/01_Code/physical_computing_interface/dnn/graph.js index e9fcace18b4b0cd9c4748cb2a6c834b73e2efc4e..76fc9810034c36e187f0a44c5c7514705074f0ce 100644 --- a/01_Code/physical_computing_interface/dnn/graph.js +++ b/01_Code/physical_computing_interface/dnn/graph.js @@ -454,7 +454,7 @@ document.addEventListener('addNode', function (e) { // tgt.move({parent: ''+neighborhood}); // tgt._private.data.data.parent= neighborhood; - // api.expandAll(); + api.expandAll(); }, false); @@ -559,6 +559,7 @@ document.addEventListener('updateNode', function (e) { }, false); document.addEventListener('removeNode', function (e) { + var tgt=cyy.$id(e.detail.id); tgt.remove(); diff --git a/01_Code/physical_computing_interface/index.html b/01_Code/physical_computing_interface/index.html index 4f763d7db7f11a4e0b0d95bf7b8d84f690a02586..429e845da149c5a2f8d5fb119886132c90818377 100644 --- a/01_Code/physical_computing_interface/index.html +++ b/01_Code/physical_computing_interface/index.html @@ -32,7 +32,7 @@ </div> - <div id="simulation"> + <div id="simulation" style="overflow: scroll;"> <div id="threejs1"> <div class="header1"> <i> Assembler Control</i>