Members
(constant) svgNameSpace
    SVG NameSpace URL
- Source:
 
Methods
createDOMElement(type) → {Element}
    Creates the appropriate DOM element based on type
    Parameters:
| Name | Type | Description | 
|---|---|---|
type | 
            
            string | The type of the element to be created | 
- Source:
 
Returns:
    The DOM element based on supplied type
- Type
 - Element
 
createElement(typeopt, optionsopt) → {Element}
    Creates a DOM element using pure JS with the given attributes, style, text,
and pseudo elements
    Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
type | 
            
            string | 
                
                    <optional> | 
            
            
            The HTML tag for the new element | ||||||||||||||||||||||||
options | 
            
            Object | 
                
                    <optional> | 
            
            
            Attributes and styles for the new element
                Properties
  | 
        
- Source:
 
Returns:
    The resulting element
- Type
 - Element
 
filterObject(obj) → {Object}
    Filters the argument to be a valid plain object type or a undefined object
    Parameters:
| Name | Type | Description | 
|---|---|---|
obj | 
            
            Object | The object to filter | 
- Source:
 
Returns:
    A valid object or undefined
- Type
 - Object
 
filterString(str) → {string}
    Filters the argument to be a valid string type or a null object
    Parameters:
| Name | Type | Description | 
|---|---|---|
str | 
            
            string | The string to be filtered | 
- Source:
 
Returns:
    A valid string object or null
- Type
 - string
 
insertPseudoElement(pseudoElemStyle, parent)
    Generates a DOM element that replicates the behavior of a CSS pseudo-element
and appends it to the given element
    Parameters:
| Name | Type | Description | 
|---|---|---|
pseudoElemStyle | 
            
            Object | The style object for the pseudo element | 
parent | 
            
            Element | The element to insert the pseudo element in | 
- Source:
 
insertTextElement(text, parent)
    Generates a DOM text node with the given text and appends it to the given
element
    Parameters:
| Name | Type | Description | 
|---|---|---|
text | 
            
            string | The text to insert | 
parent | 
            
            Element | The element to insert the text in | 
- Source: