|
@@ -110,7 +110,7 @@
|
|
|
|
|
|
// Specify path to a folder containing WASM/JS libraries or a CDN.
|
|
// Specify path to a folder containing WASM/JS libraries or a CDN.
|
|
//loader.setLibraryPath( '/path_to_library/rhino3dm/' );
|
|
//loader.setLibraryPath( '/path_to_library/rhino3dm/' );
|
|
- loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@0.15.0-beta/' );
|
|
|
|
|
|
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@7.15.0/' );
|
|
|
|
|
|
// Load a 3DM file
|
|
// Load a 3DM file
|
|
loader.load(
|
|
loader.load(
|
|
@@ -184,13 +184,13 @@
|
|
</p>
|
|
</p>
|
|
|
|
|
|
<code>
|
|
<code>
|
|
- import rhino3dm from 'https://cdn.jsdelivr.net/npm/rhino3dm@0.15.0-beta/rhino3dm.module.js'
|
|
|
|
|
|
+ import rhino3dm from 'https://cdn.jsdelivr.net/npm/rhino3dm@7.15.0/rhino3dm.module.js'
|
|
|
|
|
|
// Instantiate a loader
|
|
// Instantiate a loader
|
|
const loader = new Rhino3dmLoader();
|
|
const loader = new Rhino3dmLoader();
|
|
|
|
|
|
// Specify path to a folder containing WASM/JS libraries or a CDN.
|
|
// Specify path to a folder containing WASM/JS libraries or a CDN.
|
|
- loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@0.15.0-beta/' );
|
|
|
|
|
|
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@7.15.0/' );
|
|
|
|
|
|
rhino3dm().then(async m => {
|
|
rhino3dm().then(async m => {
|
|
|
|
|
|
@@ -227,7 +227,7 @@
|
|
// Specify path to a folder containing the WASM/JS library:
|
|
// Specify path to a folder containing the WASM/JS library:
|
|
loader.setLibraryPath( '/path_to_library/rhino3dm/' );
|
|
loader.setLibraryPath( '/path_to_library/rhino3dm/' );
|
|
// or from a CDN:
|
|
// or from a CDN:
|
|
- loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@0.15.0-beta/' );
|
|
|
|
|
|
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@7.15.0/' );
|
|
</code>
|
|
</code>
|
|
|
|
|
|
<h3>[method:this setWorkerLimit]( [param:Number workerLimit] )</h3>
|
|
<h3>[method:this setWorkerLimit]( [param:Number workerLimit] )</h3>
|