Browse Source

Updated builds.

Mr.doob 2 years ago
parent
commit
6a31e69520
5 changed files with 60 additions and 33 deletions
  1. 20 11
      build/three.cjs
  2. 20 11
      build/three.js
  3. 0 0
      build/three.min.js
  4. 20 11
      build/three.module.js
  5. 0 0
      build/three.module.min.js

+ 20 - 11
build/three.cjs

@@ -1775,12 +1775,16 @@ class ImageUtils {
 
 
 }
 }
 
 
+let sourceId = 0;
+
 class Source {
 class Source {
 
 
 	constructor( data = null ) {
 	constructor( data = null ) {
 
 
 		this.isSource = true;
 		this.isSource = true;
 
 
+		Object.defineProperty( this, 'id', { value: sourceId ++ } );
+
 		this.uuid = generateUUID();
 		this.uuid = generateUUID();
 
 
 		this.data = data;
 		this.data = data;
@@ -8837,30 +8841,35 @@ class Color {
 		this.g = 1;
 		this.g = 1;
 		this.b = 1;
 		this.b = 1;
 
 
+		return this.set( r, g, b );
+
+	}
+
+	set( r, g, b ) {
+
 		if ( g === undefined && b === undefined ) {
 		if ( g === undefined && b === undefined ) {
 
 
 			// r is THREE.Color, hex or string
 			// r is THREE.Color, hex or string
-			return this.set( r );
 
 
-		}
+			const value = r;
 
 
-		return this.setRGB( r, g, b );
+			if ( value && value.isColor ) {
 
 
-	}
+				this.copy( value );
 
 
-	set( value ) {
+			} else if ( typeof value === 'number' ) {
 
 
-		if ( value && value.isColor ) {
+				this.setHex( value );
 
 
-			this.copy( value );
+			} else if ( typeof value === 'string' ) {
 
 
-		} else if ( typeof value === 'number' ) {
+				this.setStyle( value );
 
 
-			this.setHex( value );
+			}
 
 
-		} else if ( typeof value === 'string' ) {
+		} else {
 
 
-			this.setStyle( value );
+			this.setRGB( r, g, b );
 
 
 		}
 		}
 
 

+ 20 - 11
build/three.js

@@ -1780,12 +1780,16 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 
 	}
 	}
 
 
+	let sourceId = 0;
+
 	class Source {
 	class Source {
 
 
 		constructor( data = null ) {
 		constructor( data = null ) {
 
 
 			this.isSource = true;
 			this.isSource = true;
 
 
+			Object.defineProperty( this, 'id', { value: sourceId ++ } );
+
 			this.uuid = generateUUID();
 			this.uuid = generateUUID();
 
 
 			this.data = data;
 			this.data = data;
@@ -8842,30 +8846,35 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 			this.g = 1;
 			this.g = 1;
 			this.b = 1;
 			this.b = 1;
 
 
+			return this.set( r, g, b );
+
+		}
+
+		set( r, g, b ) {
+
 			if ( g === undefined && b === undefined ) {
 			if ( g === undefined && b === undefined ) {
 
 
 				// r is THREE.Color, hex or string
 				// r is THREE.Color, hex or string
-				return this.set( r );
 
 
-			}
+				const value = r;
 
 
-			return this.setRGB( r, g, b );
+				if ( value && value.isColor ) {
 
 
-		}
+					this.copy( value );
 
 
-		set( value ) {
+				} else if ( typeof value === 'number' ) {
 
 
-			if ( value && value.isColor ) {
+					this.setHex( value );
 
 
-				this.copy( value );
+				} else if ( typeof value === 'string' ) {
 
 
-			} else if ( typeof value === 'number' ) {
+					this.setStyle( value );
 
 
-				this.setHex( value );
+				}
 
 
-			} else if ( typeof value === 'string' ) {
+			} else {
 
 
-				this.setStyle( value );
+				this.setRGB( r, g, b );
 
 
 			}
 			}
 
 

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


+ 20 - 11
build/three.module.js

@@ -1773,12 +1773,16 @@ class ImageUtils {
 
 
 }
 }
 
 
+let sourceId = 0;
+
 class Source {
 class Source {
 
 
 	constructor( data = null ) {
 	constructor( data = null ) {
 
 
 		this.isSource = true;
 		this.isSource = true;
 
 
+		Object.defineProperty( this, 'id', { value: sourceId ++ } );
+
 		this.uuid = generateUUID();
 		this.uuid = generateUUID();
 
 
 		this.data = data;
 		this.data = data;
@@ -8835,30 +8839,35 @@ class Color {
 		this.g = 1;
 		this.g = 1;
 		this.b = 1;
 		this.b = 1;
 
 
+		return this.set( r, g, b );
+
+	}
+
+	set( r, g, b ) {
+
 		if ( g === undefined && b === undefined ) {
 		if ( g === undefined && b === undefined ) {
 
 
 			// r is THREE.Color, hex or string
 			// r is THREE.Color, hex or string
-			return this.set( r );
 
 
-		}
+			const value = r;
 
 
-		return this.setRGB( r, g, b );
+			if ( value && value.isColor ) {
 
 
-	}
+				this.copy( value );
 
 
-	set( value ) {
+			} else if ( typeof value === 'number' ) {
 
 
-		if ( value && value.isColor ) {
+				this.setHex( value );
 
 
-			this.copy( value );
+			} else if ( typeof value === 'string' ) {
 
 
-		} else if ( typeof value === 'number' ) {
+				this.setStyle( value );
 
 
-			this.setHex( value );
+			}
 
 
-		} else if ( typeof value === 'string' ) {
+		} else {
 
 
-			this.setStyle( value );
+			this.setRGB( r, g, b );
 
 
 		}
 		}
 
 

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


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