updated graph

This commit is contained in:
2026-06-26 01:42:16 -04:00
parent 74a8018f01
commit aeffa30417
2 changed files with 4 additions and 4 deletions

View File

@@ -42,9 +42,9 @@ const arc = computed(() => {
});
const splitIdx = Math.round(totalPct * 200);
const { x: cx, y: cy } = pts[Math.min(splitIdx, 200)];
const { x: cx, y: cy } = <any>pts[Math.min(splitIdx, 200)];
const traveledPts = pts.slice(0, splitIdx + 1);
const traveledPts: any = pts.slice(0, splitIdx + 1);
const filledPath = traveledPts.map((p, i) => `${i === 0 ? 'M' : 'L'}${p.x.toFixed(1)},${p.y.toFixed(1)}`).join(' ')
+ ` L${traveledPts[traveledPts.length - 1].x.toFixed(1)},${horizonY}`
+ ` L${x1},${horizonY} Z`;