Skip to content

v2.2.2

Choose a tag to compare

@KaiHuebner KaiHuebner released this 16 Sep 13:37
· 58 commits to main since this release
430253c

Changed

  • <Layer pulse> (breaking) — redesigned from a continuous per-frame requestAnimationFrame
    loop to a periodic reset/ramp/hold "ping" driven by Mapbox's own paint-property transition.
    setPaintProperty is now called twice per cycle per entry instead of ~90 times/sec, and — more
    importantly — the map now reaches 'idle'/map.loaded() during each cycle's hold phase; the old
    per-frame loop kept the map permanently "dirty" for as long as it was mounted, which silently
    starved anything waiting on that state (@mapbox/mapbox-gl-draw's own layer-mounting logic, and
    this library's own captureWhenSettled()/waitUntilSettled()). PulseConfig's property/
    from/to are now required (no more defaults biased toward a symbol layer's icon-halo-width —
    see docs/COMPONENTS.md's Layer section for why); waveform is removed (only the 'out'
    "ping" shape remains, the one thing actually used in practice — 'in-out''s continuous
    back-and-forth had no hold phase and could never let the map idle); a new holdFraction (default
    0.25) replaces the old hardcoded ramp/hold split. colors.ts's toRgbaComponents (only ever
    used by the old per-frame color lerp) is removed.

Full Changelog: v2.2.1...v2.2.2

🤖 Generated with Claude Code

https://claude.ai/code/session_011ZxxkcxZxffpdK687TJB9b