More on vertical scale

This commit is contained in:
Luis Fernando Molina committed 2019-12-15 15:59:27 +01:00
1 parent a736f5ce4d
commit d72045a386
1 file changed
+3 -3
+3 -3
View File
@@ -6,7 +6,7 @@ function newRateScale () {
rate: undefined,
fitFunction: undefined,
visible: true,
heightPercentage: 100,
heightPercentage: 150,
physics: physics,
draw: draw,
getContainer: getContainer,
@@ -70,7 +70,7 @@ function newRateScale () {
if (thisObject.heightPercentage < STEP_SIZE) { thisObject.heightPercentage = STEP_SIZE }
} else {
thisObject.heightPercentage = thisObject.heightPercentage + STEP_SIZE
if (thisObject.heightPercentage > 100) { thisObject.heightPercentage = 100 }
if (thisObject.heightPercentage > 150) { thisObject.heightPercentage = 150 }
}
event.heightPercentage = thisObject.heightPercentage
thisObject.container.eventHandler.raiseEvent('Height Percentage Changed', event)
@@ -106,7 +106,7 @@ function newRateScale () {
const DISTANCE_BETWEEN_ARROWS = 10
const MIN_DISTANCE_FROM_CENTER = 30
const CURRENT_VALUE_DISTANCE = MIN_DISTANCE_FROM_CENTER + thisObject.heightPercentage
const MAX_DISTANCE_FROM_CENTER = MIN_DISTANCE_FROM_CENTER + 115 + DISTANCE_BETWEEN_ARROWS
const MAX_DISTANCE_FROM_CENTER = MIN_DISTANCE_FROM_CENTER + 165 + DISTANCE_BETWEEN_ARROWS
let ARROW_DIRECTION = 0