Skip to content

Commit 424a71b

Browse files
committed
chore: update deps in exmaples
1 parent f29b96b commit 424a71b

33 files changed

+152
-139
lines changed

examples/auto-rotate.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
<button onclick="cameraControls.normalizeRotations().reset( true )">reset</button>
2222
</div>
2323

24-
<script async src="https://unpkg.com/es-module-shims@1.8.2/dist/es-module-shims.js"></script>
24+
<script async src="https://unpkg.com/es-module-shims@2.6.1/dist/es-module-shims.js"></script>
2525
<script type="importmap">
2626
{
2727
"imports": {
28-
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
29-
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
28+
"three": "https://unpkg.com/three@0.178.0/build/three.module.js",
29+
"three/addons/": "https://unpkg.com/three@0.178.0/examples/jsm/"
3030
}
3131
}
3232
</script>

examples/await-transitions.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
<p>Transition promises will resolve when the camera slows to less than <code>controls.restThreshold</code> units in a single frame. You can set this value here</p> <label><input oninput="cameraControls.restThreshold = this.value" value="0.01" type="number" min="0.001" max="1" step="0.001"> Rest Threshold</label>
1616
</div>
1717

18-
<script async src="https://unpkg.com/es-module-shims@1.8.2/dist/es-module-shims.js"></script>
18+
<script async src="https://unpkg.com/es-module-shims@2.6.1/dist/es-module-shims.js"></script>
1919
<script type="importmap">
2020
{
2121
"imports": {
22-
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
23-
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
22+
"three": "https://unpkg.com/three@0.178.0/build/three.module.js",
23+
"three/addons/": "https://unpkg.com/three@0.178.0/examples/jsm/"
2424
}
2525
}
2626
</script>

examples/basic.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747
<button onclick="cameraControls.enabled = true;">enable mouse/touch controls</button>
4848
</div>
4949

50-
<script async src="https://unpkg.com/es-module-shims@1.8.2/dist/es-module-shims.js"></script>
50+
<script async src="https://unpkg.com/es-module-shims@2.6.1/dist/es-module-shims.js"></script>
5151
<script type="importmap">
5252
{
5353
"imports": {
54-
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
55-
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
54+
"three": "https://unpkg.com/three@0.178.0/build/three.module.js",
55+
"three/addons/": "https://unpkg.com/three@0.178.0/examples/jsm/"
5656
}
5757
}
5858
</script>

examples/boundary.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
<button type="button" onclick="cameraControls.normalizeRotations().reset( true )">reset</button>
3131
</div>
3232

33-
<script async src="https://unpkg.com/es-module-shims@1.8.2/dist/es-module-shims.js"></script>
33+
<script async src="https://unpkg.com/es-module-shims@2.6.1/dist/es-module-shims.js"></script>
3434
<script type="importmap">
3535
{
3636
"imports": {
37-
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
38-
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
37+
"three": "https://unpkg.com/three@0.178.0/build/three.module.js",
38+
"three/addons/": "https://unpkg.com/three@0.178.0/examples/jsm/"
3939
}
4040
}
4141
</script>

examples/camera-up.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
<button onclick="cameraControls.applyCameraUp()">applyCameraUp</button>
3030
</div>
3131

32-
<script async src="https://unpkg.com/es-module-shims@1.8.2/dist/es-module-shims.js"></script>
32+
<script async src="https://unpkg.com/es-module-shims@2.6.1/dist/es-module-shims.js"></script>
3333
<script type="importmap">
3434
{
3535
"imports": {
36-
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
37-
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
36+
"three": "https://unpkg.com/three@0.178.0/build/three.module.js",
37+
"three/addons/": "https://unpkg.com/three@0.178.0/examples/jsm/"
3838
}
3939
}
4040
</script>

examples/click-to-set-orbit-point.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
<button onclick="cameraControls.normalizeRotations().reset( true )">reset</button>
1414
</div>
1515

16-
<script async src="https://unpkg.com/es-module-shims@1.8.2/dist/es-module-shims.js"></script>
16+
<script async src="https://unpkg.com/es-module-shims@2.6.1/dist/es-module-shims.js"></script>
1717
<script type="importmap">
1818
{
1919
"imports": {
20-
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
21-
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
20+
"three": "https://unpkg.com/three@0.178.0/build/three.module.js",
21+
"three/addons/": "https://unpkg.com/three@0.178.0/examples/jsm/"
2222
}
2323
}
2424
</script>

examples/collision-custom.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
<button onclick="cameraControls.normalizeRotations().reset( true )">reset</button>
2222
</div>
2323

24-
<script async src="https://unpkg.com/es-module-shims@1.8.2/dist/es-module-shims.js"></script>
24+
<script async src="https://unpkg.com/es-module-shims@2.6.1/dist/es-module-shims.js"></script>
2525
<script type="importmap">
2626
{
2727
"imports": {
28-
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
29-
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
28+
"three": "https://unpkg.com/three@0.178.0/build/three.module.js",
29+
"three/addons/": "https://unpkg.com/three@0.178.0/examples/jsm/"
3030
}
3131
}
3232
</script>

examples/collision.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
<button onclick="cameraControls.normalizeRotations().reset( true )">reset</button>
2222
</div>
2323

24-
<script async src="https://unpkg.com/es-module-shims@1.8.2/dist/es-module-shims.js"></script>
24+
<script async src="https://unpkg.com/es-module-shims@2.6.1/dist/es-module-shims.js"></script>
2525
<script type="importmap">
2626
{
2727
"imports": {
28-
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
29-
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
28+
"three": "https://unpkg.com/three@0.178.0/build/three.module.js",
29+
"three/addons/": "https://unpkg.com/three@0.178.0/examples/jsm/"
3030
}
3131
}
3232
</script>

examples/combined-gestures.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
</ul>
1717
</div>
1818

19-
<script async src="https://unpkg.com/es-module-shims@1.8.2/dist/es-module-shims.js"></script>
19+
<script async src="https://unpkg.com/es-module-shims@2.6.1/dist/es-module-shims.js"></script>
2020
<script type="importmap">
2121
{
2222
"imports": {
23-
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
24-
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
23+
"three": "https://unpkg.com/three@0.178.0/build/three.module.js",
24+
"three/addons/": "https://unpkg.com/three@0.178.0/examples/jsm/"
2525
}
2626
}
2727
</script>
@@ -44,7 +44,7 @@
4444
let lastTapTime = performance.now();
4545
const doubleTapTimeout = 250;
4646
const customPointerEvent = new THREE.EventDispatcher();
47-
const detectDoubleTap = function() {
47+
const detectDoubleTap = () => {
4848

4949
const now = performance.now();
5050
const isDoubleTap = now - lastTapTime < doubleTapTimeout;
@@ -58,13 +58,13 @@
5858
const cameraControls = new CameraControls( camera, renderer.domElement );
5959

6060
// switch the behavior with the pointer condition
61-
customPointerEvent.addEventListener( 'doubletap', function() {
61+
customPointerEvent.addEventListener( 'doubletap', () => {
6262

6363
cameraControls.mouseButtons.left = CameraControls.ACTION.ZOOM;
6464
cameraControls.touches.one = CameraControls.ACTION.ZOOM;
6565

6666
} );
67-
customPointerEvent.addEventListener( 'tap', function() {
67+
customPointerEvent.addEventListener( 'tap', () => {
6868

6969
cameraControls.mouseButtons.left = CameraControls.ACTION.ROTATE;
7070
cameraControls.touches.one = CameraControls.ACTION.TOUCH_ROTATE;

examples/config.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@
111111
</select>
112112
</div>
113113

114-
<script async src="https://unpkg.com/es-module-shims@1.8.2/dist/es-module-shims.js"></script>
114+
<script async src="https://unpkg.com/es-module-shims@2.6.1/dist/es-module-shims.js"></script>
115115
<script type="importmap">
116116
{
117117
"imports": {
118-
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
119-
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
118+
"three": "https://unpkg.com/three@0.178.0/build/three.module.js",
119+
"three/addons/": "https://unpkg.com/three@0.178.0/examples/jsm/"
120120
}
121121
}
122122
</script>

0 commit comments

Comments
 (0)