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);