jonobr1 / two.js

A renderer agnostic two-dimensional drawing api for the web.
https://two.js.org
MIT License
8.29k stars 454 forks source link

[Bug] Two.Measure is referenced in Two.Text Docs but seems to be removed #679

Open mechanoid opened 1 year ago

mechanoid commented 1 year ago

Two.Measure is referenced here -> https://two.js.org/docs/text/#measure but seems to be removed in the code and I cannot find it elsewhere

jonobr1 commented 1 year ago

Ah yes, this is a new addition to v0.8.11 which is the current development branch. I recently updated the docs for a few different issues and the latest code is now the documentation. Sorry about that. It does not exist in prior versions.

However, I will be updating npm in the coming days with this new version. So, if you update then you'll be able to find it in the Two.Text module.

In the meantime, here is the code for Two.Text.Mesaure https://github.com/jonobr1/two.js/blob/dev/src/text.js#L328 for reference.