Mercurial > MadButterfly
comparison nodejs/svg.js @ 1422:6fa411fd9549
Commit merged result
author | wycc |
---|---|
date | Wed, 06 Apr 2011 21:35:21 +0800 |
parents | c918b79892ab |
children | 167873cd35c5 |
comparison
equal
deleted
inserted
replaced
1411:5dd46a4f6257 | 1422:6fa411fd9549 |
---|---|
974 tcoord.tx += x; | 974 tcoord.tx += x; |
975 tcoord.ty += y; | 975 tcoord.ty += y; |
976 attr = n.attr('duplicate-src'); | 976 attr = n.attr('duplicate-src'); |
977 if (attr) { | 977 if (attr) { |
978 var id = attr.value(); | 978 var id = attr.value(); |
979 var orign = this.mb_rt.mbnames[id].node; | 979 var coord = this.mb_rt.mbnames[id]; |
980 sys.puts("xxxxxxxxxxxxxx"); | 980 if (coord) { |
981 var nw = getInteger(orign,'width'); | 981 var orign = this.mb_rt.mbnames[id].node; |
982 var nh = getInteger(orign,'height'); | 982 var nw = getInteger(orign,'width'); |
983 sys.puts("nw="+nw); | 983 var nh = getInteger(orign,'height'); |
984 sys.puts("nh="+nh); | 984 tcoord.sx *= w/nw; |
985 sys.puts("w="+w); | 985 tcoord.sy *= h/nh; |
986 sys.puts("h="+h); | 986 } |
987 tcoord.sx *= w/nw; | |
988 tcoord.sy *= h/nh; | |
989 } | 987 } |
990 | 988 |
991 | 989 |
992 | 990 |
993 var rect = this.mb_rt.rect_new(x,y,w,h,10, 10); | 991 var rect = this.mb_rt.rect_new(x,y,w,h,10, 10); |