2023-08-21 01:51:35 -04:00
|
|
|
<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";
|
|
|
|
|
|
2023-10-17 10:20:00 -04:00
|
|
|
const trackedTargets = computed<PhotonTarget[]>(() => useStateStore().currentPipelineResults?.targets || []);
|
2023-08-21 01:51:35 -04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
2025-12-26 21:20:36 -05:00
|
|
|
<Suspense>
|
|
|
|
|
<!-- Allows us to import three js when it's actually needed -->
|
|
|
|
|
<photon3d-visualizer :targets="trackedTargets" />
|
2025-07-13 17:28:45 -04:00
|
|
|
|
2025-12-26 21:20:36 -05:00
|
|
|
<template #fallback> Loading... </template>
|
|
|
|
|
</Suspense>
|
2023-08-21 01:51:35 -04:00
|
|
|
</div>
|
|
|
|
|
</template>
|