UNPKG

ng-cw-v12

Version:

Angular UI Component Library

34 lines (33 loc) 1.36 kB
import { OnInit, OnDestroy, AfterViewInit, ElementRef, OnChanges, SimpleChanges, NgZone } from '@angular/core'; import * as i0 from "@angular/core"; export declare class AuroraBackgroundComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges { private ngZone; containerRef: ElementRef<HTMLDivElement>; /** 颜色断点,默认为 ['#5227FF', '#7cff67', '#5227FF'] */ ncColorStops: string[]; /** 极光振幅(0-3) */ ncAmplitude: number; /** 极光混合度(0-1) */ ncBlend: number; /** 极光运动速度(0-2) */ ncSpeed: number; private renderer; private scene; private camera; private material; private mesh; private animateId; private isDestroyed; constructor(ngZone: NgZone); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; onResize(): void; private parseColorStops; private initWebGL; private resize; private cleanup; static ɵfac: i0.ɵɵFactoryDeclaration<AuroraBackgroundComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AuroraBackgroundComponent, "nc-aurora-background", never, { "ncColorStops": "ncColorStops"; "ncAmplitude": "ncAmplitude"; "ncBlend": "ncBlend"; "ncSpeed": "ncSpeed"; }, {}, never, ["*"]>; }