Dom manager interface.
- Source:
Methods
(static) getCssProperty(dom, property) → {string}
Get a CSS property.
Parameters:
Name | Type | Description |
---|---|---|
dom |
Element | DOM element to evaluate. |
property |
string | The CSS property you want to get. |
- Source:
Returns:
Returns the CSS property.
- Type
- string
(static) getMouseEventOffset(event) → {Object}
Get mouse/pointer/touch offset values for an element.
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | MouseEvent | HammerEvent | The event. |
- Source:
Returns:
Object which describe the x and y offset values.
- Type
- Object
(static) getUnitHeight(dom) → {string}
Get the unit height of an element.
Parameters:
Name | Type | Description |
---|---|---|
dom |
Element | DOM element to evaluate. |
- Source:
Returns:
Returns the unit. Can be px or %.
- Type
- string
(static) getUnitWidth(dom) → {string}
Get the unit width of an element.
Parameters:
Name | Type | Description |
---|---|---|
dom |
Element | DOM element to evaluate. |
- Source:
Returns:
Returns the unit. Can be px or %.
- Type
- string
(static) getValueHeight(dom) → {number}
Get the height value of an element.
Parameters:
Name | Type | Description |
---|---|---|
dom |
Element | DOM element to evaluate. |
- Source:
Returns:
Returns the height.
- Type
- number
(static) getValueWidth(dom) → {number}
Get the width value of an element.
Parameters:
Name | Type | Description |
---|---|---|
dom |
Element | DOM element to evaluate. |
- Source:
Returns:
Returns the width.
- Type
- number
(static) has(dom) → {boolean}
Verify if a dom element is on document
Parameters:
Name | Type | Description |
---|---|---|
dom |
Element | HTMLElement | dom element you want to check |
- Source:
Returns:
Returns true if the dom element is in document, false if not
- Type
- boolean
(static) isHtmlElement(dom) → {boolean}
Is it an HTMLElement?
Parameters:
Name | Type | Description |
---|---|---|
dom |
* | DOM element to evaluate. |
- Source:
Returns:
Returns true if element is an HTMLElement, if not, false.
- Type
- boolean