#4 animate all pod movements

This commit is contained in:
Henning Jacobs
2016-12-22 19:01:38 +01:00
parent 9bafeb4834
commit 9e05c9e33e
2 changed files with 30 additions and 4 deletions

View File

@@ -84,8 +84,7 @@ export default class Node extends PIXI.Graphics {
for (const pod of this.node.pods) {
if (pod.namespace != 'kube-system') {
const podBox = Pod.getOrCreate(pod, this.cluster, this.tooltip)
podBox.x = px
podBox.y = py
podBox.movePodTo(new PIXI.Point(px, py))
nodeBox.addChild(podBox.draw())
px += 13
if (px > 90) {
@@ -100,8 +99,7 @@ export default class Node extends PIXI.Graphics {
for (const pod of this.node.pods) {
if (pod.namespace == 'kube-system') {
const podBox = Pod.getOrCreate(pod, this.cluster, this.tooltip)
podBox.x = px
podBox.y = py
podBox.movePodTo(new PIXI.Point(px, py))
nodeBox.addChild(podBox.draw())
px += 13
if (px > 90) {