aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom/rectangle.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-05-02 16:50:38 -0700
committerNivesh Rajbhandari2012-05-02 16:50:38 -0700
commit7c77aa914eb96c2b5b797e37c16aa786c05f38e8 (patch)
treebc9d4d9f721552ca0b55299d217867c345f9db8b /js/lib/geom/rectangle.js
parenta809c6b3ba6f024922dd3f10bbc4ab456de2407e (diff)
downloadninja-7c77aa914eb96c2b5b797e37c16aa786c05f38e8.tar.gz
Converting geom-obj to object literal notation.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/lib/geom/rectangle.js')
-rwxr-xr-xjs/lib/geom/rectangle.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js
index 4b917b3c..d75abb05 100755
--- a/js/lib/geom/rectangle.js
+++ b/js/lib/geom/rectangle.js
@@ -158,7 +158,7 @@ exports.Rectangle = Object.create(GeomObj, {
158 }, 158 },
159 159
160 setTLRadius: { 160 setTLRadius: {
161 value: function(w) { 161 value: function(r) {
162 this._tlRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2); 162 this._tlRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2);
163 } 163 }
164 }, 164 },
@@ -170,7 +170,7 @@ exports.Rectangle = Object.create(GeomObj, {
170 }, 170 },
171 171
172 setTRRadius: { 172 setTRRadius: {
173 value: function(w) { 173 value: function(r) {
174 this._trRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2); 174 this._trRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2);
175 } 175 }
176 }, 176 },
@@ -182,7 +182,7 @@ exports.Rectangle = Object.create(GeomObj, {
182 }, 182 },
183 183
184 setBLRadius: { 184 setBLRadius: {
185 value: function(w) { 185 value: function(r) {
186 this._blRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2); 186 this._blRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2);
187 } 187 }
188 }, 188 },
@@ -194,7 +194,7 @@ exports.Rectangle = Object.create(GeomObj, {
194 }, 194 },
195 195
196 setBRRadius: { 196 setBRRadius: {
197 value: function(w) { 197 value: function(r) {
198 this._brRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2); 198 this._brRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2);
199 } 199 }
200 }, 200 },
@@ -1282,11 +1282,4 @@ RectangleGeometry.getVertex = RectangleFill.getVertex;
1282RectangleGeometry.getUV = RectangleFill.getUV; 1282RectangleGeometry.getUV = RectangleFill.getUV;
1283 1283
1284 1284
1285Rectangle.prototype = new GeomObj();
1286
1287if (typeof exports === "object") {
1288 exports.Rectangle = Rectangle;
1289}
1290
1291
1292 1285