client/canvas: mark cancelled legs
This commit is contained in:
parent
ff2320d0f2
commit
c4c3a3ab45
|
@ -222,6 +222,17 @@ const renderJourneys = () => {
|
||||||
ctx.scale(dpr, dpr);
|
ctx.scale(dpr, dpr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (leg.cancelled) {
|
||||||
|
ctx.shadowBlur = 5;
|
||||||
|
ctx.strokeStyle = '#cc4444ff';
|
||||||
|
ctx.lineWidth = 5;
|
||||||
|
ctx.beginPath();
|
||||||
|
ctx.moveTo(x, y);
|
||||||
|
ctx.lineTo(x + rectWidth, y + duration);
|
||||||
|
ctx.stroke();
|
||||||
|
ctx.lineWidth = 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* draw journey start and end time */
|
/* draw journey start and end time */
|
||||||
let time;
|
let time;
|
||||||
// note: leg order is reversed at this point in time
|
// note: leg order is reversed at this point in time
|
||||||
|
|
Loading…
Reference in a new issue