ADSB backfill fix?
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user