Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Alextopher authored and mcm001 committed Nov 23, 2024
1 parent 7d0ba3c commit ffc5645
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions photon-client/src/components/dashboard/tabs/CropTab.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore";
import { type ColoredShapePipelineSettings, PipelineType } from "@/types/PipelineTypes";
import { type ColoredShapePipelineSettings, PipelineType } from "@/types/PipelineTypes";
import PvSlider from "@/components/common/pv-slider.vue";
import { computed, getCurrentInstance } from "vue";
import { useStateStore } from "@/stores/StateStore";
Expand All @@ -11,19 +11,19 @@ const frame_width = computed(() => useCameraSettingsStore().currentVideoFormat.r
const frame_height = computed(() => useCameraSettingsStore().currentVideoFormat.resolution.height);
const static_x = computed<number>({
get: () => currentPipelineSettings.value.static_x || 0,
set: (value) => useCameraSettingsStore().changeCurrentPipelineSetting({ static_x: value }, false),
set: (value) => useCameraSettingsStore().changeCurrentPipelineSetting({ static_x: value }, false)
});
const static_y = computed<number>({
get: () => currentPipelineSettings.value.static_y || 0,
set: (value) => useCameraSettingsStore().changeCurrentPipelineSetting({ static_y: value }, false),
set: (value) => useCameraSettingsStore().changeCurrentPipelineSetting({ static_y: value }, false)
});
const static_width = computed<number>({
get: () => currentPipelineSettings.value.static_width || frame_width.value,
set: (value) => useCameraSettingsStore().changeCurrentPipelineSetting({ static_width: value }, false),
set: (value) => useCameraSettingsStore().changeCurrentPipelineSetting({ static_width: value }, false)
});
const static_height = computed<number>({
get: () => currentPipelineSettings.value.static_height || frame_height.value,
set: (value) => useCameraSettingsStore().changeCurrentPipelineSetting({ static_height: value }, false),
set: (value) => useCameraSettingsStore().changeCurrentPipelineSetting({ static_height: value }, false)
});
const interactiveCols = computed(() =>
(getCurrentInstance()?.proxy.$vuetify.breakpoint.mdAndDown || false) &&
Expand Down Expand Up @@ -69,6 +69,5 @@ const interactiveCols = computed(() =>
:min="1"
:max="frame_height"
/>

</div>
</template>
</template>

0 comments on commit ffc5645

Please sign in to comment.