Skip to content

Commit 312b870

Browse files
committed
rename fg RGBA vars
1 parent adcb081 commit 312b870

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/components/drawing/index.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ drawing.pattern = function(sel, calledBy, gd, patternID, shape, size, solidity,
412412
var patternAttrs = {};
413413

414414
var fgC = tinycolor(fgcolor);
415-
var fgStroke = Color.tinyRGB(fgC);
416-
var fgStrokeOpacity = fgC.getAlpha();
415+
var fgRGB = Color.tinyRGB(fgC);
416+
var fgAlpha = fgC.getAlpha();
417417

418418
switch(shape) {
419419
case '/':
@@ -427,8 +427,8 @@ drawing.pattern = function(sel, calledBy, gd, patternID, shape, size, solidity,
427427
patternAttrs = {
428428
'd': path,
429429
'opacity': fgopacity,
430-
'stroke': fgStroke,
431-
'stroke-opacity': fgStrokeOpacity,
430+
'stroke': fgRGB,
431+
'stroke-opacity': fgAlpha,
432432
'stroke-width': linewidth + 'px'
433433
};
434434
break;
@@ -443,8 +443,8 @@ drawing.pattern = function(sel, calledBy, gd, patternID, shape, size, solidity,
443443
patternAttrs = {
444444
'd': path,
445445
'opacity': fgopacity,
446-
'stroke': fgStroke,
447-
'stroke-opacity': fgStrokeOpacity,
446+
'stroke': fgRGB,
447+
'stroke-opacity': fgAlpha,
448448
'stroke-width': linewidth + 'px'
449449
};
450450
break;
@@ -462,8 +462,8 @@ drawing.pattern = function(sel, calledBy, gd, patternID, shape, size, solidity,
462462
patternAttrs = {
463463
'd': path,
464464
'opacity': fgopacity,
465-
'stroke': fgStroke,
466-
'stroke-opacity': fgStrokeOpacity,
465+
'stroke': fgRGB,
466+
'stroke-opacity': fgAlpha,
467467
'stroke-width': linewidth + 'px'
468468
};
469469
break;
@@ -477,8 +477,8 @@ drawing.pattern = function(sel, calledBy, gd, patternID, shape, size, solidity,
477477
patternAttrs = {
478478
'd': path,
479479
'opacity': fgopacity,
480-
'stroke': fgStroke,
481-
'stroke-opacity': fgStrokeOpacity,
480+
'stroke': fgRGB,
481+
'stroke-opacity': fgAlpha,
482482
'stroke-width': linewidth + 'px'
483483
};
484484
break;
@@ -492,8 +492,8 @@ drawing.pattern = function(sel, calledBy, gd, patternID, shape, size, solidity,
492492
patternAttrs = {
493493
'd': path,
494494
'opacity': fgopacity,
495-
'stroke': fgStroke,
496-
'stroke-opacity': fgStrokeOpacity,
495+
'stroke': fgRGB,
496+
'stroke-opacity': fgAlpha,
497497
'stroke-width': linewidth + 'px'
498498
};
499499
break;
@@ -508,8 +508,8 @@ drawing.pattern = function(sel, calledBy, gd, patternID, shape, size, solidity,
508508
patternAttrs = {
509509
'd': path,
510510
'opacity': fgopacity,
511-
'stroke': fgStroke,
512-
'stroke-opacity': fgStrokeOpacity,
511+
'stroke': fgRGB,
512+
'stroke-opacity': fgAlpha,
513513
'stroke-width': linewidth + 'px'
514514
};
515515
break;

0 commit comments

Comments
 (0)