SVGAngle

The SVGAngle interface is used to represent a value that can be an or value.

MDN Reference

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed interface UnitType

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The unitType property of the SVGAngle interface is one of the unit type constants and represents the units in which this angle's value is expressed.

Link copied to clipboard

The value property of the SVGAngle interface represents the floating point value of the <angle> in degrees.

Link copied to clipboard

The valueAsString property of the SVGAngle interface represents the angle's value as a string, in the units expressed by SVGAngle.unitType.

Link copied to clipboard

The valueInSpecifiedUnits property of the SVGAngle interface represents the value of this angle as a number, in the units expressed by the angle's SVGAngle.unitType.

Functions

Link copied to clipboard

The convertToSpecifiedUnits() method of the SVGAngle interface allows you to convert the angle's value to the specified unit type.

Link copied to clipboard
fun newValueSpecifiedUnits(unitType: SVGAngle.UnitType, valueInSpecifiedUnits: Float)

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