assistant-robot 0.0.2-alpha → 0.0.2-beta
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/Assistant.d.ts +2 -2
- package/dist/AssistantModel.d.ts +2 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +916 -911
- package/dist/type.d.ts +6 -0
- package/package.json +1 -1
package/dist/Assistant.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { OperationManager } from "./OperationManager";
|
|
4
4
|
import { EUserDetectorStatus } from "./constants";
|
5
5
|
import { EventListener } from "./utils";
|
6
6
|
import type { LanguageModel } from "./LanguageModel";
|
7
|
-
import type { IAssistantRobotConfig } from "./type";
|
7
|
+
import type { IAssistantRobotConfig, IActionConfig } from "./type";
|
8
8
|
export declare class Assistant<T extends LanguageModel> extends EventListener {
|
9
9
|
assistantModel: AssistantModel;
|
10
10
|
userDetector: UserDetector;
|
@@ -17,6 +17,6 @@ export declare class Assistant<T extends LanguageModel> extends EventListener {
|
|
17
17
|
onMenuClick: (key: string) => void;
|
18
18
|
ask: (question: string) => Promise<void>;
|
19
19
|
assistantSay(text: string): void;
|
20
|
-
assistantPlay(name: string): void;
|
20
|
+
assistantPlay(name: string, config?: IActionConfig): void;
|
21
21
|
lookAtUser(): Promise<void>;
|
22
22
|
}
|
package/dist/AssistantModel.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PerspectiveCamera, Scene, WebGL1Renderer, Object3D, AnimationMixer, AnimationClip, AnimationAction, Clock } from "three";
|
2
|
-
import type { TRobotModelConfig, IModelConfig } from "./type";
|
2
|
+
import type { TRobotModelConfig, IModelConfig, IActionConfig } from "./type";
|
3
3
|
export declare class AssistantModel {
|
4
4
|
clock: Clock;
|
5
5
|
container: Element;
|
@@ -19,11 +19,7 @@ export declare class AssistantModel {
|
|
19
19
|
startIdleAction(): void;
|
20
20
|
haltIdleAction(durationInSeconds: number): void;
|
21
21
|
hello(): void;
|
22
|
-
play(name: string, { loop, weight, timeScale, }?:
|
23
|
-
loop?: boolean;
|
24
|
-
weight?: number;
|
25
|
-
timeScale?: number;
|
26
|
-
}): void;
|
22
|
+
play(name: string, { loop, weight, timeScale, repetitions, }?: IActionConfig): void;
|
27
23
|
hideTip(): void;
|
28
24
|
say(text: string): void;
|
29
25
|
animate(): void;
|