summaryrefslogtreecommitdiff
path: root/js/Sinks/CMSCOPE.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-16 18:13:55 +0530
committerSunil Shetye2018-07-18 11:36:15 +0530
commit8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch)
tree6b766b7c32effff12fa48cff99f11b9420136610 /js/Sinks/CMSCOPE.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Sinks/CMSCOPE.js')
-rw-r--r--js/Sinks/CMSCOPE.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/js/Sinks/CMSCOPE.js b/js/Sinks/CMSCOPE.js
index 69787569..62d1c21b 100644
--- a/js/Sinks/CMSCOPE.js
+++ b/js/Sinks/CMSCOPE.js
@@ -47,21 +47,21 @@ function CMSCOPE() {
return options;
}
CMSCOPE.prototype.set = function CMSCOPE() {
- this.in1 = inverse(arguments[0]["in1"])
- this.clrs = inverse(arguments[0]["clrs"])
- this.win = parseFloat(arguments[0]["win"])
- this.wpos = inverse(arguments[0]["wpos"])
- this.wdim = inverse(arguments[0]["wdim"])
- this.ymin = inverse(arguments[0]["ymin"])
- this.ymax = inverse(arguments[0]["ymax"])
- this.per = inverse(arguments[0]["per"])
- this.N = parseFloat(arguments[0]["N"])
- this.heritance = arguments[0]["heritance"]
- this.nom = arguments[0]["nom"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.in1,this.clrs,this.win,this.wpos,this.wdim,this.ymin,this.ymax,this.per,this.N,this.heritance,this.nom,this.exprs] = scicos_getvalue("Set Scope parameters",["Input ports sizes","Drawing colors (>0) or mark (<0)","Output window number (-1 for automatic)","Output window position","Output window sizes","Ymin vector","Ymax vector","Refresh period","Buffer size","Accept herited events 0/1","Name of Scope (label&Id)"],list("vec",-1,"vec",-1,"vec",1,"vec",-1,"vec",-1,"vec","size(%1,\'*\')","vec","size(%1,\'*\')","vec","size(%1,\'*\')","vec",1,"vec",1,"str",1),this.exprs);
+ var ok = true;
+ this.in1 = inverse(arguments[0]["in1"]);
+ this.clrs = inverse(arguments[0]["clrs"]);
+ this.win = parseFloat(arguments[0]["win"]);
+ this.wpos = inverse(arguments[0]["wpos"]);
+ this.wdim = inverse(arguments[0]["wdim"]);
+ this.ymin = inverse(arguments[0]["ymin"]);
+ this.ymax = inverse(arguments[0]["ymax"]);
+ this.per = inverse(arguments[0]["per"]);
+ this.N = parseFloat(arguments[0]["N"]);
+ this.heritance = arguments[0]["heritance"];
+ this.nom = arguments[0]["nom"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}