set_scale method

set_scale

Sets the transform type to SVG_TRANSFORM_SCALE, with parameters sx and sy defining the scale amounts.

def set_scale(self, sx, sy):
    ...
ParameterTypeDescription
sxfloatThe scale amount in X.
syfloatThe scale 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