Skip to content

Commit

Permalink
fix(VtkSegmentationSliceRepresentation): update vtk.js for types
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHax committed Nov 13, 2024
1 parent c4f6bb8 commit c54adc3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@aws-sdk/client-s3": "^3.435.0",
"@itk-wasm/dicom": "7.2.2",
"@itk-wasm/image-io": "^1.3.0",
"@kitware/vtk.js": "^32.6.0",
"@kitware/vtk.js": "^32.6.2",
"@netlify/edge-functions": "^2.0.0",
"@sentry/vue": "^7.54.0",
"@velipso/polybool": "^2.0.11",
Expand Down
2 changes: 1 addition & 1 deletion src/components/SegmentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { hexaToRGBA, rgbaToHexa } from '@/src/utils/color';
import { reactive, ref, toRefs, computed, watch } from 'vue';
import { SegmentMask } from '@/src/types/segment';
import { usePaintToolStore } from '@/src/store/tools/paint';
import { RGBAColor } from '@kitware/vtk.js/types';
import type { RGBAColor } from '@kitware/vtk.js/types';
const props = defineProps({
groupId: {
Expand Down
2 changes: 0 additions & 2 deletions src/components/vtk/VtkSegmentationSliceRepresentation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,10 @@ const config = computed(() =>
);
const outlineThickness = computed(() => config.value?.outlineThickness ?? 2);
// @ts-expect-error vtk.js types are incomplete
sliceRep.property.setUseLabelOutline(true);
sliceRep.property.setUseLookupTableScalarRange(true);
watchEffect(() => {
// @ts-expect-error vtk.js types are incomplete
sliceRep.property.setLabelOutlineOpacity(config.value?.outlineOpacity ?? 1);
});
Expand Down

0 comments on commit c54adc3

Please sign in to comment.