[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

+1 -1
View File
@@ -50,7 +50,7 @@
"dependencies": {
"@babel/runtime": "^7.5.5",
"lodash.throttle": "^4.1.1",
"react-vtkjs-viewport": "^0.13.1"
"react-vtkjs-viewport": "^0.14.0"
},
"devDependencies": {
"@ohif/core": "^2.10.7",
+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 }) => {