[IDC-2098] Update RVTKJSV (#2107)

* Update RVTKJSV

* Update react-vtkjs-viewport

* Fix WWWC tool with new rvtkjsv version
This commit is contained in:
James Petts authored and GitHub committed 2020-10-15 16:15:28 +02:00
1 parent c6629bda75
commit 3c05920705
3 files changed
+15 -8

No files matched your search

+10 -3
View File
@@ -270,7 +270,10 @@ const commandsModule = ({ commandsManager, UINotificationService }) => {
apis.forEach((api, apiIndex) => {
const istyle = vtkInteractorStyleMPRRotate.newInstance();
api.setInteractorStyle({ istyle, configuration: { apis, apiIndex } });
api.setInteractorStyle({
istyle,
configuration: { apis, apiIndex, uid: api.uid },
});
});
},
enableCrosshairsTool: () => {
@@ -318,10 +321,14 @@ const commandsModule = ({ commandsManager, UINotificationService }) => {
},
};
apis.forEach(api => {
apis.forEach((api, apiIndex) => {
const istyle = vtkInteractorStyleMPRWindowLevel.newInstance();
api.setInteractorStyle({ istyle, callbacks });
api.setInteractorStyle({
istyle,
callbacks,
configuration: { apis, apiIndex, uid: api.uid },
});
});
},
setSlabThickness: ({ slabThickness }) => {