diff options
author | Sunil Shetye | 2018-07-09 11:43:39 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-09 12:16:25 +0530 |
commit | 62b1d7dd9183ed75733b44104890586b03818214 (patch) | |
tree | 9859e9ca295df98df945bd5fcccc3a264e8bede1 /js/Misc/func_block.js | |
parent | 5c011853630a1b466ef4789d5b600dd530d0a3ec (diff) | |
download | sci2js-62b1d7dd9183ed75733b44104890586b03818214.tar.gz sci2js-62b1d7dd9183ed75733b44104890586b03818214.tar.bz2 sci2js-62b1d7dd9183ed75733b44104890586b03818214.zip |
support ScilabBoolean, ScilabDouble, ScilabString
Diffstat (limited to 'js/Misc/func_block.js')
-rw-r--r-- | js/Misc/func_block.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/js/Misc/func_block.js b/js/Misc/func_block.js index e275af9e..9beb288c 100644 --- a/js/Misc/func_block.js +++ b/js/Misc/func_block.js @@ -1,15 +1,15 @@ /* autogenerated from "macros/Misc/func_block.sci" */ function func_block() { func_block.prototype.define = function func_block() { - model = scicos_model(); - model.sim = " "; - model.in1 = 1; - model.out = 1; - model.blocktype = "c"; - model.dep_ut = [true,false]; + this.model = scicos_model(); + this.model.sim = new ScilabString(" "); + this.model.in1 = new ScilabDouble(1); + this.model.out = new ScilabDouble(1); + this.model.blocktype = new ScilabString("c"); + this.model.dep_ut = [true,false]; exprs = "v=sin(u);y=u*v"; gr_i = []; - this.x = standard_define([2,2],model,exprs,gr_i); + this.x = standard_define([2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } func_block.prototype.details = function func_block() { @@ -21,16 +21,16 @@ function func_block() { return options; } func_block.prototype.set = function func_block() { - model = arg1.model; + this.model = arg1.model; graphics = arg1.graphics; exprs = graphics.exprs; this.x = arg1; - model = this.x.model; + this.model = this.x.model; [ok,mac,exprs] = this.genfunc[exprs-1]; if (ok) { - model.sim = mac; + this.model.sim = new ScilabDouble(mac); graphics.exprs = exprs; - this.x.model = model; + this.x.model = this.model; this.x.graphics = graphics; } return new BasicBlock(this.x); |