Skip to content

Fabric.js: 解除缩放比例固定

Published: at 01:39 AMSuggest Changes

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;


Previous Post
博客从 Hexo 迁移至 Astro
Next Post
解决 iOS 连点问题