From 607f69c67a5b4dc72d2754192e3cdf67d0ad11d0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 3 Jun 2014 16:24:10 -0400 Subject: partitioning client and serveR --- .../javascripts/environments/tableaux/columns.js | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 client/assets/javascripts/environments/tableaux/columns.js (limited to 'client/assets/javascripts/environments/tableaux/columns.js') diff --git a/client/assets/javascripts/environments/tableaux/columns.js b/client/assets/javascripts/environments/tableaux/columns.js new file mode 100644 index 0000000..e961315 --- /dev/null +++ b/client/assets/javascripts/environments/tableaux/columns.js @@ -0,0 +1,36 @@ +MX.Tableaux.Columns = MX.Tableau.extend({ + + init: function (opt) { + + this.opt = opt = defaults(opt, { + width: 10, + height: 10, + depth: 10, + x: 0, + y: 0, + z: 0, + rotationY: 0, + rotationX: 0, + scale: 1, + count: 3, + spacingX: 0, + spacingZ: 100, + }) + + for (var i = 0; i < opt.count; i++) { + var scalebox = new MX.ScaleBox({ + "width": opt.width, + "height": opt.height, + "depth": opt.depth, + "x": opt.x + opt.spacingX * i, + "y": opt.y, + "z": opt.z + opt.spacingZ * i, + "color": opt.color, + "sides": "top bottom left right front back" + }); + scene.add(scalebox) + } + + } + +}) -- cgit v1.2.3-70-g09d2