|
@@ -1,97 +1,4 @@
|
|
// threejs.org/license
|
|
// threejs.org/license
|
|
-// Polyfills
|
|
|
|
-
|
|
|
|
-if ( Number.EPSILON === undefined ) {
|
|
|
|
-
|
|
|
|
- Number.EPSILON = Math.pow( 2, - 52 );
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-if ( Number.isInteger === undefined ) {
|
|
|
|
-
|
|
|
|
- // Missing in IE
|
|
|
|
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger
|
|
|
|
-
|
|
|
|
- Number.isInteger = function ( value ) {
|
|
|
|
-
|
|
|
|
- return typeof value === 'number' && isFinite( value ) && Math.floor( value ) === value;
|
|
|
|
-
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-//
|
|
|
|
-
|
|
|
|
-if ( Math.sign === undefined ) {
|
|
|
|
-
|
|
|
|
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign
|
|
|
|
-
|
|
|
|
- Math.sign = function ( x ) {
|
|
|
|
-
|
|
|
|
- return ( x < 0 ) ? - 1 : ( x > 0 ) ? 1 : + x;
|
|
|
|
-
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-if ( 'name' in Function.prototype === false ) {
|
|
|
|
-
|
|
|
|
- // Missing in IE
|
|
|
|
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name
|
|
|
|
-
|
|
|
|
- Object.defineProperty( Function.prototype, 'name', {
|
|
|
|
-
|
|
|
|
- get: function () {
|
|
|
|
-
|
|
|
|
- return this.toString().match( /^\s*function\s*([^\(\s]*)/ )[ 1 ];
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- } );
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-if ( Object.assign === undefined ) {
|
|
|
|
-
|
|
|
|
- // Missing in IE
|
|
|
|
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
|
|
|
|
-
|
|
|
|
- Object.assign = function ( target ) {
|
|
|
|
-
|
|
|
|
- if ( target === undefined || target === null ) {
|
|
|
|
-
|
|
|
|
- throw new TypeError( 'Cannot convert undefined or null to object' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- const output = Object( target );
|
|
|
|
-
|
|
|
|
- for ( let index = 1; index < arguments.length; index ++ ) {
|
|
|
|
-
|
|
|
|
- const source = arguments[ index ];
|
|
|
|
-
|
|
|
|
- if ( source !== undefined && source !== null ) {
|
|
|
|
-
|
|
|
|
- for ( const nextKey in source ) {
|
|
|
|
-
|
|
|
|
- if ( Object.prototype.hasOwnProperty.call( source, nextKey ) ) {
|
|
|
|
-
|
|
|
|
- output[ nextKey ] = source[ nextKey ];
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return output;
|
|
|
|
-
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
const REVISION = '121dev';
|
|
const REVISION = '121dev';
|
|
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 };
|
|
@@ -9860,6 +9767,8 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ return this;
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
getAttribute: function ( name ) {
|
|
getAttribute: function ( name ) {
|