Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Rive.contents to provide more file information #359

Open
woro83c opened this issue Jul 16, 2024 · 2 comments
Open

Extend Rive.contents to provide more file information #359

woro83c opened this issue Jul 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@woro83c
Copy link

woro83c commented Jul 16, 2024

It would be great if the Rive.contents property were extended to provide more information about the file contents. For example, if I could get a list of the text runs exported, it would allow me to build some type safety around the get/setTextRun APIs, so that we're not trying to update text on text runs that no longer exist.

@HayesGordon HayesGordon added the enhancement New feature or request label Aug 12, 2024
@HayesGordon
Copy link
Contributor

Hey @woro83c, we've released an experimental CLI tool (note that at this time it's still a work-in-progress), and we only provide instruction for building on Mac at this stage.

However, this tool can be used to parse a .riv file, and you can give it a custom Mustache template to generate any code/files you want.

Using this CLI you'd, for example, be able to generate a JSON file containing all of the text- and nested- text runs.

We welcome any and all feedback at this stage.

https://github.com/rive-app/rive-code-generator-wip/tree/main

@woro83c
Copy link
Author

woro83c commented Nov 5, 2024

thank you, sounds really good... i'll check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants