* 🐛 Reduce intersection observer threshold
When this value is 1, scrolling down the page (sometimes?) triggers the value to change - probably something changes invisibly. Setting it to anything less than 1 seems to cure the issue, and there are no longer unwanted triggers of changes. 1% also seems to make more sense here than 100% - we want the webcam to load whenever even a tiny amount of it is visible.
* ♻️ Change visibility observer threshold to 1%
* ♻️ Use log.debug instead of console.debug
---------
Co-authored-by: Gina Häußge <gina@octoprint.org>
We need to reset emptyLayers (and should - for the sake of consistency -
also reset percentageByLayer) after running an analysis because
otherwise old values will stay in there until page reload, causing layers
to not render that actually are not empty but were in any previously
loaded model.
* log extruder and file position on pause
* satisfy linter
* move values into event, include also cancel action
* please the linter
* updated event documentation
* ♻️ Remove data redundancy
We really don't want to include origin and filename
in the event again when all we actually want
is the fileposition.
---------
Co-authored-by: Gina Häußge <gina@octoprint.org>
`None` values were converted to an empty string by sv, leading to
comparison issues with (correct) integers. Using the default order
value for sv fixes that.
Closes#4818
It was completely non deterministic due to no info about last print
and upload date having been collected in the backend.
This is fixed now, making storing by last upload date, last print
etc also apply to folders.
The corresponding data has also been made available in the frontend.
Closes#4800
It was not storing its current value properly, thanks to an incomplete
refactoring ages ago during which etag and lastmodified types were
joined into httpheader.
Closes#4806
* Handles M115 GEOMETRY capability report
* No need to use a separate format string...
* Origin has no effect on machine height...
* ♻️ virtual: refactor area report
Now depends on a single config setting `m115ReportArea`.
If true, the virtual printer will generate an area report from the current
printer profile and include it in the M115 reponse. Ships as false
by default.
---------
Co-authored-by: Gina Häußge <gina@octoprint.org>
In that case the nav container isn't available, and thus
the attempt to select the first link from that to activate
simply failed silently.
Instead we now check whether the nav container is
even there, and if not just activate the first tab pane.
Closes#4791