Published
Edited
Jan 6, 2020
Importers
4 stars
Insert cell
Insert cell
Insert cell
fpsMeter = () => {
const stats = new Stats();
stats.showPanel(0);
stats.dom.style.position = 'static';

let running = true;
requestAnimationFrame(function animate() {
stats.update();
if (running) {
requestAnimationFrame(animate);
}
});
invalidation.then(() => {
running = false;
});
return stats.dom;
}
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more