MCPcopy
hub / github.com/methodofaction/Method-Draw / setStrokeOpt

Function setStrokeOpt

src/js/method-draw.js:378–389  ·  view source on GitHub ↗
(opt, changeElem)

Source from the content-addressed store, hash-verified

376
377
378 function setStrokeOpt(opt, changeElem) {
379 var id = opt.id;
380 var bits = id.split('_');
381 var pre = bits[0];
382 var val = bits[1];
383
384 if(changeElem) {
385 svgCanvas.setStrokeAttr('stroke-' + pre, val);
386 }
387 operaRepaint();
388 $(opt).addClass('current').siblings().removeClass('current');
389 }
390
391 var accumulatedDelta = 0
392 $('#workarea').on('mousewheel', function(e, delta, deltaX, deltaY){

Callers

nothing calls this directly

Calls 1

$Function · 0.85

Tested by

no test coverage detected