tm-ng-odometer
Version:
TmNgOdometer: An Angular library for animated numeric counters with precise decimal handling, customizable themes, and odometer-style animations.
34 lines (33 loc) • 1.81 kB
TypeScript
/**
* Created: 2017-06-15 by Jose Andres
* Modified:
* - 2020-04-12 by Marco Trinastich: Migrated to Angular 9 and enhanced decimal precision handling using the updated tm-odometer library.
* - 2025-04-19 by Marco Trinastich: Upgraded to the latest Angular version, optimized performance, and improved code quality.
*/
import { OnInit, OnDestroy, OnChanges, AfterViewInit, ElementRef } from "@angular/core";
import { Observable } from "rxjs";
import { TmNgOdometerConfig } from "./tm-ng-odometer.config";
import * as i0 from "@angular/core";
export declare class TmNgOdometerComponent implements OnInit, OnDestroy, OnChanges, AfterViewInit {
private subscription;
private odometer;
container: ElementRef;
number: number;
config: TmNgOdometerConfig;
observable: Observable<boolean>;
animation: "slide" | "count";
format: string;
theme: string;
value: number;
duration: number;
auto: boolean;
private themes;
private initOdometer;
private initConfig;
ngOnInit(): void;
ngOnDestroy(): void;
ngOnChanges(): void;
ngAfterViewInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<TmNgOdometerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TmNgOdometerComponent, "tm-ng-odometer", never, { "number": { "alias": "number"; "required": false; }; "config": { "alias": "config"; "required": false; }; "observable": { "alias": "observable"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "format": { "alias": "format"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "value": { "alias": "value"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "auto": { "alias": "auto"; "required": false; }; }, {}, never, never, false, never>;
}