yaustar.github.io
yaustar.github.io copied to clipboard
Mini stats obstructed
Currently mini stats are only partially visible if the left panel is collapsed or not visible at all if the panel is expanded. Consider drawing it above the panel.

Mini stats is actually rendered in WebGL so I can't have it above HTML AFAIK
Oh, I thought it was a simple div?

Hmm, I see. So the original mini stats doesn't allow an offset. If we can extend it, so that when it calculates its position, it would also take the panel width into consideration. We can do it by:
const leftOffset = document.getElementById("left-panel").offsetWidth;
// then add that offset to the position of the ministats