qt-human 2.0.0-alpha.2 → 2.0.0-alpha.3
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/dist/bundle.esm.js +1 -1
- package/dist/bundle.iife.js +1 -1
- package/dist/bundle.umd.js +1 -1
- package/dist/types/modules/core/render.d.ts +1 -0
- package/dist/types/utils/actionNotifier.d.ts +11 -0
- package/dist/types/utils/chatMessageHandler.d.ts +1 -0
- package/dist/types/utils/sequence.d.ts +4 -5
- package/package.json +1 -1
|
@@ -54,6 +54,7 @@ declare class ThreeJSApp extends Emittery {
|
|
|
54
54
|
animationGroup: THREE.AnimationObjectGroup;
|
|
55
55
|
rotationCenter: THREE.Vector3;
|
|
56
56
|
private muteActionState;
|
|
57
|
+
private actionNotifier;
|
|
57
58
|
constructor(container: string | HTMLElement, config: QuanTe.Model.Description);
|
|
58
59
|
init(): void;
|
|
59
60
|
updateLight(): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export default class ActionNotifier {
|
|
3
|
+
private action;
|
|
4
|
+
private listener;
|
|
5
|
+
private config;
|
|
6
|
+
constructor(action: THREE.AnimationAction, config?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
});
|
|
9
|
+
on(event: 'finished' | 'beforeFinished', listener: (act: THREE.AnimationAction) => void): void;
|
|
10
|
+
update(delta: number): void;
|
|
11
|
+
}
|
|
@@ -14,6 +14,7 @@ export default class ChatMessageHandler {
|
|
|
14
14
|
private startPushed;
|
|
15
15
|
constructor(callback: (msg: string, params: ChatMessageCallbackParams) => void, pushCallback: (msgs: IResultData<QuanTe.API.ChatMessage[]>) => void);
|
|
16
16
|
processMessage(chatMessage: QuanTe.API.ChatMessage): void;
|
|
17
|
+
includeIndex(chat: string): number;
|
|
17
18
|
pushMessage(buffer: string, params: ChatMessageCallbackParams): void;
|
|
18
19
|
checkAndDoAction(): boolean;
|
|
19
20
|
executePushCallback(): void;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
type AsyncFunctionType = () => Promise<any>;
|
|
2
2
|
declare class Sequence {
|
|
3
|
-
list
|
|
4
|
-
isExecute
|
|
5
|
-
runList
|
|
6
|
-
task: AsyncFunctionType;
|
|
7
|
-
}[];
|
|
3
|
+
private list;
|
|
4
|
+
private isExecute;
|
|
5
|
+
private runList;
|
|
8
6
|
constructor();
|
|
9
7
|
add(item: AsyncFunctionType): void;
|
|
10
8
|
execute(): void;
|
|
11
9
|
clear(): void;
|
|
10
|
+
hasRuning(): boolean;
|
|
12
11
|
}
|
|
13
12
|
declare const MutilSequence: typeof Sequence;
|
|
14
13
|
export { type Sequence, MutilSequence };
|