# HG changeset patch
# User wycc
# Date 1284895713 -28800
# Node ID dfe28355bdedfb9ae5774671c9bba32376a494e5
# Parent f348a41e1aae6c2449f1fbbcea283976d32c2dd9
Fix the location of the text elements.
diff -r f348a41e1aae -r dfe28355bded nodejs/desktop.svg
--- a/nodejs/desktop.svg Sun Sep 19 11:38:17 2010 +0800
+++ b/nodejs/desktop.svg Sun Sep 19 19:28:33 2010 +0800
@@ -53,6 +53,97 @@
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+ inkscape:transform-center-y="0"
+ inkscape:bbox-x="35.992421"
+ inkscape:bbox-y="383.87928"
+ inkscape:bbox-width="85.598946"
+ inkscape:bbox-height="84.588799" />
+ inkscape:transform-center-y="0"
+ inkscape:bbox-x="189.7836"
+ inkscape:bbox-y="386.37278"
+ inkscape:bbox-width="86.5"
+ inkscape:bbox-height="76.928574" />
+ inkscape:transform-center-y="0"
+ inkscape:bbox-x="354.2955"
+ inkscape:bbox-y="392.95458"
+ inkscape:bbox-width="84"
+ inkscape:bbox-height="76.14286" />
+ inkscape:transform-center-y="0"
+ inkscape:bbox-x="526.42387"
+ inkscape:bbox-y="389.0568"
+ inkscape:bbox-width="84.571426"
+ inkscape:bbox-height="75.14286" />
+ inkscape:bbox-height="71.720833"
+ mbname="lightbar" />
+ Lim JeongHee (J.Lim) & JoKwon (2AM) - The Road to Break Up7:00-7:30
+ Lim JeongHee (J.Lim) & JoKwon (2AM) - The Road to Break Up7:30-8:30
+ Lim JeongHee (J.Lim) & JoKwon (2AM) - The Road to Break Up8:30-9:30
+ Lim JeongHee (J.Lim) & JoKwon (2AM) - The Road to Break Up9:30-10:30
+ Lim JeongHee (J.Lim) & JoKwon (2AM) - The Road to Break Up10:30-11:30
diff -r f348a41e1aae -r dfe28355bded nodejs/svg.js
--- a/nodejs/svg.js Sun Sep 19 11:38:17 2010 +0800
+++ b/nodejs/svg.js Sun Sep 19 19:28:33 2010 +0800
@@ -253,6 +253,7 @@
var bbox, center;
a = node.attr("bbox-x");
+ sys.puts("a="+a);
if(!a)
return 0;
@@ -391,6 +392,16 @@
} else {
}
}
+ sys.puts(y);
+ if (this._set_bbox(n, tcoord)) {
+ tcoord.center.x -= tcoord[2];
+ tcoord.center.y -= tcoord[5];
+ tcoord._x = tcoord.center.x;
+ tcoord._y = tcoord.center.y;
+ } else {
+ tcoord._x = coord.center.x;
+ tcoord._y = coord.center.y;
+ }
make_mbnames(this.mb_rt, n, tcoord);
};
@@ -469,10 +480,8 @@
var rect = this.mb_rt.rect_new(x,y,w,h,10, 10);
this._set_paint(n, rect);
if (this._set_bbox(n, tcoord)) {
- rx = accu_matrix[0]*tcoord.center.x+accu_matrix[1]*tcoord.center.y+accu_matrix[2];
- ry = accu_matrix[3]*tcoord.center.x+accu_matrix[4]*tcoord.center.y+accu_matrix[5];
- tcoord.center.x -= accu_matrix[2]+tcoord[2];
- tcoord.center.y -= accu_matrix[2]+tcoord[2];
+ tcoord.center.x -= tcoord[2];
+ tcoord.center.y -= tcoord[5];
} else {
if (trans) {
rx = tcoord[0]*x+tcoord[1]*y+tcoord[2];
@@ -483,6 +492,10 @@
tcoord.center.y = ry;
}
}
+ sys.puts("center.x="+tcoord.center.x);
+ sys.puts("center.y="+tcoord.center.y);
+ tcoord._x = tcoord.center.x;
+ tcoord._y = tcoord.center.y;
tcoord.add_shape(rect);
make_mbnames(this.mb_rt, n, tcoord);
diff -r f348a41e1aae -r dfe28355bded nodejs/testdesktop.js
--- a/nodejs/testdesktop.js Sun Sep 19 11:38:17 2010 +0800
+++ b/nodejs/testdesktop.js Sun Sep 19 19:28:33 2010 +0800
@@ -15,15 +15,18 @@
picture = app.get("picture");
setting = app.get("setting");
+lightbar = app.get("lightbar");
+lines=[app.get("line1"),app.get("line2"),app.get("line3"), app.get("line4"),app.get("line5")];
+for(i=0;i