@giro3d/giro3d
Version:
A JS/WebGL framework for 3D geospatial data visualization
25 lines (24 loc) • 621 B
JavaScript
/*
* Copyright (c) 2015-2018, IGN France.
* Copyright (c) 2018-2026, Giro3D team.
* SPDX-License-Identifier: MIT
*/
import Fetcher from '../utils/Fetcher';
import Panel from './Panel';
class FetcherPanel extends Panel {
pendingRequests = 0;
runningRequests = 0;
completedRequests = 0;
constructor(parentGui, instance) {
super(parentGui, instance, 'Fetcher');
this.updateValues();
this.addController(this, 'pendingRequests').name('Pending requests');
}
updateValues() {
const {
pending
} = Fetcher.getInfo();
this.pendingRequests = pending;
}
}
export default FetcherPanel;