@spatius/avatarkit 1.2.0 → 1.3.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/CHANGELOG.md +21 -0
- package/README.md +8 -953
- package/dist/{StreamingAudioPlayer-a3vy2ZId.js → StreamingAudioPlayer-DmOtqI_a.js} +1 -1
- package/dist/{avatar_core_wasm-bd762669.wasm → avatar_core_wasm-36bf5449.wasm} +0 -0
- package/dist/avatar_core_wasm-BIbE25D3.js +2697 -0
- package/dist/index-BDFs1WRg.js +21757 -0
- package/dist/index.js +1 -1
- package/dist/types/character.d.ts +5 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +3 -4
- package/dist/avatar_core_wasm-CQbUl6zN.js +0 -2696
- package/dist/index-CZsHxG4F.js +0 -21716
package/dist/index.js
CHANGED
|
@@ -29,6 +29,11 @@ export interface CustomAnimation {
|
|
|
29
29
|
export interface CharacterAsset {
|
|
30
30
|
characterId: string;
|
|
31
31
|
version: string;
|
|
32
|
+
/**
|
|
33
|
+
* 资产兼容性标记。core 据此精确匹配渲染逻辑:
|
|
34
|
+
* [] → 基础;["easy_body"] → 身体固定;其它组合 → 当前 SDK 不支持。
|
|
35
|
+
*/
|
|
36
|
+
compatibilityFlags: string[];
|
|
32
37
|
createdAt?: string;
|
|
33
38
|
updatedAt?: string;
|
|
34
39
|
camera?: ResourceHolder;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -107,6 +107,8 @@ export declare enum ErrorCode {
|
|
|
107
107
|
invalidAvatarMetadata = "invalidAvatarMetadata",
|
|
108
108
|
/** Failed to download avatar assets */
|
|
109
109
|
failedToDownloadAvatarAssets = "failedToDownloadAvatarAssets",
|
|
110
|
+
/** Avatar asset compatibility_flags not supported by this SDK version (upgrade SDK) */
|
|
111
|
+
unsupportedAvatarAsset = "unsupportedAvatarAsset",
|
|
110
112
|
/** WebSocket connection error (handshake failure, network error) */
|
|
111
113
|
websocketError = "websocketError",
|
|
112
114
|
/** WebSocket connection closed abnormally (close code 1006) */
|
package/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spatius/avatarkit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"packageManager": "pnpm@10.18.2",
|
|
6
|
-
"description": "AvatarKit SDK -
|
|
6
|
+
"description": "AvatarKit SDK - Real-time Avatar Rendering SDK for Web",
|
|
7
7
|
"author": "AvatarKit Team",
|
|
8
|
-
"license": "
|
|
8
|
+
"license": "UNLICENSED",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"avatar",
|
|
11
11
|
"3d",
|
|
12
|
-
"gaussian-splatting",
|
|
13
12
|
"webgl",
|
|
14
13
|
"webgpu",
|
|
15
14
|
"wasm"
|