This class represents a SVG element. There are four geometric properties x, y, width, and height. The (x,y) properties only affect nested SVG elements.
Constructs a svg element.
Class attribute for the root element.
Style for the root element.
The update function describes how this element should update itself
The controller manages the dependencies between elements. Every element is added to this controller upon creation.
This number uniquely identifes elements
Allows for the events attatched to elements to be disabled.
Returns the height of this svg element. Sets the height of this svg element to the provided value.
Returns the unique generated identifier associated with this element.
Return the width of this svg element. Set the width of this svg element.
Constructs and appends an 'a' (link) element within this element.
Declares this element dependent on the provided element(s).
Appends the element as a child within this element.
Removes all child elements from this element.
Constructs and appends a 'clipPath' element within this element.
Returns true if this element contains the argument element.
Returns the bounding box of this element. Note, this is different from the getBoundingClientRect method since the bounding box is affected by the current viewPort.
If this element's root is not a SVGGraphics element as is the case for the marker, title, and more element, then null is returned instead of a DOMRect.
Constructs and appends a 'marker' element within this element.
Inserts the element before the first child within this element.
Removes this element from the DOM and from the Element controller.
Constructs and appends a 'script' element within this element.
Updates all of the elements that depend on this element.
Constructs and returns a SVG object within the DOM. If the provided argument is an HTMLElement appends the interactive within that element. If the provided a value is a string, appends the interactive within the HTML element with the corresponding ID. If no element is found throws an error.
Clears the static data structures holding elements and resets the count.
Generated using TypeDoc