@mml-io/3d-web-client-core 0.0.0-experimental-19bc481-20241121 → 0.0.0-experimental-16d1b9c-20241218
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.
@@ -1,12 +1,23 @@
|
|
1
|
+
export declare enum Key {
|
2
|
+
W = "w",
|
3
|
+
A = "a",
|
4
|
+
S = "s",
|
5
|
+
D = "d",
|
6
|
+
SHIFT = "shift",
|
7
|
+
SPACE = " ",
|
8
|
+
C = "c"
|
9
|
+
}
|
1
10
|
export declare class KeyInputManager {
|
2
11
|
private shouldCaptureKeyPress;
|
3
12
|
private keys;
|
4
13
|
private eventHandlerCollection;
|
14
|
+
private bindings;
|
5
15
|
constructor(shouldCaptureKeyPress?: () => boolean);
|
6
16
|
private handleUnfocus;
|
7
17
|
private onKeyDown;
|
8
18
|
private onKeyUp;
|
9
19
|
isKeyPressed(key: string): boolean;
|
20
|
+
createKeyBinding(key: Key, callback: () => void): void;
|
10
21
|
isMovementKeyPressed(): boolean;
|
11
22
|
private getForward;
|
12
23
|
private getBackward;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { EffectComposer } from "postprocessing";
|
2
|
-
import {
|
2
|
+
import { Scene, Vector2, WebGLRenderer } from "three";
|
3
|
+
import { CameraManager } from "../camera/CameraManager";
|
3
4
|
import { Sun } from "../sun/Sun";
|
4
5
|
import { TimeManager } from "../time/TimeManager";
|
5
6
|
import { TweakPane } from "../tweakpane/TweakPane";
|
6
7
|
type ComposerContructorArgs = {
|
7
8
|
scene: Scene;
|
8
|
-
|
9
|
+
cameraManager: CameraManager;
|
9
10
|
spawnSun: boolean;
|
10
11
|
environmentConfiguration?: EnvironmentConfiguration;
|
11
12
|
};
|
@@ -43,7 +44,7 @@ export declare class Composer {
|
|
43
44
|
resolution: Vector2;
|
44
45
|
private readonly scene;
|
45
46
|
postPostScene: Scene;
|
46
|
-
private readonly
|
47
|
+
private readonly cameraManager;
|
47
48
|
readonly renderer: WebGLRenderer;
|
48
49
|
readonly effectComposer: EffectComposer;
|
49
50
|
private readonly renderPass;
|
@@ -69,7 +70,7 @@ export declare class Composer {
|
|
69
70
|
private skyboxState;
|
70
71
|
sun: Sun | null;
|
71
72
|
spawnSun: boolean;
|
72
|
-
constructor({ scene,
|
73
|
+
constructor({ scene, cameraManager, spawnSun, environmentConfiguration, }: ComposerContructorArgs);
|
73
74
|
updateEnvironmentConfiguration(environmentConfiguration: EnvironmentConfiguration): void;
|
74
75
|
setupTweakPane(tweakPane: TweakPane): void;
|
75
76
|
dispose(): void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mml-io/3d-web-client-core",
|
3
|
-
"version": "0.0.0-experimental-
|
3
|
+
"version": "0.0.0-experimental-16d1b9c-20241218",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"lint-fix": "eslint \"./{src,test}/**/*.{js,jsx,ts,tsx}\" --fix"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@mml-io/3d-web-avatar": "0.0.0-experimental-
|
21
|
+
"@mml-io/3d-web-avatar": "0.0.0-experimental-16d1b9c-20241218",
|
22
22
|
"@mml-io/model-loader": "0.18.1",
|
23
23
|
"@monogrid/gainmap-js": "^3.0.5",
|
24
24
|
"@tweakpane/core": "2.0.4",
|
@@ -34,5 +34,5 @@
|
|
34
34
|
"devDependencies": {
|
35
35
|
"@types/three": "0.163.0"
|
36
36
|
},
|
37
|
-
"gitHead": "
|
37
|
+
"gitHead": "ad71059d5cadfe6222831b6e36d865c85760ac12"
|
38
38
|
}
|