cleaner updates

This commit is contained in:
vcoppe
2024-04-22 17:33:30 +02:00
parent 8f6c1fc88d
commit 32b15feb0a
2 changed files with 34 additions and 19 deletions

View File

@@ -4,15 +4,17 @@
import { GPXStatistics } from 'gpx';
import { selectedFiles } from '$lib/stores';
import { fileCollection, selectedFiles } from '$lib/stores';
import { MoveDownRight, MoveUpRight, Ruler, Timer, Zap } from 'lucide-svelte';
let gpxData: GPXStatistics = new GPXStatistics();
$: {
gpxData = new GPXStatistics();
$selectedFiles.forEach((file) => {
gpxData.mergeWith(file.statistics);
$fileCollection.files.forEach((file) => {
if ($selectedFiles.has(file)) {
gpxData.mergeWith(file.statistics);
}
});
}