diff --git a/src/components/SegmentGroupControls.vue b/src/components/SegmentGroupControls.vue index 1a26299d..91e3149d 100644 --- a/src/components/SegmentGroupControls.vue +++ b/src/components/SegmentGroupControls.vue @@ -208,7 +208,6 @@ function openSaveDialog(id: string) { import { computed, toRefs } from 'vue'; import { useGlobalLayerColorConfig } from '@/src/composables/useGlobalLayerColorConfig'; +import { useGlobalSegmentGroupConfig } from '@/src/store/view-configs/segmentGroups'; const props = defineProps<{ groupId: string; @@ -21,12 +22,33 @@ const setOpacity = (opacity: number) => { }, }); }; + +const { config, updateConfig: updateSegmentGroupConfig } = + useGlobalSegmentGroupConfig(groupId); + +const outlineOpacity = computed({ + get: () => config.value!.config!.outlineOpacity, + set: (opacity: number) => { + updateSegmentGroupConfig({ + outlineOpacity: opacity, + }); + }, +}); + +const outlineThickness = computed({ + get: () => config.value!.config!.outlineThickness, + set: (thickness: number) => { + updateSegmentGroupConfig({ + outlineThickness: thickness, + }); + }, +}); diff --git a/src/components/vtk/VtkSegmentationSliceRepresentation.vue b/src/components/vtk/VtkSegmentationSliceRepresentation.vue index 46f15cc5..79663ae2 100644 --- a/src/components/vtk/VtkSegmentationSliceRepresentation.vue +++ b/src/components/vtk/VtkSegmentationSliceRepresentation.vue @@ -1,5 +1,5 @@