Explorar o código

Updated builds.

Mr.doob %!s(int64=2) %!d(string=hai) anos
pai
achega
69b4ef22fe
Modificáronse 4 ficheiros con 43 adicións e 13 borrados
  1. 19 4
      build/three.cjs
  2. 19 4
      build/three.js
  3. 0 0
      build/three.min.js
  4. 5 5
      build/three.module.js

+ 19 - 4
build/three.cjs

@@ -5781,10 +5781,26 @@ class Triangle {
 	}
 }
 
+var id$1 = 0;
+function _classPrivateFieldLooseKey(name) {
+	return "__private_" + id$1++ + "_" + name;
+}
+function _classPrivateFieldLooseBase(receiver, privateKey) {
+	if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
+		throw new TypeError("attempted to use private field on non-instance");
+	}
+	return receiver;
+}
+
 let materialId = 0;
+var _alphaTest = /*#__PURE__*/_classPrivateFieldLooseKey("alphaTest");
 class Material extends EventDispatcher {
 	constructor() {
 		super();
+		Object.defineProperty(this, _alphaTest, {
+			writable: true,
+			value: 0
+		});
 		this.isMaterial = true;
 		Object.defineProperty(this, 'id', {
 			value: materialId++
@@ -5831,16 +5847,15 @@ class Material extends EventDispatcher {
 		this.toneMapped = true;
 		this.userData = {};
 		this.version = 0;
-		this._alphaTest = 0;
 	}
 	get alphaTest() {
-		return this._alphaTest;
+		return _classPrivateFieldLooseBase(this, _alphaTest)[_alphaTest];
 	}
 	set alphaTest(value) {
-		if (this._alphaTest > 0 !== value > 0) {
+		if (_classPrivateFieldLooseBase(this, _alphaTest)[_alphaTest] > 0 !== value > 0) {
 			this.version++;
 		}
-		this._alphaTest = value;
+		_classPrivateFieldLooseBase(this, _alphaTest)[_alphaTest] = value;
 	}
 	onBuild( /* shaderobject, renderer */) {}
 	onBeforeRender( /* renderer, scene, camera, geometry, object, group */) {}

+ 19 - 4
build/three.js

@@ -5783,10 +5783,26 @@
 		}
 	}
 
+	var id$1 = 0;
+	function _classPrivateFieldLooseKey(name) {
+		return "__private_" + id$1++ + "_" + name;
+	}
+	function _classPrivateFieldLooseBase(receiver, privateKey) {
+		if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
+			throw new TypeError("attempted to use private field on non-instance");
+		}
+		return receiver;
+	}
+
 	let materialId = 0;
+	var _alphaTest = /*#__PURE__*/_classPrivateFieldLooseKey("alphaTest");
 	class Material extends EventDispatcher {
 		constructor() {
 			super();
+			Object.defineProperty(this, _alphaTest, {
+				writable: true,
+				value: 0
+			});
 			this.isMaterial = true;
 			Object.defineProperty(this, 'id', {
 				value: materialId++
@@ -5833,16 +5849,15 @@
 			this.toneMapped = true;
 			this.userData = {};
 			this.version = 0;
-			this._alphaTest = 0;
 		}
 		get alphaTest() {
-			return this._alphaTest;
+			return _classPrivateFieldLooseBase(this, _alphaTest)[_alphaTest];
 		}
 		set alphaTest(value) {
-			if (this._alphaTest > 0 !== value > 0) {
+			if (_classPrivateFieldLooseBase(this, _alphaTest)[_alphaTest] > 0 !== value > 0) {
 				this.version++;
 			}
-			this._alphaTest = value;
+			_classPrivateFieldLooseBase(this, _alphaTest)[_alphaTest] = value;
 		}
 		onBuild( /* shaderobject, renderer */) {}
 		onBeforeRender( /* renderer, scene, camera, geometry, object, group */) {}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
build/three.min.js


+ 5 - 5
build/three.module.js

@@ -8699,6 +8699,8 @@ let materialId = 0;
 
 class Material extends EventDispatcher {
 
+	#alphaTest = 0;
+
 	constructor() {
 
 		super();
@@ -8766,25 +8768,23 @@ class Material extends EventDispatcher {
 
 		this.version = 0;
 
-		this._alphaTest = 0;
-
 	}
 
 	get alphaTest() {
 
-		return this._alphaTest;
+		return this.#alphaTest;
 
 	}
 
 	set alphaTest( value ) {
 
-		if ( this._alphaTest > 0 !== value > 0 ) {
+		if ( this.#alphaTest > 0 !== value > 0 ) {
 
 			this.version ++;
 
 		}
 
-		this._alphaTest = value;
+		this.#alphaTest = value;
 
 	}
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio