align bars / tooltip

This commit is contained in:
Henning Jacobs
2016-12-21 20:09:37 +01:00
parent b794d4ed42
commit 1270df7e8a
3 changed files with 14 additions and 14 deletions

View File

@@ -66,8 +66,7 @@ export default class Node extends PIXI.Graphics {
s += '\n' + key + ': ' + nodeBox.node.labels[key]
}
nodeBox.tooltip.text.text = s
nodeBox.tooltip.x = nodeBox.toGlobal(new PIXI.Point(0, 0)).x
nodeBox.tooltip.y = nodeBox.toGlobal(new PIXI.Point(0, 0)).y
nodeBox.tooltip.position = nodeBox.toGlobal(new PIXI.Point(0, 15))
nodeBox.tooltip.visible = true
})
topHandle.on('mouseout', function () {