@spatialwalk/avatarkit 1.0.0-beta.78 → 1.0.0-beta.79
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 +5 -0
- package/dist/{StreamingAudioPlayer-BNj8LpDw.js → StreamingAudioPlayer-BT5-8dZQ.js} +1 -1
- package/dist/avatar_core_wasm-e68766db.wasm +0 -0
- package/dist/core/AvatarView.d.ts +9 -1
- package/dist/{index-DEJMvfST.js → index-a-0wPb5D.js} +2 -4
- package/dist/index.js +1 -1
- package/package.json +14 -13
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.0-beta.79] - 2026-02-08
|
|
9
|
+
|
|
10
|
+
### ✨ New Features
|
|
11
|
+
- **Camera API** - Exposed `getCameraConfig()` and `updateCameraConfig()` on AvatarView for external real-time camera control
|
|
12
|
+
|
|
8
13
|
## [1.0.0-beta.78] - 2026-02-04
|
|
9
14
|
|
|
10
15
|
### 🐛 Bugfixes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { A as APP_CONFIG, l as logger, e as errorToMessage, a as logEvent } from "./index-
|
|
4
|
+
import { A as APP_CONFIG, l as logger, e as errorToMessage, a as logEvent } from "./index-a-0wPb5D.js";
|
|
5
5
|
class StreamingAudioPlayer {
|
|
6
6
|
// Mark if AudioContext is being resumed, avoid concurrent resume requests
|
|
7
7
|
constructor(options) {
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyframeData } from '../types';
|
|
1
|
+
import { CameraConfig, KeyframeData } from '../types';
|
|
2
2
|
import { Avatar } from './Avatar';
|
|
3
3
|
import { AvatarController } from './AvatarController';
|
|
4
4
|
export declare class AvatarView {
|
|
@@ -49,6 +49,14 @@ export declare class AvatarView {
|
|
|
49
49
|
* Closes avatarController and cleans up all related resources
|
|
50
50
|
*/
|
|
51
51
|
dispose(): void;
|
|
52
|
+
/**
|
|
53
|
+
* 获取相机配置
|
|
54
|
+
*/
|
|
55
|
+
getCameraConfig(): CameraConfig | null;
|
|
56
|
+
/**
|
|
57
|
+
* 更新相机配置
|
|
58
|
+
*/
|
|
59
|
+
updateCameraConfig(cameraConfig: CameraConfig): void;
|
|
52
60
|
/**
|
|
53
61
|
* Render specified keyframe (pure rendering mode, no audio-animation synchronization)
|
|
54
62
|
* Suitable for scenarios where external application controls audio playback and animation playback
|
|
@@ -8243,7 +8243,7 @@ const _AnimationPlayer = class _AnimationPlayer {
|
|
|
8243
8243
|
if (this.streamingPlayer) {
|
|
8244
8244
|
return;
|
|
8245
8245
|
}
|
|
8246
|
-
const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-
|
|
8246
|
+
const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-BT5-8dZQ.js");
|
|
8247
8247
|
const { AvatarSDK: AvatarSDK2 } = await Promise.resolve().then(() => AvatarSDK$1);
|
|
8248
8248
|
const audioFormat = AvatarSDK2.getAudioFormat();
|
|
8249
8249
|
this.streamingPlayer = new StreamingAudioPlayer({
|
|
@@ -9969,7 +9969,7 @@ class AvatarSDK {
|
|
|
9969
9969
|
}
|
|
9970
9970
|
__publicField(AvatarSDK, "_isInitialized", false);
|
|
9971
9971
|
__publicField(AvatarSDK, "_configuration", null);
|
|
9972
|
-
__publicField(AvatarSDK, "_version", "1.0.0-beta.
|
|
9972
|
+
__publicField(AvatarSDK, "_version", "1.0.0-beta.79");
|
|
9973
9973
|
__publicField(AvatarSDK, "_avatarCore", null);
|
|
9974
9974
|
__publicField(AvatarSDK, "_dynamicSdkConfig", null);
|
|
9975
9975
|
const AvatarSDK$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -16845,14 +16845,12 @@ class AvatarView {
|
|
|
16845
16845
|
}
|
|
16846
16846
|
/**
|
|
16847
16847
|
* 获取相机配置
|
|
16848
|
-
* @internal
|
|
16849
16848
|
*/
|
|
16850
16849
|
getCameraConfig() {
|
|
16851
16850
|
return this.cameraConfig;
|
|
16852
16851
|
}
|
|
16853
16852
|
/**
|
|
16854
16853
|
* 更新相机配置
|
|
16855
|
-
* @internal
|
|
16856
16854
|
*/
|
|
16857
16855
|
updateCameraConfig(cameraConfig) {
|
|
16858
16856
|
this.cameraConfig = cameraConfig;
|
package/dist/index.js
CHANGED
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.79",
|
|
5
|
+
"packageManager": "pnpm@10.18.2",
|
|
5
6
|
"description": "AvatarKit SDK - 3D Gaussian Splatting Avatar Rendering SDK",
|
|
6
7
|
"author": "AvatarKit Team",
|
|
7
8
|
"license": "MIT",
|
|
@@ -37,6 +38,17 @@
|
|
|
37
38
|
"vite.js",
|
|
38
39
|
"vite.d.ts"
|
|
39
40
|
],
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "SDK_BUILD=true vite build --mode library && npm run build:vite-plugin",
|
|
43
|
+
"build:vite-plugin": "tsc vite.ts --outDir . --module esnext --target es2020 --moduleResolution bundler --esModuleInterop --skipLibCheck --declaration --declarationMap",
|
|
44
|
+
"dev": "vite build --mode library --watch",
|
|
45
|
+
"clean": "rm -rf dist",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"test": "cd tests && pnpm test",
|
|
48
|
+
"test:watch": "cd tests && pnpm run test:watch",
|
|
49
|
+
"test:e2e": "cd tests && pnpm run test:e2e",
|
|
50
|
+
"test:perf": "cd tests && pnpm run test:perf"
|
|
51
|
+
},
|
|
40
52
|
"peerDependencies": {
|
|
41
53
|
"@webgpu/types": "*",
|
|
42
54
|
"vite": "^5.0.0"
|
|
@@ -54,16 +66,5 @@
|
|
|
54
66
|
"typescript": "^5.0.0",
|
|
55
67
|
"vite": "^5.0.0",
|
|
56
68
|
"vite-plugin-dts": "^4.5.4"
|
|
57
|
-
},
|
|
58
|
-
"scripts": {
|
|
59
|
-
"build": "SDK_BUILD=true vite build --mode library && npm run build:vite-plugin",
|
|
60
|
-
"build:vite-plugin": "tsc vite.ts --outDir . --module esnext --target es2020 --moduleResolution bundler --esModuleInterop --skipLibCheck --declaration --declarationMap",
|
|
61
|
-
"dev": "vite build --mode library --watch",
|
|
62
|
-
"clean": "rm -rf dist",
|
|
63
|
-
"typecheck": "tsc --noEmit",
|
|
64
|
-
"test": "cd tests && pnpm test",
|
|
65
|
-
"test:watch": "cd tests && pnpm run test:watch",
|
|
66
|
-
"test:e2e": "cd tests && pnpm run test:e2e",
|
|
67
|
-
"test:perf": "cd tests && pnpm run test:perf"
|
|
68
69
|
}
|
|
69
|
-
}
|
|
70
|
+
}
|