@mml-io/3d-web-client-core 0.19.0 → 0.20.0
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/build/camera/CameraManager.d.ts +7 -0
- package/build/character/CharacterManager.d.ts +1 -1
- package/build/collisions/CollisionsManager.d.ts +1 -1
- package/build/collisions/getRelativePositionAndRotationRelativeToObject.d.ts +3 -0
- package/build/index.d.ts +2 -2
- package/build/index.js +354 -108
- package/build/index.js.map +4 -4
- package/build/input/KeyInputManager.d.ts +11 -0
- package/build/loading-screen/LoadingScreen.d.ts +24 -3
- package/build/mml/MMLCompositionScene.d.ts +3 -2
- package/build/rendering/composer.d.ts +5 -4
- package/package.json +6 -5
@@ -5,6 +5,9 @@ export declare class CameraManager {
|
|
5
5
|
private targetElement;
|
6
6
|
private collisionsManager;
|
7
7
|
readonly camera: PerspectiveCamera;
|
8
|
+
private flyCamera;
|
9
|
+
private orbitControls;
|
10
|
+
private isMainCameraActive;
|
8
11
|
initialDistance: number;
|
9
12
|
minDistance: number;
|
10
13
|
maxDistance: number;
|
@@ -37,6 +40,8 @@ export declare class CameraManager {
|
|
37
40
|
private lerpDuration;
|
38
41
|
private activePointers;
|
39
42
|
constructor(targetElement: HTMLElement, collisionsManager: CollisionsManager, initialPhi?: number, initialTheta?: number);
|
43
|
+
private createEventHandlers;
|
44
|
+
private disposeEventHandlers;
|
40
45
|
private preventDefaultAndStopPropagation;
|
41
46
|
setupTweakPane(tweakPane: TweakPane): void;
|
42
47
|
private onPointerDown;
|
@@ -54,6 +59,8 @@ export declare class CameraManager {
|
|
54
59
|
private easeOutExpo;
|
55
60
|
updateAspect(aspect: number): void;
|
56
61
|
recomputeFoV(immediately?: boolean): void;
|
62
|
+
toggleFlyCamera(): void;
|
63
|
+
get activeCamera(): PerspectiveCamera;
|
57
64
|
update(): void;
|
58
65
|
hasActiveInput(): boolean;
|
59
66
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PositionAndRotation } from "mml-web";
|
1
|
+
import { PositionAndRotation } from "@mml-io/mml-web";
|
2
2
|
import { Euler, Group, Vector3 } from "three";
|
3
3
|
import { CameraManager } from "../camera/CameraManager";
|
4
4
|
import { CollisionsManager } from "../collisions/CollisionsManager";
|
package/build/index.d.ts
CHANGED
@@ -5,7 +5,7 @@ export * from "./character/url-position";
|
|
5
5
|
export * from "./helpers/math-helpers";
|
6
6
|
export { CharacterModelLoader } from "./character/CharacterModelLoader";
|
7
7
|
export { CharacterState, AnimationState } from "./character/CharacterState";
|
8
|
-
export { KeyInputManager } from "./input/KeyInputManager";
|
8
|
+
export { Key, KeyInputManager } from "./input/KeyInputManager";
|
9
9
|
export { VirtualJoystick } from "./input/VirtualJoystick";
|
10
10
|
export { MMLCompositionScene } from "./mml/MMLCompositionScene";
|
11
11
|
export { TweakPane } from "./tweakpane/TweakPane";
|
@@ -14,6 +14,6 @@ export { TimeManager } from "./time/TimeManager";
|
|
14
14
|
export { CollisionsManager } from "./collisions/CollisionsManager";
|
15
15
|
export { Sun } from "./sun/Sun";
|
16
16
|
export { GroundPlane } from "./ground-plane/GroundPlane";
|
17
|
-
export { LoadingScreen } from "./loading-screen/LoadingScreen";
|
17
|
+
export { LoadingScreenConfig, LoadingScreen } from "./loading-screen/LoadingScreen";
|
18
18
|
export { ErrorScreen } from "./error-screen/ErrorScreen";
|
19
19
|
export { EnvironmentConfiguration } from "./rendering/composer";
|