Skip to content

Commit

Permalink
Merge branch 'fix/docker-build-time' of https://github.com/OHIF/Viewers
Browse files Browse the repository at this point in the history
… into fix/docker-build-time
  • Loading branch information
wayfarer3130 committed Dec 20, 2024
2 parents 4ebb977 + f4175ae commit 3e2c0d3
Show file tree
Hide file tree
Showing 66 changed files with 408 additions and 152 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.10.0-beta.31](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.30...v3.10.0-beta.31) (2024-12-20)


### Bug Fixes

* **segmentation:** black preview when loading a seg, and crash on opening panel ([#4602](https://github.com/OHIF/Viewers/issues/4602)) ([faf5515](https://github.com/OHIF/Viewers/commit/faf5515e4b93da58b673f1ae59ec345e30870446))





# [3.10.0-beta.30](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.29...v3.10.0-beta.30) (2024-12-18)


Expand Down
8 changes: 8 additions & 0 deletions addOns/externals/devDependencies/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.10.0-beta.31](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.30...v3.10.0-beta.31) (2024-12-20)

**Note:** Version bump only for package @externals/devDependencies





# [3.10.0-beta.30](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.29...v3.10.0-beta.30) (2024-12-18)

**Note:** Version bump only for package @externals/devDependencies
Expand Down
2 changes: 1 addition & 1 deletion addOns/externals/devDependencies/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@externals/devDependencies",
"description": "External dev dependencies - put dev build dependencies here",
"version": "3.10.0-beta.30",
"version": "3.10.0-beta.31",
"license": "MIT",
"private": true,
"engines": {
Expand Down
8 changes: 8 additions & 0 deletions addOns/externals/dicom-microscopy-viewer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.10.0-beta.31](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.30...v3.10.0-beta.31) (2024-12-20)

**Note:** Version bump only for package @externals/dicom-microscopy-viewer





# [3.10.0-beta.30](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.29...v3.10.0-beta.30) (2024-12-18)

**Note:** Version bump only for package @externals/dicom-microscopy-viewer
Expand Down
2 changes: 1 addition & 1 deletion addOns/externals/dicom-microscopy-viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@externals/dicom-microscopy-viewer",
"description": "External reference to dicom-microscopy-viewer",
"version": "3.10.0-beta.30",
"version": "3.10.0-beta.31",
"license": "MIT",
"dependencies": {
"dicom-microscopy-viewer": "^0.46.1"
Expand Down
2 changes: 1 addition & 1 deletion commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2df8e1d5cd7a203bdde1cac6230b60a0b87bfcdd
faf5515e4b93da58b673f1ae59ec345e30870446
8 changes: 8 additions & 0 deletions extensions/cornerstone-dicom-pmap/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.10.0-beta.31](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.30...v3.10.0-beta.31) (2024-12-20)

**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap





# [3.10.0-beta.30](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.29...v3.10.0-beta.30) (2024-12-18)

**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
Expand Down
10 changes: 5 additions & 5 deletions extensions/cornerstone-dicom-pmap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-pmap",
"version": "3.10.0-beta.30",
"version": "3.10.0-beta.31",
"description": "DICOM Parametric Map read workflow",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.30",
"@ohif/extension-cornerstone": "3.10.0-beta.30",
"@ohif/extension-default": "3.10.0-beta.30",
"@ohif/i18n": "3.10.0-beta.30",
"@ohif/core": "3.10.0-beta.31",
"@ohif/extension-cornerstone": "3.10.0-beta.31",
"@ohif/extension-default": "3.10.0-beta.31",
"@ohif/i18n": "3.10.0-beta.31",
"prop-types": "^15.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
8 changes: 8 additions & 0 deletions extensions/cornerstone-dicom-rt/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.10.0-beta.31](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.30...v3.10.0-beta.31) (2024-12-20)

**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt





# [3.10.0-beta.30](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.29...v3.10.0-beta.30) (2024-12-18)

**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
Expand Down
10 changes: 5 additions & 5 deletions extensions/cornerstone-dicom-rt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-rt",
"version": "3.10.0-beta.30",
"version": "3.10.0-beta.31",
"description": "DICOM RT read workflow",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.30",
"@ohif/extension-cornerstone": "3.10.0-beta.30",
"@ohif/extension-default": "3.10.0-beta.30",
"@ohif/i18n": "3.10.0-beta.30",
"@ohif/core": "3.10.0-beta.31",
"@ohif/extension-cornerstone": "3.10.0-beta.31",
"@ohif/extension-default": "3.10.0-beta.31",
"@ohif/i18n": "3.10.0-beta.31",
"prop-types": "^15.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
8 changes: 8 additions & 0 deletions extensions/cornerstone-dicom-seg/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.10.0-beta.31](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.30...v3.10.0-beta.31) (2024-12-20)

**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg





# [3.10.0-beta.30](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.29...v3.10.0-beta.30) (2024-12-18)

**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
Expand Down
10 changes: 5 additions & 5 deletions extensions/cornerstone-dicom-seg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-seg",
"version": "3.10.0-beta.30",
"version": "3.10.0-beta.31",
"description": "DICOM SEG read workflow",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.30",
"@ohif/extension-cornerstone": "3.10.0-beta.30",
"@ohif/extension-default": "3.10.0-beta.30",
"@ohif/i18n": "3.10.0-beta.30",
"@ohif/core": "3.10.0-beta.31",
"@ohif/extension-cornerstone": "3.10.0-beta.31",
"@ohif/extension-default": "3.10.0-beta.31",
"@ohif/i18n": "3.10.0-beta.31",
"prop-types": "^15.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
8 changes: 8 additions & 0 deletions extensions/cornerstone-dicom-sr/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.10.0-beta.31](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.30...v3.10.0-beta.31) (2024-12-20)

**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr





# [3.10.0-beta.30](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.29...v3.10.0-beta.30) (2024-12-18)


Expand Down
10 changes: 5 additions & 5 deletions extensions/cornerstone-dicom-sr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-sr",
"version": "3.10.0-beta.30",
"version": "3.10.0-beta.31",
"description": "OHIF extension for an SR Cornerstone Viewport",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -34,10 +34,10 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.30",
"@ohif/extension-cornerstone": "3.10.0-beta.30",
"@ohif/extension-measurement-tracking": "3.10.0-beta.30",
"@ohif/ui": "3.10.0-beta.30",
"@ohif/core": "3.10.0-beta.31",
"@ohif/extension-cornerstone": "3.10.0-beta.31",
"@ohif/extension-measurement-tracking": "3.10.0-beta.31",
"@ohif/ui": "3.10.0-beta.31",
"dcmjs": "*",
"dicom-parser": "^1.8.9",
"hammerjs": "^2.0.8",
Expand Down
8 changes: 8 additions & 0 deletions extensions/cornerstone-dynamic-volume/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.10.0-beta.31](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.30...v3.10.0-beta.31) (2024-12-20)

**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume





# [3.10.0-beta.30](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.29...v3.10.0-beta.30) (2024-12-18)

**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
Expand Down
12 changes: 6 additions & 6 deletions extensions/cornerstone-dynamic-volume/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dynamic-volume",
"version": "3.10.0-beta.30",
"version": "3.10.0-beta.31",
"description": "OHIF extension for 4D volumes data",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -29,11 +29,11 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.30",
"@ohif/extension-cornerstone": "3.10.0-beta.30",
"@ohif/extension-default": "3.10.0-beta.30",
"@ohif/i18n": "3.10.0-beta.30",
"@ohif/ui": "3.10.0-beta.30",
"@ohif/core": "3.10.0-beta.31",
"@ohif/extension-cornerstone": "3.10.0-beta.31",
"@ohif/extension-default": "3.10.0-beta.31",
"@ohif/i18n": "3.10.0-beta.31",
"@ohif/ui": "3.10.0-beta.31",
"dcmjs": "*",
"dicom-parser": "^1.8.21",
"hammerjs": "^2.0.8",
Expand Down
11 changes: 11 additions & 0 deletions extensions/cornerstone/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.10.0-beta.31](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.30...v3.10.0-beta.31) (2024-12-20)


### Bug Fixes

* **segmentation:** black preview when loading a seg, and crash on opening panel ([#4602](https://github.com/OHIF/Viewers/issues/4602)) ([faf5515](https://github.com/OHIF/Viewers/commit/faf5515e4b93da58b673f1ae59ec345e30870446))





# [3.10.0-beta.30](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.29...v3.10.0-beta.30) (2024-12-18)

**Note:** Version bump only for package @ohif/extension-cornerstone
Expand Down
6 changes: 3 additions & 3 deletions extensions/cornerstone/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone",
"version": "3.10.0-beta.30",
"version": "3.10.0-beta.31",
"description": "OHIF extension for Cornerstone",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -40,8 +40,8 @@
"@cornerstonejs/codec-openjph": "^2.4.5",
"@cornerstonejs/dicom-image-loader": "^2.11.2",
"@icr/polyseg-wasm": "^0.4.0",
"@ohif/core": "3.10.0-beta.30",
"@ohif/ui": "3.10.0-beta.30",
"@ohif/core": "3.10.0-beta.31",
"@ohif/ui": "3.10.0-beta.31",
"dcmjs": "*",
"dicom-parser": "^1.8.21",
"hammerjs": "^2.0.8",
Expand Down
6 changes: 4 additions & 2 deletions extensions/cornerstone/src/panels/PanelSegmentation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,15 @@ export default function PanelSegmentation({
const firstImageId = referencedImageIds[0];

const instance = metaData.get('instance', firstImageId);
const { SOPInstanceUID, SeriesInstanceUID } = instance;
const SOPInstanceUID = instance.SOPInstanceUID || instance.SopInstanceUID;
const SeriesInstanceUID = instance.SeriesInstanceUID;

const displaySet = displaySetService.getDisplaySetForSOPInstanceUID(
SOPInstanceUID,
SeriesInstanceUID
);
const isExportable = displaySet.isReconstructable;

const isExportable = displaySet?.isReconstructable;

return {
segmentationId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
imageLoader,
Types as csTypes,
utilities as csUtils,
metaData,
} from '@cornerstonejs/core';
import {
Enums as csToolsEnums,
Expand Down Expand Up @@ -360,11 +361,11 @@ class SegmentationService extends PubSubService {
options.segments && Object.keys(options.segments).length > 0
? options.segments
: {
1: {
label: 'Segment 1',
active: true,
},
1: {
label: 'Segment 1',
active: true,
},
},
cachedStats: {
info: `S${displaySet.SeriesNumber}: ${displaySet.SeriesDescription}`,
},
Expand All @@ -381,8 +382,8 @@ class SegmentationService extends PubSubService {
segmentationId?: string;
type: SegmentationRepresentations;
} = {
type: LABELMAP,
}
type: LABELMAP,
}
): Promise<string> {
const { type } = options;
let { segmentationId } = options;
Expand Down Expand Up @@ -414,7 +415,10 @@ class SegmentationService extends PubSubService {
imageIds as string[]
);

segDisplaySet.images = derivedSegmentationImages;
segDisplaySet.images = derivedSegmentationImages.map(image => ({
...image,
...metaData.get('instance', image.referencedImageId),
}));

const segmentsInfo = segDisplaySet.segMetadata.data;

Expand Down Expand Up @@ -531,8 +535,8 @@ class SegmentationService extends PubSubService {
segmentationId?: string;
type: SegmentationRepresentations;
} = {
type: CONTOUR,
}
type: CONTOUR,
}
): Promise<string> {
const { type } = options;
let { segmentationId } = options;
Expand Down
11 changes: 11 additions & 0 deletions extensions/default/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [3.10.0-beta.31](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.30...v3.10.0-beta.31) (2024-12-20)


### Bug Fixes

* **segmentation:** black preview when loading a seg, and crash on opening panel ([#4602](https://github.com/OHIF/Viewers/issues/4602)) ([faf5515](https://github.com/OHIF/Viewers/commit/faf5515e4b93da58b673f1ae59ec345e30870446))





# [3.10.0-beta.30](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.29...v3.10.0-beta.30) (2024-12-18)

**Note:** Version bump only for package @ohif/extension-default
Expand Down
Loading

0 comments on commit 3e2c0d3

Please sign in to comment.