|
@@ -166,7 +166,7 @@
|
|
|
// 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/[email protected]/' );
|
|
|
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/[email protected]/' );
|
|
|
|
|
|
// Load a 3DM file
|
|
|
loader.load(
|
|
@@ -205,13 +205,13 @@
|
|
|
</p>
|
|
|
|
|
|
<code>
|
|
|
- import rhino3dm from 'https://unpkg.com/[email protected]'
|
|
|
+ import rhino3dm from 'https://cdn.jsdelivr.net/npm/[email protected]'
|
|
|
|
|
|
// Instantiate a loader
|
|
|
const loader = new Rhino3dmLoader();
|
|
|
|
|
|
// Specify path to a folder containing WASM/JS libraries or a CDN.
|
|
|
- loader.setLibraryPath( 'https://unpkg.com/[email protected]' );
|
|
|
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/[email protected]' );
|
|
|
|
|
|
const rhino = await rhino3dm();
|
|
|
console.log('Loaded rhino3dm.');
|
|
@@ -244,7 +244,7 @@
|
|
|
// 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/[email protected]' );
|
|
|
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/[email protected]' );
|
|
|
</code>
|
|
|
|
|
|
<h3>[method:this setWorkerLimit]( [param:Number workerLimit] )</h3>
|