two.js icon indicating copy to clipboard operation
two.js copied to clipboard

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

Open mechanoid opened this issue 3 years ago • 1 comments

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

mechanoid avatar Dec 26 '22 11:12 mechanoid

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.

jonobr1 avatar Jan 03 '23 18:01 jonobr1