summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/Sinks/CSCOPE.js8
-rw-r--r--js/Sinks/CSCOPE.pickle44
2 files changed, 30 insertions, 22 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;
diff --git a/js/Sinks/CSCOPE.pickle b/js/Sinks/CSCOPE.pickle
index 66efc3a6..951864a4 100644
--- a/js/Sinks/CSCOPE.pickle
+++ b/js/Sinks/CSCOPE.pickle
@@ -94,41 +94,47 @@ g5
sS'wdim'
p25
g2
-sS'model.ipar'
+sS'nom'
p26
-g2
-sS'typ'
+S'string'
p27
-S'vector'
+sS'model.ipar'
p28
-sS'ok'
+g2
+sS'typ'
p29
-S'boolean'
+S'vector'
p30
-sS'model.blocktype'
+sS'heritance'
p31
-S'string'
+g5
+sS'ok'
p32
-sS'model.dep_ut'
+S'boolean'
p33
-S'vector_boolean'
+sS'model.blocktype'
p34
-sS'exprs'
+g27
+sS'model.dep_ut'
p35
+S'vector_boolean'
+p36
+sS'exprs'
+p37
g2
sS'gr_i'
-p36
-g28
+p38
+g30
sS'ipar'
-p37
+p39
g2
sS'y'
-p38
-g28
+p40
+g30
sS'x'
-p39
-g28
+p41
+g30
sS'model'
-p40
+p42
g12
s. \ No newline at end of file