Skip to content

Commit 2c185ba

Browse files
committed
fix(VtkSegmentationSliceRepresentation): update vtk.js for types
1 parent 119ac57 commit 2c185ba

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@aws-sdk/client-s3": "^3.435.0",
2929
"@itk-wasm/dicom": "7.2.2",
3030
"@itk-wasm/image-io": "^1.3.0",
31-
"@kitware/vtk.js": "^32.6.0",
31+
"@kitware/vtk.js": "^32.6.2",
3232
"@netlify/edge-functions": "^2.0.0",
3333
"@sentry/vue": "^7.54.0",
3434
"@velipso/polybool": "^2.0.11",

src/components/SegmentList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { hexaToRGBA, rgbaToHexa } from '@/src/utils/color';
1111
import { reactive, ref, toRefs, computed, watch } from 'vue';
1212
import { SegmentMask } from '@/src/types/segment';
1313
import { usePaintToolStore } from '@/src/store/tools/paint';
14-
import { RGBAColor } from '@kitware/vtk.js/types';
14+
import type { RGBAColor } from '@kitware/vtk.js/types';
1515
1616
const props = defineProps({
1717
groupId: {

src/components/vtk/VtkSegmentationSliceRepresentation.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,10 @@ const config = computed(() =>
144144
);
145145
146146
const outlineThickness = computed(() => config.value?.outlineThickness ?? 2);
147-
// @ts-expect-error vtk.js types are incomplete
148147
sliceRep.property.setUseLabelOutline(true);
149148
sliceRep.property.setUseLookupTableScalarRange(true);
150149
151150
watchEffect(() => {
152-
// @ts-expect-error vtk.js types are incomplete
153151
sliceRep.property.setLabelOutlineOpacity(config.value?.outlineOpacity ?? 1);
154152
});
155153

0 commit comments

Comments
 (0)