How can I prevent both vertical and horizontal stretching of contained text while resizing text-based objects in Fabric.js?
问题 I want to be able to scale text-based objects (for example with classes and subclasses of IText, Textbox) without stretching the text inside of the object. The interaction of scaling and moving is on user-side (UI), not programmatically (I am working on a drawing editor). The behaviour I am looking for is similar to the one in the sticky notes apps: You can scale the paper but this action does not scale your text too. I have already checked this, but this is only for horizontal prevention: