| 381 | }; |
| 382 | |
| 383 | var applyStroke = function(p, ref){ |
| 384 | p.setAttribute("stroke", ref.line.color); |
| 385 | p.setAttribute("stroke-width", ref.line.width); |
| 386 | p.setAttribute("stroke-opacity", ref.line.alpha); |
| 387 | if(ref.line.caps){ |
| 388 | p.setAttribute("stroke-linecap", ref.line.caps); |
| 389 | } |
| 390 | if(ref.line.joints){ |
| 391 | p.setAttribute("stroke-linejoin", ref.line.joints); |
| 392 | } |
| 393 | if(ref.line.miterLimit){ |
| 394 | p.setAttribute("stroke-miterlimit", ref.line.miterLimit); |
| 395 | } |
| 396 | }; |
| 397 | |
| 398 | var applyFill = function(p, ref){ |
| 399 | p.setAttribute("fill", ref.fill.fill); |