qt-human 2.3.8-alpha → 2.4.0-alpha
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 +16 -15
- package/dist/bundle.esm.js +1 -1
- package/dist/bundle.iife.js +1 -1
- package/dist/bundle.umd.js +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/types/modules/core/render.d.ts +1 -1
- package/dist/types/types/enum.d.ts +3 -1
- package/dist/types/types/enum.ts +5 -1
- package/dist/types/types/index.d.ts +3 -1
- package/dist/types/utils/chatMessageHandler.d.ts +2 -1
- package/dist/types/utils/framePlayer.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ declare class ThreeJSApp extends Emittery {
|
|
|
78
78
|
setContainer(): void;
|
|
79
79
|
updateLight(): void;
|
|
80
80
|
initLights(lights?: QuanTe$1.Model.Light[] | ThreeJSON<QuanTe$1.Model.Light>[]): void;
|
|
81
|
-
loadCamera(json
|
|
81
|
+
loadCamera(json?: any): THREE.PerspectiveCamera | undefined;
|
|
82
82
|
loadScene(json: THREE.Object3D | undefined): {
|
|
83
83
|
scene?: THREE.Scene;
|
|
84
84
|
camera?: THREE.PerspectiveCamera;
|
|
@@ -775,7 +775,7 @@ declare namespace QuanTe {
|
|
|
775
775
|
response_mode?: ChatMessageResonseMode
|
|
776
776
|
files?: ChatMessageFile[]
|
|
777
777
|
commandType?: string
|
|
778
|
-
inputs?: any
|
|
778
|
+
inputs?: Record<string, any>
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
|
|
@@ -1048,6 +1048,8 @@ declare namespace QuanTe {
|
|
|
1048
1048
|
target?: XYZ;
|
|
1049
1049
|
// 是否使用轨道控制器
|
|
1050
1050
|
useOrbitControl?: boolean;
|
|
1051
|
+
maxAzimuthAngle?: number;
|
|
1052
|
+
minAzimuthAngle?: number;
|
|
1051
1053
|
}
|
|
1052
1054
|
/**
|
|
1053
1055
|
* 背景
|
|
@@ -1100,7 +1102,11 @@ declare enum EmitEvent {
|
|
|
1100
1102
|
// 摄像机人体检测结果
|
|
1101
1103
|
CAMERA_PERSON_TEST_RESULT = 'camera.person.test.result',
|
|
1102
1104
|
// 摄像机人脸识别结果
|
|
1103
|
-
CAMERA_FACE_RECOGNITION_RESULT = 'camera.face.recognition.result'
|
|
1105
|
+
CAMERA_FACE_RECOGNITION_RESULT = 'camera.face.recognition.result',
|
|
1106
|
+
// 同步文本BS播放开始
|
|
1107
|
+
CHAT_MESSAGE_BS_PLAY_START = 'chat.message.bs.play.start',
|
|
1108
|
+
// 同步文本BS播放结束
|
|
1109
|
+
CHAT_MESSAGE_BS_PLAY_END = 'chat.message.bs.play.end',
|
|
1104
1110
|
}
|
|
1105
1111
|
|
|
1106
1112
|
export { EmitEvent, QuanTe, Human as default };
|
|
@@ -72,7 +72,7 @@ declare class ThreeJSApp extends Emittery {
|
|
|
72
72
|
setContainer(): void;
|
|
73
73
|
updateLight(): void;
|
|
74
74
|
initLights(lights?: QuanTe.Model.Light[] | ThreeJSON<QuanTe.Model.Light>[]): void;
|
|
75
|
-
loadCamera(json
|
|
75
|
+
loadCamera(json?: any): THREE.PerspectiveCamera | undefined;
|
|
76
76
|
loadScene(json: THREE.Object3D | undefined): {
|
|
77
77
|
scene?: THREE.Scene;
|
|
78
78
|
camera?: THREE.PerspectiveCamera;
|
|
@@ -18,5 +18,7 @@ export declare enum EmitEvent {
|
|
|
18
18
|
AUDIO_PAUSE = "audio.pause",
|
|
19
19
|
AUDIO_PLAY = "audio.play",
|
|
20
20
|
CAMERA_PERSON_TEST_RESULT = "camera.person.test.result",
|
|
21
|
-
CAMERA_FACE_RECOGNITION_RESULT = "camera.face.recognition.result"
|
|
21
|
+
CAMERA_FACE_RECOGNITION_RESULT = "camera.face.recognition.result",
|
|
22
|
+
CHAT_MESSAGE_BS_PLAY_START = "chat.message.bs.play.start",
|
|
23
|
+
CHAT_MESSAGE_BS_PLAY_END = "chat.message.bs.play.end"
|
|
22
24
|
}
|
package/dist/types/types/enum.ts
CHANGED
|
@@ -38,5 +38,9 @@ export enum EmitEvent {
|
|
|
38
38
|
// 摄像机人体检测结果
|
|
39
39
|
CAMERA_PERSON_TEST_RESULT = 'camera.person.test.result',
|
|
40
40
|
// 摄像机人脸识别结果
|
|
41
|
-
CAMERA_FACE_RECOGNITION_RESULT = 'camera.face.recognition.result'
|
|
41
|
+
CAMERA_FACE_RECOGNITION_RESULT = 'camera.face.recognition.result',
|
|
42
|
+
// 同步文本BS播放开始
|
|
43
|
+
CHAT_MESSAGE_BS_PLAY_START = 'chat.message.bs.play.start',
|
|
44
|
+
// 同步文本BS播放结束
|
|
45
|
+
CHAT_MESSAGE_BS_PLAY_END = 'chat.message.bs.play.end',
|
|
42
46
|
}
|
|
@@ -380,7 +380,7 @@ export namespace QuanTe {
|
|
|
380
380
|
response_mode?: ChatMessageResonseMode
|
|
381
381
|
files?: ChatMessageFile[]
|
|
382
382
|
commandType?: string
|
|
383
|
-
inputs?: any
|
|
383
|
+
inputs?: Record<string, any>
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
|
|
@@ -653,6 +653,8 @@ export namespace QuanTe {
|
|
|
653
653
|
target?: XYZ;
|
|
654
654
|
// 是否使用轨道控制器
|
|
655
655
|
useOrbitControl?: boolean;
|
|
656
|
+
maxAzimuthAngle?: number;
|
|
657
|
+
minAzimuthAngle?: number;
|
|
656
658
|
}
|
|
657
659
|
/**
|
|
658
660
|
* 背景
|
|
@@ -3,6 +3,7 @@ import type { QuanTe } from '@/types/index';
|
|
|
3
3
|
export type ChatMessageCallbackParams = {
|
|
4
4
|
isEnd: boolean;
|
|
5
5
|
type: 'message' | 'action';
|
|
6
|
+
conversation_id: string;
|
|
6
7
|
};
|
|
7
8
|
export default class ChatMessageHandler {
|
|
8
9
|
private callback;
|
|
@@ -16,6 +17,6 @@ export default class ChatMessageHandler {
|
|
|
16
17
|
processMessage(chatMessage: QuanTe.API.ChatMessage): void;
|
|
17
18
|
includeIndex(chat: string): number;
|
|
18
19
|
pushMessage(buffer: string, params: ChatMessageCallbackParams): void;
|
|
19
|
-
checkAndDoAction(): boolean;
|
|
20
|
+
checkAndDoAction(conversation_id: string): boolean;
|
|
20
21
|
executePushCallback(): void;
|
|
21
22
|
}
|
|
@@ -15,6 +15,7 @@ export default class FramePlayer extends Emittery {
|
|
|
15
15
|
private playShapeFn;
|
|
16
16
|
private audioManager;
|
|
17
17
|
private timerId;
|
|
18
|
+
private callbackMap;
|
|
18
19
|
constructor(config: FramePlayerConfig | undefined, playShapeFn: (bs: number[], idx: number) => void);
|
|
19
20
|
private checkStartPlay;
|
|
20
21
|
startIntervalFPS(onFrame: Function): void;
|
|
@@ -28,5 +29,7 @@ export default class FramePlayer extends Emittery {
|
|
|
28
29
|
private mergeArrayBuffers;
|
|
29
30
|
getPlayingStatus(): boolean;
|
|
30
31
|
getBlendShapes(): number[][];
|
|
32
|
+
registerCallback(key: any, fn: Function): void;
|
|
33
|
+
invokeCallback(key: string, ...args: any[]): void;
|
|
31
34
|
}
|
|
32
35
|
export {};
|