From ba261a0d542d5cb53a14f11bd620a11cfae01036 Mon Sep 17 00:00:00 2001 From: Danny Brown Date: Tue, 23 Jul 2019 15:39:56 -0400 Subject: [PATCH] fix: support for next/previous image hotkeys via cornerstone extension update * Bump @ohif/extenions-cornerstone react-cornerstone-viewport dep and cut release * fix: bump @ohif/extension-cornerstone version to latest * Catching the yarn lock changes * Cut new release for cornerstone extension and update Viewers to use it * Add new commands to netlify dmeo * Flip directions for next/previous image --- extensions/ohif-cornerstone-extension/package.json | 2 +- package.json | 2 +- public/config/default.js | 4 ++-- public/config/netlify.js | 4 ++-- yarn.lock | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/extensions/ohif-cornerstone-extension/package.json b/extensions/ohif-cornerstone-extension/package.json index 9a3d68992..329e3dc00 100644 --- a/extensions/ohif-cornerstone-extension/package.json +++ b/extensions/ohif-cornerstone-extension/package.json @@ -1,6 +1,6 @@ { "name": "@ohif/extension-cornerstone", - "version": "0.0.42", + "version": "0.0.43", "description": "OHIF extension for Cornerstone", "author": "OHIF", "license": "MIT", diff --git a/package.json b/package.json index c8131ed28..b508527c1 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ }, "dependencies": { "@babel/runtime": "^7.4.5", - "@ohif/extension-cornerstone": "0.0.42", + "@ohif/extension-cornerstone": "0.0.43", "@ohif/extension-dicom-html": "0.0.4", "@ohif/extension-dicom-microscopy": "0.0.12", "@ohif/extension-dicom-pdf": "0.0.8", diff --git a/public/config/default.js b/public/config/default.js index 7c79aa22c..6080dd161 100644 --- a/public/config/default.js +++ b/public/config/default.js @@ -54,8 +54,8 @@ window.config = { { commandName: 'fitViewportToWindow', label: 'Zoom to Fit', keys: ['='] }, { commandName: 'resetViewport', label: 'Reset', keys: ['space'] }, // clearAnnotations - { commandName: 'nextImage', label: 'Next Image', keys: ['up'] }, - { commandName: 'previousImage', label: 'Previous Image', keys: ['down'] }, + { commandName: 'nextImage', label: 'Next Image', keys: ['down'] }, + { commandName: 'previousImage', label: 'Previous Image', keys: ['up'] }, // firstImage // lastImage { diff --git a/public/config/netlify.js b/public/config/netlify.js index d33d402dd..f544689cd 100644 --- a/public/config/netlify.js +++ b/public/config/netlify.js @@ -49,8 +49,8 @@ window.config = { { commandName: 'fitViewportToWindow', label: 'Zoom to Fit', keys: ['='] }, { commandName: 'resetViewport', label: 'Reset', keys: ['space'] }, // clearAnnotations - // nextImage - // previousImage + { commandName: 'nextImage', label: 'Next Image', keys: ['down'] }, + { commandName: 'previousImage', label: 'Previous Image', keys: ['up'] }, // firstImage // lastImage { diff --git a/yarn.lock b/yarn.lock index 88a7cada4..7aec97441 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1237,10 +1237,10 @@ universal-user-agent "^2.0.0" url-template "^2.0.8" -"@ohif/extension-cornerstone@0.0.42": - version "0.0.42" - resolved "https://registry.yarnpkg.com/@ohif/extension-cornerstone/-/extension-cornerstone-0.0.42.tgz#27c11cd58b05adc867972a5678f9fdb5dc31c7c8" - integrity sha512-AVBghx14rUtLUA4OtrwtnxYCfSR46Kd29mk67RS9kJdbVIYUX6arlKForhSsCvyJtMhRJ9Ruxs1lieKgy2v0vA== +"@ohif/extension-cornerstone@0.0.43": + version "0.0.43" + resolved "https://registry.yarnpkg.com/@ohif/extension-cornerstone/-/extension-cornerstone-0.0.43.tgz#b7f65402e3f35be47e89849d250aff334c396443" + integrity sha512-TqwK471pVrR5WS84mhZ8Lihkzn+JXo94ZvtypQUJ1o6s9rzBpsdpA9YT0UEq5VKgcbWzE3lYd/k2k5y+1sXOIQ== dependencies: "@babel/runtime" "^7.2.0" classnames "^2.2.6"