@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
14 lines (13 loc) • 515 B
TypeScript
/// <reference types="stats.js" />
import Stats from 'three/examples/jsm/libs/stats.module';
export declare abstract class StatsClass {
domElement: HTMLElement;
abstract update(): void;
}
export declare function createStats(): StatsClass;
import { BaseViewerType } from '../_Base';
export declare function addStatsToViewer(viewer: BaseViewerType): {
viewerElement: import("../_Base").HTMLElementWithViewer<import("three").Camera>;
stats: Stats;
removeStatsFromViewer: () => void;
} | undefined;