From af3869df9ff3a0266857bd7c7534b75b36d04aa5 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 7 Nov 2026 22:35:29 +0100 Subject: dashboard: flashes below labels Flashes are drawn beneath the nodes' labels. --- src/api/dashboard/dashboard.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html index ee8627c..d01639e 100644 --- a/src/api/dashboard/dashboard.html +++ b/src/api/dashboard/dashboard.html @@ -339,7 +339,7 @@ - +
@@ -1434,6 +1434,8 @@ function renderGraph() { labels.push(chevron); } } + // Flashes (`drawFlows`) over the lines, below their labels and the nodes. + children.push(document.getElementById("flow-streaks")); children.push(...labels); // Above the lines and their labels, below the nodes. children.push(...hits); @@ -2715,8 +2717,8 @@ graph.addEventListener("mouseleave", () => hover(null)); // record of it. As dots, all at one speed (`flowSpeed`), so over a longer link they // arrive later; as flashes, each crosses its link as fast as the message did (half the // link's round trip) and leaves an afterglow that draws back into where it went -// (`FLASH_GLOW_MS`). Kept above everything else on the map (`flows`, after what `show` -// places). --- +// (`FLASH_GLOW_MS`). Dots are kept above everything else on the map (`flows`, after +// what `show` places), flashes over the lines but below their labels and the nodes. --- const FLOW_SPREAD_MS = 2000, FLOWS_AT_MOST = 6; // A flash's afterglow, after it arrived; and how long it takes over a link whose round // trip isn't known. -- cgit v1.3.1