Fabric.js qrDecompose() 方法
qrDecompose() 方法用于将指定的标准 2×3 矩阵分解为变换分量
句法:
qrDecompose( mat )
参数:此方法接受上面提到的参数,如下所述:
- mat:此参数保存指定的变换矩阵数组。
返回值:此方法返回变换的组件。
示例 1:
Javascript
Javascript
输出:
{"angle":63.434948822922,"scaleX":2.23606797749979,"scaleY":-0.8944271909999159,
"skewX":65.55604521958347,"skewY":0,"translateX":5,"translateY":6}
示例 2:
Javascript
输出:
{"angle":63.434948822922,"scaleX":2.23606797749979,"scaleY":null,"skewX":null,"skewY":0}
{"angle":90,"scaleX":6,"scaleY":-7,"skewX":53.13010235415598,"skewY":0,
"translateX":0,"translateY":0}