Skip to content

v1.0.0 - Lifecycle outputs

Choose a tag to compare

@andrei-shpileuski andrei-shpileuski released this 07 Apr 21:17
· 6 commits to main since this release

@grandgular/rive-angular v1.0.0

First stable release under. Adds animation lifecycle outputs (aligned with @rive-app/canvas callbacks) and re-exports LoopType and LoopEvent. Changes are additive relative to v0.4.0 — no breaking changes.

What’s new

Output Role
animationPlay / animationPause / animationStop Play / pause / stop (RiveEvent, EventType)
animationLoop Loop iteration finished; event.data is LoopEvent
animationAdvance Per-frame advance (high frequency; emitted outside NgZone.run)

isPlaying / isPaused signals behave as before; the new outputs expose the same lifecycle as events.

<rive-canvas
  src="animation.riv"
  (animationPlay)="onPlay($event)"
  (animationLoop)="onLoop($event)"
/>

Details

See CHANGELOG.md and the library README.