layout shifts
This commit is contained in:
@@ -1086,7 +1086,10 @@
|
||||
for (let i = 0; i < xs.length; i++) {
|
||||
const pos = Math.max(0, Math.min(1, (xs[i] - first) / span));
|
||||
const cover = smoothed[i];
|
||||
fill.addColorStop(pos, withAlpha(s.color, base + (peak - base) * Math.pow(cover / 100, curve)));
|
||||
fill.addColorStop(
|
||||
pos,
|
||||
withAlpha(s.color, base + (peak - base) * Math.pow(cover / 100, curve))
|
||||
);
|
||||
if (edge) {
|
||||
const above = Math.max(0, (cover - EDGE_FLOOR) / (100 - EDGE_FLOOR));
|
||||
edge.addColorStop(pos, withAlpha(s.color, 0.85 * Math.pow(above, 1.6)));
|
||||
|
||||
Reference in New Issue
Block a user