How to modify Senocular's free transform tool

Hello,

how can I modify the code in Senoculars Free transform tool so it resizes on width/height basis instead of scaleX / scaleY like in the current version?

Regards,
Mirza