Fix performance issues with Microscopy extension
This commit is contained in:
1 parent
bf8f737fec
commit
e3d26f2181
18 files changed
+16
-29
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-8
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ohif-dicom-microscopy-extension",
|
"name": "ohif-dicom-microscopy-extension",
|
||||||
"version": "0.0.3",
|
"version": "0.0.4",
|
||||||
"description": "OHIF extension for Dicom Microscopy",
|
"description": "OHIF extension for Dicom Microscopy",
|
||||||
"author": "OHIF",
|
"author": "OHIF",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -28,7 +28,6 @@
|
|||||||
"@babel/plugin-transform-runtime": "^7.2.0",
|
"@babel/plugin-transform-runtime": "^7.2.0",
|
||||||
"@babel/preset-env": "^7.2.3",
|
"@babel/preset-env": "^7.2.3",
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.0.0",
|
||||||
"@svgr/rollup": "^4.1.0",
|
|
||||||
"babel-eslint": "^9.0.0",
|
"babel-eslint": "^9.0.0",
|
||||||
"cross-env": "^5.2.0",
|
"cross-env": "^5.2.0",
|
||||||
"eslint": "5.6.0",
|
"eslint": "5.6.0",
|
||||||
@@ -39,11 +38,9 @@
|
|||||||
"gh-pages": "^2.0.1",
|
"gh-pages": "^2.0.1",
|
||||||
"husky": "^1.3.1",
|
"husky": "^1.3.1",
|
||||||
"lint-staged": "^8.1.0",
|
"lint-staged": "^8.1.0",
|
||||||
"lodash.clonedeep": "^4.5.0",
|
|
||||||
"prettier": "^1.15.3",
|
"prettier": "^1.15.3",
|
||||||
"react": "^16.6.3",
|
"react": "^16.6.3",
|
||||||
"react-dom": "^16.6.3",
|
"react-dom": "^16.6.3",
|
||||||
"react-scripts": "^2.1.2",
|
|
||||||
"rollup": "^0.68.2",
|
"rollup": "^0.68.2",
|
||||||
"rollup-plugin-babel": "^4.2.0",
|
"rollup-plugin-babel": "^4.2.0",
|
||||||
"rollup-plugin-commonjs": "^9.2.0",
|
"rollup-plugin-commonjs": "^9.2.0",
|
||||||
@@ -80,9 +77,6 @@
|
|||||||
"@babel/runtime": "^7.2.0",
|
"@babel/runtime": "^7.2.0",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"dicom-microscopy-viewer": "^0.2.0",
|
"dicom-microscopy-viewer": "^0.2.0",
|
||||||
"dicomweb-client": "^0.4.1",
|
"ohif-core": "^0.2.4"
|
||||||
"lodash.isequal": "^4.5.0",
|
|
||||||
"ohif-core": "^0.2.3",
|
|
||||||
"prop-types": "^15.6.2"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+2
-4
@@ -4,7 +4,6 @@ import external from 'rollup-plugin-peer-deps-external'
|
|||||||
import postcss from 'rollup-plugin-postcss'
|
import postcss from 'rollup-plugin-postcss'
|
||||||
import resolve from 'rollup-plugin-node-resolve'
|
import resolve from 'rollup-plugin-node-resolve'
|
||||||
import url from 'rollup-plugin-url'
|
import url from 'rollup-plugin-url'
|
||||||
import svgr from '@svgr/rollup'
|
|
||||||
import pkg from './package.json'
|
import pkg from './package.json'
|
||||||
// Deal with https://github.com/rollup/rollup-plugin-commonjs/issues/297
|
// Deal with https://github.com/rollup/rollup-plugin-commonjs/issues/297
|
||||||
import builtins from 'rollup-plugin-node-builtins';
|
import builtins from 'rollup-plugin-node-builtins';
|
||||||
@@ -15,7 +14,7 @@ export default {
|
|||||||
{
|
{
|
||||||
file: pkg.main,
|
file: pkg.main,
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
name: 'ohif-dicom-pdf-extension',
|
name: 'ohif-dicom-microscopy-extension',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
globals: {
|
globals: {
|
||||||
@@ -52,6 +51,5 @@ export default {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
],
|
]
|
||||||
external: ['hammerjs']
|
|
||||||
}
|
}
|
||||||
+3
-5
@@ -1,15 +1,13 @@
|
|||||||
import OHIF from 'ohif-core';
|
import OHIF from 'ohif-core';
|
||||||
|
|
||||||
const { plugins, utils } = OHIF;
|
const { utils } = OHIF;
|
||||||
const { PLUGIN_TYPES } = plugins;
|
|
||||||
|
|
||||||
const SOP_CLASS_UIDS = {
|
const SOP_CLASS_UIDS = {
|
||||||
VL_WHOLE_SLIDE_MICROSCOPY_IMAGE_STORAGE: '1.2.840.10008.5.1.4.1.1.77.1.6'
|
VL_WHOLE_SLIDE_MICROSCOPY_IMAGE_STORAGE: '1.2.840.10008.5.1.4.1.1.77.1.6'
|
||||||
};
|
};
|
||||||
|
|
||||||
const DicomMicrscopySopClassHandler = {
|
const DicomMicroscopySopClassHandler = {
|
||||||
id: 'DicomMicroscopySopClassHandlerPlugin',
|
id: 'DicomMicroscopySopClassHandlerPlugin',
|
||||||
type: PLUGIN_TYPES.SOP_CLASS_HANDLER,
|
|
||||||
sopClassUids: [SOP_CLASS_UIDS.VL_WHOLE_SLIDE_MICROSCOPY_IMAGE_STORAGE],
|
sopClassUids: [SOP_CLASS_UIDS.VL_WHOLE_SLIDE_MICROSCOPY_IMAGE_STORAGE],
|
||||||
getDisplaySetFromSeries(series, study, dicomWebClient) {
|
getDisplaySetFromSeries(series, study, dicomWebClient) {
|
||||||
const instance = series.getFirstInstance();
|
const instance = series.getFirstInstance();
|
||||||
@@ -27,4 +25,4 @@ const DicomMicrscopySopClassHandler = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default DicomMicrscopySopClassHandler;
|
export default DicomMicroscopySopClassHandler;
|
||||||
File renamed without changes.
File renamed without changes.
+1
-3
@@ -1,7 +1,5 @@
|
|||||||
import OHIFDicomMicroscopyExtension from './OHIFDicomMicroscopyExtension.js';
|
import OHIFDicomMicroscopyExtension from './OHIFDicomMicroscopyExtension.js';
|
||||||
|
|
||||||
export {
|
export { OHIFDicomMicroscopyExtension };
|
||||||
OHIFDicomMicroscopyExtension
|
|
||||||
};
|
|
||||||
|
|
||||||
export default OHIFDicomMicroscopyExtension;
|
export default OHIFDicomMicroscopyExtension;
|
||||||
+4
-4
@@ -6996,10 +6996,10 @@ octal@^1.0.0:
|
|||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/octal/-/octal-1.0.0.tgz#63e7162a68efbeb9e213588d58e989d1e5c4530b"
|
resolved "https://registry.yarnpkg.com/octal/-/octal-1.0.0.tgz#63e7162a68efbeb9e213588d58e989d1e5c4530b"
|
||||||
|
|
||||||
ohif-core@^0.2.0:
|
ohif-core@^0.2.3:
|
||||||
version "0.2.1"
|
version "0.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/ohif-core/-/ohif-core-0.2.1.tgz#6f3b3aed29b9c709b8abe2a6f0155a1fa09f81af"
|
resolved "https://registry.yarnpkg.com/ohif-core/-/ohif-core-0.2.3.tgz#2eea4806f44dd98740afe4fec6fb2a038c496197"
|
||||||
integrity sha512-X3/Jcw7EkgSqmaO2zIu19Wc5nJKcoS3AmgwbV0f7LHLQUkvJvVAtljslcBUMKgiaYFc/fJcTmr16oApsGJyGvA==
|
integrity sha512-wBfZOxmRhrkDPFlmoADzxeuNlGiZGa2azbFkpUosxW+8yciuwmOvh21e0bd3uwAkotinrItWihnRR9gz8bG2DA==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/runtime" "^7.2.0"
|
"@babel/runtime" "^7.2.0"
|
||||||
cornerstone-core "^2.2.8"
|
cornerstone-core "^2.2.8"
|
||||||
+1
-1
Submodule Packages-react/ohif-core updated: 8850a092a0...37df733aaa.
@@ -101,7 +101,6 @@
|
|||||||
"cornerstone-wado-image-loader": "^2.2.3",
|
"cornerstone-wado-image-loader": "^2.2.3",
|
||||||
"dcmjs": "^0.3.2",
|
"dcmjs": "^0.3.2",
|
||||||
"dicom-parser": "^1.8.3",
|
"dicom-parser": "^1.8.3",
|
||||||
"dicomweb-client": "^0.4.1",
|
|
||||||
"hammerjs": "^2.0.8",
|
"hammerjs": "^2.0.8",
|
||||||
"lodash.isequal": "^4.5.0",
|
"lodash.isequal": "^4.5.0",
|
||||||
"ohif-core": "^0.2.3",
|
"ohif-core": "^0.2.3",
|
||||||
|
|||||||
@@ -62,8 +62,8 @@ export default {
|
|||||||
'node_modules/redux-oidc/dist/redux-oidc.js': [
|
'node_modules/redux-oidc/dist/redux-oidc.js': [
|
||||||
'reducer', 'CallbackComponent', 'loadUser', 'OidcProvider', 'createUserManager'
|
'reducer', 'CallbackComponent', 'loadUser', 'OidcProvider', 'createUserManager'
|
||||||
],
|
],
|
||||||
'node_modules/dicomweb-client/build/dicomweb-client.js': [
|
'node_modules/cornerstoneTools/dist/cornerstoneTools.min.js': [
|
||||||
'api'
|
'cornerstoneTools'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
export default 'f06e629c2f2256576e7de5bda48124b3a808ab9b';
|
export default 'bf8f737fecdc34e46f973b438fe7139347b4c890';
|
||||||
Reference in new issue
Block a user