ADSB backfill fix?

This commit is contained in:
2026-06-27 16:58:46 -04:00
parent d9fbe0568d
commit 6bc4d920f8
4 changed files with 327 additions and 24 deletions

View File

@@ -10,7 +10,6 @@ const canvas = ref<HTMLCanvasElement | null>(null);
const W = 640, H = 120, MAX_PTS = 120;
const SEG_W = W / (MAX_PTS - 1);
const SUB = 4;
const PAD_SEGS = 0;
let interval: ReturnType<typeof setInterval>;
let rafId: number;
@@ -70,7 +69,7 @@ function draw(timestamp: number) {
if (pointBuffer.length < 2) { rafId = requestAnimationFrame(draw); return; }
// Shift the whole path left by PAD_SEGS segments so tip never hits the edge
const xOffset = PAD_SEGS * SEG_W;
const xOffset = 3 * SEG_W;
const settledCount = pointBuffer.length - SUB;
const anchor = pointBuffer[settledCount - 1];
@@ -134,7 +133,7 @@ onUnmounted(() => {
</script>
<style scoped lang="scss">
canvas { width: calc(100% - 16px); height: 60px; }
canvas { width: 100%; height: 60px; }
</style>
<template>