Skip to content

Commit 28427e9

Browse files
committed
cleanup
1 parent 8907cb9 commit 28427e9

69 files changed

Lines changed: 81 additions & 6498 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/app.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8+
<link rel="icon" type="image/svg+xml" href="/favicon.svg?v=racecar" />
9+
<link rel="icon" type="image/x-icon" href="/favicon.ico?v=racecar" />
10+
<link rel="shortcut icon" href="/favicon.ico?v=racecar" />
811
%sveltekit.head%
912
</head>
1013

@@ -13,4 +16,4 @@
1316
<div>%sveltekit.body%</div>
1417
</body>
1518

16-
</html>
19+
</html>

src/components/Index.svelte

Lines changed: 0 additions & 98 deletions
This file was deleted.

src/components/cards/AgentCard.svelte

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
agentStats,
77
overallAgentAdvantage,
88
thresholdAgentNum,
9-
thresholdOracleNum
9+
thresholdOracleNum,
10+
tooltipData,
11+
tooltipVisible,
12+
tooltipType,
13+
lockedSelection,
14+
tooltipAutoHideTimer
1015
} from "$stores/misc.js";
1116
import inView from "$actions/inView.js";
1217
import { format } from "d3-format";
@@ -39,6 +44,21 @@
3944
navAgent.set(agent);
4045
} else {
4146
navAgent.set(undefined);
47+
48+
// If we are exiting and the tooltip is showing data for this agent, close it
49+
if ($tooltipVisible && $tooltipData && $tooltipData.agent_id === agent) {
50+
lockedSelection.set(false);
51+
tooltipVisible.set(false);
52+
tooltipType.set(null);
53+
tooltipData.set(null);
54+
55+
// Clear timer
56+
const timerId = $tooltipAutoHideTimer;
57+
if (timerId) {
58+
clearTimeout(timerId);
59+
tooltipAutoHideTimer.set(null);
60+
}
61+
}
4262
}
4363
}
4464
</script>

src/components/cards/AnimalCard.Nav.svelte

Lines changed: 0 additions & 242 deletions
This file was deleted.

0 commit comments

Comments
 (0)