Echo.Sync
Insets
Class Hierarchy:

Provides tools for rendering insets/margin/padding properties.

Class Field Summary
Internal _FORMATTED_PIXEL_INSETS
Regular expression to test extents which are entirely presented in pixels and may thus be directly added to CSS.

Class Method Summary
Public render()
Renders an insets property to an element.
Public toCssValue()
Generates a CSS value for an insets property.
Public toPixels()
Returns an object representing the pixel dimensions of a insets property.

Class Method Detail
render
Renders an insets property to an element.
Parameters:
insets (#Insets) - the insets property
the (Element) - target element
the (String) - style attribute name, e.g., "padding" or "margin"

toCssValue
Generates a CSS value for an insets property.
Parameters:
insets (#Insets) - the insets property
Returns:
(String) the CSS value

toPixels
Returns an object representing the pixel dimensions of a insets property.
Parameters:
insets (#Insets) - the insets property
Returns:
an object containing top, bottom, left, and right values representing the pixel sizes of the insets property