From 58e3d1d0656c86a4c3f5eac3e70369820dc1c6e7 Mon Sep 17 00:00:00 2001 From: Christian Evans Date: Wed, 25 Oct 2017 02:26:38 -0400 Subject: [PATCH 1/2] fixed camera, added draft info box --- app/static/js/Editor.js | 4 +- app/templates/editor.html | 103 +++++++++++++++++++++++++++----------- 2 files changed, 77 insertions(+), 30 deletions(-) diff --git a/app/static/js/Editor.js b/app/static/js/Editor.js index 8fa1774..5ed66df 100644 --- a/app/static/js/Editor.js +++ b/app/static/js/Editor.js @@ -696,7 +696,9 @@ Editor.prototype = { z_max = geo.scale.z * z_max; z_min = geo.scale.z * z_min; - + var scale = z_max - z_min; + var newPos = new THREE.Vector3( scale , scale/2, scale ); + this.execute( new SetPositionCommand( this.camera, newPos ) ); }, diff --git a/app/templates/editor.html b/app/templates/editor.html index 391512a..057c056 100644 --- a/app/templates/editor.html +++ b/app/templates/editor.html @@ -4,6 +4,60 @@ Vis - Web Visualizer + @@ -155,32 +209,6 @@ -