@fivethree/core
Version:
Fivethree Core Components
46 lines (45 loc) • 1.74 kB
TypeScript
import { DomSanitizer } from '@angular/platform-browser';
import { AnimationBuilder } from '@angular/animations';
import { OnInit, ElementRef, ChangeDetectorRef, EventEmitter } from '@angular/core';
export declare class FivSpinner implements OnInit {
private _document;
_elementRef: ElementRef;
change: ChangeDetectorRef;
private builder;
sanitizer: DomSanitizer;
private static diameters;
private static styleTag;
private _diameter;
_strokeWidth: number;
_value: number;
fivProgress: EventEmitter<number>;
fivComplete: EventEmitter<FivSpinner>;
determinateCircle: ElementRef;
mode: 'indeterminate' | 'determinate';
circleRadius: number;
_color: string;
readonly class: string;
constructor(_document: any, _elementRef: ElementRef, change: ChangeDetectorRef, builder: AnimationBuilder, sanitizer: DomSanitizer);
ngOnInit(): void;
readonly viewBox: string;
/** The stroke circumference of the svg circle. */
readonly strokeCircumference: number;
/** The dash offset of the svg circle. */
readonly strokeDashOffset: number;
/** Stroke width of the circle in percent. */
readonly circleStrokeWidth: number;
/** Value of the progress circle. */
value: number;
diameter: number;
/** Stroke width of the progress spinner. */
strokeWidth: number;
/** Dynamically generates a style tag containing the correct animation for this diameter. */
private _attachStyleNode;
/** Generates animation styles adjusted for the spinner's diameter. */
private _getAnimationText;
completeIn(duration: number): void;
setValue(progress: number): any;
spin(): void;
stop(): void;
setMode(mode: any): void;
}