diff --git a/docs/examples/en/loaders/3DMLoader.html b/docs/examples/en/loaders/3DMLoader.html index 38e736528c0f82..21eeb5834aef13 100644 --- a/docs/examples/en/loaders/3DMLoader.html +++ b/docs/examples/en/loaders/3DMLoader.html @@ -166,7 +166,7 @@

[method:Object3D load]( [param:String url], [param:Function onLoad], [param: // Specify path to a folder containing WASM/JS libraries or a CDN. // For example, /jsm/libs/rhino3dm/ is the location of the library inside the three.js repository // loader.setLibraryPath( '/path_to_library/rhino3dm/' ); - loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.4.0/' ); + loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.4.0/' ); // Load a 3DM file loader.load( @@ -205,13 +205,13 @@

[method:Object3D parse]( [param:ArrayBuffer buffer], [param:Function onLoad]

- import rhino3dm from 'https://unpkg.com/rhino3dm@8.4.0' + import rhino3dm from 'https://cdn.jsdelivr.net/npm/rhino3dm@8.4.0' // Instantiate a loader const loader = new Rhino3dmLoader(); // Specify path to a folder containing WASM/JS libraries or a CDN. - loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.4.0' ); + loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.4.0' ); const rhino = await rhino3dm(); console.log('Loaded rhino3dm.'); @@ -244,7 +244,7 @@

[method:this setLibraryPath]( [param:String value] )

// Specify path to a folder containing the WASM/JS library: loader.setLibraryPath( '/path_to_library/rhino3dm/' ); // or from a CDN: - loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.4.0' ); + loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.4.0' );

[method:this setWorkerLimit]( [param:Number workerLimit] )

diff --git a/docs/examples/zh/loaders/3DMLoader.html b/docs/examples/zh/loaders/3DMLoader.html index 7ed48191374112..302a09fc264027 100644 --- a/docs/examples/zh/loaders/3DMLoader.html +++ b/docs/examples/zh/loaders/3DMLoader.html @@ -171,7 +171,7 @@

[method:Object3D load]( [param:String url], [param:Function onLoad], [param: // Specify path to a folder containing WASM/JS libraries or a CDN. // For example, /jsm/libs/rhino3dm/ is the location of the library inside the three.js repository // loader.setLibraryPath( '/path_to_library/rhino3dm/' ); - loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.0.1/' ); + loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.0.1/' ); // Load a 3DM file loader.load( @@ -212,13 +212,13 @@

[method:Object3D parse]( [param:ArrayBuffer buffer], [param:Function onLoad]

- import rhino3dm from 'https://unpkg.com/rhino3dm@8.0.1' + import rhino3dm from 'https://cdn.jsdelivr.net/npm/rhino3dm@8.0.1' // Instantiate a loader const loader = new Rhino3dmLoader(); // Specify path to a folder containing WASM/JS libraries or a CDN. - loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.0.1' ); + loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.0.1' ); const rhino = await rhino3dm(); console.log('Loaded rhino3dm.'); @@ -251,7 +251,7 @@

[method:this setLibraryPath]( [param:String value] )

// Specify path to a folder containing the WASM/JS library: loader.setLibraryPath( '/path_to_library/rhino3dm/' ); // or from a CDN: - loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.0.1' ); + loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.0.1' );

[method:this setWorkerLimit]( [param:Number workerLimit] )

diff --git a/docs/manual/ar/introduction/Installation.html b/docs/manual/ar/introduction/Installation.html index d51cd50af2169f..808a2528628fcd 100644 --- a/docs/manual/ar/introduction/Installation.html +++ b/docs/manual/ar/introduction/Installation.html @@ -88,7 +88,7 @@

التثبيت من CDN أو استضافة ثابتة

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js" } } </script> @@ -127,8 +127,8 @@

أمثلة

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js", - "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js", + "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/" } } </script> diff --git a/docs/manual/en/introduction/Installation.html b/docs/manual/en/introduction/Installation.html index 4050e36592f4c3..848c1741f17fe0 100644 --- a/docs/manual/en/introduction/Installation.html +++ b/docs/manual/en/introduction/Installation.html @@ -152,8 +152,8 @@

Development

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js", - "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js", + "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/" } } </script> diff --git a/docs/manual/fr/introduction/Creating-a-scene.html b/docs/manual/fr/introduction/Creating-a-scene.html index 8548c4b31e1216..4f9aee003fb03c 100644 --- a/docs/manual/fr/introduction/Creating-a-scene.html +++ b/docs/manual/fr/introduction/Creating-a-scene.html @@ -27,7 +27,7 @@

Avant de commencer

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; // Our Javascript will go here. </script> @@ -129,7 +129,7 @@

Le résultat

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); diff --git a/docs/manual/fr/introduction/Installation.html b/docs/manual/fr/introduction/Installation.html index 21c56c3ab893d6..00ee2a81878637 100644 --- a/docs/manual/fr/introduction/Installation.html +++ b/docs/manual/fr/introduction/Installation.html @@ -71,7 +71,7 @@

Installer depuis un CDN ou un hébergement statique

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js" } } </script> @@ -110,8 +110,8 @@

Addons

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js", - "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js", + "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/" } } </script> diff --git a/docs/manual/it/introduction/Creating-a-scene.html b/docs/manual/it/introduction/Creating-a-scene.html index fc759f57d68745..55af44f71dc5a4 100644 --- a/docs/manual/it/introduction/Creating-a-scene.html +++ b/docs/manual/it/introduction/Creating-a-scene.html @@ -30,7 +30,7 @@

Prima di iniziare

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; // Il nostro Javascript andrà qui </script> @@ -147,7 +147,7 @@

Il risultato

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); diff --git a/docs/manual/it/introduction/Installation.html b/docs/manual/it/introduction/Installation.html index d7e36f784d947f..ee0bf000dbf907 100644 --- a/docs/manual/it/introduction/Installation.html +++ b/docs/manual/it/introduction/Installation.html @@ -72,7 +72,7 @@

Installazione da CDN o hosting statico

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js" } } </script> @@ -110,8 +110,8 @@

Addons

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js", - "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js", + "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/" } } </script> diff --git a/docs/manual/ja/introduction/Creating-a-scene.html b/docs/manual/ja/introduction/Creating-a-scene.html index 45bbf763d0e45d..f15891d49bc1ba 100644 --- a/docs/manual/ja/introduction/Creating-a-scene.html +++ b/docs/manual/ja/introduction/Creating-a-scene.html @@ -27,7 +27,7 @@

始める前に

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; // Our Javascript will go here. </script> @@ -130,7 +130,7 @@

成果

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); diff --git a/docs/manual/ja/introduction/Installation.html b/docs/manual/ja/introduction/Installation.html index 668480008a8a54..19ff845a4fc2de 100644 --- a/docs/manual/ja/introduction/Installation.html +++ b/docs/manual/ja/introduction/Installation.html @@ -72,7 +72,7 @@

CDNや静的ホスティングからインストールをする

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js" } } </script> @@ -111,8 +111,8 @@

Addons

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js", - "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js", + "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/" } } </script> diff --git a/docs/manual/ko/introduction/Creating-a-scene.html b/docs/manual/ko/introduction/Creating-a-scene.html index 141056d3af79e1..2d98bd77d17052 100644 --- a/docs/manual/ko/introduction/Creating-a-scene.html +++ b/docs/manual/ko/introduction/Creating-a-scene.html @@ -28,7 +28,7 @@

시작하기에 앞서

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; ´ // Our Javascript will go here. </script> @@ -133,7 +133,7 @@

결과 화면

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); diff --git a/docs/manual/ko/introduction/Installation.html b/docs/manual/ko/introduction/Installation.html index 763e678480a07f..2d19a6cc41a445 100644 --- a/docs/manual/ko/introduction/Installation.html +++ b/docs/manual/ko/introduction/Installation.html @@ -80,7 +80,7 @@

static hosting 및 CDN을 통한 설치

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js" } } </script> @@ -123,8 +123,8 @@

Addons

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js", - "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js", + "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/" } } </script> diff --git a/docs/manual/pt-br/introduction/Creating-a-scene.html b/docs/manual/pt-br/introduction/Creating-a-scene.html index 33641ac7e4ae74..4605255ea6bb86 100644 --- a/docs/manual/pt-br/introduction/Creating-a-scene.html +++ b/docs/manual/pt-br/introduction/Creating-a-scene.html @@ -27,7 +27,7 @@

Antes de começar

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; // Our Javascript will go here. </script> @@ -131,7 +131,7 @@

O resultado

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); diff --git a/docs/manual/pt-br/introduction/Installation.html b/docs/manual/pt-br/introduction/Installation.html index 897ba81e76ad15..2fc34d14a48ef8 100644 --- a/docs/manual/pt-br/introduction/Installation.html +++ b/docs/manual/pt-br/introduction/Installation.html @@ -56,7 +56,7 @@

Instalar através de CDN ou hospedagem estática

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js" } } </script> @@ -96,8 +96,8 @@

Addons

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js", - "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js", + "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/" } } </script> diff --git a/docs/manual/ru/introduction/Creating-a-scene.html b/docs/manual/ru/introduction/Creating-a-scene.html index 2adc7aa3e46039..5f312137923245 100644 --- a/docs/manual/ru/introduction/Creating-a-scene.html +++ b/docs/manual/ru/introduction/Creating-a-scene.html @@ -29,7 +29,7 @@

Прежде чем мы начнем

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; // Наш Javascript будет здесь.. </script> @@ -130,7 +130,7 @@

Результат

</head> <body> <script type="module"> - import * as THREE from 'https://unpkg.com/three/build/three.module.js'; + import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js'; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); diff --git a/docs/manual/ru/introduction/Installation.html b/docs/manual/ru/introduction/Installation.html index 14daa0a0a420ed..e8c183b181fc9e 100644 --- a/docs/manual/ru/introduction/Installation.html +++ b/docs/manual/ru/introduction/Installation.html @@ -95,7 +95,7 @@

Установка с CDN или статического хостинга { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js" } } </script> @@ -140,8 +140,8 @@

Дополнения

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js", - "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js", + "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/" } } </script> diff --git a/docs/manual/zh/introduction/Installation.html b/docs/manual/zh/introduction/Installation.html index 3eecb284c5f146..0d42fdecfd4e87 100644 --- a/docs/manual/zh/introduction/Installation.html +++ b/docs/manual/zh/introduction/Installation.html @@ -151,8 +151,8 @@

开发

<script type="importmap"> { "imports": { - "three": "https://unpkg.com/three@<version>/build/three.module.js", - "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/" + "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js", + "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/" } } </script> diff --git a/editor/index.html b/editor/index.html index 60e41dc0ef01aa..9b5dadfe4ff18f 100644 --- a/editor/index.html +++ b/editor/index.html @@ -52,8 +52,8 @@ "three/addons/": "../examples/jsm/", "three/examples/": "../examples/", - "three-gpu-pathtracer": "https://unpkg.com/three-gpu-pathtracer@0.0.19/build/index.module.js", - "three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.7.3/build/index.module.js" + "three-gpu-pathtracer": "https://cdn.jsdelivr.net/npm/three-gpu-pathtracer@0.0.19/build/index.module.js", + "three-mesh-bvh": "https://cdn.jsdelivr.net/npm/three-mesh-bvh@0.7.3/build/index.module.js" } } diff --git a/examples/webgl2_ubo_arrays.html b/examples/webgl2_ubo_arrays.html index 4715a8abf31bea..8d1c8a818af3bc 100644 --- a/examples/webgl2_ubo_arrays.html +++ b/examples/webgl2_ubo_arrays.html @@ -98,10 +98,6 @@ - - - - diff --git a/examples/webgl_loader_ifc.html b/examples/webgl_loader_ifc.html index 61773d64cf0382..c46792b46b124b 100644 --- a/examples/webgl_loader_ifc.html +++ b/examples/webgl_loader_ifc.html @@ -23,9 +23,9 @@ "three": "../build/three.module.js", "three/addons/": "./jsm/", "three/examples/jsm/utils/BufferGeometryUtils": "./jsm/utils/BufferGeometryUtils.js", - "three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.5.23/build/index.module.js", - "web-ifc": "https://unpkg.com/web-ifc@0.0.36/web-ifc-api.js", - "web-ifc-three": "https://unpkg.com/web-ifc-three@0.0.126/IFCLoader.js" + "three-mesh-bvh": "https://cdn.jsdelivr.net/npm/three-mesh-bvh@0.5.23/build/index.module.js", + "web-ifc": "https://cdn.jsdelivr.net/npm/web-ifc@0.0.36/web-ifc-api.js", + "web-ifc-three": "https://cdn.jsdelivr.net/npm/web-ifc-three@0.0.126/IFCLoader.js" } } @@ -72,7 +72,7 @@ //Setup IFC Loader const ifcLoader = new IFCLoader(); - await ifcLoader.ifcManager.setWasmPath( 'https://unpkg.com/web-ifc@0.0.36/', true ); + await ifcLoader.ifcManager.setWasmPath( 'https://cdn.jsdelivr.net/npm/web-ifc@0.0.36/', true ); await ifcLoader.ifcManager.parser.setupOptionalCategories( { [ IFCSPACE ]: false, diff --git a/examples/webgl_loader_texture_hdrjpg.html b/examples/webgl_loader_texture_hdrjpg.html index a85060cf485f38..7fec207f879629 100644 --- a/examples/webgl_loader_texture_hdrjpg.html +++ b/examples/webgl_loader_texture_hdrjpg.html @@ -39,7 +39,7 @@ "imports": { "three": "../build/three.module.js", "three/addons/": "./jsm/", - "@monogrid/gainmap-js": "https://unpkg.com/@monogrid/gainmap-js@3.0.0/dist/decode.js" + "@monogrid/gainmap-js": "https://cdn.jsdelivr.net/npm/@monogrid/gainmap-js@3.0.0/dist/decode.js" } } diff --git a/examples/webgl_modifier_subdivision.html b/examples/webgl_modifier_subdivision.html index 75f0edbd27bf75..aee4060bcddc6c 100644 --- a/examples/webgl_modifier_subdivision.html +++ b/examples/webgl_modifier_subdivision.html @@ -18,7 +18,7 @@ "imports": { "three": "../build/three.module.js", "three/addons/": "./jsm/", - "three-subdivide": "https://unpkg.com/three-subdivide@1.1.2/build/index.module.js" + "three-subdivide": "https://cdn.jsdelivr.net/npm/three-subdivide@1.1.2/build/index.module.js" } } @@ -324,4 +324,4 @@ - \ No newline at end of file + diff --git a/examples/webgl_raycaster_bvh.html b/examples/webgl_raycaster_bvh.html index 6a0daa34e03d5b..35d9902d1175f3 100644 --- a/examples/webgl_raycaster_bvh.html +++ b/examples/webgl_raycaster_bvh.html @@ -29,7 +29,7 @@ "imports": { "three": "../build/three.module.js", "three/addons/": "./jsm/", - "three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.7.3/build/index.module.js" + "three-mesh-bvh": "https://cdn.jsdelivr.net/npm/three-mesh-bvh@0.7.3/build/index.module.js" } } diff --git a/examples/webgl_renderer_pathtracer.html b/examples/webgl_renderer_pathtracer.html index 6f1407bda45ab1..39debe2d5c5f23 100644 --- a/examples/webgl_renderer_pathtracer.html +++ b/examples/webgl_renderer_pathtracer.html @@ -44,8 +44,8 @@ "three": "../build/three.module.js", "three/addons/": "./jsm/", "three/examples/": "./", - "three-gpu-pathtracer": "https://unpkg.com/three-gpu-pathtracer@0.0.20/build/index.module.js", - "three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.7.3/build/index.module.js" + "three-gpu-pathtracer": "https://cdn.jsdelivr.net/npm/three-gpu-pathtracer@0.0.20/build/index.module.js", + "three-mesh-bvh": "https://cdn.jsdelivr.net/npm/three-mesh-bvh@0.7.3/build/index.module.js" } } diff --git a/examples/webgpu_compute_particles_snow.html b/examples/webgpu_compute_particles_snow.html index 3227797c600b86..5ec28022000cd0 100644 --- a/examples/webgpu_compute_particles_snow.html +++ b/examples/webgpu_compute_particles_snow.html @@ -17,7 +17,7 @@ "three": "../build/three.module.js", "three/addons/": "./jsm/", "three/nodes": "./jsm/nodes/Nodes.js", - "stats-gl": "https://www.unpkg.com/stats-gl@2.2.6/dist/main.js" + "stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@2.2.6/dist/main.js" } } diff --git a/examples/webgpu_mesh_batch.html b/examples/webgpu_mesh_batch.html index 9446212889ad94..b277dc664f9b9a 100644 --- a/examples/webgpu_mesh_batch.html +++ b/examples/webgpu_mesh_batch.html @@ -29,7 +29,7 @@ "three": "../build/three.module.js", "three/addons/": "./jsm/", "three/nodes": "./jsm/nodes/Nodes.js", - "stats-gl": "https://www.unpkg.com/stats-gl@2.2.7/dist/main.js" + "stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@2.2.7/dist/main.js" } } diff --git a/manual/en/fundamentals.html b/manual/en/fundamentals.html index 649f0e067aefb6..f006992ccdb36e 100644 --- a/manual/en/fundamentals.html +++ b/manual/en/fundamentals.html @@ -404,8 +404,8 @@

es6 modules, three.js, and folder structure

<script type="importmap">
 {
   "imports": {
-    "three": "https://unpkg.com/three@<version>/build/three.module.js",
-    "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/"
+    "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
+    "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
   }
 }
 </script>
diff --git a/manual/examples/resources/editor-settings.js b/manual/examples/resources/editor-settings.js
index ea7c6d003f96e4..faedfa4f09a656 100644
--- a/manual/examples/resources/editor-settings.js
+++ b/manual/examples/resources/editor-settings.js
@@ -169,8 +169,8 @@
 
 		const moduleRE = /(import.*?)('|")(.*?)('|")/g;
 
-		// convert https://threejs.org/build/three.module.js -> https://unpkg.com/three@
-		// convert https://threejs.org/examples/jsm/.?? -> https://unpkg.com/three@/examples/jsm/.??
+		// convert https://threejs.org/build/three.module.js -> https://cdn.jsdelivr.net/npm/three@
+		// convert https://threejs.org/examples/jsm/.?? -> https://cdn.jsdelivr.net/npm/three@/examples/jsm/.??
 
 		if ( ! version ) {
 
@@ -194,12 +194,12 @@
 
 				if ( href.includes( '/build/three.module.js' ) ) {
 
-					return `https://unpkg.com/three@${version}`;
+					return `https://cdn.jsdelivr.net/npm/three@${version}`;
 
 				} else if ( href.includes( '/examples/jsm/' ) ) {
 
 					const url = new URL( href );
-					return `https://unpkg.com/three@${version}${url.pathname}${url.search}${url.hash}`;
+					return `https://cdn.jsdelivr.net/npm/three@${version}${url.pathname}${url.search}${url.hash}`;
 
 				}
 
diff --git a/manual/examples/resources/editor.html b/manual/examples/resources/editor.html
index d323623b4e9135..0c9e7630a4f649 100644
--- a/manual/examples/resources/editor.html
+++ b/manual/examples/resources/editor.html
@@ -277,7 +277,7 @@
   
 
 
-
+
 
 
 
diff --git a/manual/examples/resources/editor.js b/manual/examples/resources/editor.js
index 23fc40181e104c..176f4a25724672 100644
--- a/manual/examples/resources/editor.js
+++ b/manual/examples/resources/editor.js
@@ -1961,7 +1961,7 @@ async function openInStackBlitz() {
 		} else {
 
 			applySubstitutions();
-			require.config( { paths: { 'vs': 'https://unpkg.com/monaco-editor@0.34.1/min/vs' } } );
+			require.config( { paths: { 'vs': 'https://cdn.jsdelivr.net/npm/monaco-editor@0.34.1/min/vs' } } );
 			require( [ 'vs/editor/editor.main' ], main );
 
 		}
diff --git a/manual/fr/fundamentals.html b/manual/fr/fundamentals.html
index 9cf695a9cb222c..026229ceb3011e 100644
--- a/manual/fr/fundamentals.html
+++ b/manual/fr/fundamentals.html
@@ -418,8 +418,8 @@ 

es6 modules, Three.js et structure de dossiers

Cela est valable aussi lors de l'utilisation d'un CDN. Assurez vous que vos chemins versThis includes when using a CDN. Be three.modules.js terminent par /build/three.modules.js. Par exemple :

-
import * as THREE from 'https://unpkg.com/three@<version>/build/three.module.js';
-import {OrbitControls} from 'https://unpkg.com/three@<version>/addons/controls/OrbitControls.js';
+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js';
+import {OrbitControls} from 'https://cdn.jsdelivr.net/npm/three@<version>/addons/controls/OrbitControls.js';
 
diff --git a/manual/ja/fundamentals.html b/manual/ja/fundamentals.html index 3431a17be938fd..3dc8eeea5e3dce 100644 --- a/manual/ja/fundamentals.html +++ b/manual/ja/fundamentals.html @@ -301,8 +301,8 @@

es6モジュール、three.js、およびフォルダー構造

import {OrbitControls} from './someFolder/addons/controls/OrbitControls.js';

これにはCDNを使用する場合も含まれます。 three.modules.js のパスが /build/three.modules.js のようになってる事を確認して下さい。例えば

-
import * as THREE from 'https://unpkg.com/three@<version>/build/three.module.js';
-import {OrbitControls} from 'https://unpkg.com/three@<version>/addons/controls/OrbitControls.js';
+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js';
+import {OrbitControls} from 'https://cdn.jsdelivr.net/npm/three@<version>/addons/controls/OrbitControls.js';
 
diff --git a/manual/ko/fundamentals.html b/manual/ko/fundamentals.html index f54a6e744566cb..20e551e487caaf 100644 --- a/manual/ko/fundamentals.html +++ b/manual/ko/fundamentals.html @@ -389,8 +389,8 @@

es6 모듈, Three.js, 프로젝트 구조

아래는 CDN을 사용하는 예시입니다. three.modules.js의 경로가 /build/three.modules.js 로 끝나야 한다는 것을 명심하세요.

-
import * as THREE from 'https://unpkg.com/three@<version>/build/three.module.js';
-import {OrbitControls} from 'https://unpkg.com/three@<version>/addons/controls/OrbitControls.js';
+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js';
+import {OrbitControls} from 'https://cdn.jsdelivr.net/npm/three@<version>/addons/controls/OrbitControls.js';
 
@@ -403,4 +403,4 @@

es6 모듈, Three.js, 프로젝트 구조

- \ No newline at end of file + diff --git a/manual/zh/fundamentals.html b/manual/zh/fundamentals.html index 6a70306468abab..82d8221b9928ae 100644 --- a/manual/zh/fundamentals.html +++ b/manual/zh/fundamentals.html @@ -302,8 +302,8 @@

es6模块,three.js,和文件夹结构

在使用CDN时,是同样的道理。确保three.modules.js的路径以 /build/three.modules.js结尾,比如

-
import * as THREE from 'https://unpkg.com/three@<version>/build/three.module.js';
-import {OrbitControls} from 'https://unpkg.com/three@<version>/addons/controls/OrbitControls.js';
+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js';
+import {OrbitControls} from 'https://cdn.jsdelivr.net/npm/three@<version>/addons/controls/OrbitControls.js';
 
@@ -316,4 +316,4 @@

es6模块,three.js,和文件夹结构

- \ No newline at end of file +