summaryrefslogtreecommitdiff
path: root/data_structures_correct/TEXT_f.js
diff options
context:
space:
mode:
authorASP12342016-07-11 10:17:07 +0000
committerASP12342016-07-11 10:17:07 +0000
commit8e529734b561f0d50d1abf853fc5b985477d94ec (patch)
tree9fc21fc80c27d3c48017bc6bd2f882e050e029d6 /data_structures_correct/TEXT_f.js
parent7c3b6c0f2ebf4a41266c9d5dfcb77fb1c731a064 (diff)
downloadxcos-on-web-8e529734b561f0d50d1abf853fc5b985477d94ec.tar.gz
xcos-on-web-8e529734b561f0d50d1abf853fc5b985477d94ec.tar.bz2
xcos-on-web-8e529734b561f0d50d1abf853fc5b985477d94ec.zip
Implement TEXT_f Block
Diffstat (limited to 'data_structures_correct/TEXT_f.js')
-rw-r--r--data_structures_correct/TEXT_f.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/data_structures_correct/TEXT_f.js b/data_structures_correct/TEXT_f.js
new file mode 100644
index 0000000..cb5a481
--- /dev/null
+++ b/data_structures_correct/TEXT_f.js
@@ -0,0 +1,25 @@
+function TEXT_f() {
+
+ TEXT_f.prototype.define = function TEXT_f() {
+ this.font = 2;
+ this.siz = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["text"]);
+ model.rpar = new ScilabString(["Text"]);
+ model.ipar = new ScilabDouble([this.font], [this.siz]);
+
+ var exprs = ["Text", this.font, this.siz];
+
+ var graphics = scicos_graphics();
+ graphics.orig = new ScilabDouble([0, 0]);
+ graphics.sz = new ScilabDouble([2, 1]);
+ graphics.exprs = new ScilabString(exprs);
+ this.x = mlist(["Text", "graphics", "model", "void", "gui"], new ScilabString(["Text", "graphics", "model", "void", "gui"]), graphics, model, new ScilabString([" "]), new ScilabString(["TEXT_f"]));
+ return new TextBlock(this.x);
+ }
+
+ TEXT_f.prototype.details = function TEXT_f() {
+ return this.x;
+ }
+}