2
0
Эх сурвалжийг харах

Removed statusDomElement.

Mr.doob 9 жил өмнө
parent
commit
36c7a7beec

+ 0 - 5
docs/api/loaders/Loader.html

@@ -69,11 +69,6 @@
 		Extract the base from the URL.
 		</div>
 
-		<h3>[method:DOMElement addStatusElement]()</h3>
-		<div>
-		Add a DOM element to indicate the progress and return the DOMElement
-		</div>
-
 
 		<h2>Source</h2>
 

+ 2 - 26
editor/js/libs/tern-threejs/threejs.js

@@ -2268,14 +2268,6 @@
           "!type": "boolean",
           "!doc": "If true, the ajax request will use cookies."
         },
-        "showStatus": {
-          "!type": "bool",
-          "!doc": "If true, show loading status in the statusDomElement."
-        },
-        "statusDomElement": {
-          "!type": "DOMElement",
-          "!doc": "This is the recipient of status messages."
-        },
         "onLoadStart": {
           "!type": "function",
           "!doc": "The default is a function with empty body."
@@ -2311,26 +2303,14 @@
         "extractUrlBase": {
           "!type": "fn(url: string) -> string",
           "!doc": "Extract the base from the URL."
-        },
-        "addStatusElement": {
-          "!type": "fn() -> DOMElement",
-          "!doc": "Add a DOM element to indicate the progress and return the DOMElement"
         }
       },
       "!doc": "A loader for loading objects in JSON format.",
-      "!type": "fn(showStatus: bool)"
+      "!type": "fn()"
     },
     "Loader": {
       "!url": "http://threejs.org/docs/#Reference/loaders/Loader",
       "prototype": {
-        "showStatus": {
-          "!type": "bool",
-          "!doc": "If true, show loading status in the statusDomElement."
-        },
-        "statusDomElement": {
-          "!type": "DOMElement",
-          "!doc": "This is the recipient of status messages."
-        },
         "onLoadStart": {
           "!type": "function",
           "!doc": "The default is a function with empty body."
@@ -2362,14 +2342,10 @@
         "extractUrlBase": {
           "!type": "fn(url: string) -> string",
           "!doc": "Extract the base from the URL."
-        },
-        "addStatusElement": {
-          "!type": "fn() -> DOMElement",
-          "!doc": "Add a DOM element to indicate the progress and return the DOMElement"
         }
       },
       "!doc": "Base class for implementing loaders.",
-      "!type": "fn(showStatus: bool)"
+      "!type": "fn()"
     },
     "LoadingManager": {
       "!url": "http://threejs.org/docs/#Reference/loaders/LoadingManager",

+ 0 - 15
examples/js/loaders/BinaryLoader.js

@@ -19,21 +19,6 @@ THREE.BinaryLoader.prototype = {
 
 	constructor: THREE.BinaryLoader,
 
-	// Deprecated
-	
-	get statusDomElement () {
-
-		if ( this._statusDomElement === undefined ) {
-
-			this._statusDomElement = document.createElement( 'div' );
-
-		}
-
-		console.warn( 'THREE.BinaryLoader: .statusDomElement has been removed.' );
-		return this._statusDomElement;
-
-	},
-
 	// Load models generated by slim OBJ converter with BINARY option (converter_obj_three_slim.py -t binary)
 	//  - binary models consist of two files: JS and BIN
 	//  - parameters

+ 2 - 2
examples/js/loaders/FBXLoader.js

@@ -16,9 +16,9 @@
 
 ( function() {
 
-	THREE.FBXLoader = function ( showStatus, manager ) {
+	THREE.FBXLoader = function ( manager ) {
 
-		THREE.Loader.call( this, showStatus );
+		THREE.Loader.call( this );
 		this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
 		this.textureLoader = null;
 		this.textureBasePath = null;

+ 2 - 2
examples/js/loaders/MMDLoader.js

@@ -33,9 +33,9 @@
  *  - shadow support.
  */
 
-THREE.MMDLoader = function ( showStatus, manager ) {
+THREE.MMDLoader = function ( manager ) {
 
-	THREE.Loader.call( this, showStatus );
+	THREE.Loader.call( this );
 	this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
 	this.defaultTexturePath = './models/default/';
 

+ 0 - 19
examples/js/loaders/ctm/CTMLoader.js

@@ -12,25 +12,6 @@ THREE.CTMLoader = function () {
 
 	THREE.Loader.call( this );
 
-	// Deprecated
-	
-	Object.defineProperties( this, {
-		statusDomElement: {
-			get: function () {
-
-				if ( this._statusDomElement === undefined ) {
-
-					this._statusDomElement = document.createElement( 'div' );
-
-				}
-
-				console.warn( 'THREE.BinaryLoader: .statusDomElement has been removed.' );
-				return this._statusDomElement;
-
-			}
-		},
-	} );
-
 };
 
 THREE.CTMLoader.prototype = Object.create( THREE.Loader.prototype );

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 144 - 144
examples/js/loaders/gltf/glTFLoader.js


+ 0 - 10
src/Three.Legacy.js

@@ -362,16 +362,6 @@ Object.defineProperties( THREE.BufferGeometry.prototype, {
 
 //
 
-Object.defineProperties( THREE.JSONLoader.prototype, {
-	statusDomElement: {
-		get: function () {
-			console.error( 'THREE.JSONLoader: .statusDomElement has been removed.' );
-		}
-	}
-} );
-
-//
-
 Object.defineProperties( THREE.Material.prototype, {
 	wrapAround: {
 		get: function () {

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно