ADSB & Seismic fixes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user