فهرست منبع

Moved more code to Three.Legacy.

Mr.doob 9 سال پیش
والد
کامیت
dd68058e84
4فایلهای تغییر یافته به همراه13 افزوده شده و 18 حذف شده
  1. 12 11
      src/Three.Legacy.js
  2. 1 3
      src/extras/core/Curve.js
  3. 0 2
      src/extras/core/Shape.js
  4. 0 2
      src/extras/geometries/BoxGeometry.js

+ 12 - 11
src/Three.Legacy.js

@@ -377,6 +377,13 @@ Object.defineProperties( THREE.BufferGeometry.prototype, {
 	}
 } );
 
+THREE.TextGeometry = function () {
+
+	console.error( 'THREE.TextGeometry has been moved to /examples/js/geometries/TextGeometry.js' );
+	console.error( 'THREE.FontUtils has been moved to /examples/js/utils/FontUtils.js' );
+
+};
+
 //
 
 Object.defineProperties( THREE.Material.prototype, {
@@ -729,13 +736,13 @@ THREE.ImageUtils = {
 
 	loadCompressedTexture: function () {
 
-		console.error( 'THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.' )
+		console.error( 'THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.' );
 
 	},
 
 	loadCompressedTextureCube: function () {
 
-		console.error( 'THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.' )
+		console.error( 'THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.' );
 
 	}
 
@@ -785,13 +792,7 @@ THREE.CanvasRenderer = function () {
 
 //
 
-THREE.TextGeometry = function () {
-
-	console.error( 'THREE.TextGeometry has been moved to /examples/js/geometries/TextGeometry.js' );
-	console.error( 'THREE.FontUtils has been moved to /examples/js/utils/FontUtils.js' );
-
-};
-
-//
-
+THREE.Curve.Utils = THREE.CurveUtils;
+THREE.CubeGeometry = THREE.BoxGeometry;
 THREE.MeshFaceMaterial = THREE.MultiMaterial;
+THREE.Shape.Utils = THREE.ShapeUtils;

+ 1 - 3
src/extras/core/Curve.js

@@ -264,9 +264,7 @@ THREE.Curve.prototype = {
 
 	}
 
-}
-
-THREE.Curve.Utils = THREE.CurveUtils; // backwards compatibility
+};
 
 // TODO: Transformation for Curves?
 

+ 0 - 2
src/extras/core/Shape.js

@@ -71,5 +71,3 @@ THREE.Shape.prototype.extractPoints = function ( divisions ) {
 	return this.extractAllPoints( divisions );
 
 };
-
-THREE.Shape.Utils = THREE.ShapeUtils; // backwards compatibility

+ 0 - 2
src/extras/geometries/BoxGeometry.js

@@ -125,5 +125,3 @@ THREE.BoxGeometry = function ( width, height, depth, widthSegments, heightSegmen
 
 THREE.BoxGeometry.prototype = Object.create( THREE.Geometry.prototype );
 THREE.BoxGeometry.prototype.constructor = THREE.BoxGeometry;
-
-THREE.CubeGeometry = THREE.BoxGeometry; // backwards compatibility