mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:27:09 +00:00
@@ -145,15 +145,16 @@ export default {
|
||||
}
|
||||
};
|
||||
const hovertemplate = {
|
||||
// Mode
|
||||
Mode: "%{x}",
|
||||
// Detect
|
||||
Detect: "%{x}",
|
||||
// Autofire
|
||||
Autofire:
|
||||
"x: %{x}<br>" +
|
||||
"y: %{y}<br>" +
|
||||
"z: %{meta.text[%{z}]}"
|
||||
Filltime: "SP%{x}<br>%{y}<br>%{z} ms",
|
||||
Volume: "SP%{x}<br>%{y}<br>%{z} in³",
|
||||
Pressure: "SP%{x}<br>%{y}<br>%{z} psi",
|
||||
Depth: "SP%{x}<br>%{y}<br>%{z} m",
|
||||
Delay: "SP%{x}<br>%{y}<br>%{z} ms",
|
||||
Firetime: "SP%{x}<br>%{y}<br>%{z} ms",
|
||||
Aimpoint: "SP%{x}<br>%{y}<br>%{z} ms",
|
||||
Autofire: "SP%{x}<br>%{y}<br>%{text}",
|
||||
Detect: "SP%{x}<br>%{y}<br>%{text}",
|
||||
Mode: "SP%{x}<br>%{y}<br>%{text}"
|
||||
};
|
||||
const guns = [...new Set(data.map( s => s.meta.guns.map( g => g[1] ) ).flat())];
|
||||
const z = {};
|
||||
@@ -193,7 +194,9 @@ export default {
|
||||
z: z[aspect],
|
||||
xaxis: "x",
|
||||
yaxis: "y" + (idx > 0 ? idx+1 : ""),
|
||||
text: meta[aspect]?.text ? z[aspect].map( row => row.map( v => meta[aspect].text[v] )) : undefined
|
||||
text: meta[aspect]?.text ? z[aspect].map( row => row.map( v => meta[aspect].text[v] )) : undefined,
|
||||
hovertemplate: hovertemplate[aspect],
|
||||
meta: meta[aspect]
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user