@duoduo-oba/ng-devui
Version:
DevUI components based on Angular
31 lines (30 loc) • 1.1 kB
TypeScript
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
import { ReplaySubject, Subscription } from 'rxjs';
import { AnchorActiveChangeSource, IAnchorBox } from './anchor.type';
export declare class AnchorDirective implements AfterViewInit, OnDestroy {
private el;
anchor: string;
anchorActive: string;
_isActive: boolean;
isActive: boolean;
activeChangeBy: AnchorActiveChangeSource;
activeChangeSubscription: Subscription;
activeChangeSubject: ReplaySubject<unknown>;
lastActiveBy: string;
element: HTMLElement;
_boxElement: IAnchorBox;
boxElement: IAnchorBox;
scrollListenTarget: Element | Window;
REACH_TOP_VISION_OFFSET: number;
private THROTTLE_DELAY;
private THROTTLE_TRIGGER;
private scrollPreStart;
private scrollTimer;
constructor(el: ElementRef);
ngAfterViewInit(): void;
ngOnDestroy(): void;
beFocused(): void;
throttle: () => void;
checkActiveStatus: (activeChangeBy?: AnchorActiveChangeSource) => void;
updateScrollListenTarget(): void;
}