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

PathBuilder::current_point makes implementations hard #3

Open
i509VCB opened this issue Nov 1, 2022 · 1 comment
Open

PathBuilder::current_point makes implementations hard #3

i509VCB opened this issue Nov 1, 2022 · 1 comment

Comments

@i509VCB
Copy link

i509VCB commented Nov 1, 2022

One of the functions that PathBuilder requires is a way to query the current point. This is however not possible to implement if PathBuilder was implemented for a library like lyon or femtovg. Some of the path functions however require relative positions to the current point.

Is this something zeno could adjust to or is it expected that libraries should provide the needed info.

https://docs.rs/zeno/latest/zeno/trait.PathBuilder.html

@nicoburns
Copy link

Can't you just save the most recent point as a field in your wrapper around the underlying library?

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

2 participants