# HG changeset patch # User Thinker K.F. Li # Date 1284993823 -28800 # Node ID c385493e04b6dfa0a871a68f8ad74c47794eb222 # Parent eff2f580b536c8a48606a3f707144ab09ae2e3bd Re-indent diff -r eff2f580b536 -r c385493e04b6 nodejs/testdesktop.js --- a/nodejs/testdesktop.js Mon Sep 20 22:43:43 2010 +0800 +++ b/nodejs/testdesktop.js Mon Sep 20 22:43:43 2010 +0800 @@ -1,3 +1,4 @@ +// -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- // vim: sw=4:ts=8:sts=4 var svg = require("./svg"); var mbapp = require("./mbapp"); @@ -18,7 +19,7 @@ lightbar = app.get("lightbar"); lines=[app.get("line1"),app.get("line2"),app.get("line3"), app.get("line4"),app.get("line5")]; for(i=0;i 0.5) x = 900; + else x = -500; + if (y > 0.5) y = 900; + else y = -500; + sx = x - items[i].center.x; + sy = y - items[i].center.y; + an = new animate.linear(app,items[i], sx,sy,2); an.start(); - for(i=0;i 0.5) x = 900; - else x = -500; - if (y > 0.5) y = 900; - else y = -500; - sx = x-items[i].x; - sy = y-items[i].y; - an = new animate.linear(app,items[i], sx,sy,2); - an.start(); - alpha = new animate.alpha(app,items[i],0, 1); - alpha.start(); - } + alpha = new animate.alpha(app,items[i],0, 1); + alpha.start(); + } }); app.loop();