Static Class APE.dom

Defined in ape-ep-dom.js

  • static:
  • class: APE.dom
  • author: Garrett Smith

    ClassName functions are added to APE.dom.


  • Method Summary
    convertPixelToEmEx(parentNode, prop, val, computedStyle)
               Used for converting getComputedStyle(el,"") value to an em value.
     HTMLElement findAncestorWithAttribute(el, attName, value)
              
     String findInheritedStyle(el, prop, units)
               findInheritedStyle tries to find a cascaded style value for the element.
     String getCascadedStyle(el, p, desiredUnit)
               Cross-browser adapter method for reading style.
     HTMLElement getContainingBlock(el)
               Finds the containing block of el, as per CSS 2.1 sec 10.1
     boolean getContains()
              
     ufloat getFilterOpacity(el)
               Special method for a browser that supports el.filters and not style.opacity.
     x:Number, y:Number getOffsetCoords(el, positionedContainer, coords)
              
      getScrollOffsets()
              
     String getStyle(el, p)
               returns the computed style of property p of el.
     String getStyleUnit(value)
              
      getViewportDimensions()
              
     boolean isAboveElement(a, b)
              
     boolean isBelowElement(a, b)
              
     boolean isInsideElement(a, b)
              
     ufloat setOpacity(el, i)
               Cross-browser adapter method for style.filters vs style.opacity.
     
    Method Detail

    convertPixelToEmEx

    convertPixelToEmEx(parentNode, prop, val, computedStyle)

    findAncestorWithAttribute

    HTMLElement findAncestorWithAttribute(el, attName, value)

    findInheritedStyle

    String findInheritedStyle(el, prop, units)

    getCascadedStyle

    String getCascadedStyle(el, p, desiredUnit)

    getContainingBlock

    HTMLElement getContainingBlock(el)

    getContains

    boolean getContains()

    getFilterOpacity

    ufloat getFilterOpacity(el)

    getOffsetCoords

    x:Number, y:Number getOffsetCoords(el, positionedContainer, coords)

    getScrollOffsets

     getScrollOffsets()

    getStyle

    String getStyle(el, p)

    getStyleUnit

    String getStyleUnit(value)

    getViewportDimensions

     getViewportDimensions()

    isAboveElement

    boolean isAboveElement(a, b)

    isBelowElement

    boolean isBelowElement(a, b)

    isInsideElement

    boolean isInsideElement(a, b)

    setOpacity

    ufloat setOpacity(el, i)

    Documentation generated by JsDoc Toolkit 1.4.0 on Sun Aug 17 2008 17:08:28 GMT-0700 (PDT)