files/en-us/web/api/svgangle/index.md
{{APIRef("SVG")}}
The SVGAngle interface is used to represent a value that can be an {{cssxref("<angle>")}} or {{cssxref("<number>")}} value.
The SVGAngle returned from {{domxref("SVGAnimatedAngle.animVal")}} and {{domxref("SVGAnimatedAngle.baseVal")}} is read only, but the SVGAngle returned from {{domxref("SVGSVGElement.createSVGAngle()")}} is writable. When designated as read only, attempts to modify the object will result in an exception being thrown.
An SVGAngle object can be associated with a particular element. The associated element is used to determine which element's content attribute to update if the object reflects an attribute. Unless otherwise described, an SVGAngle object is not associated with any element.
Every SVGAngle object operates in one of two modes:
SVGAngle objects created with {{domxref("SVGSVGElement.createSVGAngle()")}}.SVG_ANGLETYPE_* constants defined on this interface.valueInSpecifiedUnits and valueAsString to be updated automatically to reflect this setting.unitType. Setting this attribute will cause value and valueAsString to be updated automatically to reflect this setting.unitType. Setting this attribute will cause value, valueInSpecifiedUnits, and unitType to be updated automatically to reflect this setting.unitType. Object attributes unitType, valueInSpecifiedUnits, and valueAsString might be modified as a result of this method.SVG_ANGLETYPE_UNKNOWN (0)
SVG_ANGLETYPE_UNSPECIFIED (1)
SVG_ANGLETYPE_DEG (2)
deg unit.SVG_ANGLETYPE_RAD (3)
rad unit.SVG_ANGLETYPE_GRAD (4)
grad unit.{{Specifications}}
{{Compat}}