add back some shadows to canvas

This commit is contained in:
Milan Pässler 2020-07-22 22:46:34 +02:00
parent df922b76b0
commit d5f162a921

View file

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