animation tweaking

This commit is contained in:
Henning Jacobs
2016-12-21 14:38:49 +01:00
parent 18bb9642b7
commit c6a1875bf9
4 changed files with 52 additions and 22 deletions

View File

@@ -94,7 +94,7 @@ export default class Node extends PIXI.Graphics {
var py = 20
for (const pod of this.node.pods) {
if (pod.namespace != 'kube-system') {
const podBox = new Pod(pod, this.tooltip)
const podBox = Pod.getOrCreate(pod, this.tooltip) //new Pod(pod, this.tooltip)
podBox.x = px
podBox.y = py
nodeBox.addChild(podBox.draw())
@@ -110,7 +110,7 @@ export default class Node extends PIXI.Graphics {
py = 100
for (const pod of this.node.pods) {
if (pod.namespace == 'kube-system') {
const podBox = new Pod(pod, this.tooltip)
const podBox = Pod.getOrCreate(pod, this.tooltip) //new Pod(pod, this.tooltip)
podBox.x = px
podBox.y = py
nodeBox.addChild(podBox.draw())