Table of Contents

Class SVGAnimatedRect

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SVGAnimatedRect interface represents an SVGRect attribute that can be animated.

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

Remarks

Constructors

SVGAnimatedRect()

public SVGAnimatedRect()

Properties

AnimVal

The animVal read-only property of the SVGAnimatedRect interface represents the current animated value of the viewBox attribute of an SVG element as a read-only DOMRectReadOnly object. It provides access to the rectangle's dynamic state, including the x, y, width, and height values during the animation.

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

Property Value

DOMRectReadOnly

A DOMRectReadOnly object representing the animated value of the viewBox attribute.

Remarks

If no animation is applied, the animVal property reflects the SVG element's {{SVGAttr("viewBox")}} attribute value and will be identical to BaseVal.

-viewBox
-DOMRectReadOnly

See also on MDN

BaseVal

The baseVal read-only property of the SVGAnimatedRect interface represents the current non-animated value of the viewBox attribute of an SVG element.

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

Property Value

DOMRect

A DOMRect object representing the current non-animated value of the viewBox attribute.

Remarks

This property reflects the SVG element's {{SVGAttr("viewBox")}} attribute value as a read-only DOMRect object. It provides access to the static rectangle defined by the viewBox attribute, including the x, y, width, and height values.

-viewBox
-DOMRect

See also on MDN