77 class =" vtk-view"
88 ref =" vtkView"
99 data-testid =" vtk-view"
10- :view-id =" id "
10+ :view-id =" viewId "
1111 :image-id =" currentImageID"
1212 :view-direction =" viewDirection"
1313 :view-up =" viewUp"
3636 :manipulator-props =" { button: 3 }"
3737 ></vtk-mouse-interaction-manipulator >
3838 <vtk-slice-view-window-manipulator
39- :view-id =" id "
39+ :view-id =" viewId "
4040 :image-id =" currentImageID"
4141 :manipulator-config =" windowingManipulatorProps"
4242 ></vtk-slice-view-window-manipulator >
4343 <slice-viewer-overlay
44- :view-id =" id "
44+ :view-id =" viewId "
4545 :image-id =" currentImageID"
4646 ></slice-viewer-overlay >
4747 <vtk-base-oblique-slice-representation
48- :view-id =" id "
48+ :view-id =" viewId "
4949 :image-id =" currentImageID"
5050 :plane-normal =" planeNormal"
5151 :plane-origin =" planeOrigin"
5252 ></vtk-base-oblique-slice-representation >
5353 <vtk-image-outline-representation
54- :view-id =" id "
54+ :view-id =" viewId "
5555 :image-id =" currentImageID"
5656 :plane-normal =" planeNormal"
5757 :plane-origin =" planeOrigin"
5858 :thickness =" 4"
5959 :color =" outlineColor"
6060 ></vtk-image-outline-representation >
6161 <reslice-cursor-tool
62- :view-id =" id "
62+ :view-id =" viewId "
6363 :view-direction =" viewDirection"
6464 ></reslice-cursor-tool >
6565 <slot ></slot >
@@ -84,7 +84,6 @@ import { vtkFieldRef } from '@/src/core/vtk/vtkFieldRef';
8484import useResliceCursorStore , {
8585 mapAxisToViewType ,
8686} from ' @/src/store/reslice-cursor' ;
87- import { LayoutViewProps } from ' @/src/types' ;
8887import { LPSAxisDir } from ' @/src/types/lps' ;
8988import { VtkViewApi } from ' @/src/types/vtk-types' ;
9089import { batchForNextTask } from ' @/src/utils/batchForNextTask' ;
@@ -104,7 +103,9 @@ import { storeToRefs } from 'pinia';
104103import { useToolStore } from ' @/src/store/tools' ;
105104import { Tools } from ' @/src/store/tools/types' ;
106105
107- interface Props extends LayoutViewProps {
106+ interface Props {
107+ viewId: string ;
108+ outlineType: string ;
108109 viewDirection: LPSAxisDir ;
109110 viewUp: LPSAxisDir ;
110111}
@@ -113,11 +114,11 @@ const vtkView = ref<VtkViewApi>();
113114
114115const props = defineProps <Props >();
115116
116- const { id : viewId, type : viewType , viewDirection, viewUp } = toRefs (props );
117+ const { viewId, outlineType , viewDirection, viewUp } = toRefs (props );
117118const viewAxis = computed (() => getLPSAxisFromDir (viewDirection .value ));
118119
119120useWebGLWatchdog (vtkView );
120- useViewAnimationListener (vtkView , viewId , viewType );
121+ useViewAnimationListener (vtkView , viewId , ' Oblique ' );
121122
122123// active tool
123124const { currentTool } = storeToRefs (useToolStore ());
@@ -261,7 +262,7 @@ const outlineColor = computed(
261262 () =>
262263 vec3 .scale (
263264 [0 , 0 , 0 ],
264- OBLIQUE_OUTLINE_COLORS [viewId .value ],
265+ OBLIQUE_OUTLINE_COLORS [outlineType .value ],
265266 1 / 255
266267 ) as RGBColor
267268);
0 commit comments