AnimationElement

package js.html.svg

extends ElementDOMElementNodeEventTarget

extended by AnimateElement, AnimateMotionElement, AnimateTransformElement, SetElement

Available on js

The SVGAnimationElement interface is the base interface for all of the animation element interfaces: SVGAnimateElement, SVGSetElement, SVGAnimateColorElement, SVGAnimateMotionElement and SVGAnimateTransformElement.

Documentation SVGAnimationElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

read onlyrequiredExtensions:StringList

read onlyrequiredFeatures:StringList

read onlysystemLanguage:StringList

read onlytargetElement:Element

An SVGElement representing the element which is being animated. If no target element is being animated (for example, because the href specifies an unknown element) the value returned is null.

Methods

beginElement():Void

Creates a begin instance time for the current time. The new instance time is added to the begin instance times list. The behavior of this method is equivalent to beginElementAt(0).

Throws:

null

DOMError

beginElementAt(offset:Float):Void

Creates a begin instance time for the current time plus the specified offset. The new instance time is added to the begin instance times list.

Throws:

null

DOMError

endElement():Void

Creates an end instance time for the current time. The new instance time is added to the end instance times list. The behavior of this method is equivalent to endElementAt(0).

Throws:

null

DOMError

endElementAt(offset:Float):Void

Creates a end instance time for the current time plus the specified offset. The new instance time is added to the end instance times list.

Throws:

null

DOMError

getCurrentTime():Float

Returns a float representing the current time in seconds relative to time zero for the given time container.

getSimpleDuration():Float

Returns a float representing the number of seconds for the simple duration for this animation. If the simple duration is undefined (e.g., the end time is indefinite), then a DOMException with code NOT_SUPPORTED_ERR is raised.

Throws:

null

DOMError

getStartTime():Float

Returns a float representing the begin time, in seconds, for this animation element's current interval, if it exists, regardless of whether the interval has begun yet. If there is no current interval, then a DOMException with code INVALID_STATE_ERR is thrown.

Throws:

null

DOMError

hasExtension(extension:String):Bool

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/svg/AnimationElement.html