new_value_specified_units method

new_value_specified_units

Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.

def new_value_specified_units(self, unit_type, value_in_specified_units):
    ...
ParameterTypeDescription
unit_typeintThe unit type for the value.
value_in_specified_unitsfloatThe new value..

Exceptions

ExceptionDescription
DOMExceptionCode DOMException.NOT_SUPPORTED_ERR
Raised if unitType is SVG_LENGTHTYPE_UNKNOWN or not a valid unit type constant (one of the other SVG_LENGTHTYPE_* constants defined on this interface).
DOMExceptionCode DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the length corresponds to a read only attribute or when the object itself is read only.

See Also