Charts Radar Implementation

This commit is contained in:
Luis Fernando Molina committed 2020-01-15 15:04:17 +01:00
1 parent 717bf0cb08
commit 00f3ab68ee
1 file changed
+21
+21
View File
@@ -473,6 +473,27 @@ function newTimeMachine () {
}
thisObject.container.frame.draw(false, true, false, thisObject.fitFunction)
} else {
let icon = canvas.designerSpace.iconByUiObjectType.get(thisObject.payload.node.type)
if (icon !== undefined) {
if (icon.canDrawIcon === true) {
let imageSize = 40
let imagePosition = {
x: thisObject.container.frame.width / 2,
y: thisObject.container.frame.height / 2
}
imagePosition = transformThisPoint(imagePosition, thisObject.container)
imagePosition = thisObject.fitFunction(imagePosition, true)
browserCanvasContext.drawImage(
icon,
imagePosition.x - imageSize / 2,
imagePosition.y - imageSize / 2,
imageSize,
imageSize)
}
}
}
}