diff options
author | Sunil Shetye | 2018-07-11 17:51:05 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-12 23:01:50 +0530 |
commit | 44a3807a94783e831070f0e003340af58dc64d16 (patch) | |
tree | cce50388afa463583d7a7aead34d40f5b02281f7 /js/Linear/GAINBLK.js | |
parent | 0047c3bea1d86b12a08544f6f0833c63e77f6eac (diff) | |
download | sci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.gz sci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.bz2 sci2js-44a3807a94783e831070f0e003340af58dc64d16.zip |
change graphics to object
Diffstat (limited to 'js/Linear/GAINBLK.js')
-rw-r--r-- | js/Linear/GAINBLK.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/js/Linear/GAINBLK.js b/js/Linear/GAINBLK.js index e84f60ef..3cdb1087 100644 --- a/js/Linear/GAINBLK.js +++ b/js/Linear/GAINBLK.js @@ -34,8 +34,8 @@ function GAINBLK() { this.gain = parseFloat(arguments[0]["gain"]) this.over = arguments[0]["over"] this.x = arg1; - var graphics = arg1.graphics; - var exprs = graphics.exprs; + this.graphics = arg1.graphics; + var exprs = this.graphics.exprs; this.model = arg1.model; if (size(exprs,"*")==1) { var exprs = [[exprs],[sci2exp(0)]]; @@ -137,24 +137,24 @@ function GAINBLK() { this.model.opar = list(this.gain.slice()); } if (ok) { - var tmpvar0 = size(this.gain) - var out = tmpvar0[0] + var tmpvar0 = size(this.gain); + var out = tmpvar0[0]; var in1 = tmpvar0[1]; if (out*in1!=1) { - var tmpvar1 = set_io(this.model,graphics,list([in1,-1],ot),list([out,-1],ot),[],[]) - this.model = tmpvar1[0] - var graphics = tmpvar1[1] + var tmpvar1 = set_io(this.model,this.graphics,list([in1,-1],ot),list([out,-1],ot),[],[]); + this.model = tmpvar1[0]; + this.graphics = tmpvar1[1]; var ok = tmpvar1[2]; } else { - var tmpvar2 = set_io(this.model,graphics,list([-1,-2],ot),list([-1,-2],ot),[],[]) - this.model = tmpvar2[0] - var graphics = tmpvar2[1] + var tmpvar2 = set_io(this.model,this.graphics,list([-1,-2],ot),list([-1,-2],ot),[],[]); + this.model = tmpvar2[0]; + this.graphics = tmpvar2[1]; var ok = tmpvar2[2]; } } if (ok) { - graphics.exprs = exprs; - this.x.graphics = graphics; + this.graphics.exprs = new ScilabDouble(exprs); + this.x.graphics = this.graphics; this.x.model = this.model; break; } |