From c54adc3cbdd92fd830bbc8926ed159a3e785ee84 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Tue, 12 Nov 2024 14:05:08 -0500 Subject: [PATCH] fix(VtkSegmentationSliceRepresentation): update vtk.js for types --- package-lock.json | 14 +++++++------- package.json | 2 +- src/components/SegmentList.vue | 2 +- .../vtk/VtkSegmentationSliceRepresentation.vue | 2 -- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index f1b6b5ce..2cc89e7b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,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", @@ -3585,9 +3585,9 @@ } }, "node_modules/@kitware/vtk.js": { - "version": "32.6.0", - "resolved": "https://registry.npmjs.org/@kitware/vtk.js/-/vtk.js-32.6.0.tgz", - "integrity": "sha512-xzmmAT0Yiyy6eJRdEC1eWxkJVbi19VEVaEOTEyHY8YRScLJ5Xveqpw+caK19EdL+Ujd4P0o49NXcuzQdlBM0gQ==", + "version": "32.6.2", + "resolved": "https://registry.npmjs.org/@kitware/vtk.js/-/vtk.js-32.6.2.tgz", + "integrity": "sha512-f2GwNnCq2GTu4PKdjroQ6CZkPCsTwdrt+T3fwpTy3mZ6uL0s9CFWZPS4fYYwuFYqPPqxfmwag0NEI1FIPfRR4g==", "license": "BSD-3-Clause", "dependencies": { "@babel/runtime": "7.22.11", @@ -26101,9 +26101,9 @@ } }, "@kitware/vtk.js": { - "version": "32.6.0", - "resolved": "https://registry.npmjs.org/@kitware/vtk.js/-/vtk.js-32.6.0.tgz", - "integrity": "sha512-xzmmAT0Yiyy6eJRdEC1eWxkJVbi19VEVaEOTEyHY8YRScLJ5Xveqpw+caK19EdL+Ujd4P0o49NXcuzQdlBM0gQ==", + "version": "32.6.2", + "resolved": "https://registry.npmjs.org/@kitware/vtk.js/-/vtk.js-32.6.2.tgz", + "integrity": "sha512-f2GwNnCq2GTu4PKdjroQ6CZkPCsTwdrt+T3fwpTy3mZ6uL0s9CFWZPS4fYYwuFYqPPqxfmwag0NEI1FIPfRR4g==", "requires": { "@babel/runtime": "7.22.11", "@types/webxr": "^0.5.5", diff --git a/package.json b/package.json index 89ee281e..210cd775 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/SegmentList.vue b/src/components/SegmentList.vue index a2f56dc1..05a19073 100644 --- a/src/components/SegmentList.vue +++ b/src/components/SegmentList.vue @@ -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: { diff --git a/src/components/vtk/VtkSegmentationSliceRepresentation.vue b/src/components/vtk/VtkSegmentationSliceRepresentation.vue index 01017f8f..11a6e673 100644 --- a/src/components/vtk/VtkSegmentationSliceRepresentation.vue +++ b/src/components/vtk/VtkSegmentationSliceRepresentation.vue @@ -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); });