Consider using Taffy for Layout #555
RichiCoder1
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Taffy looks awesome. I would much rather depend on some Rust code than C++ (Yoga). It's not clear how stable it is though. Yoga has years of maturity.
We would not want to use NAPI anyway. Rust code is usually easy to convert to WASM, which is what we want. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Taffy is a pretty awesome lib in development with the intent of building something like Yoga to support more layout styles like Grid, Table, and other layout styles seamlessly.
Would be great to see Ink use it both for Grid support and slightly more web-complaint Flexbox implementation, as well as other layout algorithms as they're implemented.
This likely would not be a small change as 1) I don't think Taffy yet has an NAPI package and 2) it would change the behavior of consumers code (possibly).
Beta Was this translation helpful? Give feedback.
All reactions