Remove dead code

This commit is contained in:
D. Berge
2025-08-03 13:43:53 +02:00
parent b5a3a22892
commit 0806b80445

View File

@@ -581,41 +581,6 @@ export default {
});
},
rawSequencesIJErrorLayer(options = {}) {
const { positions, values } = this.sequenceBinaryData;
if (!positions.length || !values[3] || !values[4]) {
console.warn('No valid data for rawSequencesIJErrorLayer');
return new HeatmapLayer({
id: 'seqrh',
data: [],
...options
});
}
const weights = Float32Array.from(values[3], (ei, i) => {
const ej = values[4][i];
return Math.sqrt(ei * ei + ej * ej) / 10; // Euclidean distance in meters
});
return new HeatmapLayer({
id: 'seqrh',
data: {
length: weights.length,
positions,
weights
/*
attributes: {
getPosition: { value: positions, type: 'float32', size: 2 },
getWeight: { value: weights, type: 'float32', size: 1 }
}
*/
},
getPosition: (d, {index, data}) => [ data.positions[index*2], data.positions[index*2+1] ],
getWeight: (d, {index, data}) => data.weights[index],
colorDomain: [2, 20],
radiusPixels: 25,
aggregation: 'MEAN',
pickable: false,
...options
});