summaryrefslogtreecommitdiff
path: root/js/Sinks/CMSCOPE.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-09 18:10:31 +0530
committerSunil Shetye2018-07-10 11:24:53 +0530
commit9b18945e2e2348db85595fb096a1e1eba04f9baf (patch)
treebb13cffc501f152b1d33870bdeff6f274aecbf7b /js/Sinks/CMSCOPE.js
parentf19304a4fe99556c5ddc35024c818d00ffe7e23a (diff)
downloadsci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz
sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2
sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip
remove type from list
Diffstat (limited to 'js/Sinks/CMSCOPE.js')
-rw-r--r--js/Sinks/CMSCOPE.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sinks/CMSCOPE.js b/js/Sinks/CMSCOPE.js
index a16eb019..9d0db26d 100644
--- a/js/Sinks/CMSCOPE.js
+++ b/js/Sinks/CMSCOPE.js
@@ -13,14 +13,14 @@ function CMSCOPE() {
yy = [[transpose(this.ymin.slice())],[transpose(this.ymax.slice())]];
period = transpose(this.per.slice());
this.model = scicos_model();
- this.model.sim = list(new ScilabString("cmscope"),new ScilabDouble(4));
+ this.model.sim = list(new ScilabString(["cmscope"]), new ScilabDouble([4]));
this.model.in1 = this.in1;
this.model.in2 = [[1],[1]];
this.model.intyp = [[1],[1]];
- this.model.evtin = new ScilabDouble(1);
+ this.model.evtin = new ScilabDouble([1]);
this.model.rpar = [[0],[period.slice()],[yy.slice()]];
this.model.ipar = [[this.win],[size(this.in1,"*")],[this.N],[this.wpos.slice()],[this.wdim.slice()],[this.in1.slice()],[this.clrs.slice(1-1,sum(this.in1))]];
- this.model.blocktype = new ScilabString("c");
+ this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [true,false];
exprs = [[strcat(string(this.in1)," ")],[strcat(string(this.clrs)," ")],[string(this.win)],[sci2exp([])],[sci2exp([])],[strcat(string(this.ymin)," ")],[strcat(string(this.ymax)," ")],[strcat(string(this.per)," ")],[string(this.N)],[string(0)],[emptystr()]];
gr_i = [];
@@ -136,11 +136,11 @@ function CMSCOPE() {
rpar = [[0],[period.slice()],[yy.slice()]];
this.clrs = this.clrs.slice(1-1,sum(this.in1));
ipar = [[this.win],[size(this.in1,"*")],[this.N],[this.wpos.slice()],[this.wdim.slice()],[this.in1.slice()],[this.clrs.slice()],[this.heritance]];
- this.model.evtin = new ScilabDouble(ones(1-this.heritance,1));
+ this.model.evtin = new ScilabDouble([ones(1-this.heritance,1)]);
this.model.dstate = [];
this.model.rpar = rpar;
this.model.ipar = ipar;
- this.model.label = new ScilabDouble(this.nom);
+ this.model.label = new ScilabDouble([this.nom]);
graphics.id = this.nom;
graphics.exprs = exprs;
this.x.graphics = graphics;