UNPKG

ng-cw-v12

Version:

Angular UI Component Library

37 lines (36 loc) 1.47 kB
import { AfterViewInit, ElementRef, OnDestroy, SimpleChanges, OnChanges, NgZone } from '@angular/core'; import * as i0 from "@angular/core"; export declare class AutoScrollTextComponent implements AfterViewInit, OnDestroy, OnChanges { private ngZone; textContainer: ElementRef; scrollText: ElementRef; private animationId; private position; private isPaused; private lastTimestamp; private pauseStartTime; /** 滚动文本 */ ncText: string; /** 滚动速度,单位为像素/秒 */ ncSpeed: number; /** 是否开启无缝滚动 */ private _loop; set ncLoop(val: boolean | string); get ncLoop(): boolean; /** 开启无缝滚动时,间距,单位为像素 */ ncGap: number; /** 是否启用鼠标悬停暂停滚动 */ private _pause; set ncPause(val: boolean | string); get ncPause(): boolean; constructor(ngZone: NgZone); ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; onMouseEnter(): void; onMouseLeave(): void; private startScrolling; private resetScroll; static ɵfac: i0.ɵɵFactoryDeclaration<AutoScrollTextComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AutoScrollTextComponent, "nc-auto-scroll-text", never, { "ncText": "ncText"; "ncSpeed": "ncSpeed"; "ncLoop": "ncLoop"; "ncGap": "ncGap"; "ncPause": "ncPause"; }, {}, never, never>; }