Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 45 additions & 45 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions extensions/cornerstone/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ module.exports = {
moduleNameMapper: {
...base.moduleNameMapper,
'@ohif/(.*)': '<rootDir>/../../platform/$1/src',
// calculate-suv has dist/ not dist/esm/ - exclude from the general mapping
'^@cornerstonejs/calculate-suv$': '<rootDir>/../../node_modules/@cornerstonejs/calculate-suv',
'^@cornerstonejs/calculate-suv/(.*)$':
'<rootDir>/../../node_modules/@cornerstonejs/calculate-suv/$1',
'^@cornerstonejs/([^/]+)/(.*)$': '<rootDir>/../../node_modules/@cornerstonejs/$1/dist/esm/$2',
'^@cornerstonejs/([^/]+)$': '<rootDir>/../../node_modules/@cornerstonejs/$1/dist/esm',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,18 @@ export function getEnhancedDisplaySets({ viewportId, services }) {
displaySetService.getDisplaySetByUID(displaySetUID)
);

const backgroundCanBeVolume = csUtils.isValidVolume(viewportDisplaySets[0].imageIds || []);
const backgroundDisplaySet = viewportDisplaySets[0];
if (!backgroundDisplaySet) {
return {
viewportDisplaySets,
enhancedDisplaySets: otherDisplaySets.map(displaySet => ({
...displaySet,
isOverlayable: false,
})),
};
}

const backgroundCanBeVolume = csUtils.isValidVolume(backgroundDisplaySet.imageIds || []);

const enhancedDisplaySets = otherDisplaySets.map(displaySet => {
if (!backgroundDisplaySet.isReconstructable) {
Expand Down
4 changes: 4 additions & 0 deletions extensions/default/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ module.exports = {
moduleNameMapper: {
...base.moduleNameMapper,
'@ohif/(.*)': '<rootDir>/../../platform/$1/src',
// calculate-suv has dist/ not dist/esm/ - exclude from the general mapping
'^@cornerstonejs/calculate-suv$': '<rootDir>/../../node_modules/@cornerstonejs/calculate-suv',
'^@cornerstonejs/calculate-suv/(.*)$':
'<rootDir>/../../node_modules/@cornerstonejs/calculate-suv/$1',
'^@cornerstonejs/(.*)$': '<rootDir>/../../node_modules/@cornerstonejs/$1/dist/esm',
},
// rootDir: "../.."
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
"lerna:customVersion": "node version.mjs",
"link-list": "npm ls --depth=0 --link=true",
"cs3d:checkout": "cd libs/@cornerstonejs && git fetch && git checkout",
"cs3d:build": "cd libs/@cornerstonejs && yarn install && yarn run build:esm",
"cs3d:build": "cd libs/@cornerstonejs && yarn run build:esm",
"cs3d:watch": "cd libs/@cornerstonejs && yarn run build:esm:watch",
"cs3d:install": "cd libs/@cornerstonejs && yarn install && yarn run build:esm",
"cs3d:link": "node libs/@cornerstonejs/scripts/link-ohif-cornerstone-node-modules.mjs .",
"cs3d:unlink": "node libs/@cornerstonejs/scripts/unlink-ohif-cornerstone-node-modules.mjs ."
},
Expand Down
Loading
Loading