The SVGAngle
interface is used to represent a value that can be an <angle>
or <number>
value.
The SVGAngle
returned from SVGAnimatedAngle.animVal
and SVGAnimatedAngle.baseVal
is read only, but the SVGAngle
returned from 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:
-
Reflect the base value of a reflected animatable attribute (being exposed through the
baseVal
member of anSVGAnimatedAngle
), -
Be detached, which is the case for
SVGAngle
objects created withSVGSVGElement.createSVGAngle()
.