comparison nodejs/testdesktop.js @ 776:77b561bb7929

Implement new algorithm to calculate the origin of the SVG elemnts so that we can implement object resize without changing the position of the object. However, the image does not work here since it does not use the transformation of the group.
author wycc
date Mon, 30 Aug 2010 08:56:44 +0800
parents d11b0900f03c
children f84ccf1f59ae
comparison
equal deleted inserted replaced
775:caa2fdb5f220 776:77b561bb7929
10 video = app.get("video"); 10 video = app.get("video");
11 audio = app.get("audio"); 11 audio = app.get("audio");
12 picture = app.get("picture"); 12 picture = app.get("picture");
13 setting = app.get("setting"); 13 setting = app.get("setting");
14 items=[video,audio,picture,setting]; 14 items=[video,audio,picture,setting];
15 item = 2; 15 item = 0;
16 an = new animate.scale(app,items[item],1,2,0.1); 16 an = new animate.scale(app,items[item],1,2,10);
17 an.start(); 17 an.start();
18 18
19 app.addKeyListener(mbapp.KEY_UP, function() { 19 app.addKeyListener(mbapp.KEY_UP, function() {
20 var old = items[item]; 20 var old = items[item];
21 item = item - 1; 21 item = item - 1;