23 lines
411 B
JavaScript
23 lines
411 B
JavaScript
import { App } from "./app";
|
|
|
|
const app = new App();
|
|
|
|
document.addEventListener(
|
|
"DOMContentLoaded",
|
|
() => {
|
|
app.init();
|
|
|
|
window.addEventListener(
|
|
"resize",
|
|
function () {
|
|
app.percentageBar.redraw();
|
|
|
|
// Delegate to GraphDisplayManager which can check if the resize is necessary
|
|
app.graphDisplayManager.requestResize();
|
|
},
|
|
false
|
|
);
|
|
},
|
|
false
|
|
);
|