From 60e78f7b63cb5372bf34bbdb3e930e5717049517 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 18 Jan 2020 23:28:24 +0100 Subject: [PATCH] Min Zoom Level set --- ChartsSpace/ViewPort.js | 3 ++- Globals.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChartsSpace/ViewPort.js b/ChartsSpace/ViewPort.js index 0d0f65e2c..55250512e 100644 --- a/ChartsSpace/ViewPort.js +++ b/ChartsSpace/ViewPort.js @@ -2,7 +2,7 @@ function newViewport () { const MODULE_NAME = 'Viewport' - const MIN_ZOOM_LEVEL = 1 + const MIN_ZOOM_LEVEL = 0 const MAX_ZOOM_LEVEL = 100 let ANIMATION_INCREMENT = 0.25 @@ -134,6 +134,7 @@ function newViewport () { } function physics () { + console.log(position, thisObject.zoomLevel) animationPhysics() positioningphysics() // readObjectState() diff --git a/Globals.js b/Globals.js index 9e3c41edb..e8fed4264 100644 --- a/Globals.js +++ b/Globals.js @@ -188,8 +188,8 @@ const PERIOD_01_MIN = "01-min"; We define here the size of the chartSpace. It has to bee enough big in order to accomodate all the charts we expect to display in this space. */ -const TIME_MACHINE_WIDTH = 500; -const TIME_MACHINE_HEIGHT = 100; +const TIME_MACHINE_WIDTH = 1000; +const TIME_MACHINE_HEIGHT = 200; function toRadians(angle) { return angle * (Math.PI / 180);