metamaker-for-three 0.1.11 → 0.1.13
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 -4
- package/examples/example.ts +2 -1
- package/libs/metamaker-for-three.js +1 -1
- package/package.json +5 -5
- package/src/lib/core/utils/convert.ts +14 -0
- package/src/lib/index.ts +2 -1
- package/src/lib/sign/index.js +174 -0
- package/tsconfig.json +1 -1
- package/types/index.d.ts +2 -0
- package/types/sign/index.d.ts +2 -0
- package/vue.config.js +1 -0
package/README.md
CHANGED
|
@@ -38,12 +38,10 @@ yarn build:lib
|
|
|
38
38
|
|
|
39
39
|
1. 通过 npm
|
|
40
40
|
|
|
41
|
-
metamaker-for-three
|
|
41
|
+
metamaker-for-three
|
|
42
42
|
|
|
43
43
|
```
|
|
44
|
-
|
|
45
|
-
"metamaker-for-three": "https://github.com/MetaMakerDeveloper/AweSDK-ThreeJS.git#最新版本号"
|
|
46
|
-
}
|
|
44
|
+
npm install metamaker-for-three
|
|
47
45
|
```
|
|
48
46
|
|
|
49
47
|
在无法连接 github 的情况下使用 gitee 连接
|
|
@@ -113,6 +111,7 @@ import MMFT from 'metamaker-for-three'
|
|
|
113
111
|
headers: {
|
|
114
112
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
115
113
|
Authorization: ttsAuth,
|
|
114
|
+
__hjvf:MMFT.sign()
|
|
116
115
|
},
|
|
117
116
|
body: qs.stringify({
|
|
118
117
|
text: text,
|
|
@@ -194,6 +193,8 @@ MetaMakerDeveloper 发布的代码或数字资产(数字人、服装、动作
|
|
|
194
193
|
|
|
195
194
|
## 更新日志
|
|
196
195
|
|
|
196
|
+
2023-1-09:解开动画根骨骼限制
|
|
197
|
+
|
|
197
198
|
2022-10-25:动画资源请求路径重复出现/符
|
|
198
199
|
|
|
199
200
|
2022-09-07:example 增加动作 Loop 设置,请求动作时增加库的版本号。
|
package/examples/example.ts
CHANGED
|
@@ -438,11 +438,12 @@ async function fetchTTSToAnim(text: string) {
|
|
|
438
438
|
speed: 42,
|
|
439
439
|
volume: 100,
|
|
440
440
|
};
|
|
441
|
-
let response: any = await fetch("//
|
|
441
|
+
let response: any = await fetch("//topen.metamaker.cn/api/openmm/v1/text_to_anim", {
|
|
442
442
|
method: "post",
|
|
443
443
|
headers: {
|
|
444
444
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
445
445
|
Authorization: ttsAuth,
|
|
446
|
+
__hjvf: MMFT.sign(),
|
|
446
447
|
},
|
|
447
448
|
body: qs.stringify({
|
|
448
449
|
text: text,
|