| 300 | return "#" + string; |
| 301 | }; |
| 302 | var applyStroke = function(p, ref){ |
| 303 | __(p, { |
| 304 | "stroke": ref.line.color, |
| 305 | "stroke-width": ref.line.width, |
| 306 | "stroke-opacity": ref.line.alpha |
| 307 | }); |
| 308 | if(ref.line.caps){ |
| 309 | p.setAttribute("stroke-linecap", ref.line.caps); |
| 310 | } |
| 311 | if(ref.line.joints){ |
| 312 | p.setAttribute("stroke-linejoin", ref.line.joints); |
| 313 | } |
| 314 | if(ref.line.miterLimit){ |
| 315 | p.setAttribute("stroke-miterlimit", ref.line.miterLimit); |
| 316 | } |
| 317 | }; |
| 318 | |
| 319 | var applyFill = function(p, ref){ |
| 320 | __(p, { |