-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: try moving several utility implementations to a new package…
… `@pixiv/three-vrm-utils`
- Loading branch information
Showing
42 changed files
with
405 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/three-vrm-core/src/expressions/VRMExpressionManager.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/three-vrm-node-constraint/src/VRMNodeConstraintManager.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/three-vrm-node-constraint/src/VRMRotationConstraint.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 0 additions & 60 deletions
60
packages/three-vrm-node-constraint/src/utils/Matrix4InverseCache.ts
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
packages/three-vrm-node-constraint/src/utils/quatInvertCompat.ts
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
packages/three-vrm-node-constraint/src/utils/traverseAncestorsFromRoot.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 0 additions & 60 deletions
60
packages/three-vrm-springbone/src/utils/Matrix4InverseCache.ts
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
packages/three-vrm-springbone/src/utils/getWorldQuaternionLite.ts
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
packages/three-vrm-springbone/src/utils/mat4InvertCompat.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# @pixiv/three-vrm-utils | ||
|
||
Utility module for @pixiv/three-vrm. Primarily intended for internal use | ||
|
||
[GitHub Repository](https://github.com/pixiv/three-vrm/tree/dev/packages/three-vrm-utils) | ||
|
||
[Examples](https://pixiv.github.io/three-vrm/packages/three-vrm-utils/examples) | ||
|
||
[Documentation](https://pixiv.github.io/three-vrm/packages/three-vrm-utils/docs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = { | ||
"roots": [ | ||
"<rootDir>/src" | ||
], | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
"testRegex": "[^.]*.test.ts$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"js", | ||
"json", | ||
"node" | ||
], | ||
"collectCoverageFrom": [ | ||
"**/*.ts", | ||
"!**/tests/**" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"name": "@pixiv/three-vrm-utils", | ||
"version": "1.0.6", | ||
"description": "Utility module for @pixiv/three-vrm. Primarily intended for internal use", | ||
"license": "MIT", | ||
"author": "pixiv", | ||
"files": [ | ||
"/lib/", | ||
"/ts*/", | ||
"/types/", | ||
"LICENSE" | ||
], | ||
"main": "lib/three-vrm-utils.js", | ||
"module": "lib/three-vrm-utils.module.js", | ||
"types": "types/index.d.ts", | ||
"typesVersions": { | ||
"<3.9": { | ||
"*": [ | ||
"ts3.4/*" | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
"version": "yarn all", | ||
"all": "yarn lint && yarn clean && yarn build && yarn docs", | ||
"dev": "cross-env NODE_ENV=development rollup -w -c", | ||
"clean": "rimraf docs/ lib/ ts*/ types/", | ||
"build": "yarn build-dev && yarn build-prod && yarn build-types", | ||
"build-dev": "cross-env NODE_ENV=development rollup -c", | ||
"build-prod": "cross-env NODE_ENV=production rollup -c", | ||
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && downlevel-dts types ts3.4/types", | ||
"docs": "typedoc --entryPoints ./src/index.ts --out docs", | ||
"test": "jest", | ||
"lint": "eslint \"src/**/*.{ts,tsx}\" && prettier \"src/**/*.{ts,tsx}\" --check", | ||
"lint-fix": "eslint \"src/**/*.{ts,tsx}\" --fix && prettier \"src/**/*.{ts,tsx}\" --write" | ||
}, | ||
"lint-staged": { | ||
"./src/**/*.{ts,tsx}": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@types/three": "^0.146.0", | ||
"lint-staged": "13.0.3", | ||
"three": "^0.146.0" | ||
}, | ||
"peerDependencies": { | ||
"@types/three": "^0.146.0", | ||
"three": "^0.146.0" | ||
} | ||
} |
Oops, something went wrong.