ADSB & Seismic fixes

This commit is contained in:
2026-06-27 16:02:55 -04:00
parent 85b1d66c02
commit a4f13d87ab
2 changed files with 3 additions and 31 deletions

View File

@@ -10,13 +10,13 @@ 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 = 3; // segments of breathing room at the right edge
const PAD_SEGS = 0;
let interval: ReturnType<typeof setInterval>;
let rafId: number;
let drawProgress = 0;
let lastTimestamp = 0;
const ANIM_DURATION = 950;
const ANIM_DURATION = 1100;
let pointBuffer: { x: number; y: number }[] = [];
let prevMax = 1.0;
@@ -134,7 +134,7 @@ onUnmounted(() => {
</script>
<style scoped lang="scss">
canvas { width: 100%; height: 60px; }
canvas { width: calc(100% - 16px); height: 60px; }
</style>
<template>