Lines Matching refs:svgElement
173 function svgSetPaintData(svgElement, paint) { argument
190 svgElement.setAttribute("fill", 'fill' == paint.style ? color : "none");
192 svgElement.setAttribute("stroke", color);
195 svgElement.setAttribute("stroke-width", paint.strokeWidth);
201 svgElement.setAttribute("font-size", paint.textSize);
204 svgElement.setAttribute("font-family", typeface.family);
207 svgElement.setAttribute("text-anchor", paint.textAlign == "right" ? "end" : assert(0));
210 svgElement.setAttribute("alignment-baseline", paint.textBaseline);
223 var svgElement;
226 svgElement = svgCreatePath(drawSpec[1], drawObj);
229 svgElement = svgCreatePicture(drawSpec[1], drawObj);
232 svgElement = svgCreateText(drawSpec[1], drawObj);
238 svgSetPaintData(svgElement, paintObj);
239 svgPicture.appendChild(svgElement);
243 function svgSetTextData(svgElement, text) { argument
244 svgElement.setAttribute('x', text.x);
245 svgElement.setAttribute('y', text.y);