UNPKG

ngx-joyride

Version:

An Angular Tour (Joyride) library built entirely in Angular, without using any heavy external dependencies like Bootstrap or JQuery. From now on you can easily guide your users through your site showing them all the sections and features.

39 lines (38 loc) 1.86 kB
import { ElementRef } from '@angular/core'; import { DomRefService } from './dom.service'; import * as i0 from "@angular/core"; 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; static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>; }