diff options
Diffstat (limited to 'js/Sinks/CSCOPE.js')
-rw-r--r-- | js/Sinks/CSCOPE.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/js/Sinks/CSCOPE.js b/js/Sinks/CSCOPE.js index 6a97815d..2502f55d 100644 --- a/js/Sinks/CSCOPE.js +++ b/js/Sinks/CSCOPE.js @@ -1,6 +1,8 @@ /* autogenerated from "macros/Sinks/CSCOPE.sci" */ function CSCOPE() { CSCOPE.prototype.define = function CSCOPE() { + this.heritance = 0; + this.nom = ""; this.win = -1; this.wdim = [[600],[400]]; this.wpos = [[-1],[-1]]; @@ -55,7 +57,7 @@ function CSCOPE() { this.ymax = parseFloat(arguments[0]["ymax"]); this.per = parseFloat(arguments[0]["per"]); this.N = parseFloat(arguments[0]["N"]); - this.heritance = arguments[0]["heritance"]; + this.heritance = parseFloat(arguments[0]["heritance"]); this.nom = arguments[0]["nom"]; var exprs = [arguments[0]["clrs"], arguments[0]["win"], arguments[0]["wpos"], arguments[0]["wdim"], arguments[0]["ymin"], arguments[0]["ymax"], arguments[0]["per"], arguments[0]["N"], arguments[0]["heritance"], arguments[0]["nom"]]; if (!ok) { @@ -112,8 +114,8 @@ function CSCOPE() { this.model.rpar = new ScilabDouble(rpar); this.model.ipar = new ScilabDouble(ipar); this.model.evtin = new ScilabDouble([ones(1-this.heritance,1)]); - this.model.label = new ScilabDouble([this.nom]); - this.graphics.id = new ScilabDouble([this.nom]); + this.model.label = new ScilabString([this.nom]); + this.graphics.id = new ScilabString([this.nom]); this.graphics.exprs = new ScilabDouble([exprs]); this.x.graphics = this.graphics; this.x.model = this.model; |