|
@@ -166,7 +166,7 @@ export default class Scene extends Mitt {
|
|
|
this.height =
|
|
|
typeof rHeight === "height" ? rHeight : this.domElement.clientHeight;
|
|
|
|
|
|
- const container = document.querySelector(".right");
|
|
|
+ const container = document.querySelector("#canvas");
|
|
|
const { width, height } = container.getBoundingClientRect();
|
|
|
|
|
|
if (width !== this.domElement.clientWidth) {
|
|
@@ -206,7 +206,7 @@ export default class Scene extends Mitt {
|
|
|
this.orthCamera.zoom = this.defaultUseZoom;
|
|
|
// this.orthCamera.position.set(0, 0, 0);
|
|
|
// this.orthCamera.rotation.set(0, 10, 0);
|
|
|
- // this.orthCamera.updateMatrixWorld();
|
|
|
+ this.orthCamera.updateMatrixWorld();
|
|
|
}
|
|
|
|
|
|
editing(item) {
|
|
@@ -247,8 +247,9 @@ export default class Scene extends Mitt {
|
|
|
this.emit("devicePixelRatio");
|
|
|
return;
|
|
|
}
|
|
|
- this.onResize();
|
|
|
+
|
|
|
this.player.floorplanControls.reset();
|
|
|
+ this.onResize();
|
|
|
this.lockView(true);
|
|
|
this.setMode(0);
|
|
|
// await sleep(500);
|