diff --git a/src/mol-canvas3d/camera.ts b/src/mol-canvas3d/camera.ts index 21c300e59cc3dc0b1bf56135e723942cfed2d33a..64fc8773c80d89cedfff633a3d20a75571ea83a3 100644 --- a/src/mol-canvas3d/camera.ts +++ b/src/mol-canvas3d/camera.ts @@ -108,7 +108,7 @@ class Camera implements Object3D { } focus(target: Vec3, radius: number) { - this.setState(this.getFocus(target, radius)); + if (radius > 0) this.setState(this.getFocus(target, radius)); } // lookAt(target: Vec3) { @@ -177,8 +177,8 @@ namespace Camera { return { mode: 'perspective', - position: Vec3.zero(), - direction: Vec3.create(0, 0, -1), + position: Vec3.create(0, 0, 100), + direction: Vec3.create(0, 0, 1), up: Vec3.create(0, 1, 0), target: Vec3.create(0, 0, 0), diff --git a/src/mol-canvas3d/canvas3d.ts b/src/mol-canvas3d/canvas3d.ts index d34f8a656f0f21d50f32ae6aed3404a51723b391..f674f3c4916e314f71d5349533fad983f287ea37 100644 --- a/src/mol-canvas3d/canvas3d.ts +++ b/src/mol-canvas3d/canvas3d.ts @@ -115,7 +115,7 @@ namespace Canvas3D { const camera = new Camera({ near: 0.1, far: 10000, - position: Vec3.create(0, 0, 10), + position: Vec3.create(0, 0, 100), mode: p.cameraMode })