Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add count and query APIs for events and text runs at the Artboa…
…rd level, and expose in WASM Will add some tests, but want to get validation before I go much further that this is the approach we want to take to expose Events and Text Runs for a given artboard at the `rive::Artboard` level, similar to the APIs for getting the linear animation/state machine from an `Artboard`. Adding to `ArtboardImporter` seemed most appropriate but not sure there's any caveats or better ways to plumb through adding the events/runs. Maybe @luigi-rosso @philter ? Decided on exposing `textValueRunCount()`/`textValueRunAt()` and `eventCount()`/`eventAt()` APIs on the Artboard at the cpp level to follow existing patterns. This should make it simple for other runtimes to adopt too. Another alternative is just doing an empty `find<rive::TextValueRun>()`/`find<rive::Event>()` call at each runtime level which looks like it returns a list of all the objects. TODO: - [x] Add tests - [x] Check WASM size before/after new bindings Diffs= 22077beda feat: add count and query APIs for events and text runs at the Artboard level, and expose in WASM (#6043)
- Loading branch information