Min Zoom Level set
This commit is contained in:
1 parent
fd91ce3dcb
commit
60e78f7b63
2 files changed
+4
-3
No files matched your search
@@ -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
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user