ng-cw-v12
Version:
Angular UI Component Library
62 lines (61 loc) • 2.63 kB
TypeScript
import { OnInit, OnDestroy, AfterViewInit, ElementRef, OnChanges, SimpleChanges, NgZone } from '@angular/core';
import * as i0 from "@angular/core";
export declare type NcAnimationTypeType = 'rotate' | 'hover' | '3drotate';
export interface NcOffset {
x: number;
y: number;
}
export declare class PrismaticBurstBackgroundComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges {
private ngZone;
containerRef: ElementRef<HTMLDivElement>;
/** 累加后应用整体亮度倍增器(0.1-5) */
ncIntensity: number;
/** 控制光线运动和扭曲的全局时间倍增器(0-2) */
ncSpeed: number;
/** 动画类型:'rotate' | '3drotate' | 'hover' */
ncAnimationType: NcAnimationTypeType;
/** 设置特定颜色(十六进制字符串数组) */
ncColors: string[];
/** 对行进空间施加的弯曲/扭曲程度(增加自然的摇摆感,0-10) */
ncDistort: number;
/** 是否暂停动画 */
private _paused;
set ncPaused(val: boolean | string);
get ncPaused(): boolean;
/** 中心点的偏移量 (x, y) */
ncOffset: NcOffset;
/** 当ncAnimationType='hover'时,指针跟踪的平滑因子(0-1) */
ncHoverDampness: number;
/** 如果大于0,则应用角度梳状滤波器生成离散光线辐条(0-64) */
ncRayCount: number;
private renderer;
private scene;
private camera;
private material;
private mesh;
private gradientTex;
private mouseTarget;
private mouseSmooth;
private isVisible;
private rafId;
private resizeObserver;
private intersectionObserver;
private lastTime;
private accumTime;
constructor(ngZone: NgZone);
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
ngOnChanges(changes: SimpleChanges): void;
onPointerMove(event: PointerEvent): void;
onVisibilityChange(): void;
private initScene;
private setupObservers;
private onResizeBound;
private resizeCanvas;
private applyOptions;
private updateLoop;
private cleanup;
static ɵfac: i0.ɵɵFactoryDeclaration<PrismaticBurstBackgroundComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<PrismaticBurstBackgroundComponent, "nc-prismatic-burst-background", never, { "ncIntensity": "ncIntensity"; "ncSpeed": "ncSpeed"; "ncAnimationType": "ncAnimationType"; "ncColors": "ncColors"; "ncDistort": "ncDistort"; "ncPaused": "ncPaused"; "ncOffset": "ncOffset"; "ncHoverDampness": "ncHoverDampness"; "ncRayCount": "ncRayCount"; }, {}, never, ["*"]>;
}