position corrected

This commit is contained in:
Luis Fernando Molina committed 2020-02-07 16:44:26 +01:00
1 parent ffc24c749f
commit febf48333e
2 files changed
+4 -6

No files matched your search

+2 -4
View File
@@ -37,9 +37,6 @@ function newQuotedAssetalances () {
for (let i = 0; i < 2; i++) {
let speedometer = newSpeedometer()
speedometer.container.frame.position.x = thisObject.container.frame.width / 2 - speedometer.container.frame.width / 2
speedometer.container.frame.position.y = thisObject.container.frame.height / 2 - speedometer.container.frame.height / 2
speedometer.initialize()
thisObject.speedometers.push(speedometer)
}
@@ -109,7 +106,7 @@ function newQuotedAssetalances () {
label = 'ASSET BALANCES'
xOffset = label.length / 2 * fontSize * FONT_ASPECT_RATIO
yOffset = -45
yOffset = -45 + 9
labelPoint = {
x: 0 - xOffset + (thisObject.paramsArray[1].LEFT_OFFSET - thisObject.paramsArray[0].LEFT_OFFSET) / 2 + thisObject.paramsArray[0].LEFT_OFFSET - 20,
@@ -120,3 +117,4 @@ function newQuotedAssetalances () {
browserCanvasContext.fillText(label, labelPoint.x, labelPoint.y)
}
}
+2 -2
View File
@@ -51,13 +51,13 @@ function newSpeedometer () {
}
function drawAssetCircle () {
const RED_LINE_HIGHT = 5
const RED_LINE_HIGHT = 2
const RADIUS = 50
const OPACITY = 1
let centerPoint = {
x: thisObject.params.LEFT_OFFSET,
y: COCKPIT_SPACE_POSITION - COCKPIT_SPACE_HEIGHT / 2
y: COCKPIT_SPACE_POSITION - COCKPIT_SPACE_HEIGHT / 2 - 9
}
browserCanvasContext.beginPath()