Selaa lähdekoodia

Updated builds.

Mr.doob 4 vuotta sitten
vanhempi
commit
ab95c91d64
3 muutettua tiedostoa jossa 14 lisäystä ja 16 poistoa
  1. 7 7
      build/three.js
  2. 0 0
      build/three.min.js
  3. 7 9
      build/three.module.js

+ 7 - 7
build/three.js

@@ -16508,15 +16508,15 @@
 		};
 	}
 
-	function ArrayCamera(array = []) {
-		PerspectiveCamera.call(this);
-		this.cameras = array;
+	class ArrayCamera extends PerspectiveCamera {
+		constructor(array = []) {
+			super();
+			this.cameras = array;
+		}
+
 	}
 
-	ArrayCamera.prototype = Object.assign(Object.create(PerspectiveCamera.prototype), {
-		constructor: ArrayCamera,
-		isArrayCamera: true
-	});
+	ArrayCamera.prototype.isArrayCamera = true;
 
 	class Group extends Object3D {
 		constructor() {

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
build/three.min.js


+ 7 - 9
build/three.module.js

@@ -21559,21 +21559,19 @@ function WebGLUtils( gl, extensions, capabilities ) {
 
 }
 
-function ArrayCamera( array = [] ) {
+class ArrayCamera extends PerspectiveCamera {
 
-	PerspectiveCamera.call( this );
+	constructor( array = [] ) {
 
-	this.cameras = array;
-
-}
+		super();
 
-ArrayCamera.prototype = Object.assign( Object.create( PerspectiveCamera.prototype ), {
+		this.cameras = array;
 
-	constructor: ArrayCamera,
+	}
 
-	isArrayCamera: true
+}
 
-} );
+ArrayCamera.prototype.isArrayCamera = true;
 
 class Group extends Object3D {
 

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä