From 225b9ac71b8730e0f3470e5be29fe7a74d7477ed Mon Sep 17 00:00:00 2001 From: amquake Date: Thu, 19 Oct 2023 23:55:03 -0700 Subject: [PATCH] UI comments --- .../components/dashboard/tabs/ArucoTab.vue | 57 ++----------------- 1 file changed, 4 insertions(+), 53 deletions(-) diff --git a/photon-client/src/components/dashboard/tabs/ArucoTab.vue b/photon-client/src/components/dashboard/tabs/ArucoTab.vue index 3bdbd5d8ce..2199c360bb 100644 --- a/photon-client/src/components/dashboard/tabs/ArucoTab.vue +++ b/photon-client/src/components/dashboard/tabs/ArucoTab.vue @@ -2,9 +2,9 @@ import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore"; import { PipelineType } from "@/types/PipelineTypes"; import PvSlider from "@/components/common/pv-slider.vue"; -import pvSwitch from "@/components/common/pv-switch.vue"; -import pvRangeSlider from "@/components/common/pv-range-slider.vue"; -import pvSelect from "@/components/common/pv-select.vue"; +import PvSwitch from "@/components/common/pv-switch.vue"; +import PvRangeSlider from "@/components/common/pv-range-slider.vue"; +import PvSelect from "@/components/common/pv-select.vue"; import { computed, getCurrentInstance } from "vue"; import { useStateStore } from "@/stores/StateStore"; @@ -12,22 +12,6 @@ import { useStateStore } from "@/stores/StateStore"; // Defer reference to store access method const currentPipelineSettings = useCameraSettingsStore().currentPipelineSettings; -// TODO fix pv-range-slider so that store access doesn't need to be deferred -const threshWinSizes = computed<[number, number]>({ - get: () => { - if (currentPipelineSettings.pipelineType === PipelineType.Aruco) { - return Object.values(currentPipelineSettings.threshWinSizes) as [number, number]; - } else { - return [0, 0] as [number, number]; - } - }, - set: (v) => { - if (currentPipelineSettings.pipelineType === PipelineType.Aruco) { - currentPipelineSettings.threshWinSizes = v; - } - } -}); - const interactiveCols = computed( () => (getCurrentInstance()?.proxy.$vuetify.breakpoint.mdAndDown || false) && @@ -54,7 +38,7 @@ const interactiveCols = computed( @input="(value) => useCameraSettingsStore().changeCurrentPipelineSetting({ useCornerRefinement: value }, false)" /> -