mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
20 lines
622 B
Vue
20 lines
622 B
Vue
<script setup lang="ts">
|
|
import { computed } from "vue";
|
|
import type { PhotonTarget } from "@/types/PhotonTrackingTypes";
|
|
import { useStateStore } from "@/stores/StateStore";
|
|
import Photon3dVisualizer from "@/components/app/photon-3d-visualizer.vue";
|
|
|
|
const trackedTargets = computed<PhotonTarget[]>(() => useStateStore().currentPipelineResults?.targets || []);
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<Suspense>
|
|
<!-- Allows us to import three js when it's actually needed -->
|
|
<photon3d-visualizer :targets="trackedTargets" />
|
|
|
|
<template #fallback> Loading... </template>
|
|
</Suspense>
|
|
</div>
|
|
</template>
|