Browse Source

Updated builds.

Mr.doob 4 years ago
parent
commit
eb6ab39c22
3 changed files with 105 additions and 18 deletions
  1. 43 8
      build/three.js
  2. 0 0
      build/three.min.js
  3. 62 10
      build/three.module.js

+ 43 - 8
build/three.js

@@ -9,7 +9,7 @@
 	(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
 	(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
 }(this, (function (exports) { 'use strict';
 }(this, (function (exports) { 'use strict';
 
 
-	const REVISION = '127';
+	const REVISION = '128dev';
 	const MOUSE = {
 	const MOUSE = {
 		LEFT: 0,
 		LEFT: 0,
 		MIDDLE: 1,
 		MIDDLE: 1,
@@ -19192,15 +19192,15 @@
 		}
 		}
 	});
 	});
 
 
-	function Bone() {
-		Object3D.call(this);
-		this.type = 'Bone';
+	class Bone extends Object3D {
+		constructor() {
+			super();
+			this.type = 'Bone';
+		}
+
 	}
 	}
 
 
-	Bone.prototype = Object.assign(Object.create(Object3D.prototype), {
-		constructor: Bone,
-		isBone: true
-	});
+	Bone.prototype.isBone = true;
 
 
 	const _offsetMatrix = /*@__PURE__*/new Matrix4();
 	const _offsetMatrix = /*@__PURE__*/new Matrix4();
 
 
@@ -26721,6 +26721,9 @@
 			this.intensity = intensity;
 			this.intensity = intensity;
 		}
 		}
 
 
+		dispose() {// Empty here in base class; some subclasses override.
+		}
+
 		copy(source) {
 		copy(source) {
 			super.copy(source);
 			super.copy(source);
 			this.color.copy(source.color);
 			this.color.copy(source.color);
@@ -26826,6 +26829,16 @@
 			return this._frameExtents;
 			return this._frameExtents;
 		}
 		}
 
 
+		dispose() {
+			if (this.map) {
+				this.map.dispose();
+			}
+
+			if (this.mapPass) {
+				this.mapPass.dispose();
+			}
+		}
+
 		copy(source) {
 		copy(source) {
 			this.camera = source.camera.clone();
 			this.camera = source.camera.clone();
 			this.bias = source.bias;
 			this.bias = source.bias;
@@ -26910,6 +26923,10 @@
 			this.intensity = power / Math.PI;
 			this.intensity = power / Math.PI;
 		}
 		}
 
 
+		dispose() {
+			this.shadow.dispose();
+		}
+
 		copy(source) {
 		copy(source) {
 			super.copy(source);
 			super.copy(source);
 			this.distance = source.distance;
 			this.distance = source.distance;
@@ -27013,6 +27030,10 @@
 			this.intensity = power / (4 * Math.PI);
 			this.intensity = power / (4 * Math.PI);
 		}
 		}
 
 
+		dispose() {
+			this.shadow.dispose();
+		}
+
 		copy(source) {
 		copy(source) {
 			super.copy(source);
 			super.copy(source);
 			this.distance = source.distance;
 			this.distance = source.distance;
@@ -27143,6 +27164,10 @@
 			this.shadow = new DirectionalLightShadow();
 			this.shadow = new DirectionalLightShadow();
 		}
 		}
 
 
+		dispose() {
+			this.shadow.dispose();
+		}
+
 		copy(source) {
 		copy(source) {
 			super.copy(source);
 			super.copy(source);
 			this.target = source.target.clone();
 			this.target = source.target.clone();
@@ -32674,6 +32699,11 @@
 			geometry.getAttribute('position').needsUpdate = true;
 			geometry.getAttribute('position').needsUpdate = true;
 		}
 		}
 
 
+		dispose() {
+			this.geometry.dispose();
+			this.material.dispose();
+		}
+
 	}
 	}
 
 
 	function setPoint(point, pointMap, geometry, camera, x, y, z) {
 	function setPoint(point, pointMap, geometry, camera, x, y, z) {
@@ -32936,6 +32966,11 @@
 			this.type = 'AxesHelper';
 			this.type = 'AxesHelper';
 		}
 		}
 
 
+		dispose() {
+			this.geometry.dispose();
+			this.material.dispose();
+		}
+
 	}
 	}
 
 
 	const _floatView = new Float32Array(1);
 	const _floatView = new Float32Array(1);

File diff suppressed because it is too large
+ 0 - 0
build/three.min.js


+ 62 - 10
build/three.module.js

@@ -3,7 +3,7 @@
  * Copyright 2010-2021 Three.js Authors
  * Copyright 2010-2021 Three.js Authors
  * SPDX-License-Identifier: MIT
  * SPDX-License-Identifier: MIT
  */
  */
-const REVISION = '127';
+const REVISION = '128dev';
 const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
 const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
 const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
 const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
 const CullFaceNone = 0;
 const CullFaceNone = 0;
@@ -26440,21 +26440,19 @@ SkinnedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
 
 
 } );
 } );
 
 
-function Bone() {
+class Bone extends Object3D {
 
 
-	Object3D.call( this );
-
-	this.type = 'Bone';
+	constructor() {
 
 
-}
+		super();
 
 
-Bone.prototype = Object.assign( Object.create( Object3D.prototype ), {
+		this.type = 'Bone';
 
 
-	constructor: Bone,
+	}
 
 
-	isBone: true
+}
 
 
-} );
+Bone.prototype.isBone = true;
 
 
 const _offsetMatrix = /*@__PURE__*/ new Matrix4();
 const _offsetMatrix = /*@__PURE__*/ new Matrix4();
 const _identityMatrix = /*@__PURE__*/ new Matrix4();
 const _identityMatrix = /*@__PURE__*/ new Matrix4();
@@ -37290,6 +37288,12 @@ class Light extends Object3D {
 
 
 	}
 	}
 
 
+	dispose() {
+
+		// Empty here in base class; some subclasses override.
+
+	}
+
 	copy( source ) {
 	copy( source ) {
 
 
 		super.copy( source );
 		super.copy( source );
@@ -37441,6 +37445,22 @@ class LightShadow {
 
 
 	}
 	}
 
 
+	dispose() {
+
+		if ( this.map ) {
+
+			this.map.dispose();
+
+		}
+
+		if ( this.mapPass ) {
+
+			this.mapPass.dispose();
+
+		}
+
+	}
+
 	copy( source ) {
 	copy( source ) {
 
 
 		this.camera = source.camera.clone();
 		this.camera = source.camera.clone();
@@ -37561,6 +37581,12 @@ class SpotLight extends Light {
 
 
 	}
 	}
 
 
+	dispose() {
+
+		this.shadow.dispose();
+
+	}
+
 	copy( source ) {
 	copy( source ) {
 
 
 		super.copy( source );
 		super.copy( source );
@@ -37701,6 +37727,12 @@ class PointLight extends Light {
 
 
 	}
 	}
 
 
+	dispose() {
+
+		this.shadow.dispose();
+
+	}
+
 	copy( source ) {
 	copy( source ) {
 
 
 		super.copy( source );
 		super.copy( source );
@@ -37880,6 +37912,12 @@ class DirectionalLight extends Light {
 
 
 	}
 	}
 
 
+	dispose() {
+
+		this.shadow.dispose();
+
+	}
+
 	copy( source ) {
 	copy( source ) {
 
 
 		super.copy( source );
 		super.copy( source );
@@ -45861,6 +45899,13 @@ class CameraHelper extends LineSegments {
 
 
 	}
 	}
 
 
+	dispose() {
+
+		this.geometry.dispose();
+		this.material.dispose();
+
+	}
+
 }
 }
 
 
 
 
@@ -46194,6 +46239,13 @@ class AxesHelper extends LineSegments {
 
 
 	}
 	}
 
 
+	dispose() {
+
+		this.geometry.dispose();
+		this.material.dispose();
+
+	}
+
 }
 }
 
 
 const _floatView = new Float32Array( 1 );
 const _floatView = new Float32Array( 1 );

Some files were not shown because too many files changed in this diff