From 1d70e51834abd98f73463875e52d0260376adfd7 Mon Sep 17 00:00:00 2001 From: amira <amiraa@mit.edu> Date: Thu, 20 Jul 2023 17:14:41 -0400 Subject: [PATCH] simulation better --- 01_Code/physical_computing_interface/dnn/graph.js | 3 ++- 01_Code/physical_computing_interface/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/01_Code/physical_computing_interface/dnn/graph.js b/01_Code/physical_computing_interface/dnn/graph.js index e9fcace..76fc981 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 4f763d7..429e845 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> -- GitLab