API Docs for: 1.0.0
Show:

Node~dimensions Class

Functions for measuring the size of a node.

Methods

emToPx

(
  • em_count
)
Number static

Parameters:

  • em_count Number

    the number of em's to convert (defaults to 1)

Returns:

Number:

the size of one em in pixels

horizMarginBorderPadding

() Number

Returns:

Number:

the width of everything surrounding the element's content

insideHeight

() Number

Returns:

Number:

the available height inside the widget. (Padding is included in clientHeight.)

insideWidth

() Number

Returns:

Number:

the available width inside the widget. (Padding is included in clientWidth.)

parseDimensionStyle

(
  • style
)
Number

Parameters:

  • style String

    the style to parse

Returns:

Number:

the size of the style in pixels

totalHeight

() Number

Returns:

Number:

the total height used by the element, including margin, border, and padding (Margin is not included in offsetHeight.)

totalWidth

() Number

Returns:

Number:

the total width used by the element, including margin, border, and padding (Margin is not included in offsetWidth.)

vertMarginBorderPadding

() Number

Returns:

Number:

the height of everything surrounding the element's content