MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / applyStroke

Function applyStroke

src/scripting/Unpacker.js:302–317  ·  view source on GitHub ↗
(p, ref)

Source from the content-addressed store, hash-verified

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, {

Callers 1

Unpacker.jsFile · 0.70

Calls 1

__Function · 0.85

Tested by

no test coverage detected