@spatialwalk/avatarkit 1.0.0-beta.16 → 1.0.0-beta.17
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/CHANGELOG.md +25 -1
- package/README.md +119 -70
- package/dist/{StreamingAudioPlayer-COgQTrz3.js → StreamingAudioPlayer-a8MwHQ3Q.js} +2 -2
- package/dist/{StreamingAudioPlayer-COgQTrz3.js.map → StreamingAudioPlayer-a8MwHQ3Q.js.map} +1 -1
- package/dist/avatar_core_wasm.wasm +0 -0
- package/dist/core/AvatarController.d.ts +64 -9
- package/dist/core/AvatarController.d.ts.map +1 -1
- package/dist/core/AvatarView.d.ts +9 -2
- package/dist/core/AvatarView.d.ts.map +1 -1
- package/dist/{index-Dsokgngg.js → index-suaZGA5u.js} +1198 -1019
- package/dist/index-suaZGA5u.js.map +1 -0
- package/dist/index.js +9 -8
- package/dist/types/index.d.ts +8 -9
- package/dist/types/index.d.ts.map +1 -1
- package/dist/vanilla/vite.config.d.ts.map +1 -1
- package/package.json +13 -12
- package/dist/index-Dsokgngg.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as o, c as s, a as e, d as t, h as n, g as v, f as
|
|
1
|
+
import { b as o, c as s, a as e, d as t, h as n, g as v, f as i, C as A, D as c, E as l, L as g, R as M, S as d, i as S, j as u, k as f } from "./index-suaZGA5u.js";
|
|
2
2
|
export {
|
|
3
3
|
o as Avatar,
|
|
4
4
|
s as AvatarController,
|
|
@@ -6,14 +6,15 @@ export {
|
|
|
6
6
|
t as AvatarManager,
|
|
7
7
|
n as AvatarPlaybackMode,
|
|
8
8
|
v as AvatarState,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
c as
|
|
9
|
+
i as AvatarView,
|
|
10
|
+
A as ConnectionState,
|
|
11
|
+
c as DrivingServiceMode,
|
|
12
|
+
l as Environment,
|
|
12
13
|
g as LoadProgress,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
M as ResourceType,
|
|
15
|
+
d as SPAvatarError,
|
|
16
|
+
S as extractResourceUrls,
|
|
16
17
|
u as hasMonologue,
|
|
17
|
-
|
|
18
|
+
f as hasMonologueFromModelInfo
|
|
18
19
|
};
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,8 +6,16 @@ export declare enum Environment {
|
|
|
6
6
|
us = "us",
|
|
7
7
|
test = "test"
|
|
8
8
|
}
|
|
9
|
+
export declare enum DrivingServiceMode {
|
|
10
|
+
/** 由 SDK 直接驱动(网络模式) */
|
|
11
|
+
sdk = "sdk",
|
|
12
|
+
/** 由宿主应用驱动(外部数据模式) */
|
|
13
|
+
host = "host"
|
|
14
|
+
}
|
|
9
15
|
export interface Configuration {
|
|
10
16
|
readonly environment: Environment;
|
|
17
|
+
/** 驱动服务模式,默认为 sdk(网络模式) */
|
|
18
|
+
readonly drivingServiceMode?: DrivingServiceMode;
|
|
11
19
|
}
|
|
12
20
|
export interface SdkConfigResponse {
|
|
13
21
|
endpoints: {
|
|
@@ -68,14 +76,5 @@ export declare enum AvatarPlaybackMode {
|
|
|
68
76
|
/** 外部数据模式:外部提供音频和动画数据, SDK 负责同步播放 */
|
|
69
77
|
external = "external"
|
|
70
78
|
}
|
|
71
|
-
/**
|
|
72
|
-
* AvatarView 配置选项
|
|
73
|
-
*/
|
|
74
|
-
export interface AvatarViewOptions {
|
|
75
|
-
/** 播放模式 */
|
|
76
|
-
playbackMode?: AvatarPlaybackMode;
|
|
77
|
-
/** Canvas 容器 */
|
|
78
|
-
container?: HTMLElement;
|
|
79
|
-
}
|
|
80
79
|
export * from './character';
|
|
81
80
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,oBAAY,WAAW;IACrB,EAAE,OA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AC,EAAE,MAAM,YAAA;CAIlD;AAID,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,YAAY,CAAA;IACvB,MAAM,EAAE,YAAY,CAAA;IACpB,SAAS,EAAE,YAAY,CAAA;IACvB,MAAM,EAAE,YAAY,CAAA;IACpB,SAAS,EAAE,YAAY,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAgBD;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,oCAAoC;IACpC,OAAO,YAAY;IACnB,qCAAqC;IACrC,QAAQ,aAAa;CACtB;AAMD,cAAc,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../vanilla/vite.config.ts"],"names":[],"mappings":";AAQA,
|
|
1
|
+
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../vanilla/vite.config.ts"],"names":[],"mappings":";AAQA,wBAyCE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spatialwalk/avatarkit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.17",
|
|
5
|
+
"packageManager": "pnpm@10.18.2",
|
|
5
6
|
"description": "SPAvatar SDK - 3D Gaussian Splatting Avatar Rendering SDK",
|
|
6
7
|
"author": "SPAvatar Team",
|
|
7
8
|
"license": "MIT",
|
|
@@ -31,6 +32,16 @@
|
|
|
31
32
|
"CHANGELOG.md",
|
|
32
33
|
"dist"
|
|
33
34
|
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "SDK_BUILD=true vite build --mode library",
|
|
37
|
+
"dev": "vite build --mode library --watch",
|
|
38
|
+
"clean": "rm -rf dist",
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"test": "cd tests && pnpm test",
|
|
41
|
+
"test:watch": "cd tests && pnpm run test:watch",
|
|
42
|
+
"test:e2e": "cd tests && pnpm run test:e2e",
|
|
43
|
+
"test:perf": "cd tests && pnpm run test:perf"
|
|
44
|
+
},
|
|
34
45
|
"peerDependencies": {
|
|
35
46
|
"@webgpu/types": "*"
|
|
36
47
|
},
|
|
@@ -46,15 +57,5 @@
|
|
|
46
57
|
"typescript": "^5.0.0",
|
|
47
58
|
"vite": "^5.0.0",
|
|
48
59
|
"vite-plugin-dts": "^4.5.4"
|
|
49
|
-
},
|
|
50
|
-
"scripts": {
|
|
51
|
-
"build": "SDK_BUILD=true vite build --mode library",
|
|
52
|
-
"dev": "vite build --mode library --watch",
|
|
53
|
-
"clean": "rm -rf dist",
|
|
54
|
-
"typecheck": "tsc --noEmit",
|
|
55
|
-
"test": "cd tests && pnpm test",
|
|
56
|
-
"test:watch": "cd tests && pnpm run test:watch",
|
|
57
|
-
"test:e2e": "cd tests && pnpm run test:e2e",
|
|
58
|
-
"test:perf": "cd tests && pnpm run test:perf"
|
|
59
60
|
}
|
|
60
|
-
}
|
|
61
|
+
}
|