Fix performance issues with Microscopy extension

This commit is contained in:
Erik Ziegler 2019-02-04 16:45:49 +01:00
parent bf8f737fec
commit e3d26f2181
18 changed files with 16 additions and 29 deletions

View File

@ -1,6 +1,6 @@
{
"name": "ohif-dicom-microscopy-extension",
"version": "0.0.3",
"version": "0.0.4",
"description": "OHIF extension for Dicom Microscopy",
"author": "OHIF",
"license": "MIT",
@ -28,7 +28,6 @@
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.2.3",
"@babel/preset-react": "^7.0.0",
"@svgr/rollup": "^4.1.0",
"babel-eslint": "^9.0.0",
"cross-env": "^5.2.0",
"eslint": "5.6.0",
@ -39,11 +38,9 @@
"gh-pages": "^2.0.1",
"husky": "^1.3.1",
"lint-staged": "^8.1.0",
"lodash.clonedeep": "^4.5.0",
"prettier": "^1.15.3",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-scripts": "^2.1.2",
"rollup": "^0.68.2",
"rollup-plugin-babel": "^4.2.0",
"rollup-plugin-commonjs": "^9.2.0",
@ -80,9 +77,6 @@
"@babel/runtime": "^7.2.0",
"classnames": "^2.2.6",
"dicom-microscopy-viewer": "^0.2.0",
"dicomweb-client": "^0.4.1",
"lodash.isequal": "^4.5.0",
"ohif-core": "^0.2.3",
"prop-types": "^15.6.2"
"ohif-core": "^0.2.4"
}
}

View File

@ -4,7 +4,6 @@ import external from 'rollup-plugin-peer-deps-external'
import postcss from 'rollup-plugin-postcss'
import resolve from 'rollup-plugin-node-resolve'
import url from 'rollup-plugin-url'
import svgr from '@svgr/rollup'
import pkg from './package.json'
// Deal with https://github.com/rollup/rollup-plugin-commonjs/issues/297
import builtins from 'rollup-plugin-node-builtins';
@ -15,7 +14,7 @@ export default {
{
file: pkg.main,
format: 'umd',
name: 'ohif-dicom-pdf-extension',
name: 'ohif-dicom-microscopy-extension',
sourcemap: true,
exports: 'named',
globals: {
@ -52,6 +51,5 @@ export default {
]
}
})
],
external: ['hammerjs']
]
}

View File

@ -1,15 +1,13 @@
import OHIF from 'ohif-core';
const { plugins, utils } = OHIF;
const { PLUGIN_TYPES } = plugins;
const { utils } = OHIF;
const SOP_CLASS_UIDS = {
VL_WHOLE_SLIDE_MICROSCOPY_IMAGE_STORAGE: '1.2.840.10008.5.1.4.1.1.77.1.6'
};
const DicomMicrscopySopClassHandler = {
const DicomMicroscopySopClassHandler = {
id: 'DicomMicroscopySopClassHandlerPlugin',
type: PLUGIN_TYPES.SOP_CLASS_HANDLER,
sopClassUids: [SOP_CLASS_UIDS.VL_WHOLE_SLIDE_MICROSCOPY_IMAGE_STORAGE],
getDisplaySetFromSeries(series, study, dicomWebClient) {
const instance = series.getFirstInstance();
@ -27,4 +25,4 @@ const DicomMicrscopySopClassHandler = {
}
};
export default DicomMicrscopySopClassHandler;
export default DicomMicroscopySopClassHandler;

View File

@ -1,7 +1,5 @@
import OHIFDicomMicroscopyExtension from './OHIFDicomMicroscopyExtension.js';
export {
OHIFDicomMicroscopyExtension
};
export { OHIFDicomMicroscopyExtension };
export default OHIFDicomMicroscopyExtension;

View File

@ -6996,10 +6996,10 @@ octal@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/octal/-/octal-1.0.0.tgz#63e7162a68efbeb9e213588d58e989d1e5c4530b"
ohif-core@^0.2.0:
version "0.2.1"
resolved "https://registry.yarnpkg.com/ohif-core/-/ohif-core-0.2.1.tgz#6f3b3aed29b9c709b8abe2a6f0155a1fa09f81af"
integrity sha512-X3/Jcw7EkgSqmaO2zIu19Wc5nJKcoS3AmgwbV0f7LHLQUkvJvVAtljslcBUMKgiaYFc/fJcTmr16oApsGJyGvA==
ohif-core@^0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/ohif-core/-/ohif-core-0.2.3.tgz#2eea4806f44dd98740afe4fec6fb2a038c496197"
integrity sha512-wBfZOxmRhrkDPFlmoADzxeuNlGiZGa2azbFkpUosxW+8yciuwmOvh21e0bd3uwAkotinrItWihnRR9gz8bG2DA==
dependencies:
"@babel/runtime" "^7.2.0"
cornerstone-core "^2.2.8"

@ -1 +1 @@
Subproject commit 8850a092a0b860bc9d423fcc49512567251fc47b
Subproject commit 37df733aaae0f8fafd13315e4cd95b0697115cca

View File

@ -101,7 +101,6 @@
"cornerstone-wado-image-loader": "^2.2.3",
"dcmjs": "^0.3.2",
"dicom-parser": "^1.8.3",
"dicomweb-client": "^0.4.1",
"hammerjs": "^2.0.8",
"lodash.isequal": "^4.5.0",
"ohif-core": "^0.2.3",

View File

@ -62,8 +62,8 @@ export default {
'node_modules/redux-oidc/dist/redux-oidc.js': [
'reducer', 'CallbackComponent', 'loadUser', 'OidcProvider', 'createUserManager'
],
'node_modules/dicomweb-client/build/dicomweb-client.js': [
'api'
'node_modules/cornerstoneTools/dist/cornerstoneTools.min.js': [
'cornerstoneTools'
]
}
}),

View File

@ -1 +1 @@
export default 'f06e629c2f2256576e7de5bda48124b3a808ab9b';
export default 'bf8f737fecdc34e46f973b438fe7139347b4c890';