ngx-joyride
Version:
[](https://badge.fury.io/js/ngx-joyride) [](https://travis-ci.org/tnicola/ngx-joyride) [ • 1.73 kB
TypeScript
import { ElementRef } from '@angular/core';
import { DomRefService } from './dom.service';
export interface IDocumentService {
getElementFixedTop(elementRef: ElementRef): number;
getElementFixedLeft(elementRef: ElementRef): any;
getElementAbsoluteTop(elementRef: ElementRef): any;
getElementAbsoluteLeft(elementRef: ElementRef): any;
setDocumentHeight(): any;
getDocumentHeight(): number;
isParentScrollable(elementRef: ElementRef): boolean;
isElementBeyondOthers(elementRef: ElementRef, isElementFixed: boolean, keywordToDiscard: string): number;
scrollToTheTop(elementRef: ElementRef): void;
scrollToTheBottom(elementRef: ElementRef): void;
}
export declare class DocumentService implements IDocumentService {
private readonly DOMService;
private documentHeight;
constructor(DOMService: DomRefService, platformId: Object);
getElementFixedTop(elementRef: ElementRef): any;
getElementFixedLeft(elementRef: ElementRef): any;
getElementAbsoluteTop(elementRef: ElementRef): any;
getElementAbsoluteLeft(elementRef: ElementRef): any;
setDocumentHeight(): void;
getDocumentHeight(): number;
isParentScrollable(elementRef: ElementRef): boolean;
isElementBeyondOthers(elementRef: ElementRef, isElementFixed: boolean, keywordToDiscard: string): 1 | 2 | 3;
scrollIntoView(elementRef: ElementRef, isElementFixed: boolean): void;
scrollToTheTop(elementRef: ElementRef): void;
scrollToTheBottom(elementRef: ElementRef): void;
private getFirstScrollableParent;
private calculateDocumentHeight;
private getScrollOffsets;
private elementsFromPoint;
private getFirstElementWithoutKeyword;
}