Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "scroll/util"

Index

Type aliases

HTMLElementEventMapKey

HTMLElementEventMapKey: keyof HTMLElementEventMap | "DOMMouseScroll" | "mousewheel"

Variables

Const SUPPORTS_PASSIVE

SUPPORTS_PASSIVE: boolean = _supportsPassive

Let _supportsPassive

_supportsPassive: boolean = false

Functions

$

  • $(selectorOrElement: string | Element): HTMLElement | null
  • Parameters

    • selectorOrElement: string | Element

    Returns HTMLElement | null

cumulativeOffset

  • cumulativeOffset(element: Element): object
  • Parameters

    • element: Element

    Returns object

    • left: number
    • top: number

error

  • error(message: string): Error

getContainerDimension

  • getContainerDimension(el: Element): object
  • Parameters

    • el: Element

    Returns object

    • height: number
    • width: number

isBodyElement

  • isBodyElement(el: Element): boolean

off

on

warn

  • warn(message: string): void

Generated using TypeDoc