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

[Feature Request] Support for dynamic textStyle per partType #134

Open
githistory opened this issue Mar 23, 2024 · 0 comments
Open

[Feature Request] Support for dynamic textStyle per partType #134

githistory opened this issue Mar 23, 2024 · 0 comments

Comments

@githistory
Copy link

It'd be great to support dynamic textStyle per partType, allowing user to define styles based on part data.

My proposal would be to make partTypes' textStyle property accept function too. If a function is passed in, the library should call the function passing in part data, and use the return value of the function as the textStyle for the part.

Happy to send in a PR if we agree on the approach @dabakovich.

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

No branches or pull requests

1 participant