set_translate method

set_translate

Sets the transform type to SVG_TRANSFORM_TRANSLATE, with parameters tx and ty defining the translation amounts.

def set_translate(self, tx, ty):
    ...
ParameterTypeDescription
txfloatThe translation amount in X.
tyfloatThe translation amount in Y.

Exceptions

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

See Also