Michael Herzog пре 2 година
родитељ
комит
af61d160a3

+ 4 - 3
docs/api/en/core/BufferGeometry.html

@@ -42,7 +42,7 @@
 		const mesh = new THREE.Mesh( geometry, material );
 		</code>
 
-		<h3>Indexed version</h3>
+		<h2>Code Example (Index)</h2>
 
 		<code>
 		const geometry = new THREE.BufferGeometry();
@@ -53,15 +53,16 @@
 			 1.0,  1.0,  1.0, // v2
 			-1.0,  1.0,  1.0, // v3
 		] );
-		geometry.setAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) );
 
 		const indices = [
 			0, 1, 2,
 			2, 3, 0,
 		];
+
 		geometry.setIndex( indices );
+		geometry.setAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) );
 
-		const material = new THREE.MeshBasicMaterial( { color: 0x00ffff } );
+		const material = new THREE.MeshBasicMaterial( { color: 0xff0000 } );
 		const mesh = new THREE.Mesh( geometry, material );
 		</code>
 

+ 7 - 5
docs/api/en/geometries/BoxGeometry.html

@@ -22,12 +22,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/CapsuleGeometry.html

@@ -24,12 +24,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/CircleGeometry.html

@@ -28,12 +28,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/ConeGeometry.html

@@ -18,12 +18,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/CylinderGeometry.html

@@ -21,12 +21,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/DodecahedronGeometry.html

@@ -21,12 +21,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/ExtrudeGeometry.html

@@ -21,12 +21,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/IcosahedronGeometry.html

@@ -20,12 +20,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/LatheGeometry.html

@@ -24,12 +24,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/OctahedronGeometry.html

@@ -20,12 +20,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/PlaneGeometry.html

@@ -21,12 +21,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/RingGeometry.html

@@ -18,12 +18,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/ShapeGeometry.html

@@ -23,12 +23,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/SphereGeometry.html

@@ -21,12 +21,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/TetrahedronGeometry.html

@@ -21,12 +21,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/TorusGeometry.html

@@ -21,12 +21,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/TorusKnotGeometry.html

@@ -25,12 +25,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>
 

+ 7 - 5
docs/api/en/geometries/TubeGeometry.html

@@ -18,12 +18,14 @@
 		<script>
 			// iOS iframe auto-resize workaround
 
-			if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
-				const scene = document.getElementById("scene");
+			if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+				const scene = document.getElementById( 'scene' );
+
+				scene.style.width = getComputedStyle( scene ).width;
+				scene.style.height = getComputedStyle( scene ).height;
+				scene.setAttribute( 'scrolling', 'no' );
 
-				scene.style.width = getComputedStyle(scene).width;
-				scene.style.height = getComputedStyle(scene).height;
-				scene.setAttribute("scrolling", "no");
 			}
 		</script>