Increase on executing icon size

This commit is contained in:
Luis Fernando Molina committed 2019-06-08 17:58:40 +02:00
1 parent 2be149ee4f
commit 9dd9dc6f81
1 file changed
+9 -5
+9 -5
View File
@@ -796,7 +796,7 @@ function newStrategyPart () {
browserCanvasContext.strokeStyle = 'rgba(' + UI_COLOR.RED + ', ' + OPACITY + ')'
browserCanvasContext.lineWidth = 10
browserCanvasContext.setLineDash([4, 20])
browserCanvasContext.setLineDash([19, 20])
browserCanvasContext.stroke()
}
@@ -850,11 +850,15 @@ function newStrategyPart () {
if (icon !== undefined) {
if (icon.canDrawIcon === true) {
let additionalImageSize = 0
if (thisObject.isExecuting === true) { additionalImageSize = 20 }
let totalImageSize = additionalImageSize + thisObject.payload.floatingObject.currentImageSize
browserCanvasContext.drawImage(
icon, position.x - thisObject.payload.floatingObject.currentImageSize / 2,
position.y - thisObject.payload.floatingObject.currentImageSize / 2,
thisObject.payload.floatingObject.currentImageSize,
thisObject.payload.floatingObject.currentImageSize)
icon, position.x - totalImageSize / 2,
position.y - totalImageSize / 2,
totalImageSize,
totalImageSize)
}
}