feat: better regionFill gradients

This commit is contained in:
Shivam Mishra 2021-06-16 10:48:38 +00:00 committed by GitHub
parent a26a81c866
commit cdf5fbe33b

View File

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