浏览代码

Updated builds.

Mr.doob 4 年之前
父节点
当前提交
b986598adf
共有 3 个文件被更改,包括 92 次插入180 次删除
  1. 46 135
      build/three.js
  2. 0 0
      build/three.min.js
  3. 46 45
      build/three.module.js

+ 46 - 135
build/three.js

@@ -1305,9 +1305,7 @@
 				y = 0;
 			}
 
-			Object.defineProperty(this, 'isVector2', {
-				value: true
-			});
+			this.isVector2 = true;
 			this.x = x;
 			this.y = y;
 		}
@@ -1656,9 +1654,7 @@
 
 	var Matrix3 = /*#__PURE__*/function () {
 		function Matrix3() {
-			Object.defineProperty(this, 'isMatrix3', {
-				value: true
-			});
+			this.isMatrix3 = true;
 			this.elements = [1, 0, 0, 0, 1, 0, 0, 0, 1];
 
 			if (arguments.length > 0) {
@@ -2280,9 +2276,7 @@
 				w = 1;
 			}
 
-			Object.defineProperty(this, 'isVector4', {
-				value: true
-			});
+			this.isVector4 = true;
 			this.x = x;
 			this.y = y;
 			this.z = z;
@@ -2796,9 +2790,7 @@
 			var _this;
 
 			_this = _EventDispatcher.call(this) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isWebGLRenderTarget', {
-				value: true
-			});
+			_this.isWebGLRenderTarget = true;
 			_this.width = width;
 			_this.height = height;
 			_this.depth = 1;
@@ -2881,9 +2873,7 @@
 			var _this;
 
 			_this = _WebGLRenderTarget.call(this, width, height, options) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isWebGLMultisampleRenderTarget', {
-				value: true
-			});
+			_this.isWebGLMultisampleRenderTarget = true;
 			_this.samples = 4;
 			return _this;
 		}
@@ -2918,9 +2908,7 @@
 				w = 1;
 			}
 
-			Object.defineProperty(this, 'isQuaternion', {
-				value: true
-			});
+			this.isQuaternion = true;
 			this._x = x;
 			this._y = y;
 			this._z = z;
@@ -3465,9 +3453,7 @@
 				z = 0;
 			}
 
-			Object.defineProperty(this, 'isVector3', {
-				value: true
-			});
+			this.isVector3 = true;
 			this.x = x;
 			this.y = y;
 			this.z = z;
@@ -4008,9 +3994,7 @@
 
 	var Box3 = /*#__PURE__*/function () {
 		function Box3(min, max) {
-			Object.defineProperty(this, 'isBox3', {
-				value: true
-			});
+			this.isBox3 = true;
 			this.min = min !== undefined ? min : new Vector3(+Infinity, +Infinity, +Infinity);
 			this.max = max !== undefined ? max : new Vector3(-Infinity, -Infinity, -Infinity);
 		}
@@ -4926,9 +4910,7 @@
 
 	var Matrix4 = /*#__PURE__*/function () {
 		function Matrix4() {
-			Object.defineProperty(this, 'isMatrix4', {
-				value: true
-			});
+			this.isMatrix4 = true;
 			this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
 
 			if (arguments.length > 0) {
@@ -5708,9 +5690,7 @@
 				order = Euler.DefaultOrder;
 			}
 
-			Object.defineProperty(this, 'isEuler', {
-				value: true
-			});
+			this.isEuler = true;
 			this._x = x;
 			this._y = y;
 			this._z = z;
@@ -6613,9 +6593,7 @@
 
 	var Plane = /*#__PURE__*/function () {
 		function Plane(normal, constant) {
-			Object.defineProperty(this, 'isPlane', {
-				value: true
-			}); // normal is assumed to be normalized
+			this.isPlane = true; // normal is assumed to be normalized
 
 			this.normal = normal !== undefined ? normal : new Vector3(1, 0, 0);
 			this.constant = constant !== undefined ? constant : 0;
@@ -7543,9 +7521,7 @@
 
 	var Color = /*#__PURE__*/function () {
 		function Color(r, g, b) {
-			Object.defineProperty(this, 'isColor', {
-				value: true
-			});
+			this.isColor = true;
 
 			if (g === undefined && b === undefined) {
 				// r is THREE.Color, hex or string
@@ -10229,9 +10205,7 @@
 			}
 
 			_this = _WebGLRenderTarget.call(this, size, size, options) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isWebGLCubeRenderTarget', {
-				value: true
-			});
+			_this.isWebGLCubeRenderTarget = true;
 			options = options || {};
 			_this.texture = new CubeTexture(undefined, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding);
 			_this.texture._needsFlipEnvMap = false;
@@ -17137,9 +17111,7 @@
 
 			_this = _Object3D.call(this) || this;
 			_this.type = 'Group';
-			Object.defineProperty(_assertThisInitialized(_this), 'isGroup', {
-				value: true
-			});
+			_this.isGroup = true;
 			return _this;
 		}
 
@@ -19554,9 +19526,7 @@
 
 	var FogExp2 = /*#__PURE__*/function () {
 		function FogExp2(color, density) {
-			Object.defineProperty(this, 'isFogExp2', {
-				value: true
-			});
+			this.isFogExp2 = true;
 			this.name = '';
 			this.color = new Color(color);
 			this.density = density !== undefined ? density : 0.00025;
@@ -19583,9 +19553,7 @@
 
 	var Fog = /*#__PURE__*/function () {
 		function Fog(color, near, far) {
-			Object.defineProperty(this, 'isFog', {
-				value: true
-			});
+			this.isFog = true;
 			this.name = '';
 			this.color = new Color(color);
 			this.near = near !== undefined ? near : 1;
@@ -19619,9 +19587,7 @@
 			var _this;
 
 			_this = _Object3D.call(this) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isScene', {
-				value: true
-			});
+			_this.isScene = true;
 			_this.type = 'Scene';
 			_this.background = null;
 			_this.environment = null;
@@ -20005,9 +19971,7 @@
 			_this.geometry = _geometry;
 			_this.material = material !== undefined ? material : new SpriteMaterial();
 			_this.center = new Vector2(0.5, 0.5);
-			Object.defineProperty(_assertThisInitialized(_this), 'isSprite', {
-				value: true
-			});
+			_this.isSprite = true;
 			return _this;
 		}
 
@@ -20890,9 +20854,7 @@
 
 			_this = _Line.call(this, geometry, material) || this;
 			_this.type = 'LineLoop';
-			Object.defineProperty(_assertThisInitialized(_this), 'isLineLoop', {
-				value: true
-			});
+			_this.isLineLoop = true;
 			return _this;
 		}
 
@@ -27296,9 +27258,7 @@
 
 			_this = _Curve.call(this) || this;
 			_this.type = 'EllipseCurve';
-			Object.defineProperty(_assertThisInitialized(_this), 'isEllipseCurve', {
-				value: true
-			});
+			_this.isEllipseCurve = true;
 			_this.aX = aX || 0;
 			_this.aY = aY || 0;
 			_this.xRadius = xRadius || 1;
@@ -27412,9 +27372,7 @@
 
 			_this = _EllipseCurve.call(this, aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise) || this;
 			_this.type = 'ArcCurve';
-			Object.defineProperty(_assertThisInitialized(_this), 'isArcCurve', {
-				value: true
-			});
+			_this.isArcCurve = true;
 			return _this;
 		}
 
@@ -27512,9 +27470,7 @@
 
 			_this = _Curve.call(this) || this;
 			_this.type = 'CatmullRomCurve3';
-			Object.defineProperty(_assertThisInitialized(_this), 'isCatmullRomCurve3', {
-				value: true
-			});
+			_this.isCatmullRomCurve3 = true;
 			_this.points = points;
 			_this.closed = closed;
 			_this.curveType = curveType;
@@ -27715,9 +27671,7 @@
 
 			_this = _Curve.call(this) || this;
 			_this.type = 'CubicBezierCurve';
-			Object.defineProperty(_assertThisInitialized(_this), 'isCubicBezierCurve', {
-				value: true
-			});
+			_this.isCubicBezierCurve = true;
 			_this.v0 = v0;
 			_this.v1 = v1;
 			_this.v2 = v2;
@@ -27798,9 +27752,7 @@
 
 			_this = _Curve.call(this) || this;
 			_this.type = 'CubicBezierCurve3';
-			Object.defineProperty(_assertThisInitialized(_this), 'isCubicBezierCurve3', {
-				value: true
-			});
+			_this.isCubicBezierCurve3 = true;
 			_this.v0 = v0;
 			_this.v1 = v1;
 			_this.v2 = v2;
@@ -27873,9 +27825,7 @@
 
 			_this = _Curve.call(this) || this;
 			_this.type = 'LineCurve';
-			Object.defineProperty(_assertThisInitialized(_this), 'isLineCurve', {
-				value: true
-			});
+			_this.isLineCurve = true;
 			_this.v1 = v1;
 			_this.v2 = v2;
 			return _this;
@@ -27954,9 +27904,7 @@
 
 			_this = _Curve.call(this) || this;
 			_this.type = 'LineCurve3';
-			Object.defineProperty(_assertThisInitialized(_this), 'isLineCurve3', {
-				value: true
-			});
+			_this.isLineCurve3 = true;
 			_this.v1 = v1;
 			_this.v2 = v2;
 			return _this;
@@ -28033,9 +27981,7 @@
 
 			_this = _Curve.call(this) || this;
 			_this.type = 'QuadraticBezierCurve';
-			Object.defineProperty(_assertThisInitialized(_this), 'isQuadraticBezierCurve', {
-				value: true
-			});
+			_this.isQuadraticBezierCurve = true;
 			_this.v0 = v0;
 			_this.v1 = v1;
 			_this.v2 = v2;
@@ -28107,9 +28053,7 @@
 
 			_this = _Curve.call(this) || this;
 			_this.type = 'QuadraticBezierCurve3';
-			Object.defineProperty(_assertThisInitialized(_this), 'isQuadraticBezierCurve3', {
-				value: true
-			});
+			_this.isQuadraticBezierCurve3 = true;
 			_this.v0 = v0;
 			_this.v1 = v1;
 			_this.v2 = v2;
@@ -28173,9 +28117,7 @@
 
 			_this = _Curve.call(this) || this;
 			_this.type = 'SplineCurve';
-			Object.defineProperty(_assertThisInitialized(_this), 'isSplineCurve', {
-				value: true
-			});
+			_this.isSplineCurve = true;
 			_this.points = points;
 			return _this;
 		}
@@ -28659,9 +28601,7 @@
 			}
 
 			_this = _Object3D.call(this) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isLight', {
-				value: true
-			});
+			_this.isLight = true;
 			_this.type = 'Light';
 			_this.color = new Color(color);
 			_this.intensity = intensity;
@@ -28702,9 +28642,7 @@
 			var _this;
 
 			_this = _Light.call(this, skyColor, intensity) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isHemisphereLight', {
-				value: true
-			});
+			_this.isHemisphereLight = true;
 			_this.type = 'HemisphereLight';
 
 			_this.position.copy(Object3D.DefaultUp);
@@ -28823,9 +28761,7 @@
 			var _this;
 
 			_this = _LightShadow.call(this, new PerspectiveCamera(50, 1, 0.5, 500)) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isSpotLightShadow', {
-				value: true
-			});
+			_this.isSpotLightShadow = true;
 			_this.focus = 1;
 			return _this;
 		}
@@ -28874,9 +28810,7 @@
 			}
 
 			_this = _Light.call(this, color, intensity) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isSpotLight', {
-				value: true
-			});
+			_this.isSpotLight = true;
 			_this.type = 'SpotLight';
 
 			_this.position.copy(Object3D.DefaultUp);
@@ -28937,9 +28871,7 @@
 			var _this;
 
 			_this = _LightShadow.call(this, new PerspectiveCamera(90, 1, 0.5, 500)) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isPointLightShadow', {
-				value: true
-			});
+			_this.isPointLightShadow = true;
 			_this._frameExtents = new Vector2(4, 2);
 			_this._viewportCount = 6;
 			_this._viewports = [// These viewports map a cube-map onto a 2D texture with the
@@ -29012,9 +28944,7 @@
 			}
 
 			_this = _Light.call(this, color, intensity) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isPointLight', {
-				value: true
-			});
+			_this.isPointLight = true;
 			_this.type = 'PointLight';
 			_this.distance = distance;
 			_this.decay = decay; // for physically correct lights, should be 2.
@@ -29176,9 +29106,7 @@
 			var _this;
 
 			_this = _LightShadow.call(this, new OrthographicCamera(-5, 5, 5, -5, 0.5, 500)) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isDirectionalLightShadow', {
-				value: true
-			});
+			_this.isDirectionalLightShadow = true;
 			return _this;
 		}
 
@@ -29192,9 +29120,7 @@
 			var _this;
 
 			_this = _Light.call(this, color, intensity) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isDirectionalLight', {
-				value: true
-			});
+			_this.isDirectionalLight = true;
 			_this.type = 'DirectionalLight';
 
 			_this.position.copy(Object3D.DefaultUp);
@@ -29227,9 +29153,7 @@
 
 			_this = _Light.call(this, color, intensity) || this;
 			_this.type = 'AmbientLight';
-			Object.defineProperty(_assertThisInitialized(_this), 'isAmbientLight', {
-				value: true
-			});
+			_this.isAmbientLight = true;
 			return _this;
 		}
 
@@ -29251,9 +29175,7 @@
 			}
 
 			_this = _Light.call(this, color, intensity) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isRectAreaLight', {
-				value: true
-			});
+			_this.isRectAreaLight = true;
 			_this.type = 'RectAreaLight';
 			_this.width = width;
 			_this.height = height;
@@ -29292,9 +29214,7 @@
 
 	var SphericalHarmonics3 = /*#__PURE__*/function () {
 		function SphericalHarmonics3() {
-			Object.defineProperty(this, 'isSphericalHarmonics3', {
-				value: true
-			});
+			this.isSphericalHarmonics3 = true;
 			this.coefficients = [];
 
 			for (var i = 0; i < 9; i++) {
@@ -29493,9 +29413,7 @@
 			}
 
 			_this = _Light.call(this, undefined, intensity) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isLightProbe', {
-				value: true
-			});
+			_this.isLightProbe = true;
 			_this.sh = sh;
 			return _this;
 		}
@@ -30719,6 +30637,7 @@
 
 			var fetchOptions = {};
 			fetchOptions.credentials = this.crossOrigin === 'anonymous' ? 'same-origin' : 'include';
+			fetchOptions.headers = this.requestHeader;
 			fetch(url, fetchOptions).then(function (res) {
 				return res.blob();
 			}).then(function (blob) {
@@ -30955,9 +30874,7 @@
 
 	var Font = /*#__PURE__*/function () {
 		function Font(data) {
-			Object.defineProperty(this, 'isFont', {
-				value: true
-			});
+			this.isFont = true;
 			this.type = 'Font';
 			this.data = data;
 		}
@@ -31171,9 +31088,7 @@
 			}
 
 			_this = _LightProbe.call(this, undefined, intensity) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isHemisphereLightProbe', {
-				value: true
-			});
+			_this.isHemisphereLightProbe = true;
 			var color1 = new Color().set(skyColor);
 			var color2 = new Color().set(groundColor);
 			var sky = new Vector3(color1.r, color1.g, color1.b);
@@ -31203,9 +31118,7 @@
 			}
 
 			_this = _LightProbe.call(this, undefined, intensity) || this;
-			Object.defineProperty(_assertThisInitialized(_this), 'isAmbientLightProbe', {
-				value: true
-			});
+			_this.isAmbientLightProbe = true;
 			var color1 = new Color().set(color); // without extra factor of PI in the shader, would be 2 / Math.sqrt( Math.PI );
 
 			_this.sh.coefficients[0].set(color1.r, color1.g, color1.b).multiplyScalar(2 * Math.sqrt(Math.PI));
@@ -34092,9 +34005,7 @@
 
 	var Box2 = /*#__PURE__*/function () {
 		function Box2(min, max) {
-			Object.defineProperty(this, 'isBox2', {
-				value: true
-			});
+			this.isBox2 = true;
 			this.min = min !== undefined ? min : new Vector2(+Infinity, +Infinity);
 			this.max = max !== undefined ? max : new Vector2(-Infinity, -Infinity);
 		}

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


+ 46 - 45
build/three.module.js

@@ -519,7 +519,7 @@ class Vector2 {
 
 	constructor( x = 0, y = 0 ) {
 
-		Object.defineProperty( this, 'isVector2', { value: true } );
+		this.isVector2 = true;
 
 		this.x = x;
 		this.y = y;
@@ -995,7 +995,7 @@ class Matrix3 {
 
 	constructor() {
 
-		Object.defineProperty( this, 'isMatrix3', { value: true } );
+		this.isMatrix3 = true;
 
 		this.elements = [
 
@@ -1749,7 +1749,7 @@ class Vector4 {
 
 	constructor( x = 0, y = 0, z = 0, w = 1 ) {
 
-		Object.defineProperty( this, 'isVector4', { value: true } );
+		this.isVector4 = true;
 
 		this.x = x;
 		this.y = y;
@@ -2410,7 +2410,7 @@ class WebGLRenderTarget extends EventDispatcher {
 
 		super();
 
-		Object.defineProperty( this, 'isWebGLRenderTarget', { value: true } );
+		this.isWebGLRenderTarget = true;
 
 		this.width = width;
 		this.height = height;
@@ -2510,7 +2510,7 @@ class WebGLMultisampleRenderTarget extends WebGLRenderTarget {
 
 		super( width, height, options );
 
-		Object.defineProperty( this, 'isWebGLMultisampleRenderTarget', { value: true } );
+		this.isWebGLMultisampleRenderTarget = true;
 
 		this.samples = 4;
 
@@ -2532,7 +2532,7 @@ class Quaternion {
 
 	constructor( x = 0, y = 0, z = 0, w = 1 ) {
 
-		Object.defineProperty( this, 'isQuaternion', { value: true } );
+		this.isQuaternion = true;
 
 		this._x = x;
 		this._y = y;
@@ -3188,7 +3188,7 @@ class Vector3 {
 
 	constructor( x = 0, y = 0, z = 0 ) {
 
-		Object.defineProperty( this, 'isVector3', { value: true } );
+		this.isVector3 = true;
 
 		this.x = x;
 		this.y = y;
@@ -3905,7 +3905,7 @@ class Box3 {
 
 	constructor( min, max ) {
 
-		Object.defineProperty( this, 'isBox3', { value: true } );
+		this.isBox3 = true;
 
 		this.min = ( min !== undefined ) ? min : new Vector3( + Infinity, + Infinity, + Infinity );
 		this.max = ( max !== undefined ) ? max : new Vector3( - Infinity, - Infinity, - Infinity );
@@ -5145,7 +5145,7 @@ class Matrix4 {
 
 	constructor() {
 
-		Object.defineProperty( this, 'isMatrix4', { value: true } );
+		this.isMatrix4 = true;
 
 		this.elements = [
 
@@ -6027,7 +6027,7 @@ class Euler {
 
 	constructor( x = 0, y = 0, z = 0, order = Euler.DefaultOrder ) {
 
-		Object.defineProperty( this, 'isEuler', { value: true } );
+		this.isEuler = true;
 
 		this._x = x;
 		this._y = y;
@@ -7305,7 +7305,7 @@ class Plane {
 
 	constructor( normal, constant ) {
 
-		Object.defineProperty( this, 'isPlane', { value: true } );
+		this.isPlane = true;
 
 		// normal is assumed to be normalized
 
@@ -8344,7 +8344,7 @@ class Color {
 
 	constructor( r, g, b ) {
 
-		Object.defineProperty( this, 'isColor', { value: true } );
+		this.isColor = true;
 
 		if ( g === undefined && b === undefined ) {
 
@@ -11975,7 +11975,7 @@ class WebGLCubeRenderTarget extends WebGLRenderTarget {
 
 		super( size, size, options );
 
-		Object.defineProperty( this, 'isWebGLCubeRenderTarget', { value: true } );
+		this.isWebGLCubeRenderTarget = true;
 
 		options = options || {};
 
@@ -21571,7 +21571,7 @@ class Group extends Object3D {
 
 		super();
 		this.type = 'Group';
-		Object.defineProperty( this, 'isGroup', { value: true } );
+		this.isGroup = true;
 
 	}
 
@@ -24979,7 +24979,7 @@ class FogExp2 {
 
 	constructor( color, density ) {
 
-		Object.defineProperty( this, 'isFogExp2', { value: true } );
+		this.isFogExp2 = true;
 
 		this.name = '';
 
@@ -25010,7 +25010,7 @@ class Fog {
 
 	constructor( color, near, far ) {
 
-		Object.defineProperty( this, 'isFog', { value: true } );
+		this.isFog = true;
 
 		this.name = '';
 
@@ -25046,7 +25046,7 @@ class Scene extends Object3D {
 
 		super();
 
-		Object.defineProperty( this, 'isScene', { value: true } );
+		this.isScene = true;
 
 		this.type = 'Scene';
 
@@ -25608,7 +25608,7 @@ class Sprite extends Object3D {
 
 		this.center = new Vector2( 0.5, 0.5 );
 
-		Object.defineProperty( this, 'isSprite', { value: true } );
+		this.isSprite = true;
 
 	}
 
@@ -26806,7 +26806,7 @@ class LineLoop extends Line {
 
 		super( geometry, material );
 		this.type = 'LineLoop';
-		Object.defineProperty( this, 'isLineLoop', { value: true } );
+		this.isLineLoop = true;
 
 	}
 
@@ -35414,7 +35414,7 @@ class EllipseCurve extends Curve {
 		super();
 
 		this.type = 'EllipseCurve';
-		Object.defineProperty( this, 'isEllipseCurve', { value: true } );
+		this.isEllipseCurve = true;
 
 		this.aX = aX || 0;
 		this.aY = aY || 0;
@@ -35561,7 +35561,7 @@ class ArcCurve extends EllipseCurve {
 		super( aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise );
 
 		this.type = 'ArcCurve';
-		Object.defineProperty( this, 'isArcCurve', { value: true } );
+		this.isArcCurve = true;
 
 	}
 
@@ -35654,7 +35654,7 @@ class CatmullRomCurve3 extends Curve {
 		super();
 
 		this.type = 'CatmullRomCurve3';
-		Object.defineProperty( this, 'isCatmullRomCurve3', { value: true } );
+		this.isCatmullRomCurve3 = true;
 		this.points = points;
 		this.closed = closed;
 		this.curveType = curveType;
@@ -35896,7 +35896,7 @@ class CubicBezierCurve extends Curve {
 		super();
 
 		this.type = 'CubicBezierCurve';
-		Object.defineProperty( this, 'isCubicBezierCurve', { value: true } );
+		this.isCubicBezierCurve = true;
 
 		this.v0 = v0;
 		this.v1 = v1;
@@ -35965,7 +35965,7 @@ class CubicBezierCurve3 extends Curve {
 		super();
 
 		this.type = 'CubicBezierCurve3';
-		Object.defineProperty( this, 'isCubicBezierCurve3', { value: true } );
+		this.isCubicBezierCurve3 = true;
 
 		this.v0 = v0;
 		this.v1 = v1;
@@ -36034,7 +36034,7 @@ class LineCurve extends Curve {
 		super();
 
 		this.type = 'LineCurve';
-		Object.defineProperty( this, 'isLineCurve', { value: true } );
+		this.isLineCurve = true;
 
 		this.v1 = v1;
 		this.v2 = v2;
@@ -36113,7 +36113,7 @@ class LineCurve3 extends Curve {
 		super();
 
 		this.type = 'LineCurve3';
-		Object.defineProperty( this, 'isLineCurve3', { value: true } );
+		this.isLineCurve3 = true;
 
 		this.v1 = v1;
 		this.v2 = v2;
@@ -36183,7 +36183,7 @@ class QuadraticBezierCurve extends Curve {
 		super();
 
 		this.type = 'QuadraticBezierCurve';
-		Object.defineProperty( this, 'isQuadraticBezierCurve', { value: true } );
+		this.isQuadraticBezierCurve = true;
 
 		this.v0 = v0;
 		this.v1 = v1;
@@ -36247,7 +36247,7 @@ class QuadraticBezierCurve3 extends Curve {
 		super();
 
 		this.type = 'QuadraticBezierCurve3';
-		Object.defineProperty( this, 'isQuadraticBezierCurve3', { value: true } );
+		this.isQuadraticBezierCurve3 = true;
 
 		this.v0 = v0;
 		this.v1 = v1;
@@ -36312,7 +36312,7 @@ class SplineCurve extends Curve {
 		super();
 
 		this.type = 'SplineCurve';
-		Object.defineProperty( this, 'isSplineCurve', { value: true } );
+		this.isSplineCurve = true;
 
 		this.points = points;
 
@@ -36941,7 +36941,7 @@ class Light extends Object3D {
 
 		super();
 
-		Object.defineProperty( this, 'isLight', { value: true } );
+		this.isLight = true;
 
 		this.type = 'Light';
 
@@ -36989,7 +36989,7 @@ class HemisphereLight extends Light {
 
 		super( skyColor, intensity );
 
-		Object.defineProperty( this, 'isHemisphereLight', { value: true } );
+		this.isHemisphereLight = true;
 
 		this.type = 'HemisphereLight';
 
@@ -37142,7 +37142,7 @@ class SpotLightShadow extends LightShadow {
 
 		super( new PerspectiveCamera( 50, 1, 0.5, 500 ) );
 
-		Object.defineProperty( this, 'isSpotLightShadow', { value: true } );
+		this.isSpotLightShadow = true;
 
 		this.focus = 1;
 
@@ -37177,7 +37177,7 @@ class SpotLight extends Light {
 
 		super( color, intensity );
 
-		Object.defineProperty( this, 'isSpotLight', { value: true } );
+		this.isSpotLight = true;
 
 		this.type = 'SpotLight';
 
@@ -37240,7 +37240,7 @@ class PointLightShadow extends LightShadow {
 
 		super( new PerspectiveCamera( 90, 1, 0.5, 500 ) );
 
-		Object.defineProperty( this, 'isPointLightShadow', { value: true } );
+		this.isPointLightShadow = true;
 
 		this._frameExtents = new Vector2( 4, 2 );
 
@@ -37315,7 +37315,7 @@ class PointLight extends Light {
 
 		super( color, intensity );
 
-		Object.defineProperty( this, 'isPointLight', { value: true } );
+		this.isPointLight = true;
 
 		this.type = 'PointLight';
 
@@ -37498,7 +37498,7 @@ class DirectionalLightShadow extends LightShadow {
 
 		super( new OrthographicCamera( - 5, 5, 5, - 5, 0.5, 500 ) );
 
-		Object.defineProperty( this, 'isDirectionalLightShadow', { value: true } );
+		this.isDirectionalLightShadow = true;
 
 	}
 
@@ -37510,7 +37510,7 @@ class DirectionalLight extends Light {
 
 		super( color, intensity );
 
-		Object.defineProperty( this, 'isDirectionalLight', { value: true } );
+		this.isDirectionalLight = true;
 
 		this.type = 'DirectionalLight';
 
@@ -37543,7 +37543,7 @@ class AmbientLight extends Light {
 		super( color, intensity );
 
 		this.type = 'AmbientLight';
-		Object.defineProperty( this, 'isAmbientLight', { value: true } );
+		this.isAmbientLight = true;
 
 	}
 
@@ -37555,7 +37555,7 @@ class RectAreaLight extends Light {
 
 		super( color, intensity );
 
-		Object.defineProperty( this, 'isRectAreaLight', { value: true } );
+		this.isRectAreaLight = true;
 
 		this.type = 'RectAreaLight';
 
@@ -37602,7 +37602,7 @@ class SphericalHarmonics3 {
 
 	constructor() {
 
-		Object.defineProperty( this, 'isSphericalHarmonics3', { value: true } );
+		this.isSphericalHarmonics3 = true;
 
 		this.coefficients = [];
 
@@ -37834,7 +37834,7 @@ class LightProbe extends Light {
 
 		super( undefined, intensity );
 
-		Object.defineProperty( this, 'isLightProbe', { value: true } );
+		this.isLightProbe = true;
 
 		this.sh = sh;
 
@@ -39674,6 +39674,7 @@ ImageBitmapLoader.prototype = Object.assign( Object.create( Loader.prototype ),
 
 		const fetchOptions = {};
 		fetchOptions.credentials = ( this.crossOrigin === 'anonymous' ) ? 'same-origin' : 'include';
+		fetchOptions.headers = this.requestHeader;
 
 		fetch( url, fetchOptions ).then( function ( res ) {
 
@@ -39998,7 +39999,7 @@ class Font {
 
 	constructor( data ) {
 
-		Object.defineProperty( this, 'isFont', { value: true } );
+		this.isFont = true;
 
 		this.type = 'Font';
 
@@ -40265,7 +40266,7 @@ class HemisphereLightProbe extends LightProbe {
 
 		super( undefined, intensity );
 
-		Object.defineProperty( this, 'isHemisphereLightProbe', { value: true } );
+		this.isHemisphereLightProbe = true;
 
 		const color1 = new Color().set( skyColor );
 		const color2 = new Color().set( groundColor );
@@ -40290,7 +40291,7 @@ class AmbientLightProbe extends LightProbe {
 
 		super( undefined, intensity );
 
-		Object.defineProperty( this, 'isAmbientLightProbe', { value: true } );
+		this.isAmbientLightProbe = true;
 
 		const color1 = new Color().set( color );
 
@@ -44392,7 +44393,7 @@ class Box2 {
 
 	constructor( min, max ) {
 
-		Object.defineProperty( this, 'isBox2', { value: true } );
+		this.isBox2 = true;
 
 		this.min = ( min !== undefined ) ? min : new Vector2( + Infinity, + Infinity );
 		this.max = ( max !== undefined ) ? max : new Vector2( - Infinity, - Infinity );

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