Files
nodarium/app/src/lib/result-viewer/Debug.svelte
release-bot 15e08a8163
All checks were successful
🚀 Lint & Test & Deploy / release (pull_request) Successful in 3m53s
feat: implement debug node
Closes #39
2026-02-12 21:33:47 +01:00

20 lines
469 B
Svelte

<script lang="ts">
import { T } from '@threlte/core';
import type { Group } from 'three';
import { updateDebugScene } from './debug';
type Props = {
debugData?: Record<number, { type: string; data: Int32Array }>;
};
let group = $state<Group>(null!);
const { debugData }: Props = $props();
$effect(() => {
if (!group || !debugData) return;
updateDebugScene(group, $state.snapshot(debugData));
});
</script>
<T.Group bind:ref={group} />