SVGLineElement Properties |
The SVGLineElement type exposes the following members.
Name | Description | |
---|---|---|
![]() | Attributes | A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise. (Inherited from Element.) |
![]() | BaseURI | The read-only baseURI property of the Node interface returns the absolute base URL of the document containing the node. The base URL is used to resolve relative URLs when the browser needs to obtain an absolute URL, for example when processing the HTML img element's src attribute or the xlink:href or href attributes in SVG. |
![]() | ChildElementCount | Returns the current number of element nodes that are children of this element. 0 if this element has no child nodes that are of nodeType 1. (Inherited from Element.) |
![]() | ChildNodes | The read-only childNodes property of the Node interface returns a live NodeList of child nodes of the given element where the first child node is assigned index 0. Child nodes include elements, text and comments. Note: The NodeList being live means that its content is changed each time new children are added or removed. |
![]() | Children | Returns the child elements of current element. (Inherited from Element.) |
![]() | ClassList | Returns a live DOMTokenList which contains tokens received from parsing the "class" attribute. (Inherited from Element.) |
![]() | ClassName | Corresponds to attribute ‘class’ on the given element. (Inherited from SVGElement.) |
![]() | FarthestViewportElement | The farthest ancestor ‘svg’ element. Null if the current element is the outermost svg element. (Inherited from SVGGraphicsElement.) |
![]() | FirstChild | The read-only firstChild property of the Node interface returns the node's first child in the tree, or null if the node has no children. If the node is a Document, this property returns the first node in the list of its direct children. |
![]() | FirstElementChild | Returns the first child element node of this element. null if this element has no child elements. (Inherited from Element.) |
![]() | Id | The value of the ‘id’ attribute on the given element, or the empty string if ‘id’ is not present. (Inherited from SVGElement.) |
![]() | InnerHTML | Returns a fragment of HTML or XML that represents the element's contents. Can be set, to replace the contents of the element with nodes parsed from the given string. (Inherited from Element.) |
![]() | LastChild | The read-only lastChild property of the Node interface returns the last child of the node. If its parent is an element, then the child is generally an element node, a text node, or a comment node. It returns null if there are no child elements |
![]() | LastElementChild | Returns the last child element node of this element. null if this element has no child elements. (Inherited from Element.) |
![]() | LocalName | Returns the local part of the qualified name of this node. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as Document.createElement(), this is always null. (Inherited from Element.) |
![]() | NamespaceURI | The namespace URI of this node, or null if it is unspecified. (Inherited from Element.) |
![]() | NearestViewportElement | The element which established the current viewport. Often, the nearest ancestor ‘svg’ element. Null if the current element is the outermost svg element. (Inherited from SVGGraphicsElement.) |
![]() | NextElementSibling | Returns the next sibling element node of this element. null if this element has no element sibling nodes that come after this one in the document tree. (Inherited from Element.) |
![]() | NextSibling | The read-only nextSibling property of the Node interface returns the node immediately following the specified one in their parent's childNodes, or returns null if the specified node is the last child in the parent element. |
![]() | NodeName | The name of this node, depending on its type. (Inherited from Element.) |
![]() | NodeType | A code representing the type of the underlying object. (Inherited from Element.) |
![]() | NodeValue | The nodeValue property of the Node interface returns or sets the value of the current node. |
![]() | OuterHTML | Returns a fragment of HTML or XML that represents the element and its contents. Can be set, to replace the element with nodes parsed from the given string. (Inherited from Element.) |
![]() | OwnerDocument | The read-only ownerDocument property of the Node interface returns the top-level document object of the node. |
![]() | OwnerSVGElement | The nearest ancestor ‘svg’ element. Null if the given element is the outermost svg element. (Inherited from SVGElement.) |
![]() | ParentElement | The read-only parentElement property of Node interface returns the DOM node's parent Element, or null if the node either has no parent, or its parent isn't a DOM Element. |
![]() | ParentNode | The read-only parentNode property of the Node interface returns the parent of the specified node in the DOM tree. Document and DocumentFragment nodes can never have a parent, so parentNode will always return null. It also returns null if the node has just been created and is not yet attached to the tree. |
![]() | PathLength | Corresponds to attribute pathLength on the given element. (Inherited from SVGGeometryElement.) |
![]() | Prefix | The namespace prefix of this node, or null if it is unspecified. When it is defined to be null, setting it has no effect (Inherited from Element.) |
![]() | PreviousElementSibling | Returns the previous sibling element node of this element. null if this element has no element sibling nodes that come before this one in the document tree. (Inherited from Element.) |
![]() | PreviousSibling | The read-only previousSibling property of the Node interface returns the node immediately preceding the specified one in its parent's childNodes list, or null if the specified node is the first in that list. |
![]() | RequiredExtensions | Corresponds to attribute ‘requiredExtensions’ on the given element. (Inherited from SVGGraphicsElement.) |
![]() | RequiredFeatures | Corresponds to attribute ‘requiredFeatures’ on the given element. (Inherited from SVGGraphicsElement.) |
![]() | SchemaTypeInfo | The type information associated with this element. (Inherited from Element.) |
![]() | ShadowRoot | Returns shadowRoot stored on this element or null if it's closed. (Inherited from Element.) |
![]() | Style | Corresponds to attribute ‘style’ on the given element. If the user agent does not support styling with CSS, then this attribute must always have the value of null. (Inherited from SVGElement.) |
![]() | SystemLanguage | Corresponds to attribute ‘systemLanguage’ on the given element. (Inherited from SVGGraphicsElement.) |
![]() | TagName | The name of the element. (Inherited from Element.) |
![]() | TextContent | This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to. (Inherited from Element.) |
![]() | Transform | Corresponds to attribute ‘transform’ on the given element. (Inherited from SVGGraphicsElement.) |
![]() | ViewportElement | The element which established the current viewport. Often, the nearest ancestor ‘svg’ element. Null if the given element is the outermost svg element. (Inherited from SVGElement.) |
![]() | X1 | Corresponds to attribute ‘x1’ on the given ‘line’ element. |
![]() | X2 | Corresponds to attribute ‘x2’ on the given ‘line’ element. |
![]() | Y1 | Corresponds to attribute ‘y1’ on the given ‘line’ element. |
![]() | Y2 | Corresponds to attribute ‘y2’ on the given ‘line’ element. |