Browse Source

feat: update opacity for light gradient

pull/347/head
Shivam Mishra 4 years ago
parent
commit
51a6ed33a5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/js/utils/draw.js

+ 2
- 2
src/js/utils/draw.js View File

@@ -156,8 +156,8 @@ export function makeGradient(svgDefElem, color, lighter = false) {
let gradientId ='path-fill-gradient' + '-' + color + '-' +(lighter ? 'lighter' : 'default');
let gradientDef = renderVerticalGradient(svgDefElem, gradientId);
let opacities = [1, 0.6, 0.2];
if(lighter) {
opacities = [0.4, 0.2, 0];
if (lighter) {
opacities = [0.4, 0.05, 0];
}

setGradientStop(gradientDef, "0%", color, opacities[0]);


Loading…
Cancel
Save