[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 2020-10-15 15:15:28 +01:00 committed by GitHub
parent c6629bda75
commit 3c05920705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 8 deletions

View File

@ -50,7 +50,7 @@
"dependencies": { "dependencies": {
"@babel/runtime": "^7.5.5", "@babel/runtime": "^7.5.5",
"lodash.throttle": "^4.1.1", "lodash.throttle": "^4.1.1",
"react-vtkjs-viewport": "^0.13.1" "react-vtkjs-viewport": "^0.14.0"
}, },
"devDependencies": { "devDependencies": {
"@ohif/core": "^2.10.7", "@ohif/core": "^2.10.7",

View File

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

View File

@ -16061,10 +16061,10 @@ react-transition-group@^4.1.1:
loose-envify "^1.4.0" loose-envify "^1.4.0"
prop-types "^15.6.2" prop-types "^15.6.2"
react-vtkjs-viewport@^0.13.1: react-vtkjs-viewport@^0.14.0:
version "0.13.1" version "0.14.0"
resolved "https://registry.yarnpkg.com/react-vtkjs-viewport/-/react-vtkjs-viewport-0.13.1.tgz#11b69873377cd66b6522079eb05d54317c2e8903" resolved "https://registry.yarnpkg.com/react-vtkjs-viewport/-/react-vtkjs-viewport-0.14.0.tgz#0bb4aeb02d4b32eb253ea1296e2032ade9772766"
integrity sha512-P2jmv0rZtas9+pZCzVBr0R/EqmXpWqPP8JA1DScwKgFoYj4ApqnQeLXSVz2VHXi58q87k2uay9k7xcchLiStrQ== integrity sha512-axKPSizH6y2P++33XPbV2mYF37EHMhp42e9TqPM9uxx0nQSXBe3HA5741z6CBGtbU7e2NT4ZBv9TduY86XetQw==
dependencies: dependencies:
date-fns "^2.2.1" date-fns "^2.2.1"
gl-matrix "^3.1.0" gl-matrix "^3.1.0"