UNPKG

threepipe

Version:

A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.

25 lines 658 B
import Stats from 'stats.js'; export class GLStatsJS { constructor(container) { this._stats = new Stats(); this._container = container; this._stats.dom.id = 'stats-js'; this._stats.dom.style.position = 'absolute'; this._stats.dom.style.left = 'unset'; this._stats.dom.style.right = '0'; } show() { this._container.appendChild(this._stats.dom); this._stats.showPanel(0); } hide() { this._container.removeChild(this._stats.dom); } begin() { this._stats.begin(); } end() { this._stats.end(); } } //# sourceMappingURL=GLStatsJS.js.map