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

Function applyStroke

experimental/scripting/deprecated/bscript.js:383–396  ·  view source on GitHub ↗
(p, ref)

Source from the content-addressed store, hash-verified

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);

Callers 1

bscript.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected