Skip to content

Commit 05bb668

Browse files
committed
feat(gaussianSmooth): disable sigma slider during preview mode
1 parent e163c04 commit 05bb668

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/GaussianSmoothParameterControls.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44
<template #title>Gaussian smooth selected segment.</template>
55
<ul>
66
<li>
7-
Applies label-preserving Gaussian smoothing to reduce noise and smooth
8-
boundaries.
9-
</li>
10-
<li>
11-
Each label is processed separately to prevent mixing between different
12-
segments.
7+
Applies Gaussian smoothing to reduce noise and smooth boundaries.
138
</li>
9+
<li>Only the selected segment will be smoothed.</li>
1410
<li>
1511
Higher sigma values create more smoothing effect but may reduce fine
1612
details.
@@ -30,6 +26,7 @@
3026
hide-details
3127
thumb-label
3228
:model-value="sigma"
29+
:disabled="isDisabled"
3330
@update:model-value="setSigma"
3431
/>
3532
</div>
@@ -39,9 +36,12 @@
3936
import { computed } from 'vue';
4037
import MiniExpansionPanel from './MiniExpansionPanel.vue';
4138
import { useGaussianSmoothStore } from '../store/tools/gaussianSmooth';
39+
import { useProcessStore } from '../store/tools/process';
4240
4341
const gaussianSmoothStore = useGaussianSmoothStore();
42+
const processStore = useProcessStore();
4443
4544
const sigma = computed(() => gaussianSmoothStore.sigma);
45+
const isDisabled = computed(() => processStore.processStep === 'previewing');
4646
const { MIN_SIGMA, MAX_SIGMA, setSigma } = gaussianSmoothStore;
4747
</script>

0 commit comments

Comments
 (0)