Преглед изворни кода

feat: better regionFill gradients

pull/347/head
Shivam Mishra пре 4 година
committed by GitHub
родитељ
комит
cdf5fbe33b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      src/js/utils/draw.js

+ 1
- 1
src/js/utils/draw.js Прегледај датотеку

@@ -156,7 +156,7 @@ export function makeGradient(svgDefElem, color, lighter = false) {
let gradientDef = renderVerticalGradient(svgDefElem, gradientId);
let opacities = [1, 0.6, 0.2];
if (lighter) {
opacities = [0.4, 0.05, 0];
opacities = [0.15, 0.05, 0];
}

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


Loading…
Откажи
Сачувај