viral-viewer-2 6.4.1 → 6.4.2

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.
@@ -0,0 +1,8 @@
1
+ import { ViralViewerApi } from "../..";
2
+ import { ViralAvatar } from "../custom-objects/viral-avatar";
3
+ export declare class ViralAvatarManager {
4
+ private viralViewerApi;
5
+ avatars: ViralAvatar[];
6
+ constructor(viralViewerApi: ViralViewerApi);
7
+ load(avatarGLBUrl: string, idleUrl: string, walkUrl: string): ViralAvatar;
8
+ }
@@ -0,0 +1,16 @@
1
+ import { Vector3 } from "three";
2
+ import { ViralViewerApi } from "../..";
3
+ export declare class ViralAvatar {
4
+ private viralViewerApi;
5
+ private mixer;
6
+ private idleAnimation;
7
+ private walkAnimation;
8
+ private avatar;
9
+ private destination;
10
+ isReady: boolean;
11
+ constructor(viralViewerApi: ViralViewerApi, avatarGLBUrl: string, idleUrl: string, walkUrl: string);
12
+ idle(): void;
13
+ walk(): void;
14
+ render(delta: number): void;
15
+ updateDestination(point: Vector3): void;
16
+ }
@@ -7,8 +7,12 @@ export declare class ViralCentralizedEventHandler {
7
7
  private contextMenuEventHandler;
8
8
  cameraHandler(): void;
9
9
  windowHandler(): void;
10
+ private _hoverElementEnable;
10
11
  hoverElementHandler(): void;
12
+ enableHoverElement(value: boolean): void;
13
+ private _selectElementEnable;
11
14
  selectElementHandler(): void;
15
+ enableSelectElement(value: boolean): void;
12
16
  isShiftPressed: boolean;
13
17
  keyboardHandler(): void;
14
18
  }