aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-20 11:14:44 -0800
committerNivesh Rajbhandari2012-02-20 11:14:44 -0800
commitabf78e2d7a97d295ce5a1c425fd359d47379137e (patch)
treed08c91bd2aef31e6325e0b499b2ffc390018bec6 /js/helper-classes
parente80a79bff57fecf3aa9b869d8ed2de5fd815287c (diff)
parente23708721a71ca4c71365f5f8e8ac7d6113926db (diff)
downloadninja-abf78e2d7a97d295ce5a1c425fd359d47379137e.tar.gz
Merge branch 'refs/heads/ninja-internal' into ToolFixes
Diffstat (limited to 'js/helper-classes')
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/GLMatrix/gl-matrix.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/GLMatrix/notice.txt0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/LinePlaneIntersectRec.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/ParseUtils.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/Rectangle.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/StageLine.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/draw-utils.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/element-planes.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/glUtils.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/hit-record.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/math-utils.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/snap-2d-record.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/snap-manager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/vec-utils.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/3D/view-utils.js42
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLAnchorPoint.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLBrushStroke.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLCircle.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLGeomObj.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLLight.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLLine.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLMaterial.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLPath.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLRectangle.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLSubpath.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLWorld.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/Materials/BumpMetalMaterial.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/Materials/FlatMaterial.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/Materials/LinearGradientMaterial.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/Materials/RadialGradientMaterial.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/Materials/UberMaterial.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/MaterialsLibrary.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/precompiled.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/rdge-compiled.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/MeshManager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/RenderInitProcs.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/RenderProcs.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/ScreenQuad.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/ShaderManager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/TextureManager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/animation.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/box.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/camera.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/engine.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/fx/blur.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/fx/ssao.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/init_state.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/input.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/jpass.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/jshader.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/lightmanager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/math/mat4.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/math/quat.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/math/vec2.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/math/vec3.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/math/vec4.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/objectManager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/particle.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/precompiled.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/renderUtils.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/rendercontext.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/renderer.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/run_state.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/runtime.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/scenegraph.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/scenegraphNodes.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/shadowLight.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/sockets.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/ubershader.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/util/dbgpanel.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/util/fpsTracker.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/util/statTracker.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/utilities.js0
73 files changed, 15 insertions, 27 deletions
diff --git a/js/helper-classes/3D/GLMatrix/gl-matrix.js b/js/helper-classes/3D/GLMatrix/gl-matrix.js
index 811ed5cd..811ed5cd 100644..100755
--- a/js/helper-classes/3D/GLMatrix/gl-matrix.js
+++ b/js/helper-classes/3D/GLMatrix/gl-matrix.js
diff --git a/js/helper-classes/3D/GLMatrix/notice.txt b/js/helper-classes/3D/GLMatrix/notice.txt
index 8903aa97..8903aa97 100644..100755
--- a/js/helper-classes/3D/GLMatrix/notice.txt
+++ b/js/helper-classes/3D/GLMatrix/notice.txt
diff --git a/js/helper-classes/3D/LinePlaneIntersectRec.js b/js/helper-classes/3D/LinePlaneIntersectRec.js
index e075dd3d..e075dd3d 100644..100755
--- a/js/helper-classes/3D/LinePlaneIntersectRec.js
+++ b/js/helper-classes/3D/LinePlaneIntersectRec.js
diff --git a/js/helper-classes/3D/ParseUtils.js b/js/helper-classes/3D/ParseUtils.js
index 556253e9..556253e9 100644..100755
--- a/js/helper-classes/3D/ParseUtils.js
+++ b/js/helper-classes/3D/ParseUtils.js
diff --git a/js/helper-classes/3D/Rectangle.js b/js/helper-classes/3D/Rectangle.js
index e797eedf..e797eedf 100644..100755
--- a/js/helper-classes/3D/Rectangle.js
+++ b/js/helper-classes/3D/Rectangle.js
diff --git a/js/helper-classes/3D/StageLine.js b/js/helper-classes/3D/StageLine.js
index e0e7a8e3..e0e7a8e3 100644..100755
--- a/js/helper-classes/3D/StageLine.js
+++ b/js/helper-classes/3D/StageLine.js
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js
index c07391db..c07391db 100644..100755
--- a/js/helper-classes/3D/draw-utils.js
+++ b/js/helper-classes/3D/draw-utils.js
diff --git a/js/helper-classes/3D/element-planes.js b/js/helper-classes/3D/element-planes.js
index 7ccf311e..7ccf311e 100644..100755
--- a/js/helper-classes/3D/element-planes.js
+++ b/js/helper-classes/3D/element-planes.js
diff --git a/js/helper-classes/3D/glUtils.js b/js/helper-classes/3D/glUtils.js
index f6d075f8..f6d075f8 100644..100755
--- a/js/helper-classes/3D/glUtils.js
+++ b/js/helper-classes/3D/glUtils.js
diff --git a/js/helper-classes/3D/hit-record.js b/js/helper-classes/3D/hit-record.js
index 5546cc5a..5546cc5a 100644..100755
--- a/js/helper-classes/3D/hit-record.js
+++ b/js/helper-classes/3D/hit-record.js
diff --git a/js/helper-classes/3D/math-utils.js b/js/helper-classes/3D/math-utils.js
index 37044763..37044763 100644..100755
--- a/js/helper-classes/3D/math-utils.js
+++ b/js/helper-classes/3D/math-utils.js
diff --git a/js/helper-classes/3D/snap-2d-record.js b/js/helper-classes/3D/snap-2d-record.js
index c77b28b3..c77b28b3 100644..100755
--- a/js/helper-classes/3D/snap-2d-record.js
+++ b/js/helper-classes/3D/snap-2d-record.js
diff --git a/js/helper-classes/3D/snap-manager.js b/js/helper-classes/3D/snap-manager.js
index 0a950658..0a950658 100644..100755
--- a/js/helper-classes/3D/snap-manager.js
+++ b/js/helper-classes/3D/snap-manager.js
diff --git a/js/helper-classes/3D/vec-utils.js b/js/helper-classes/3D/vec-utils.js
index ceff4f64..ceff4f64 100644..100755
--- a/js/helper-classes/3D/vec-utils.js
+++ b/js/helper-classes/3D/vec-utils.js
diff --git a/js/helper-classes/3D/view-utils.js b/js/helper-classes/3D/view-utils.js
index c8e20def..a2fac34f 100644..100755
--- a/js/helper-classes/3D/view-utils.js
+++ b/js/helper-classes/3D/view-utils.js
@@ -4,16 +4,16 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. 4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */ 5</copyright> */
6 6
7var vecUtils = require("js/helper-classes/3D/vec-utils").VecUtils, 7var Montage = require("montage/core/core").Montage,
8 snapManagerModule = require("js/helper-classes/3D/snap-manager"), 8 Component = require("montage/ui/component").Component,
9 vecUtils = require("js/helper-classes/3D/vec-utils").VecUtils,
9 Rectangle = require("js/helper-classes/3D/rectangle").Rectangle, 10 Rectangle = require("js/helper-classes/3D/rectangle").Rectangle,
10 ElementsMediator = require("js/mediators/element-mediator").ElementMediator; 11 ElementsMediator = require("js/mediators/element-mediator").ElementMediator;
11/////////////////////////////////////////////////////////////////////// 12///////////////////////////////////////////////////////////////////////
12// Class ViewUtils 13// Class ViewUtils
13// Viewing Utility functions 14// Viewing Utility functions
14/////////////////////////////////////////////////////////////////////// 15///////////////////////////////////////////////////////////////////////
15var ViewUtils = exports.ViewUtils = Object.create(Object.prototype, 16exports.ViewUtils = Montage.create(Component, {
16{
17 /////////////////////////////////////////////////////////////////////// 17 ///////////////////////////////////////////////////////////////////////
18 // Instance variables 18 // Instance variables
19 /////////////////////////////////////////////////////////////////////// 19 ///////////////////////////////////////////////////////////////////////
@@ -133,7 +133,7 @@ var ViewUtils = exports.ViewUtils = Object.create(Object.prototype,
133 var xVec = [mat[0], mat[1], mat[2], mat[3]]; 133 var xVec = [mat[0], mat[1], mat[2], mat[3]];
134 var yVec = [mat[4], mat[5], mat[6], mat[7]]; 134 var yVec = [mat[4], mat[5], mat[6], mat[7]];
135 135
136 var stage = snapManagerModule.SnapManager.getStage(); 136 var stage = this.application.ninja.currentDocument.documentRoot;
137 var stageMat = this.getMatrixFromElement(stage); 137 var stageMat = this.getMatrixFromElement(stage);
138 var stagePlane = [stageMat[8], stageMat[9], stageMat[10], stageMat[11]]; 138 var stagePlane = [stageMat[8], stageMat[9], stageMat[10], stageMat[11]];
139 139
@@ -412,7 +412,7 @@ var ViewUtils = exports.ViewUtils = Object.create(Object.prototype,
412 // get the four corners of the element in global space 412 // get the four corners of the element in global space
413 var bounds = this.getElementViewBounds3D( elt ); 413 var bounds = this.getElementViewBounds3D( elt );
414 var bounds3D = new Array(); 414 var bounds3D = new Array();
415 var stage = snapManagerModule.SnapManager.getStage(); 415 var stage = this.application.ninja.currentDocument.documentRoot;
416 for (var i=0; i<3; i++) 416 for (var i=0; i<3; i++)
417 { 417 {
418 var gPt = this.localToGlobal( bounds[i], elt );