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 12, 2024
1 parent c4f6bb8 commit 4b7f34c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 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: 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 4b7f34c

Please sign in to comment.