@pixiv/three-vrm 1.0.0-beta.8 → 1.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixiv/three-vrm",
3
- "version": "1.0.0-beta.8",
3
+ "version": "1.0.0",
4
4
  "description": "VRM file loader for three.js.",
5
5
  "license": "MIT",
6
6
  "author": "pixiv",
@@ -35,8 +35,9 @@
35
35
  "build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && downlevel-dts types ts3.4/types",
36
36
  "docs": "typedoc --entryPoints ./src/index.ts --out docs",
37
37
  "test": "echo There is no test for three-vrm",
38
- "lint": "eslint \"src/**/*.{ts,tsx}\" && prettier \"src/**/*.{ts,tsx}\" --check",
39
- "lint-fix": "eslint \"src/**/*.{ts,tsx}\" --fix && prettier \"src/**/*.{ts,tsx}\" --write"
38
+ "lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
39
+ "lint-examples": "eslint \"examples/**/*.{ts,tsx,js,html}\" --rule \"padded-blocks: error\"",
40
+ "lint-fix": "eslint \"src/**/*.{ts,tsx}\" --fix && eslint \"examples/**/*.{ts,tsx,js,html}\" --fix && prettier \"src/**/*.{ts,tsx}\" --write"
40
41
  },
41
42
  "lint-staged": {
42
43
  "./src/**/*.{ts,tsx}": [
@@ -45,23 +46,22 @@
45
46
  ]
46
47
  },
47
48
  "dependencies": {
48
- "@pixiv/three-vrm-core": "1.0.0-beta.8",
49
- "@pixiv/three-vrm-materials-hdr-emissive-multiplier": "1.0.0-beta.8",
50
- "@pixiv/three-vrm-materials-mtoon": "1.0.0-beta.8",
51
- "@pixiv/three-vrm-materials-v0compat": "1.0.0-beta.8",
52
- "@pixiv/three-vrm-node-constraint": "1.0.0-beta.8",
53
- "@pixiv/three-vrm-springbone": "1.0.0-beta.8"
49
+ "@pixiv/three-vrm-core": "1.0.0",
50
+ "@pixiv/three-vrm-materials-hdr-emissive-multiplier": "1.0.0",
51
+ "@pixiv/three-vrm-materials-mtoon": "1.0.0",
52
+ "@pixiv/three-vrm-materials-v0compat": "1.0.0",
53
+ "@pixiv/three-vrm-node-constraint": "1.0.0",
54
+ "@pixiv/three-vrm-springbone": "1.0.0"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@rollup/plugin-node-resolve": "^13.0.0",
57
- "@types/three": "^0.136.1",
58
+ "@types/three": "^0.140.0",
58
59
  "lint-staged": "10.5.4",
59
- "quicktype": "^15.0.258",
60
- "three": "^0.136.0"
60
+ "three": "^0.140.2"
61
61
  },
62
62
  "peerDependencies": {
63
- "@types/three": "^0.136.1",
64
- "three": "^0.136.0"
63
+ "@types/three": "^0.140.0",
64
+ "three": "^0.140.2"
65
65
  },
66
- "gitHead": "795124c98cae6403e8936ec15f47016c23af60b1"
66
+ "gitHead": "4d68337eb9a48a1bc53db87c9f5db7894184ce35"
67
67
  }
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { GLTF, GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader';
2
+ import { GLTF, GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader.js';
3
3
  import { VRMExpressionLoaderPlugin, VRMFirstPersonLoaderPlugin, VRMHumanoidLoaderPlugin, VRMLookAtLoaderPlugin, VRMMetaLoaderPlugin } from '@pixiv/three-vrm-core';
4
4
  import { MToonMaterialLoaderPlugin } from '@pixiv/three-vrm-materials-mtoon';
5
5
  import { VRMMaterialsHDREmissiveMultiplierLoaderPlugin } from '@pixiv/three-vrm-materials-hdr-emissive-multiplier';
@@ -22,4 +22,11 @@ export interface VRMLoaderPluginOptions {
22
22
  * Will be overwritten if you use custom loader plugins for each components.
23
23
  */
24
24
  helperRoot?: THREE.Object3D;
25
+ /**
26
+ * Whether it copies pose from normalizedHumanBones to rawHumanBones on {@link update}.
27
+ * `true` by default.
28
+ *
29
+ * @default true
30
+ */
31
+ autoUpdateHumanBones?: boolean;
25
32
  }
@@ -1,2 +1,7 @@
1
1
  import { VRM } from '../VRM';
2
+ /**
3
+ * If the given VRM is VRM0.0, rotate the `vrm.scene` by 180 degrees around the Y axis.
4
+ *
5
+ * @param vrm The target VRM
6
+ */
2
7
  export declare function rotateVRM0(vrm: VRM): void;
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { GLTF, GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader';
2
+ import { GLTF, GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader.js';
3
3
  import { VRMExpressionLoaderPlugin, VRMFirstPersonLoaderPlugin, VRMHumanoidLoaderPlugin, VRMLookAtLoaderPlugin, VRMMetaLoaderPlugin } from '@pixiv/three-vrm-core';
4
4
  import { MToonMaterialLoaderPlugin } from '@pixiv/three-vrm-materials-mtoon';
5
5
  import { VRMMaterialsHDREmissiveMultiplierLoaderPlugin } from '@pixiv/three-vrm-materials-hdr-emissive-multiplier';
@@ -22,4 +22,11 @@ export interface VRMLoaderPluginOptions {
22
22
  * Will be overwritten if you use custom loader plugins for each components.
23
23
  */
24
24
  helperRoot?: THREE.Object3D;
25
+ /**
26
+ * Whether it copies pose from normalizedHumanBones to rawHumanBones on {@link update}.
27
+ * `true` by default.
28
+ *
29
+ * @default true
30
+ */
31
+ autoUpdateHumanBones?: boolean;
25
32
  }
@@ -1,2 +1,7 @@
1
1
  import { VRM } from '../VRM';
2
+ /**
3
+ * If the given VRM is VRM0.0, rotate the `vrm.scene` by 180 degrees around the Y axis.
4
+ *
5
+ * @param vrm The target VRM
6
+ */
2
7
  export declare function rotateVRM0(vrm: VRM): void;
@@ -1 +0,0 @@
1
- export declare function renameMaterialProperty(name: string): string;
@@ -1 +0,0 @@
1
- export declare function renameMaterialProperty(name: string): string;