0

我有下面的代码,但是使用MSCSSMatrix.SetMatrixValue不能填充矩阵的16个元素?属性的填充进展顺利;我找不到任何实例化MSCSSMatrix.

scale: function () {
    var s = 0.5;
    var el = document.getElementById("containeddiv");
    var matrix = new MSCSSMatrix(el.style.transform);
    matrix = matrix.setMatrixValue("matrix3d(0.5,0,0,0,0,0.5,0,0,0,0,0.5,0,0,0,0,1)");
    matrix.m11 = s
    matrix.m12 = 0
    matrix.m13 = 0
    matrix.m14 = 0
    matrix.m21 = 0
    matrix.m22 = s
    matrix.m23 = 0
    matrix.m24 = 0
    matrix.m31 = 0
    matrix.m32 = 0
    matrix.m33 = s
    matrix.m34 = 0
    matrix.m41 = 0
    matrix.m42 = 0
    matrix.m43 = 0
    matrix.m44 = 1
    el.style.transform = matrix;
},
4

0 回答 0