✨ add text measurement helpers#30
Conversation
commit: |
|
I'm a bit worried that these measurement helpers present a completely different code path than the actual algorithm that clay uses to layout text. This could be a totally separate library. |
|
this is pretty much what the npm package presumably clay itself also does yet another implementation of this under the hood like @cowboyd mentioned. this does raise a side question too: can we not have npm dependencies? it doesn't make much sense to duplicate what's already in most peoples' stacks imo |
|
I'm curious to understand the motivation behind the pre-init behavior here, is that strictly necessary? Exposing a pure wrapper that calls into the wasm to check bytes against the existing In any case, I opened #72 to discuss this more generally. It's clear we'll need some kind of measurement helper. |
Summary
Test