-
SVGSVGElement.suspendRedraw()
Deprecated
-
Takes a time-out value which indicates that redraw shall not occur until:
the corresponding unsuspendRedraw()
call has been made, an unsuspendRedrawAll()
call has been made, or its timer has timed out.
In environments that do not support interactivity (e.g., print media), then redraw shall not be suspended. Calls to suspendRedraw()
and unsuspendRedraw()
should, but need not be, made in balanced pairs.
To suspend redraw actions as a collection of SVG DOM changes occur, precede the changes to the SVG DOM with a method call similar to:
const suspendHandleID = suspendRedraw(maxWaitMilliseconds);
and follow the changes with a method call similar to:
unsuspendRedraw(suspendHandleID);
Note that multiple suspendRedraw()
calls can be used at once, and that each such method call is treated independently of the other suspendRedraw()
method calls.
-
SVGSVGElement.unsuspendRedraw()
Deprecated
-
Cancels a specified suspendRedraw()
by providing a unique suspend handle ID that was returned by a previous suspendRedraw()
call.
-
SVGSVGElement.unsuspendRedrawAll()
Deprecated
-
Cancels all currently active suspendRedraw()
method calls. This method is most useful at the very end of a set of SVG DOM calls to ensure that all pending suspendRedraw()
method calls have been cancelled.
-
SVGSVGElement.forceRedraw()
Deprecated
-
In rendering environments supporting interactivity, forces the user agent to immediately redraw all regions of the viewport that require updating.
SVGSVGElement.pauseAnimations()
-
Suspends (i.e., pauses) all currently running animations that are defined within the SVG document fragment corresponding to this <svg>
element, causing the animation clock corresponding to this document fragment to stand still until it is unpaused.
SVGSVGElement.unpauseAnimations()
-
Resumes (i.e., unpauses) currently running animations that are defined within the SVG document fragment, causing the animation clock to continue from the time at which it was suspended.
SVGSVGElement.animationsPaused()
-
Returns true
if this SVG document fragment is in a paused state.
SVGSVGElement.getCurrentTime()
-
Returns the current time in seconds relative to the start time for the current SVG document fragment. If getCurrentTime()
is called before the document timeline has begun (for example, by script running in a <script>
element before the document's SVGLoad
event is dispatched), then 0
is returned.
SVGSVGElement.setCurrentTime()
-
Adjusts the clock for this SVG document fragment, establishing a new current time. If setCurrentTime()
is called before the document timeline has begun (for example, by script running in a <script>
element before the document's SVGLoad
event is dispatched), then the value of seconds in the last invocation of the method gives the time that the document will seek to once the document timeline has begun.
SVGSVGElement.getIntersectionList()
-
Returns a NodeList
of graphics elements whose rendered content intersects the supplied rectangle. Each candidate graphics element is to be considered a match only if the same graphics element can be a target of pointer events as defined in pointer-events
processing.
SVGSVGElement.getEnclosureList()
-
Returns a NodeList
of graphics elements whose rendered content is entirely contained within the supplied rectangle. Each candidate graphics element is to be considered a match only if the same graphics element can be a target of pointer events as defined in pointer-events
processing.
SVGSVGElement.checkIntersection()
-
Returns true
if the rendered content of the given element intersects the supplied rectangle. Each candidate graphics element is to be considered a match only if the same graphics element can be a target of pointer events as defined in pointer-events
processing.
SVGSVGElement.checkEnclosure()
-
Returns true
if the rendered content of the given element is entirely contained within the supplied rectangle. Each candidate graphics element is to be considered a match only if the same graphics element can be a target of pointer events as defined in pointer-events
processing.
SVGSVGElement.deselectAll()
-
Unselects any selected objects, including any selections of text strings and type-in bars.
SVGSVGElement.createSVGNumber()
-
Creates an SVGNumber
object outside of any document trees. The object is initialized to 0
.
SVGSVGElement.createSVGLength()
-
Creates an SVGLength
object outside of any document trees. The object is initialized to 0
user units.
SVGSVGElement.createSVGAngle()
-
Creates an SVGAngle
object outside of any document trees. The object is initialized to a value of 0
degrees (unitless).
SVGSVGElement.createSVGPoint()
-
Creates an SVGPoint
object outside of any document trees. The object is initialized to the point (0,0)
in the user coordinate system.
SVGSVGElement.createSVGMatrix()
-
Creates an SVGMatrix
object outside of any document trees. The object is initialized to the identity matrix.
SVGSVGElement.createSVGRect()
-
Creates an SVGRect
object outside of any document trees. The object is initialized such that all values are set to 0
user units.
SVGSVGElement.createSVGTransform()
-
Creates an SVGTransform
object outside of any document trees. The object is initialized to an identity matrix transform (SVG_TRANSFORM_MATRIX
).
SVGSVGElement.createSVGTransformFromMatrix()
-
Creates an SVGTransform
object outside of any document trees. The object is initialized to the given matrix transform (i.e., SVG_TRANSFORM_MATRIX
). The values from the parameter matrix are copied, the matrix parameter is not adopted as SVGTransform::matrix
.
SVGSVGElement.getElementById()
-
Searches this SVG document fragment (i.e., the search is restricted to a subset of the document tree) for an Element whose id
is given by elementId
. If an Element is found, that Element is returned. If no such element exists, returns null
. Behavior is not defined if more than one element has this id.