mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:47:07 +00:00
Add misfire options to heatmap
This commit is contained in:
@@ -452,6 +452,7 @@ export default {
|
||||
|
||||
let weights, offset = 0, scaler = 1;
|
||||
let colorDomain = null;
|
||||
let aggregation = "MEAN";
|
||||
|
||||
switch (this.heatmapValue) {
|
||||
case "total_error":
|
||||
@@ -534,7 +535,23 @@ export default {
|
||||
weights = values[19];
|
||||
scaler = 0.1;
|
||||
break;
|
||||
|
||||
case "no_fire":
|
||||
weights = values[20];
|
||||
transform = v => v >> 4;
|
||||
aggregation = "SUM";
|
||||
colorDomain = [ 0.1, 1.5 ];
|
||||
break;
|
||||
case "autofire":
|
||||
weights = values[20];
|
||||
transform = v => v & 0xf;
|
||||
aggregation = "SUM";
|
||||
colorDomain = [ 0.5, 1.5 ];
|
||||
break;
|
||||
case "misfire":
|
||||
weights = values[20];
|
||||
aggregation = "SUM";
|
||||
colorDomain = [ 0.5, 1.5 ];
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -575,12 +592,7 @@ export default {
|
||||
getWeight: (d, {index, data}) => Math.abs(data.weights[index] * scaler + offset),
|
||||
colorDomain,
|
||||
radiusPixels: 25,
|
||||
aggregation: 'MEAN',
|
||||
pickable: false,
|
||||
...options
|
||||
});
|
||||
},
|
||||
|
||||
aggregation,
|
||||
pickable: false,
|
||||
...options
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user