From 06b72e7ffbc9e637c9931514850a4bdc509307f8 Mon Sep 17 00:00:00 2001 From: Michel Bretschneider Date: Sun, 22 Dec 2024 16:25:27 +0100 Subject: [PATCH] fix rotation for grade text --- ts/RailroadMap.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/RailroadMap.ts b/ts/RailroadMap.ts index f2a69a4..fa6f037 100644 --- a/ts/RailroadMap.ts +++ b/ts/RailroadMap.ts @@ -1313,6 +1313,7 @@ export class RailroadMap { .text((block) => block .text(str) .dx(300)) + .rotate(this.inverted ? 180 : 0) .attr('transform', makeTransformT(cp0, cp1)) .on('click', clickHandler) .addClass(c);