All working good (scales)

This commit is contained in:
Luis Fernando Molina committed 2020-02-13 13:27:44 +01:00
1 parent fbd78cd413
commit f670bb2ffc
4 files changed
+43 -5

No files matched your search

+2 -2
View File
@@ -95,12 +95,12 @@ function newCoordinateSystem () {
}
}
function recalculateScale () {
function recalculateScale (event) {
/* Defines the initial Zoom level at center position. */
thisObject.scale.x = thisObject.maxWidth / (thisObject.max.x - thisObject.min.x)
thisObject.scale.y = thisObject.maxHeight / (thisObject.max.y - thisObject.min.y)
thisObject.eventHandler.raiseEvent('Scale Changed')
thisObject.eventHandler.raiseEvent('Scale Changed', event)
}
function initializeX (minValue, maxValue, maxWidth) {