Table of Contents

Class SVGAnimatedNumber

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SVGAnimatedNumber interface represents attributes of type <number> which can be animated.

[Value("SVGAnimatedNumber")]
public class SVGAnimatedNumber
Inheritance
SVGAnimatedNumber
Inherited Members

Remarks

Constructors

SVGAnimatedNumber()

public SVGAnimatedNumber()

Properties

AnimVal

The animVal read-only property of the SVGAnimatedNumber interface represents the animated value of an SVG element's numeric attribute.

[Value("animVal")]
public Number AnimVal { get; }

Property Value

Number

A number; the current value of the animated attribute as a float.

Remarks

Some animatable SVG attributes accept a single number, such as the {{SVGAttr("radius")}} attribute of the circle or ellipse elements and the {{SVGAttr("width")}} and {{SVGAttr("height")}} attributes of the rect element, and many others. The animVal attribute provides access to the current animated value of the animatable numeric attribute during animations.

-SVGAnimatedInteger
-SVGElement

See also on MDN

BaseVal

The baseVal property of the SVGAnimatedNumber interface represents the base (non-animated) value of an animatable numeric attribute.

[Value("baseVal")]
public Number BaseVal { get; set; }

Property Value

Number

A number; the base value of the attribute as a float.

Remarks

Some animatable SVG attributes accept a single numeric value, such as the {{SVGAttr("radius")}} attribute of the circle or ellipse elements and the {{SVGAttr("width")}} and {{SVGAttr("height")}} attributes of the rect element, and many others. The baseVal property reflects and updates the base, or non-animated, value of the numeric attribute.

-SVGAnimatedInteger
-SVGElement

See also on MDN