Fix VO2 gauge arc direction: sweep=1 for upper (top) semicircle
Build and push images / validate (push) Successful in 2s
Build and push images / build-backend (push) Successful in 5s
Build and push images / build-worker (push) Successful in 5s
Build and push images / build-frontend (push) Successful in 9s

sweep=0 in SVG is counter-clockwise which goes through the bottom of the
circle. sweep=1 (clockwise) correctly traces left→top→right.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 00:41:31 +01:00
parent 221b2cd333
commit 5256bd448c
+1 -1
View File
@@ -77,7 +77,7 @@ function Vo2MaxGauge({ value, birthYear, biologicalSex }) {
const [x1, y1] = toXY(v1)
const [x2, y2] = toXY(v2)
const large = (v2 - v1) / (MAX - MIN) > 0.5 ? 1 : 0
return `M ${x1.toFixed(2)} ${y1.toFixed(2)} A ${r} ${r} 0 ${large} 0 ${x2.toFixed(2)} ${y2.toFixed(2)}`
return `M ${x1.toFixed(2)} ${y1.toFixed(2)} A ${r} ${r} 0 ${large} 1 ${x2.toFixed(2)} ${y2.toFixed(2)}`
}
// Category segment boundaries from the age/sex ACSM table