Skip to content

Commit ab21bee

Browse files
committed
Examples: Clean up.
1 parent f37eacb commit ab21bee

20 files changed

+43
-185
lines changed

docs/manual/ar/introduction/WebGL-compatibility-check.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ <h1>فحص توافق WebGL</h1>
1818
</p>
1919

2020
<code>
21-
if ( WEBGL.isWebGLAvailable() ) {
21+
if ( WebGL.isWebGLAvailable() ) {
2222

2323
// Initiate function or other initializations here
2424
animate();
2525

2626
} else {
2727

28-
const warning = WEBGL.getWebGLErrorMessage();
28+
const warning = WebGL.getWebGLErrorMessage();
2929
document.getElementById( 'container' ).appendChild( warning );
3030

3131
}

docs/manual/en/introduction/WebGL-compatibility-check.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ <h1>[name]</h1>
1919
</p>
2020

2121
<code>
22-
if ( WEBGL.isWebGLAvailable() ) {
22+
if ( WebGL.isWebGLAvailable() ) {
2323

2424
// Initiate function or other initializations here
2525
animate();
2626

2727
} else {
2828

29-
const warning = WEBGL.getWebGLErrorMessage();
29+
const warning = WebGL.getWebGLErrorMessage();
3030
document.getElementById( 'container' ).appendChild( warning );
3131

3232
}

docs/manual/ja/introduction/WebGL-compatibility-check.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ <h1>[name]</h1>
1717
</p>
1818

1919
<code>
20-
if ( WEBGL.isWebGLAvailable() ) {
20+
if ( WebGL.isWebGLAvailable() ) {
2121

2222
// Initiate function or other initializations here
2323
animate();
2424

2525
} else {
2626

27-
const warning = WEBGL.getWebGLErrorMessage();
27+
const warning = WebGL.getWebGLErrorMessage();
2828
document.getElementById( 'container' ).appendChild( warning );
2929

3030
}

docs/manual/ko/introduction/WebGL-compatibility-check.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ <h1>WebGL 호환성 검사([name])</h1>
1818
</p>
1919

2020
<code>
21-
if ( WEBGL.isWebGLAvailable() ) {
21+
if ( WebGL.isWebGLAvailable() ) {
2222

2323
// Initiate function or other initializations here
2424
animate();
2525

2626
} else {
2727

28-
const warning = WEBGL.getWebGLErrorMessage();
28+
const warning = WebGL.getWebGLErrorMessage();
2929
document.getElementById( 'container' ).appendChild( warning );
3030

3131
}

docs/manual/zh/introduction/WebGL-compatibility-check.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ <h1>WebGL兼容性检查([name])</h1>
1717
</p>
1818

1919
<code>
20-
if (WEBGL.isWebGLAvailable()) {
20+
if (WebGL.isWebGLAvailable()) {
2121
// Initiate function or other initializations here
2222
animate();
2323
} else {
24-
const warning = WEBGL.getWebGLErrorMessage();
24+
const warning = WebGL.getWebGLErrorMessage();
2525
document.getElementById('container').appendChild(warning);
2626
}
2727
</code>

examples/js/capabilities/ImportMaps.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

examples/js/capabilities/WebGL.js

Lines changed: 0 additions & 90 deletions
This file was deleted.

examples/js/capabilities/WebGPU.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/jsm/capabilities/WebGL.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class WEBGL {
1+
class WebGL {
22

33
static isWebGLAvailable() {
44

@@ -88,4 +88,4 @@ class WEBGL {
8888

8989
}
9090

91-
export { WEBGL };
91+
export default WebGL;

examples/webgl2_buffergeometry_attributes_integer.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848

4949
import * as THREE from '../build/three.module.js';
5050

51-
import { WEBGL } from './jsm/capabilities/WebGL.js';
51+
import WebGL from './jsm/capabilities/WebGL.js';
5252

53-
if ( WEBGL.isWebGL2Available() === false ) {
53+
if ( WebGL.isWebGL2Available() === false ) {
5454

55-
document.body.appendChild( WEBGL.getWebGL2ErrorMessage() );
55+
document.body.appendChild( WebGL.getWebGL2ErrorMessage() );
5656

5757
}
5858

0 commit comments

Comments
 (0)