set_matrix method

set_matrix

Sets the transform type to SVG_TRANSFORM_MATRIX, with parameter matrix defining the new transformation. The values from the parameter matrix are copied, the matrix parameter does not replace SVGTransform::matrix.

def set_matrix(self, matrix):
    ...
ParameterTypeDescription
matrixSVGMatrixThe new matrix for the transformation.

Exceptions

ExceptionDescription
DOMExceptionCode DOMException.NO_MODIFICATION_ALLOWED_ERR.
Raised on an attempt to change the value of a read only attribute.

See Also