SVG Method Reference
This section contains the Scalable Vector Graphics (SVG) method reference documentation.
In this section
| Topic | Description |
|---|---|
|
Registers an event listener | |
|
Gets a value that indicates whether this SVG document fragment is in a paused state. | |
|
Inserts a new item at the end of the list. | |
|
Determines if the rendered content of the specified element is entirely contained within the specified rectangle. | |
|
Determines if the rendered content of the specified element intersects the specified rectangle. | |
|
Clears all existing items from the list, which creates an empty list. | |
|
Consolidates a transform list into a single transform. | |
|
Changes the stored unit identifier to the specified type. | |
|
Creates an event object to be used in conjunction with the dispatchEvent method. | |
|
Creates a new SVGAngle object that does not have units, that is set to 0 degrees, and that is not attached to any document. | |
|
Creates a new SVGLength object that has a length of 0 user units. | |
|
Creates a new SVGMatrix object that is set to the identity matrix and that is not attached to any document. | |
|
Creates a new SVGNumber object that has a value of zero and that is not attached to any document. | |
|
Returns a stand-alone, parentless SVGPathSegArcAbs object. | |
|
Returns a stand-alone, parentless SVGPathSegArcRel object. | |
|
Returns a stand-alone, parentless SVGPathSegClosePath object. | |
|
Returns a stand-alone, parentless SVGPathSegCurvetoCubicAbs object. | |
|
Returns a stand-alone, parentless SVGPathSegCurvetoCubicRel object. | |
|
Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothAbs object. | |
|
Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothRel object. | |
|
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticAbs object. | |
|
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticRel object. | |
|
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs object. | |
|
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel object. | |
|
Returns a stand-alone, parentless SVGPathSegLinetoAbs object. | |
|
Returns a stand-alone, parentless SVGPathSegLinetoHorizontalAbs object. | |
|
Returns a stand-alone, parentless SVGPathSegLinetoHorizontalRel object. | |
|
Returns a stand-alone, parentless SVGPathSegLinetoRel object. | |
|
Returns a stand-alone, parentless SVGPathSegLinetoVerticalAbs object. | |
|
Returns a stand-alone, parentless SVGPathSegLinetoVerticalRel object. | |
|
Returns a standalone parentless SVGPathSegMovetoAbs object. | |
|
Returns a stand-alone, parentless SVGPathSegMovetoRel object. | |
|
Creates a new SVGPoint object that is initialized to the point (0,0) in the user coordinate system and that is not attached to any document. | |
|
Creates a new SVGRect object that has all values set to 0 user units and that is not attached to any document. | |
|
Creates a new SVGTransform object that is set to the identity matrix and that is not attached to any document. | |
|
Creates a matrix transform object whose values are given by the specified matrix. | |
|
Cancels the selection of any selected objects, including any selections of text strings and text boxes. | |
|
Dispatches an event to an object. | |
|
Returns a matrix equivalent to a flip about the x-axis. | |
|
Returns a matrix equivalent to a flip about the y-axis. | |
|
Redraws all regions of the viewport that require updating. | |
|
Gets the bounding box, in current user space, of the geometry of all contained graphics elements. | |
|
Gets the transformation matrix that transforms from the current user units to the viewport coordinate system for the nearestViewportElement object. | |
|
Gets the index of the character that the glyph cell bounding box contains at the specified point. | |
|
Returns the current computed value of the combined CSS properties for an element. | |
|
Returns the total sum of all advance values from rendering all characters within the given text element. | |
|
Gets the current time, in seconds, relative to the start time for the current SVG document fragment. | |
|
Gets the element that matches the specified ID from the SVG document or document fragment. | |
|
Gets the list of graphics elements whose rendered content is entirely contained within the specified rectangle. | |
|
Gets the current text position of the specified character after the character is rendered in the user coordinate system where the glyphs that correspond to the specified character are rendered. | |
|
Gets a rectangle that defines the minimum and maximum x-coordinate and y-coordinate values in the user coordinate system where the glyphs that correspond to the specified character are rendered. | |
|
Gets the list of graphics elements whose rendered content intersects the specified rectangle. | |
|
Returns the specified item from a list. | |
|
Gets the total number of characters that are available for rendering within the current element. | |
|
Gets the index of pathSegList by using the specified distance along the path. | |
|
Gets the (x,y) coordinate in user space that is the specified distance along the path. | |
|
Gets the rotation value of the specified character, relative to the current user coordinate system where the glyphs that corresponding to the specified character are rendered. | |
|
Gets Document object for the referenced document, or null if there is no document. | |
|
Gets the transformation matrix from the current user units to the screen coordinate system. | |
|
Gets the current text position of the specified character before the character is rendered in the user coordinate system where the glyphs that correspond to the specified character are rendered. | |
|
Calculates the total sum of all advance values from rendering the specified substring of the characters. | |
|
Gets the total length of the path, as a distance in the current user coordinate system. | |
|
Gets the transformation matrix that transforms from the user coordinate system on the current element to the user coordinate system on the specified target element. | |
|
Determines if the specified extension is supported. | |
|
Clears current items from the list and re-initializes the list to contain the specified item. | |
|
Inserts a new item into a list at a specified position. | |
|
Returns the inverse of this matrix. | |
|
Gets the specified SVGElementInstance object from the collection. | |
|
Applies the given 2×3 matrix transformation on this SVGPoint object and returns a new, transformed SVGPoint object. | |
|
Post-multiplies the matrix by the specified second matrix and returns the resulting matrix. | |
|
Resets the specified value as a number with the specified unit type, replacing the values for all of the attributes on the object. | |
|
Pauses all currently running animations that are defined within the SVG document fragment that corresponds to this svg element. | |
|
Removes an event listener. | |
|
Removes an existing item from the list. | |
|
Replaces a specified existing item in the list with a specified new item. | |
|
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix. | |
|
Post-multiplies the matrix by a specified rotation transformation and returns the resulting matrix. | |
|
Post-multiplies the matrix by a uniform scale transformation and returns the resulting matrix. | |
|
Post-multiplies the matrix by a non-uniform scale transformation and returns the resulting matrix. | |
|
Selects the specified substring, just as if a user selected the substring interactively. | |
|
Sets the new current time for this SVG document fragment. | |
|
Sets the X and Y values of the filterRes attribute. | |
|
Sets the transform type to SVG_TRANSFORM_MATRIX by using the specified new transformation. | |
|
Sets the value of the orientAngle attribute to the specified angle. | |
|
Sets the value of the svgMarkerOrient attribute to | |
|
Sets the transform type to SVG_TRANSFORM_ROTATE by using the specified rotation angle and center of rotation. | |
|
Sets the transform type to SVG_TRANSFORM_SCALE by using the specified scale amounts. | |
|
Sets the transform type to SVG_TRANSFORM_SKEWX, with the given angle defining the amount of skew. | |
|
Sets the transform type to SVG_TRANSFORM_SKEWY, with the given angle defining the amount of skew. | |
|
Sets the standard deviation values used in calculating a Gaussian blur. | |
|
Sets the transform type to SVG_TRANSFORM_TRANSLATE by using the specified components. | |
|
Post-multiplies the matrix by a skew transformation along the x-axis and returns the resulting matrix. | |
|
Post-multiplies the matrix by a skew transformation along the y-axis and returns the resulting matrix. | |
|
Suspends redrawing a device for a specified duration. | |
|
Returns a string that represents the current object. | |
|
Post-multiplies the matrix by a translation transformation and returns the resulting matrix. | |
|
Resumes currently running animations that are defined within the SVG document fragment. | |
|
Cancels the specified suspension of redrawing operations. | |
|
Cancels all currently active suspensions of redrawing operations. |