Class: Util

Util()

Utility functions (static methods) used to implement the XUI module.

Part of the XUI module which, for now, has an undocumented API.

Constructor

new Util()

Source:

Methods

(static) getPxProperties(element, …args) → {array}

Return an array of numbers, values of the properties having specified names if found in the computed style of specified element.
Parameters:
Name Type Attributes Description
element Element the element.
args string | number <repeatable>
property name, number pairs. if property is not found or if its value is not a px length, the number, used as fallback value, is appended to the returned array.
Source:
Returns:
an array having same size as the number of specified property names.
Type
array

(static) getPxProperty()

Return a number, the value of property having specified name if found in the computed style of specified element. Return NaN if property is not found or if its value is not a px length.
Source: