diff options
author | Sunil Shetye | 2018-06-26 14:59:47 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-26 14:59:47 +0530 |
commit | eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00 (patch) | |
tree | 6378935263fe5cafd389b6893ac3b37a1dd4b1a7 /js/Sources/TKSCALE.js | |
parent | afed64f1a0eab0b2d742088186d7bc340a2c895b (diff) | |
download | sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.tar.gz sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.tar.bz2 sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.zip |
add return value from scicos_getvalue to global vars
Diffstat (limited to 'js/Sources/TKSCALE.js')
-rw-r--r-- | js/Sources/TKSCALE.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Sources/TKSCALE.js b/js/Sources/TKSCALE.js index 00866c29..ff0f2918 100644 --- a/js/Sources/TKSCALE.js +++ b/js/Sources/TKSCALE.js @@ -1,17 +1,17 @@ /* autogenerated from "macros/Sources/TKSCALE.sci" */ function TKSCALE() { TKSCALE.prototype.define = function TKSCALE() { - a = -10; - b = 10; - f = 1; + this.a = -10; + this.b = 10; + this.f = 1; model = scicos_model(); model.sim = list("tkscaleblk",5); model.out = 1; model.evtin = 1; - model.rpar = [[a],[b],[f]]; + model.rpar = [[this.a],[this.b],[this.f]]; model.blocktype = "d"; model.dep_ut = [false,false]; - exprs = [[sci2exp(a)],[sci2exp(b)],[sci2exp(f)]]; + exprs = [[sci2exp(this.a)],[sci2exp(this.b)],[sci2exp(this.f)]]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); return new BasicBlock(this.x); @@ -26,10 +26,10 @@ function TKSCALE() { graphics = arg1.graphics; exprs = graphics.exprs; model = arg1.model; - [ok,a,b,f,exprs] = scicos_getvalue("Set scale block parameters",[["Min value"],["Max value"],["Normalization"]],list("vec",1,"vec",1,"vec",1),exprs); + [ok,this.a,this.b,this.f,exprs] = scicos_getvalue("Set scale block parameters",[["Min value"],["Max value"],["Normalization"]],list("vec",1,"vec",1,"vec",1),exprs); if (ok) { graphics.exprs = exprs; - model.rpar = [[a],[b],[f]]; + model.rpar = [[this.a],[this.b],[this.f]]; this.x.graphics = graphics; this.x.model = model; } |