lythreeframe 1.2.41 → 1.2.42
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/bundle.cjs.js
CHANGED
|
@@ -2110,6 +2110,13 @@ class Controller {
|
|
|
2110
2110
|
this.pawn.possess();
|
|
2111
2111
|
this.raycaster = new webgpu.Raycaster();
|
|
2112
2112
|
}
|
|
2113
|
+
updateCamera() {
|
|
2114
|
+
var _a, _b;
|
|
2115
|
+
(_a = this._pawn) === null || _a === void 0 ? void 0 : _a.unpossess();
|
|
2116
|
+
(_b = this._pawn) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
2117
|
+
this._pawn = new Orbital(this);
|
|
2118
|
+
this.pawn.possess();
|
|
2119
|
+
}
|
|
2113
2120
|
init() {
|
|
2114
2121
|
if (this.viewPort.canvas) {
|
|
2115
2122
|
this.viewPort.canvas.addEventListener("pointermove", this.onPointerMove);
|
|
@@ -2953,6 +2960,7 @@ class ThreeJsApp {
|
|
|
2953
2960
|
this._onCameraChangedDelegate.broadcast();
|
|
2954
2961
|
}
|
|
2955
2962
|
this._camera.updateProjectionMatrix();
|
|
2963
|
+
this.controller.updateCamera();
|
|
2956
2964
|
this.viewport.markRenderStateDirty();
|
|
2957
2965
|
}
|
|
2958
2966
|
onWindowResize(width, height) {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -2108,6 +2108,13 @@ class Controller {
|
|
|
2108
2108
|
this.pawn.possess();
|
|
2109
2109
|
this.raycaster = new Raycaster();
|
|
2110
2110
|
}
|
|
2111
|
+
updateCamera() {
|
|
2112
|
+
var _a, _b;
|
|
2113
|
+
(_a = this._pawn) === null || _a === void 0 ? void 0 : _a.unpossess();
|
|
2114
|
+
(_b = this._pawn) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
2115
|
+
this._pawn = new Orbital(this);
|
|
2116
|
+
this.pawn.possess();
|
|
2117
|
+
}
|
|
2111
2118
|
init() {
|
|
2112
2119
|
if (this.viewPort.canvas) {
|
|
2113
2120
|
this.viewPort.canvas.addEventListener("pointermove", this.onPointerMove);
|
|
@@ -2951,6 +2958,7 @@ class ThreeJsApp {
|
|
|
2951
2958
|
this._onCameraChangedDelegate.broadcast();
|
|
2952
2959
|
}
|
|
2953
2960
|
this._camera.updateProjectionMatrix();
|
|
2961
|
+
this.controller.updateCamera();
|
|
2954
2962
|
this.viewport.markRenderStateDirty();
|
|
2955
2963
|
}
|
|
2956
2964
|
onWindowResize(width, height) {
|