@mml-io/3d-web-client-core 0.0.0-experimental-36db237-20250514 → 0.0.0-experimental-c7dfa04-20250515
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.
@@ -59,6 +59,7 @@ export declare class CameraManager {
|
|
59
59
|
private easeOutExpo;
|
60
60
|
updateAspect(aspect: number): void;
|
61
61
|
recomputeFoV(immediately?: boolean): void;
|
62
|
+
isFlyCameraOn(): boolean;
|
62
63
|
toggleFlyCamera(): void;
|
63
64
|
get activeCamera(): PerspectiveCamera;
|
64
65
|
update(): void;
|
package/build/index.js
CHANGED
@@ -431,6 +431,9 @@ var CameraManager = class {
|
|
431
431
|
this.fov = this.targetFOV;
|
432
432
|
}
|
433
433
|
}
|
434
|
+
isFlyCameraOn() {
|
435
|
+
return this.isMainCameraActive === false && this.orbitControls.enabled === true;
|
436
|
+
}
|
434
437
|
toggleFlyCamera() {
|
435
438
|
this.isMainCameraActive = !this.isMainCameraActive;
|
436
439
|
this.orbitControls.enabled = !this.isMainCameraActive;
|
@@ -2556,8 +2559,17 @@ var KeyInputManager = class {
|
|
2556
2559
|
return this.keys.get(key) || false;
|
2557
2560
|
}
|
2558
2561
|
createKeyBinding(key, callback) {
|
2562
|
+
if (this.bindings.has(key)) {
|
2563
|
+
return;
|
2564
|
+
}
|
2559
2565
|
this.bindings.set(key, callback);
|
2560
2566
|
}
|
2567
|
+
removeKeyBinding(key) {
|
2568
|
+
if (!this.bindings.has(key)) {
|
2569
|
+
return;
|
2570
|
+
}
|
2571
|
+
this.bindings.delete(key);
|
2572
|
+
}
|
2561
2573
|
isMovementKeyPressed() {
|
2562
2574
|
return ["w" /* W */, "a" /* A */, "s" /* S */, "d" /* D */].some((key) => this.isKeyPressed(key));
|
2563
2575
|
}
|