Mercurial > MadButterfly
comparison nodejs/svg.js @ 732:6879aa403306
Add set_text to the coordinate of the coord_t of the text.
author | wycc |
---|---|
date | Fri, 20 Aug 2010 08:34:34 +0800 |
parents | 9c5abb4e114b |
children | 199bac90b90a |
comparison
equal
deleted
inserted
replaced
731:1719484ed15d | 732:6879aa403306 |
---|---|
112 } else { | 112 } else { |
113 sys.puts("Unknown style: "+kv[0]); | 113 sys.puts("Unknown style: "+kv[0]); |
114 } | 114 } |
115 } | 115 } |
116 } | 116 } |
117 function tspan_set_text(text) | |
118 { | |
119 this.text.set_text(text); | |
120 } | |
117 | 121 |
118 loadSVG.prototype.parseTSpan=function(coord, n,style) | 122 loadSVG.prototype.parseTSpan=function(coord, n,style) |
119 { | 123 { |
120 var x = getInteger(n,'x'); | 124 var x = getInteger(n,'x'); |
121 var y = getInteger(n,'y'); | 125 var y = getInteger(n,'y'); |
136 if (name == "tspan") { | 140 if (name == "tspan") { |
137 this.parseTSpan(tcoord,nodes[k]); | 141 this.parseTSpan(tcoord,nodes[k]); |
138 } else { | 142 } else { |
139 } | 143 } |
140 } | 144 } |
145 tcoord.set_text=tspan_set_text; | |
146 tcoord.text = obj; | |
141 make_mbnames(this.mb_rt, n, tcoord); | 147 make_mbnames(this.mb_rt, n, tcoord); |
142 } | 148 } |
143 | 149 |
144 loadSVG.prototype._prepare_paint_color=function(color, alpha) { | 150 loadSVG.prototype._prepare_paint_color=function(color, alpha) { |
145 var paint; | 151 var paint; |