From 2652b16bd7cb40e657dd7e6ffc7c11569045e49d Mon Sep 17 00:00:00 2001 From: GithubAnon0000 <160563432+GithubAnon0000@users.noreply.github.com> Date: Fri, 2 May 2025 13:32:40 +0200 Subject: [PATCH] UNDO removing transition --- ftl/core-repo | 2 +- ftl/qt-repo | 2 +- ts/routes/graphs/buttons.ts | 44 +++++++++++++++++++------------------ 3 files changed, 25 insertions(+), 23 deletions(-) diff --git a/ftl/core-repo b/ftl/core-repo index 376ae99eb..647e3cb0e 160000 --- a/ftl/core-repo +++ b/ftl/core-repo @@ -1 +1 @@ -Subproject commit 376ae99eb47eae3c5e6298150162715423bc2e4e +Subproject commit 647e3cb0e697c51248201c4fb0df36514e765aa5 diff --git a/ftl/qt-repo b/ftl/qt-repo index 393bacec3..b3562ed35 160000 --- a/ftl/qt-repo +++ b/ftl/qt-repo @@ -1 +1 @@ -Subproject commit 393bacec35703f91520e4d2feec37ed6953114f4 +Subproject commit b3562ed3594d2afa0973edb877cc2f701ff162c3 diff --git a/ts/routes/graphs/buttons.ts b/ts/routes/graphs/buttons.ts index 545bc2668..05856fede 100644 --- a/ts/routes/graphs/buttons.ts +++ b/ts/routes/graphs/buttons.ts @@ -130,27 +130,29 @@ export function renderButtons( .domain(["learning", "young", "mature"]) .range([bounds.marginLeft, bounds.width - bounds.marginRight]); svg.select(".x-ticks") - .call( - axisBottom(xGroup) - .tickFormat( - ((d: GroupKind) => { - let kind: string; - switch (d) { - case "learning": - kind = tr.statisticsCountsLearningCards(); - break; - case "young": - kind = tr.statisticsCountsYoungCards(); - break; - case "mature": - default: - kind = tr.statisticsCountsMatureCards(); - break; - } - return `${kind}`; - }) as any, - ) - .tickSizeOuter(0), + .call((selection) => + selection.transition(trans).call( + axisBottom(xGroup) + .tickFormat( + ((d: GroupKind) => { + let kind: string; + switch (d) { + case "learning": + kind = tr.statisticsCountsLearningCards(); + break; + case "young": + kind = tr.statisticsCountsYoungCards(); + break; + case "mature": + default: + kind = tr.statisticsCountsMatureCards(); + break; + } + return `${kind}`; + }) as any, + ) + .tickSizeOuter(0), + ) ) .attr("direction", "ltr");