Min Zoom Level set

This commit is contained in:
Luis Fernando Molina committed 2020-01-18 23:28:24 +01:00
1 parent fd91ce3dcb
commit 60e78f7b63
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -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()
+2 -2
View File
@@ -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);