leva-r3f-stats
Version:
A small plugin to display React Three Fiber stats in Leva
23 lines • 629 B
TypeScript
export declare class NoiseFilter {
private lastValue;
private threshold;
constructor(threshold?: number);
filter(value: number): number;
}
export declare class EMASmoothing {
private alpha;
private value;
private initialized;
constructor(alpha?: number);
update(newValue: number): number;
reset(): void;
}
export declare class StatsSmoothing {
private smoothers;
private filters;
private readonly alphas;
constructor(customAlphas?: Partial<typeof this.alphas>);
smooth(metric: string, value: number): number;
reset(): void;
}
//# sourceMappingURL=smoothing.d.ts.map