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/TEXT_f.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/TEXT_f.js')
-rw-r--r-- | js/Misc/TEXT_f.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/Misc/TEXT_f.js b/js/Misc/TEXT_f.js index 85cd9cf1..8e36e155 100644 --- a/js/Misc/TEXT_f.js +++ b/js/Misc/TEXT_f.js @@ -3,16 +3,16 @@ function TEXT_f() { TEXT_f.prototype.define = function TEXT_f() { this.font = 2; this.siz = 1; - model = scicos_model(); - model.sim = "text"; - model.rpar = "Text"; - model.ipar = [[this.font],[this.siz]]; + this.model = scicos_model(); + this.model.sim = new ScilabString("text"); + this.model.rpar = new ScilabString("Text"); + this.model.ipar = [[this.font],[this.siz]]; exprs = [["Text"],[string(this.font)],[string(this.siz)]]; graphics = scicos_graphics(); graphics.orig = [0,0]; graphics.sz = [2,1]; graphics.exprs = exprs; - this.x = mlist(["Text","graphics","model","void","gui"],graphics,model," ","TEXT_f"); + this.x = mlist(["Text","graphics","model","void","gui"],graphics,this.model," ","TEXT_f"); return new TextBlock(this.x); } TEXT_f.prototype.details = function TEXT_f() { @@ -34,7 +34,7 @@ function TEXT_f() { graphics = arg1.graphics; orig = graphics.orig; exprs = graphics.exprs; - model = arg1.model; + this.model = arg1.model; if (size(exprs,"*")==1) { exprs = [[exprs],["3"],["1"]]; } @@ -67,9 +67,9 @@ function TEXT_f() { graphics.sz = sz; this.x.graphics = graphics; ipar = [[this.font],[this.siz]]; - model.rpar = this.txt; - model.ipar = ipar; - this.x.model = model; + this.model.rpar = new ScilabDouble(this.txt); + this.model.ipar = ipar; + this.x.model = this.model; break; } } |