Skip to main content

DOMRectCached

Cached information from a DOMRect.

Hierarchy

  • DeepImmutable<DOMRect>
    • DOMRectCached

Index

Properties

readonlylastRefreshInMs

lastRefreshInMs: number

Last time, in ms, refresh was called.

readonlyscrollLeft

scrollLeft: number

Same as HTMLElement.scrollLeft

readonlyscrollTop

scrollTop: number

Same as HTMLElement.scrollTop

Methods

refresh

  • refresh(): void
  • Refreshes cached client rect information (by calling wrapped HTMElement.getBoundingClientRect()). Updates lastRefreshInMs when called.


    Returns void