tuil
ReferencePackages@mwillbanks/tuil-scrollAPI

ScrollSnapshot

interface exported by @mwillbanks/tuil-scroll.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-scroll.

export interface ScrollSnapshot {
  readonly id: string;
  readonly position: ScrollPosition;
  readonly viewport: ScrollViewport;
  readonly extent: ScrollExtent;
  readonly atTop: boolean;
  readonly atBottom: boolean;
  readonly atLeft: boolean;
  readonly atRight: boolean;
}

Members

MemberTypeRequiredDescriptionRelated types
idstringYesThe id member uses the string contract.
positionScrollPositionYesThe position member uses the ScrollPosition contract.ScrollPosition
viewportScrollViewportYesThe viewport member uses the ScrollViewport contract.ScrollViewport
extentScrollExtentYesThe extent member uses the ScrollExtent contract.ScrollExtent
atTopbooleanYesThe atTop member uses the boolean contract.
atBottombooleanYesThe atBottom member uses the boolean contract.
atLeftbooleanYesThe atLeft member uses the boolean contract.
atRightbooleanYesThe atRight member uses the boolean contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-scroll

On this page