v13.3.0
Fixed
- Retina rendering — canvas backing store now scales with
window.devicePixelRatioand the 2D context is pre-scaled so drawing keeps working in CSS-pixel coordinates. (#13, #156) ngOnDestroycrash before init —_clearis null-guarded and_destroyis idempotent, so route-change-during-render no longer throws aTypeError. (#87)- Color / threshold / marker reactivity —
foregroundColor,backgroundColor,thresholds, andmarkersnow refresh the canvas when their input bindings change. Color-only changes redraw synchronously and skip the0 → valueentry animation. (#97, #151) - Zero-length arc sliver —
value=0withanimate=trueandcap='round'no longer renders a small rounded sliver at the minimum position. (#150) - Stale animation displacement on
min/maxchange — updating bounds aftervaluehas changed no longer leaves the previous animation offset baked into the next render. (#150)
Notes
- Reactivity for
thresholds/markersis identity-based. Replace the object reference (immutable update) when you want a redraw — in-place mutation is not detected. - The retina fix changes the canvas backing-store size to
size × dpr. CSS dimensions are unchanged, so layout is unaffected. - Issue #85 (shrink
type='semi'height) is deferred to14.0.0since it changes the host element's height for existing consumers.
Tests
221 specs passing (+15 regression specs); gauge.ts coverage ~94 %.
Full changelog: v13.2.0...v13.3.0