ng-cw-v12
Version:
Angular UI Component Library
36 lines (35 loc) • 1.51 kB
TypeScript
import { ElementRef, Renderer2, EventEmitter, OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
import * as i0 from "@angular/core";
export declare class PulsatingDirective implements OnInit, OnDestroy, OnChanges {
private el;
private renderer;
/** 动画时长,单位ms */
ncDuration: number;
/** 默认浅蓝色光晕 */
ncColor: string;
/** 最大光晕宽度 */
ncSize: string;
/** 停止动画时间,ms,0表示不停止 */
ncStopTime: number;
/** 是否启用脉冲动画 */
private _enbaled;
set ncEnabled(val: boolean | string);
get ncEnabled(): boolean;
/** 双向绑定输出事件 */
ncEnabledChange: EventEmitter<boolean>;
private pulsatingContainer;
private readonly animationName;
private shouldStop;
private stopTimer;
private styleElement;
private isInitialized;
constructor(el: ElementRef, renderer: Renderer2);
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
private createPulsatingContainer;
private startAnimation;
private stopAnimation;
static ɵfac: i0.ɵɵFactoryDeclaration<PulsatingDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<PulsatingDirective, "[ncPulsating]", never, { "ncDuration": "ncDuration"; "ncColor": "ncColor"; "ncSize": "ncSize"; "ncStopTime": "ncStopTime"; "ncEnabled": "ncEnabled"; }, { "ncEnabledChange": "ncEnabledChange"; }, never>;
}