rive-app / rive-wasm

Wasm/JS runtime for Rive
MIT License
739 stars 52 forks source link

List all text runs #371

Closed tobiasandersen closed 3 weeks ago

tobiasandersen commented 1 month ago

We're building a UI for interacting with Rive graphics (that aren't built by us), and we want to automatically expose all inputs and text runs to the user. Currently we can easily detect which inputs are available with the stateMachineInputs() method — but I don't think it's possible to do for text runs?

It would be fantastic to have a similar method for retrieving text runs, e.g. textRuns(). Alternatively https://github.com/rive-app/rive-wasm/issues/359 could also work for us, but I still think this method makes sense.

HayesGordon commented 3 weeks ago

Closing this as a duplicate of #359. I'll provide more information there.