浏览代码

rhino3dm version update (#25421)

HEOJUNFO 2 年之前
父节点
当前提交
2340c11d88
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4 4
      docs/examples/en/loaders/3DMLoader.html
  2. 1 1
      examples/webgl_loader_3dm.html

+ 4 - 4
docs/examples/en/loaders/3DMLoader.html

@@ -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>

+ 1 - 1
examples/webgl_loader_3dm.html

@@ -80,7 +80,7 @@
 				scene.add( directionalLight );
 				scene.add( directionalLight );
 
 
 				const loader = new Rhino3dmLoader();
 				const loader = new Rhino3dmLoader();
-				loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/[email protected]1.1/' );
+				loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/[email protected]5.0/' );
 				loader.load( 'models/3dm/Rhino_Logo.3dm', function ( object ) {
 				loader.load( 'models/3dm/Rhino_Logo.3dm', function ( object ) {
 
 
 					scene.add( object );
 					scene.add( object );