newValueSpecifiedUnits

fun newValueSpecifiedUnits(unitType: SVGLength.UnitType, valueInSpecifiedUnits: Float)(source)

The newValueSpecifiedUnits() method of the SVGLength interface resets the value as a number with an associated SVGLength.unitType, thereby replacing the values for all of the attributes on the object.

MDN Reference