zenno: format & lint fixes

This commit is contained in:
2026-05-24 18:06:51 -04:00
parent 0f14ece4da
commit bae79a5320
6 changed files with 433 additions and 326 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts">
import type { ComputedSeries, HorizontalRule } from '$lib/chart';
import type { ComputedSeries } from '$lib/chart';
import {
acceleration,
APTITUDE_LEVELS,
@@ -70,15 +70,15 @@
const lcY: Array<ComputedSeries | null> = $derived([
{ label: 'Ideal Lane Combo', y: (x) => speedGain(moveLaneModifier(x), lcDur, accel[0], decel[0]) / HORSE_LENGTH },
]);
const pcRuler = $derived({ y: speedGain(0.35, skillDuration(2.4, raceLen), accel[1], decel[1]) / HORSE_LENGTH, label: 'Professor of Curvature' });
const ssYRule = $derived([
pcRuler,
{ y: speedGain(lcBoost, lcDur, accel[0], decel[0]) / HORSE_LENGTH, label: 'Lane Combo' },
]);
const lcYRule = $derived([
pcRuler,
{ y: speedGain(ssBoost, ssDur, accel[0], decel[1]) / HORSE_LENGTH, label: 'Spot Struggle' },
]);
const pcRuler = $derived({
y: speedGain(0.35, skillDuration(2.4, raceLen), accel[1], decel[1]) / HORSE_LENGTH,
label: 'Professor of Curvature',
});
const ssYRule = $derived([pcRuler, { y: speedGain(lcBoost, lcDur, accel[0], decel[0]) / HORSE_LENGTH, label: 'Lane Combo' }]);
const lcYRule = $derived([
pcRuler,
{ y: speedGain(ssBoost, ssDur, accel[0], decel[1]) / HORSE_LENGTH, label: 'Spot Struggle' },
]);
</script>
<h1 class="text-4xl">Front Runner Mechanical Speed Comparator</h1>
@@ -138,10 +138,26 @@
{/each}
</div>
<div class="mx-auto h-60 py-4 md:h-96 md:w-3xl">
<StatChart class="flex-1" stat={Stat.Guts} y={ssY} yLabel="Lengths Gained" range={[0, 1.5, 2.5]} xRule={gutsStat} yRule={ssYRule} />
<StatChart
class="flex-1"
stat={Stat.Guts}
y={ssY}
yLabel="Lengths Gained"
range={[0, 1.5, 2.5]}
xRule={gutsStat}
yRule={ssYRule}
/>
</div>
<div class="mx-auto mt-4 h-60 py-4 md:mt-0 md:h-96 md:w-3xl">
<StatChart class="flex-1" stat={Stat.Power} y={lcY} yLabel="Lengths Gained" range={[0, 1.5, 2.5]} xRule={powerStat} yRule={lcYRule} />
<StatChart
class="flex-1"
stat={Stat.Power}
y={lcY}
yLabel="Lengths Gained"
range={[0, 1.5, 2.5]}
xRule={powerStat}
yRule={lcYRule}
/>
</div>
<div class="mx-auto mt-12 w-full max-w-4xl border-t md:mt-8">
<ul class="ml-4 list-disc">