@pixiv/three-vrm 2.1.1 → 2.1.2
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 +5 -7
- package/lib/three-vrm.js +48 -48
- package/lib/three-vrm.min.js +8 -8
- package/lib/three-vrm.module.js +48 -48
- package/lib/three-vrm.module.min.js +8 -8
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -32,22 +32,20 @@ You will need:
|
|
|
32
32
|
|
|
33
33
|
- [Three.js build](https://github.com/mrdoob/three.js/blob/master/build/three.js)
|
|
34
34
|
- [GLTFLoader](https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/GLTFLoader.js)
|
|
35
|
-
- [A build of @pixiv/three-vrm](https://
|
|
35
|
+
- [A build of @pixiv/three-vrm](https://www.jsdelivr.com/package/npm/@pixiv/three-vrm?tab=files&path=lib)
|
|
36
36
|
- `.module` ones are ESM, otherwise it's UMD and injects its modules into global `THREE`
|
|
37
37
|
- `.min` ones are minified (for production), otherwise it's not minified and it comes with source maps
|
|
38
38
|
|
|
39
|
+
You can import all of them via CDN. See the example below.
|
|
40
|
+
|
|
39
41
|
Code like this:
|
|
40
42
|
|
|
41
43
|
```html
|
|
42
|
-
<!-- About import maps, see the Three.js official docs: -->
|
|
43
|
-
<!-- https://threejs.org/docs/#manual/en/introduction/Installation -->
|
|
44
|
-
<script async src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script>
|
|
45
|
-
|
|
46
44
|
<script type="importmap">
|
|
47
45
|
{
|
|
48
46
|
"imports": {
|
|
49
|
-
"three": "https://
|
|
50
|
-
"three/addons/": "https://
|
|
47
|
+
"three": "https://cdn.jsdelivr.net/npm/three@0.164.1/build/three.module.js",
|
|
48
|
+
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.164.1/examples/jsm/",
|
|
51
49
|
"@pixiv/three-vrm": "three-vrm.module.js"
|
|
52
50
|
}
|
|
53
51
|
}
|