Create fabric.controlsUtils.changeHeight #7377
salomonsanz
started this conversation in
Ideas
Replies: 1 comment
-
We have it in the issue tracker somewhere. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
fabric.controlsUtils.changeWidth exists, but fabric.controlsUtils.changeHeight does not.
It is currently only used in default_controls.js to "override" ml and mr controls in TextBox
It would be useful to reproduce the same behaviour with languages that are read vertically.
Also, to create easily "crop" controls, or resize shapes without skew or scale:
fabric.Image.prototype.controls.mt.actionHandler = fabric.controlsUtils.changeHeight;
fabric.Image.prototype.controls.mb.actionHandler = fabric.controlsUtils.changeHeight;
fabric.Rect.prototype.controls.mt.actionHandler = etc...
I will try to make a PR with this
Beta Was this translation helpful? Give feedback.
All reactions