add back some shadows to canvas
This commit is contained in:
parent
df922b76b0
commit
d5f162a921
|
@ -197,6 +197,7 @@ const renderJourneys = () => {
|
|||
y = (start - firstDeparture) * scaleFactor + 32;
|
||||
|
||||
ctx.shadowColor = '#00000060';
|
||||
ctx.shadowBlur = 5;
|
||||
|
||||
if (leg.isWalking || leg.isTransfer) {
|
||||
ctx.fillStyle = '#777';
|
||||
|
@ -205,6 +206,7 @@ const renderJourneys = () => {
|
|||
ctx.fillStyle = colorFor(leg, "fill");
|
||||
ctx.fillRect(x, y, rectWidth, duration);
|
||||
}
|
||||
ctx.shadowBlur = 0;
|
||||
|
||||
|
||||
let preRenderedText = textCache[textFor(leg)];
|
||||
|
|
Loading…
Reference in a new issue