From 648ee61ae84216d0236e0dbc211addc13b2cfa3a Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:52:06 -0700 Subject: Expand tabs --- js/helper-classes/3D/snap-2d-record.js | 84 +++++++++++++++++----------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'js/helper-classes/3D/snap-2d-record.js') diff --git a/js/helper-classes/3D/snap-2d-record.js b/js/helper-classes/3D/snap-2d-record.js index 26afaed2..59fa4b77 100755 --- a/js/helper-classes/3D/snap-2d-record.js +++ b/js/helper-classes/3D/snap-2d-record.js @@ -36,45 +36,45 @@ var viewUtils = require("js/helper-classes/3D/view-utils").ViewUtils; var snapManager = require("js/helper-classes/3D/snap-manager"); var Snap2DRecord = exports.Snap2DRecord = Object.create(Object.prototype, { - /////////////////////////////////////////////////////////////////////// - // Constant definitions - /////////////////////////////////////////////////////////////////////// - - /////////////////////////////////////////////////////////////////////// - // Instance variables - /////////////////////////////////////////////////////////////////////// - _elt : { value: null , writable: true}, // the four boundary points for the element in global screen space - _screenPtArray : { value: null , writable: true}, // snap point in global screen space - _alignPtArray : { value: null , writable: true}, // points for snap-align. Kept in working plane space - - _localToGlobalMat : { value: null, writable: true }, - _globalToLocalMat : { value: null, writable: true }, - - // indices to the extremal align points - _xMinArray : { value: [], writable: true }, - _xMaxArray : { value: [] , writable: true}, - _yMinArray : { value: [] , writable: true}, - _yMaxArray : { value: [] , writable: true}, - - /////////////////////////////////////////////////////////////////////// - // Property accessors - /////////////////////////////////////////////////////////////////////// - getElement: { value: function() { return this._elt; }}, - setElement: { value: function() { this._elt = e; }}, - - getScreenPointArray: { value: function() { return this._screenPtArray; }}, - getAlignPointArray: { value: function() { return this._alignPtArray; }}, - - getLocalToGlobalMatrix: { value: function() { return this._localToGlobalMat; }}, - setLocalToGlobalMatrix: { value: function() { this._localToGlobalMat = l2g.slice(0); }}, - - getGlobalToLocalMatrix: { value: function() { return this._globalToLocalMat; }}, - setGlobalToLocalMatrix: { value: function() { this._globalToLocalMat = g2l.slice(0); }}, - - /////////////////////////////////////////////////////////////////////// - // Methods - /////////////////////////////////////////////////////////////////////// - init: { + /////////////////////////////////////////////////////////////////////// + // Constant definitions + /////////////////////////////////////////////////////////////////////// + + /////////////////////////////////////////////////////////////////////// + // Instance variables + /////////////////////////////////////////////////////////////////////// + _elt : { value: null , writable: true}, // the four boundary points for the element in global screen space + _screenPtArray : { value: null , writable: true}, // snap point in global screen space + _alignPtArray : { value: null , writable: true}, // points for snap-align. Kept in working plane space + + _localToGlobalMat : { value: null, writable: true }, + _globalToLocalMat : { value: null, writable: true }, + + // indices to the extremal align points + _xMinArray : { value: [], writable: true }, + _xMaxArray : { value: [] , writable: true}, + _yMinArray : { value: [] , writable: true}, + _yMaxArray : { value: [] , writable: true}, + + /////////////////////////////////////////////////////////////////////// + // Property accessors + /////////////////////////////////////////////////////////////////////// + getElement: { value: function() { return this._elt; }}, + setElement: { value: function() { this._elt = e; }}, + + getScreenPointArray: { value: function() { return this._screenPtArray; }}, + getAlignPointArray: { value: function() { return this._alignPtArray; }}, + + getLocalToGlobalMatrix: { value: function() { return this._localToGlobalMat; }}, + setLocalToGlobalMatrix: { value: function() { this._localToGlobalMat = l2g.slice(0); }}, + + getGlobalToLocalMatrix: { value: function() { return this._globalToLocalMat; }}, + setGlobalToLocalMatrix: { value: function() { this._globalToLocalMat = g2l.slice(0); }}, + + /////////////////////////////////////////////////////////////////////// + // Methods + /////////////////////////////////////////////////////////////////////// + init: { value: function( elt ) { this._elt = elt; var bounds = viewUtils.getElementViewBounds3D( elt ); @@ -112,7 +112,7 @@ var Snap2DRecord = exports.Snap2DRecord = Object.create(Object.prototype, } }, - initAlignExtremalPoints: { + initAlignExtremalPoints: { value: function() { var xMinArray = [0], xMaxArray = [0], yMinArray = [0], yMaxArray = [0]; @@ -135,7 +135,7 @@ var Snap2DRecord = exports.Snap2DRecord = Object.create(Object.prototype, } }, - getScreenPoint: { + getScreenPoint: { value: function( index ) { var rtnPt; if ((index >= 0) && (index < 4) && (this._screenPtArray != null)) @@ -145,7 +145,7 @@ var Snap2DRecord = exports.Snap2DRecord = Object.create(Object.prototype, } }, - addAlignPoint: { + addAlignPoint: { value: function( pt ) { this._alignPtArray.push( pt ); } -- cgit v1.2.3 From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/helper-classes/3D/snap-2d-record.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/helper-classes/3D/snap-2d-record.js') diff --git a/js/helper-classes/3D/snap-2d-record.js b/js/helper-classes/3D/snap-2d-record.js index 59fa4b77..5119ae6f 100755 --- a/js/helper-classes/3D/snap-2d-record.js +++ b/js/helper-classes/3D/snap-2d-record.js @@ -39,14 +39,14 @@ var Snap2DRecord = exports.Snap2DRecord = Object.create(Object.prototype, /////////////////////////////////////////////////////////////////////// // Constant definitions /////////////////////////////////////////////////////////////////////// - + /////////////////////////////////////////////////////////////////////// // Instance variables /////////////////////////////////////////////////////////////////////// _elt : { value: null , writable: true}, // the four boundary points for the element in global screen space _screenPtArray : { value: null , writable: true}, // snap point in global screen space _alignPtArray : { value: null , writable: true}, // points for snap-align. Kept in working plane space - + _localToGlobalMat : { value: null, writable: true }, _globalToLocalMat : { value: null, writable: true }, -- cgit v1.2.3 From fdbec324dad4ab33d97282ab021d2c1661bc097c Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Mon, 9 Jul 2012 16:27:52 -0700 Subject: BSD License --- js/helper-classes/3D/snap-2d-record.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'js/helper-classes/3D/snap-2d-record.js') diff --git a/js/helper-classes/3D/snap-2d-record.js b/js/helper-classes/3D/snap-2d-record.js index 5119ae6f..e22b1b66 100755 --- a/js/helper-classes/3D/snap-2d-record.js +++ b/js/helper-classes/3D/snap-2d-record.js @@ -1,24 +1,25 @@ /* -Copyright (c) 2012, Motorola Mobility, Inc +Copyright (c) 2012, Motorola Mobility LLC. All Rights Reserved. -BSD License. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - Neither the name of Motorola Mobility nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. +* Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of Motorola Mobility LLC nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- cgit v1.2.3