UNPKG

ng-cw-v12

Version:

Angular UI Component Library

35 lines (34 loc) 1.55 kB
import { ElementRef, Renderer2, EventEmitter, OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ShineBorderDirective implements OnInit, OnDestroy, OnChanges { private el; private renderer; /** 边框宽度 单位px */ ncBorderWidth: number; /** 动画时长,ms */ ncDuration: number; /** 停止动画时间,ms,0表示不停止 */ ncStopTime: number; /** 光效颜色,可以是单色或颜色数组 */ ncShineColor: string | string[]; /** 是否启用动画 */ private _enabled; set ncEnabled(value: boolean | string); get ncEnabled(): boolean; /** 双向绑定输出事件 */ ncEnabledChange: EventEmitter<boolean>; private shineElement; private readonly animationName; private stopTimer; private styleElement; private isInitialized; constructor(el: ElementRef, renderer: Renderer2); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; private createShineBorderContainer; private startAnimation; private stopAnimation; static ɵfac: i0.ɵɵFactoryDeclaration<ShineBorderDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ShineBorderDirective, "[ncShineBorder]", never, { "ncBorderWidth": "ncBorderWidth"; "ncDuration": "ncDuration"; "ncStopTime": "ncStopTime"; "ncShineColor": "ncShineColor"; "ncEnabled": "ncEnabled"; }, { "ncEnabledChange": "ncEnabledChange"; }, never>; }