From 84332ab81c1b445195f1d9be8bbeae0725c8e758 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 6 Mar 2012 10:58:25 -0800 Subject: Squashed commit of preload-fix into Master - Requiring all the previously pre-loaded files - RDGE, Codemirror and gl-matrix are not included via a script tag. Signed-off-by: Valerio Virgillito --- js/stage/stage-deps.js | 4 ++-- js/stage/tool-handle.js | 60 ++++++++++++++++++++++++------------------------- 2 files changed, 32 insertions(+), 32 deletions(-) (limited to 'js/stage') diff --git a/js/stage/stage-deps.js b/js/stage/stage-deps.js index 16f2c652..a71b77be 100755 --- a/js/stage/stage-deps.js +++ b/js/stage/stage-deps.js @@ -125,7 +125,7 @@ exports.StageDeps = Montage.create(Component, { handleOpenDocument: { value: function() { - workingPlane = Vector.create( [0,0,1,0] ); + workingPlane = [0,0,1,0]; snapManager.setCurrentStage(this.currentStage); @@ -151,7 +151,7 @@ exports.StageDeps = Montage.create(Component, { reinitializeForSwitchDocument: { value: function() { - workingPlane = Vector.create( [0,0,1,0] ); + workingPlane = [0,0,1,0]; snapManager.setCurrentStage(this.currentStage); diff --git a/js/stage/tool-handle.js b/js/stage/tool-handle.js index 03513de7..f16d8324 100755 --- a/js/stage/tool-handle.js +++ b/js/stage/tool-handle.js @@ -204,19 +204,19 @@ exports.RotateHandle = Montage.create(ToolHandle, { switch(this._axis) { case "x": - this._vec = Vector.create([1, 0, 0]); - this._vec2 = Vector.create([0, 1, 0]); - this._vec3 = Vector.create([0, 0, 1]); + this._vec = [1, 0, 0]; + this._vec2 = [0, 1, 0]; + this._vec3 = [0, 0, 1]; break; case "y": - this._vec = Vector.create([0, 1, 0]); - this._vec2 = Vector.create([1, 0, 0]); - this._vec3 = Vector.create([0, 0, 1]); + this._vec = [0, 1, 0]; + this._vec2 = [1, 0, 0]; + this._vec3 = [0, 0, 1]; break; case "z": - this._vec = Vector.create([0, 0, 1]); - this._vec2 = Vector.create([1, 0, 0]); - this._vec3 = Vector.create([0, 1, 0]); + this._vec = [0, 0, 1]; + this._vec2 = [1, 0, 0]; + this._vec3 = [0, 1, 0]; break; } @@ -254,7 +254,7 @@ exports.RotateHandle = Montage.create(ToolHandle, { this._planeEq2 = MathUtils.transformVector(this._vec2, transMat); this._planeEq3 = MathUtils.transformVector(this._vec3, transMat); - var viewVec = Vector.create([0, 0, 1]); + var viewVec = [0, 0, 1]; var angle2 = MathUtils.getAngleBetweenVectors(this._planeEq2, viewVec); var angle3 = MathUtils.getAngleBetweenVectors(this._planeEq3, viewVec); @@ -279,7 +279,7 @@ exports.RotateHandle = Montage.create(ToolHandle, { context.beginPath(); - var pt = Vector.create( [this._radius, 0.0, 0.0] ); + var pt = [this._radius, 0.0, 0.0]; var pts; for (var i=0; i