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, new_unit_type, value_in_specified_units):
    ...
ParameterTypeDescription
new_unit_typeintThe unit type for the value (e.g., SVG_ANGLETYPE_DEG).
value_in_specified_unitsfloatThe angle value.

Exceptions

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

See Also