Skip to content

v13.3.0

Choose a tag to compare

@ashish-chopra ashish-chopra released this 16 Jun 05:19
· 3 commits to master since this release
12d251f

Fixed

  • Retina rendering — canvas backing store now scales with window.devicePixelRatio and the 2D context is pre-scaled so drawing keeps working in CSS-pixel coordinates. (#13, #156)
  • ngOnDestroy crash before init_clear is null-guarded and _destroy is idempotent, so route-change-during-render no longer throws a TypeError. (#87)
  • Color / threshold / marker reactivityforegroundColor, backgroundColor, thresholds, and markers now refresh the canvas when their input bindings change. Color-only changes redraw synchronously and skip the 0 → value entry animation. (#97, #151)
  • Zero-length arc slivervalue=0 with animate=true and cap='round' no longer renders a small rounded sliver at the minimum position. (#150)
  • Stale animation displacement on min / max change — updating bounds after value has changed no longer leaves the previous animation offset baked into the next render. (#150)

Notes

  • Reactivity for thresholds / markers is 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 to 14.0.0 since 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