fabricjs - how can I unlock the aspect ratio 移除缩放比例固定
Just press the Shift
key while scaling.
OR
You can adding this code:
canvas.uniScaleTransform = true;
EDIT:
the property is now called as of Fabric.js 4.0
canvas.uniformScaling = false;
Just press the Shift
key while scaling.
OR
You can adding this code:
canvas.uniScaleTransform = true;
EDIT:
the property is now called as of Fabric.js 4.0
canvas.uniformScaling = false;