cb-tour-guide
Version:
Guided tour for your Angular6+ applications.
54 lines (53 loc) • 2 kB
TypeScript
import { AfterViewInit, ElementRef, OnDestroy, TemplateRef } from '@angular/core';
import { TourStep, ProgressIndicatorLocation } from './guided-tour.constants';
import { GuidedTourService } from './guided-tour.service';
import { WindowRefService } from "./windowref.service";
export declare class GuidedTourComponent implements AfterViewInit, OnDestroy {
guidedTourService: GuidedTourService;
private windowRef;
private dom;
topOfPageAdjustment?: number;
tourStepWidth?: number;
minimalTourStepWidth?: number;
skipText?: string;
nextText?: string;
doneText?: string;
closeText?: string;
backText?: string;
progressIndicatorLocation?: ProgressIndicatorLocation;
progressIndicator?: TemplateRef<any>;
tourStep: ElementRef;
highlightPadding: number;
currentTourStep: TourStep;
selectedElementRect: DOMRect;
isOrbShowing: boolean;
progressIndicatorLocations: typeof ProgressIndicatorLocation;
private resizeSubscription;
private scrollSubscription;
constructor(guidedTourService: GuidedTourService, windowRef: WindowRefService, dom: any);
private readonly maxWidthAdjustmentForTourStep;
private readonly widthAdjustmentForScreenBound;
readonly calculatedTourStepWidth: number;
ngAfterViewInit(): void;
ngOnDestroy(): void;
scrollToAndSetElement(): void;
handleOrb(): void;
private isTourOnScreen;
private elementInViewport;
backdropClick(event: Event): void;
updateStepLocation(): void;
private isBottom;
readonly topPosition: number;
readonly orbTopPosition: number;
private readonly calculatedLeftPosition;
readonly leftPosition: number;
readonly orbLeftPosition: number;
readonly transform: string;
readonly orbTransform: string;
readonly overlayTop: number;
readonly overlayLeft: number;
readonly overlayHeight: number;
readonly overlayWidth: number;
private getHighlightPadding;
private getStepScreenAdjustment;
}