feat: some shit

This commit is contained in:
2024-12-17 19:22:57 +01:00
parent 5421349c79
commit 5c1c8c480b
33 changed files with 620 additions and 633 deletions

View File

@@ -11,9 +11,9 @@
fps: false,
});
$: vertices = $store?.at(-1)?.["total-vertices"][0] || 0;
$: faces = $store?.at(-1)?.["total-faces"][0] || 0;
$: runtime = $store?.at(-1)?.["runtime"][0] || 0;
$: vertices = $store?.at(-1)?.["total-vertices"]?.[0] || 0;
$: faces = $store?.at(-1)?.["total-faces"]?.[0] || 0;
$: runtime = $store?.at(-1)?.["runtime"]?.[0] || 0;
function getPoints(data: PerformanceData, key: string) {
return data?.map((run) => run[key]?.[0] || 0) || [];