浏览代码

* Minor tweaks on Rectangle.js

Mr.doob 15 年之前
父节点
当前提交
b978e9e592
共有 3 个文件被更改,包括 2 次插入3 次删除
  1. 0 0
      build/Three.js
  2. 0 0
      build/ThreeDebug.js
  3. 2 3
      src/core/Rectangle.js

文件差异内容过多而无法显示
+ 0 - 0
build/Three.js


文件差异内容过多而无法显示
+ 0 - 0
build/ThreeDebug.js


+ 2 - 3
src/core/Rectangle.js

@@ -5,8 +5,7 @@
 THREE.Rectangle = function () {
 
 	var _left, _top, _right, _bottom,
-	_width, _height,
-	_isEmpty = true;
+	_width, _height, _isEmpty = true;
 
 	function resize() {
 
@@ -171,7 +170,7 @@ THREE.Rectangle = function () {
 
 	this.toString = function () {
 
-		return "THREE.Rectangle (x1: " + _left + ", y1: " + _bottom + ", x2: " + _right + ", y1: " + _top + ", width: " + _width + ", height: " + _height + ")";
+		return "THREE.Rectangle ( left: " + _left + ", right: " + _right + ", top: " + _top + ", bottom: " + _bottom + ", width: " + _width + ", height: " + _height + " )";
 
 	};
 

部分文件因为文件数量过多而无法显示