@splinetool/loader 0.9.37 → 0.9.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Spline Loader
2
2
 
3
- > Three.js loader for `.spline` files.
3
+ > Three.js loader for `.splinecode` files.
4
4
 
5
5
  It returns a three.js compatible representation of the file scene.
6
6
 
@@ -8,6 +8,8 @@ You should use this package if you want to access your Spline objects and materi
8
8
 
9
9
  If you want to display your Spline scene with interactions and states matching Spline play mode, we recommend you use [spline-runtime](https://www.npmjs.com/package/@splinetool/runtime) instead.
10
10
 
11
+ > :warning: Only **.splinecode** files should be loaded through this API. `.spline` files are meant to be used in the editor.
12
+
11
13
  ## Installation
12
14
 
13
15
  ```
@@ -22,10 +24,10 @@ import SplineLoader from '@splinetool/loader';
22
24
  // Instantiate a loader
23
25
  const loader = new SplineLoader();
24
26
 
25
- // Load a .spline file
27
+ // Load a .splinecode file
26
28
  loader.load(
27
- // path to the .spline file, either from the Spline servers or local
28
- 'https://prod.spline.design/TRfTj83xgjIdHPmT/scene.spline',
29
+ // path to the .splinecode file, either from the Spline servers or local
30
+ 'https://prod.spline.design/2qM3cW5Cx15m3cJ7/scene.splinecode',
29
31
  // called when the resource is loaded
30
32
  (splineScene) => {
31
33
  scene.add(splineScene);