Skip to content

Commit

Permalink
Zoom camera out on z-axis of ThreeNode.camera. #169
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Mar 30, 2020
1 parent 0d20e74 commit 702fcca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/view3d/Molecule3DDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class Molecule3DDialog extends Dialog {
// Ball and stick icon
const ballAndStickIcon = new ThreeNode( 50, 50, {
cursor: 'pointer',
cameraPosition: new Vector3( 0, 0, 5 )
cameraPosition: new Vector3( 0, 0, 7 )
} );
const ballAndStickScene = ballAndStickIcon.stage.threeScene;
const ballAndStickContainer = new THREE.Object3D();
Expand All @@ -222,7 +222,7 @@ class Molecule3DDialog extends Dialog {

// Construct 3D view of moleculeNode
const moleculeNode = new ThreeNode( 300, 200, {
cameraPosition: new Vector3( 0, 0, 5 )
cameraPosition: new Vector3( 0, 0, 7 )
} );
const moleculeContainer = new THREE.Object3D();
const moleculeScene = moleculeNode.stage.threeScene;
Expand Down

0 comments on commit 702fcca

Please sign in to comment.