From 81e2e3c7b91d006f250bbabde7b9162fbc70432c Mon Sep 17 00:00:00 2001 From: Forrest Date: Wed, 9 Oct 2024 15:16:25 -0400 Subject: [PATCH] fix(crop): wait for DICOM image load --- src/components/tools/crop/Crop3D.vue | 2 -- src/components/tools/crop/CropTool.vue | 4 ++-- src/composables/wheneverImageLoaded.ts | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 src/composables/wheneverImageLoaded.ts diff --git a/src/components/tools/crop/Crop3D.vue b/src/components/tools/crop/Crop3D.vue index 4d7e0568..08ee562a 100644 --- a/src/components/tools/crop/Crop3D.vue +++ b/src/components/tools/crop/Crop3D.vue @@ -50,8 +50,6 @@ export default defineComponent({ const view = inject(VtkViewContext); if (!view) throw new Error('No VtkView'); - console.log('whee'); - const { widgetManager } = view; const { imageId } = toRefs(props); diff --git a/src/components/tools/crop/CropTool.vue b/src/components/tools/crop/CropTool.vue index 9a6ffa2d..73a38a2a 100644 --- a/src/components/tools/crop/CropTool.vue +++ b/src/components/tools/crop/CropTool.vue @@ -1,7 +1,7 @@