zeno icon indicating copy to clipboard operation
zeno copied to clipboard

PathBuilder::current_point makes implementations hard

Open i509VCB opened this issue 3 years ago • 1 comments

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

i509VCB avatar Nov 01 '22 19:11 i509VCB

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

nicoburns avatar Aug 15 '24 23:08 nicoburns