Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Clean up. #25834

Merged
merged 1 commit into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/api/en/core/BufferGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h2>Code Example</h2>
const mesh = new THREE.Mesh( geometry, material );
</code>

<h3>Indexed version</h3>
<h2>Code Example (Index)</h2>

<code>
const geometry = new THREE.BufferGeometry();
Expand All @@ -53,15 +53,16 @@ <h3>Indexed version</h3>
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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/BoxGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/CapsuleGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/CircleGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/ConeGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/CylinderGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/DodecahedronGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/ExtrudeGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/IcosahedronGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/LatheGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/OctahedronGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/PlaneGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/RingGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/ShapeGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/SphereGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/TetrahedronGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/TorusGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/TorusKnotGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ <h1>[name]</h1>
<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>

Expand Down
12 changes: 7 additions & 5 deletions docs/api/en/geometries/TubeGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ <h1>[name]</h1>
<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>

Expand Down