2
0
Эх сурвалжийг харах

Remove `Float64BufferAttribute`. (#27807)

Michael Herzog 1 жил өмнө
parent
commit
289444e23f

+ 0 - 1
docs/api/ar/core/bufferAttributeTypes/BufferAttributeTypes.html

@@ -17,7 +17,6 @@
 		</p>
 
 		<code>
-		THREE.Float64BufferAttribute 
 		THREE.Float32BufferAttribute
 		THREE.Float16BufferAttribute 
 		THREE.Uint32BufferAttribute

+ 0 - 1
docs/api/en/core/bufferAttributeTypes/BufferAttributeTypes.html

@@ -18,7 +18,6 @@
 		</p>
 
 		<code>
-		THREE.Float64BufferAttribute 
 		THREE.Float32BufferAttribute
 		THREE.Float16BufferAttribute 
 		THREE.Uint32BufferAttribute

+ 0 - 1
docs/api/it/core/bufferAttributeTypes/BufferAttributeTypes.html

@@ -17,7 +17,6 @@
 		</p>
 
 		<code>
-		THREE.Float64BufferAttribute
 		THREE.Float32BufferAttribute
 		THREE.Float16BufferAttribute
 		THREE.Uint32BufferAttribute

+ 0 - 1
docs/api/ko/core/bufferAttributeTypes/BufferAttributeTypes.html

@@ -17,7 +17,6 @@
 		</p>
 
 		<code>
-		THREE.Float64BufferAttribute
 		THREE.Float32BufferAttribute
 		THREE.Float16BufferAttribute
 		THREE.Uint32BufferAttribute

+ 0 - 1
docs/api/zh/core/bufferAttributeTypes/BufferAttributeTypes.html

@@ -17,7 +17,6 @@
 		</p>
 
 		<code>
-		THREE.Float64BufferAttribute
 		THREE.Float32BufferAttribute
 		THREE.Float16BufferAttribute
 		THREE.Uint32BufferAttribute

+ 0 - 11
src/core/BufferAttribute.js

@@ -623,20 +623,9 @@ class Float32BufferAttribute extends BufferAttribute {
 
 }
 
-class Float64BufferAttribute extends BufferAttribute {
-
-	constructor( array, itemSize, normalized ) {
-
-		super( new Float64Array( array ), itemSize, normalized );
-
-	}
-
-}
-
 //
 
 export {
-	Float64BufferAttribute,
 	Float32BufferAttribute,
 	Float16BufferAttribute,
 	Uint32BufferAttribute,

+ 3 - 27
test/unit/src/core/BufferAttribute.tests.js

@@ -11,8 +11,7 @@ import {
 	Int32BufferAttribute,
 	Uint32BufferAttribute,
 	Float16BufferAttribute,
-	Float32BufferAttribute,
-	Float64BufferAttribute
+	Float32BufferAttribute
 } from '../../../../src/core/BufferAttribute.js';
 
 import { DynamicDrawUsage } from '../../../../src/constants.js';
@@ -505,7 +504,7 @@ export default QUnit.module( 'Core', () => {
 		const toHalfFloatArray = ( f32Array ) => {
 
 			const f16Array = new Uint16Array( f32Array.length );
-			for ( let i = 0, n = f32Array.length; i < n; ++i ) {
+			for ( let i = 0, n = f32Array.length; i < n; ++ i ) {
 
 				f16Array[ i ] = toHalfFloat( f32Array[ i ] );
 
@@ -518,7 +517,7 @@ export default QUnit.module( 'Core', () => {
 		const fromHalfFloatArray = ( f16Array ) => {
 
 			const f32Array = new Float32Array( f16Array.length );
-			for ( let i = 0, n = f16Array.length; i < n; ++i ) {
+			for ( let i = 0, n = f16Array.length; i < n; ++ i ) {
 
 				f32Array[ i ] = fromHalfFloat( f16Array[ i ] );
 
@@ -604,27 +603,4 @@ export default QUnit.module( 'Core', () => {
 
 	} );
 
-	QUnit.module( 'Float64BufferAttribute', () => {
-
-		// INHERITANCE
-		QUnit.test( 'Extending', ( assert ) => {
-
-			const object = new Float64BufferAttribute();
-			assert.strictEqual(
-				object instanceof BufferAttribute, true,
-				'Float64BufferAttribute extends from BufferAttribute'
-			);
-
-		} );
-
-		// INSTANCING
-		QUnit.test( 'Instancing', ( assert ) => {
-
-			const object = new Float64BufferAttribute();
-			assert.ok( object, 'Can instantiate a Float64BufferAttribute.' );
-
-		} );
-
-	} );
-
 } );