Migrate and rework job view metricplot wrapper

This commit is contained in:
Christoph Kluge
2025-06-26 18:41:27 +02:00
parent e94b250541
commit c3a6126799
3 changed files with 88 additions and 133 deletions

View File

@@ -440,7 +440,7 @@
/* IF Zoom Enabled */
if (resampleConfig) {
u.over.addEventListener("dblclick", (e) => {
// console.log('Dispatch Reset')
// console.log('Dispatch: Zoom Reset')
dispatch('zoom', {
lastZoomState: {
x: { time: false },
@@ -506,7 +506,7 @@
});
// Prevents non-required dispatches
if (timestep !== closest) {
// console.log('Dispatch Zoom with Res from / to', timestep, closest)
// console.log('Dispatch: Zoom with Res from / to', timestep, closest)
dispatch('zoom', {
newRes: closest,
lastZoomState: u?.scales,
@@ -514,6 +514,7 @@
});
}
} else {
// console.log('Dispatch: Zoom Update States')
dispatch('zoom', {
lastZoomState: u?.scales,
lastThreshold: thresholds?.normal