summaryrefslogtreecommitdiff
path: root/js/Sinks/CANIMXY.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 10:44:34 +0530
committerSunil Shetye2018-07-11 15:21:08 +0530
commitaabd535925f24c6203eb1a0dcc5b28d9670133de (patch)
tree73c1021fb17dfdf86f088d930311a007cb3f2120 /js/Sinks/CANIMXY.js
parentdc097af448d4ed55d685c5e87c8cffb70b7fb20a (diff)
downloadsci2js-aabd535925f24c6203eb1a0dcc5b28d9670133de.tar.gz
sci2js-aabd535925f24c6203eb1a0dcc5b28d9670133de.tar.bz2
sci2js-aabd535925f24c6203eb1a0dcc5b28d9670133de.zip
show type for matrix also
Diffstat (limited to 'js/Sinks/CANIMXY.js')
-rw-r--r--js/Sinks/CANIMXY.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Sinks/CANIMXY.js b/js/Sinks/CANIMXY.js
index 75344310..63ca8fce 100644
--- a/js/Sinks/CANIMXY.js
+++ b/js/Sinks/CANIMXY.js
@@ -15,11 +15,11 @@ function CANIMXY() {
this.model = scicos_model();
this.model.sim = list(new ScilabString(["canimxy"]), new ScilabDouble([4]));
this.model.in1 = [[1],[1]];
- this.model.in2 = [[1],[1]];
- this.model.intyp = [[1],[1]];
+ this.model.in2 = new ScilabDouble([1],[1]);
+ this.model.intyp = new ScilabDouble([1],[1]);
this.model.evtin = new ScilabDouble([1]);
- this.model.rpar = [[this.xmin],[this.xmax],[this.ymin],[this.ymax]];
- this.model.ipar = [[this.win],[1],[this.N],[this.clrs],[this.siz],[0],[this.wpos.slice()],[this.wdim.slice()],[this.nbr_curves]];
+ this.model.rpar = new ScilabDouble([this.xmin],[this.xmax],[this.ymin],[this.ymax]);
+ this.model.ipar = new ScilabDouble([this.win],[1],[this.N],[this.clrs],[this.siz],[0],[this.wpos.slice()],[this.wdim.slice()],[this.nbr_curves]);
this.model.blocktype = new ScilabString(["d"]);
this.model.firing = [];
this.model.dep_ut = [false,false];
@@ -115,8 +115,8 @@ function CANIMXY() {
}
rpar = [[this.xmin],[this.xmax],[this.ymin],[this.ymax]];
ipar = [[this.win],[1],[this.N],[this.clrs],[this.siz],[0],[this.wpos.slice()],[this.wdim.slice()],[this.nbr_curves]];
- this.model.rpar = rpar;
- this.model.ipar = ipar;
+ this.model.rpar = new ScilabDouble(rpar);
+ this.model.ipar = new ScilabDouble(ipar);
graphics.exprs = exprs;
this.x.graphics = graphics;
this.x.model = this.model;