ng-cw-v12
Version:
Angular UI component library
36 lines (35 loc) • 1.24 kB
TypeScript
import { OnInit, ElementRef, OnDestroy } from '@angular/core';
import * as i0 from "@angular/core";
export declare class AuroraTextComponent implements OnInit, OnDestroy {
/** 展示的文本内容 */
private _text;
set ncText(value: string);
get ncText(): string;
/** 颜色 */
ncColors: string[];
/** 速度 */
ncSpeed: number;
textContentRef: ElementRef<HTMLSpanElement>;
svgTextRef: ElementRef<SVGTextElement>;
canvasRef: ElementRef<HTMLCanvasElement>;
dimensions: {
width: number;
height: number;
};
isReady: boolean;
textStyle: Partial<CSSStyleDeclaration>;
maskId: string;
private animationFrameId?;
constructor();
ngOnInit(): void;
ngOnDestroy(): void;
private start;
private clear;
private computeTextStyles;
private updateDimensions;
private startAnimation;
getStyleString(): string;
private extractTextStyles;
static ɵfac: i0.ɵɵFactoryDeclaration<AuroraTextComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AuroraTextComponent, "nc-aurora-text", never, { "ncText": "ncText"; "ncColors": "ncColors"; "ncSpeed": "ncSpeed"; }, {}, never, never>;
}