UNPKG

1.7 kBTypeScriptView Raw
1import { EventEmitter, ChangeDetectorRef, OnDestroy, ElementRef } from '@angular/core';
2import * as i0 from "@angular/core";
3/**
4 * Count up component
5 *
6 * Loosely inspired by:
7 * - https://github.com/izupet/angular2-counto
8 * - https://inorganik.github.io/countUp.js/
9 *
10 * @export
11 */
12export declare class CountUpDirective implements OnDestroy {
13 private cd;
14 countDuration: number;
15 countPrefix: string;
16 countSuffix: string;
17 valueFormatting: any;
18 set countDecimals(val: number);
19 get countDecimals(): number;
20 set countTo(val: any);
21 get countTo(): any;
22 set countFrom(val: any);
23 get countFrom(): any;
24 countChange: EventEmitter<any>;
25 countFinish: EventEmitter<any>;
26 nativeElement: any;
27 value: any;
28 formattedValue: string;
29 private animationReq;
30 private _countDecimals;
31 private _countTo;
32 private _countFrom;
33 constructor(cd: ChangeDetectorRef, element: ElementRef);
34 ngOnDestroy(): void;
35 start(): void;
36 static ɵfac: i0.ɵɵFactoryDeclaration<CountUpDirective, never>;
37 static ɵcmp: i0.ɵɵComponentDeclaration<CountUpDirective, "[ngx-charts-count-up]", never, { "countDuration": { "alias": "countDuration"; "required": false; }; "countPrefix": { "alias": "countPrefix"; "required": false; }; "countSuffix": { "alias": "countSuffix"; "required": false; }; "valueFormatting": { "alias": "valueFormatting"; "required": false; }; "countDecimals": { "alias": "countDecimals"; "required": false; }; "countTo": { "alias": "countTo"; "required": false; }; "countFrom": { "alias": "countFrom"; "required": false; }; }, { "countChange": "countChange"; "countFinish": "countFinish"; }, never, never, false, never>;
38}