Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PositionCache

Index

Constructors

  • new PositionCache(originEl: HTMLElement, els: HTMLElement[], isHorizontal: boolean, isVertical: boolean): PositionCache
  • Parameters

    • originEl: HTMLElement
    • els: HTMLElement[]
    • isHorizontal: boolean
    • isVertical: boolean

    Returns PositionCache

Properties

bottoms: any
els: HTMLElement[]
lefts: any
originClientRect: ClientRect
rights: any
tops: any

Methods

  • buildElHorizontals(originClientLeft: number): void
  • Parameters

    • originClientLeft: number

    Returns void

  • buildElVerticals(originClientTop: number): void
  • Parameters

    • originClientTop: number

    Returns void

  • getHeight(topIndex: number): number
  • Parameters

    • topIndex: number

    Returns number

  • getWidth(leftIndex: number): number
  • Parameters

    • leftIndex: number

    Returns number

  • leftToIndex(leftPosition: number): any
  • Parameters

    • leftPosition: number

    Returns any

  • topToIndex(topPosition: number): any
  • Parameters

    • topPosition: number

    Returns any

Generated using TypeDoc