diff options
author | Abhishek Patel | 2016-06-06 21:19:40 +0530 |
---|---|---|
committer | Abhishek Patel | 2016-06-06 21:19:40 +0530 |
commit | d9614421f4d162a7deb0849c3af0d6c30d57689d (patch) | |
tree | 7b815ffbb2bdd582b56f932b28f4404bfd860d0b /views/script | |
parent | 05936ff17159602918fa196c833fa2dda2ec7818 (diff) | |
download | eSimWebApp-d9614421f4d162a7deb0849c3af0d6c30d57689d.tar.gz eSimWebApp-d9614421f4d162a7deb0849c3af0d6c30d57689d.tar.bz2 eSimWebApp-d9614421f4d162a7deb0849c3af0d6c30d57689d.zip |
sources,mosfets,transistors,subcircuits category amended,digitalpins corrected
Diffstat (limited to 'views/script')
-rw-r--r-- | views/script/connections.js | 12 | ||||
-rw-r--r-- | views/script/gui.js | 3 | ||||
-rw-r--r-- | views/script/netlist.js | 4 | ||||
-rw-r--r-- | views/script/savenetlist.js | 4 |
4 files changed, 16 insertions, 7 deletions
diff --git a/views/script/connections.js b/views/script/connections.js index 37270a4..0edeb02 100644 --- a/views/script/connections.js +++ b/views/script/connections.js @@ -266,8 +266,16 @@ Schematic.prototype.addconnects=function(){ } -// if(parts[i].digitalpins!=undefined)for(var j=0;j<parts[i].digitalpins.length;j++){ -// } + if(parts[i].digitalpins!=undefined)for(var j=0;j<parts[i].digitalpins.length;j++){ + + var terminal1=this.maketerminal(null); + terminal1.setAttribute('class',"webtronics_part_terminal"); + terminal1.setAttribute("cx",parts[i].digitalpins[j].x); + terminal1.setAttribute("cy",parts[i].digitalpins[j].y); + this.info.appendChild(terminal1); + + + } } //clean up lines while i'm at it var lines=$$("#webtronics_drawing > line"); diff --git a/views/script/gui.js b/views/script/gui.js index 2493245..27e1087 100644 --- a/views/script/gui.js +++ b/views/script/gui.js @@ -130,6 +130,7 @@ returnchip:function(){ openProperties:function(){
document.forms['webtronics_properties_form'].reset();
var c=netlistcreator.readwtx(this.circuit.selected[0],"name");
+ var type=netlistcreator.readwtx(this.circuit.selected[0],"type");
$("webtronics_risedelay").style.display='none';
$("webtronics_falldelay").style.display='none';
$("webtronics_inputload").style.display='none';
@@ -533,7 +534,7 @@ openProperties:function(){ if(c=="diode")$("directive").style.display='block'
var id=netlistcreator.readwtx(this.circuit.selected[0],"id");
-
+ if(type=="x")$("directive").style.display='block';
if(id!=""){$('webtronics_part_id').value=id;}
diff --git a/views/script/netlist.js b/views/script/netlist.js index 6e74bdd..03d65c1 100644 --- a/views/script/netlist.js +++ b/views/script/netlist.js @@ -78,11 +78,11 @@ var netlistcreator={ else if(list[i].type=='r'){ R.push(list[i]); } - else if(list[i].type=='u'){ + else if(list[i].type=='x'){ U.push(list[i]); } /* this is the best way I could think to tell if a part i digital */ - else if(list[i].category=="digital"){ + else if(list[i].category=="digitalmodels"){ A.push(list[i]); } else { diff --git a/views/script/savenetlist.js b/views/script/savenetlist.js index b5ead3c..befc939 100644 --- a/views/script/savenetlist.js +++ b/views/script/savenetlist.js @@ -486,7 +486,7 @@ jQuery("#step_time_selectbox").change(function(){ step_trans_unit = "12"; } - console.log(step_trans_unit); + //console.log(step_trans_unit); }); jQuery("#stop_time_selectbox").change(function(){ @@ -510,7 +510,7 @@ jQuery("#stop_time_selectbox").change(function(){ stop_trans_unit = "12"; } - console.log(stop_trans_unit); + //console.log(stop_trans_unit); }); |