ViewPort positioned sucessfully

This commit is contained in:
Luis Fernando Molina committed 2018-03-03 14:12:20 +01:00
1 parent 2cbc9c7557
commit 9e2b599672
5 files changed
+79 -64

No files matched your search

-19
View File
@@ -22,7 +22,6 @@ function newViewPort() {
fitIntoVisibleArea: fitIntoVisibleArea,
displace: displace,
displaceTarget: displaceTarget,
displaceToDatetime: displaceToDatetime,
animate: animate,
draw: draw,
initialize: initialize
@@ -141,24 +140,6 @@ function newViewPort() {
//console.log("displaceTarget x = " + targetOffset.x + " y = " + targetOffset.y);
}
function displaceToDatetime(datetime, timeLineCoordinateSystem) {
targetOffset.x = targetOffset.x + displaceVector.x;
offsetIncrement = {
x: (targetOffset.x - offset.x) / 10,
y: (targetOffset.y - offset.y) / 10
};
if (CONSOLE_LOG === true) {
console.log("viewPort -> displaceToDatetime x = " + targetOffset.x + " datetime = " + datetime);
}
}
function applyZoom(amount) {