Is there any API access to this new auto-size text feature gotten by double-clicking the bottom center handle?
If not, that sure would be nifty to have…
Is there any API access to this new auto-size text feature gotten by double-clicking the bottom center handle?
If not, that sure would be nifty to have…
There currently is not (at least nothing documented). I agree that this might be interesting to expose via the APIs, as it’s a “UI feature” inside XD. For now, however, the “cheap” (yet rather performant) way would be to use the function I’ve written for my plugins (which is open-source): https://github.com/pklaschka/lorem-ipsum-plugin/blob/master/src/functions/trim-height.js.
To everyone: Feel free to use it as long as the copyright notice remains .
Excellent, thanks. Saved me the bother of writing it.
This actually was a feature of my Text Toolbox plugin (CtrlAltT, Q for fitting the text area to its contents) which now finally got implemented in XD itself …