UNPKG

ngx-joyride

Version:

[![npm version](https://badge.fury.io/js/ngx-joyride.svg)](https://badge.fury.io/js/ngx-joyride) [![Build Status](https://travis-ci.org/tnicola/ngx-joyride.svg?branch=master)](https://travis-ci.org/tnicola/ngx-joyride) [![codecov](https://codecov.io/gh/

36 lines (35 loc) 1.73 kB
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; }