ctucx.git: oeffisearch

[nimlang] fast and simple tripplanner

commit d5f162a921f8c2c2863ab8d9defb09361e2c21de
parent df922b76b009dd2c96fea505226f6cc43de95b64
Author: Milan Pässler <me@pbb.lc>
Date: Wed, 22 Jul 2020 22:46:34 +0200

add back some shadows to canvas
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/client/js/canvas.js b/client/js/canvas.js
@@ -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)];