Echo.Sync.Extent
| Class Field Summary | |
|---|---|
| Internal | _PARSERRegular expression to parse an extent value, e. |
| Internal | _FORMATTED_INT_PIXEL_TESTRegular expression to determine if an extent value is already formatted to pixel units. |
| Internal | _FORMATTED_DECIMAL_PIXEL_TESTRegular expression to determine if an extent value is already formatted to pixel units. |
| Class Method Summary | |
|---|---|
| Public | isPercent()Determines if an extent has percent units. |
| Public | render()Renders an extent value to an element. |
| Public | toCssValue()Returns a CSS representation of an extent value. |
| Public | toPixels()Converts an extent value to pixels. |
extent
(#Extent)
- the Extentextent
(#Extent)
- the Extentelement
(Element)
- the target elementstyleAttribute
(String)
- the style attribute name, e.g., "padding-left", or "width"horizontal
(Boolean)
- flag indicating whether the value is being rendered horizontallyallowPercent
(Boolean)
- flag indicating whether percent values should be renderedextent
(#Extent)
- the Extenthorizontal
(Boolean)
- flag indicating whether the value is being rendered horizontallyallowPercent
(Boolean)
- flag indicating whether percent values should be renderedextent
(#Extent)
- the Extenthorizontal
(Boolean)
- flag indicating whether the value is being rendered horizontally