-
Notifications
You must be signed in to change notification settings - Fork 107
How do I programmatically re-calculate the handles' position? #126
Comments
No one has an idea on this one? there must be a way of doing this?! |
@dhardtke How are you changing the size? Are you doing it via FreeTransform with attrs.scale and such or are you doing it outside of FreeTransform? It might be easier doing it via FreeTransform because then the handles should get updated automatically. |
I know that, but for example if I change the font-size attribute of a node then the handles of course don't update and therefore are wrongly positioned.. :( |
@dhardtke Ah! Sorry, I wasn't sure if I could help but thought I'd point that out just in case. It might work well to hard code the font size and then scale it. So pick a font size that looks reasonably good at large sizes and then scale it down using freeTransform instead of switching the font size. That isn't a very satisfying solution and I could see cases in which it would not work but maybe it will work for you? |
@cymen How do I re-calculate the handles for text element when text has been changed? Thanks! |
See title - would like to find out how.
Thanks.
The text was updated successfully, but these errors were encountered: