Skip to content

Commit

Permalink
Merge branch 'master' into feat/multi-series-wado
Browse files Browse the repository at this point in the history
  • Loading branch information
igoroctaviano authored Oct 25, 2023
2 parents e555247 + 423ba7c commit eeb488d
Show file tree
Hide file tree
Showing 69 changed files with 1,425 additions and 738 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.8.0-beta.6](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.5...v3.8.0-beta.6) (2023-10-25)


### Bug Fixes

* **toolbar:** allow customizable toolbar for active viewport and allow active tool to be deactivated via a click ([#3608](https://github.com/OHIF/Viewers/issues/3608)) ([dd6d976](https://github.com/OHIF/Viewers/commit/dd6d9768bbca1d3cc472e8c1e6d85822500b96ef))





# [3.8.0-beta.5](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.4...v3.8.0-beta.5) (2023-10-24)


Expand Down
2 changes: 1 addition & 1 deletion commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d98439fe7f3825076dbc87b664a1d1480ff414d3
dd6d9768bbca1d3cc472e8c1e6d85822500b96ef
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.8.0-beta.6](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.5...v3.8.0-beta.6) (2023-10-25)

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





# [3.8.0-beta.5](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.4...v3.8.0-beta.5) (2023-10-24)

**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.8.0-beta.5",
"version": "3.8.0-beta.6",
"description": "DICOM RT read workflow",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -31,10 +31,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.8.0-beta.5",
"@ohif/extension-cornerstone": "3.8.0-beta.5",
"@ohif/extension-default": "3.8.0-beta.5",
"@ohif/i18n": "3.8.0-beta.5",
"@ohif/core": "3.8.0-beta.6",
"@ohif/extension-cornerstone": "3.8.0-beta.6",
"@ohif/extension-default": "3.8.0-beta.6",
"@ohif/i18n": "3.8.0-beta.6",
"prop-types": "^15.6.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
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.8.0-beta.6](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.5...v3.8.0-beta.6) (2023-10-25)

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





# [3.8.0-beta.5](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.4...v3.8.0-beta.5) (2023-10-24)

**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.8.0-beta.5",
"version": "3.8.0-beta.6",
"description": "DICOM SEG read workflow",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -31,10 +31,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.8.0-beta.5",
"@ohif/extension-cornerstone": "3.8.0-beta.5",
"@ohif/extension-default": "3.8.0-beta.5",
"@ohif/i18n": "3.8.0-beta.5",
"@ohif/core": "3.8.0-beta.6",
"@ohif/extension-cornerstone": "3.8.0-beta.6",
"@ohif/extension-default": "3.8.0-beta.6",
"@ohif/i18n": "3.8.0-beta.6",
"prop-types": "^15.6.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
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.8.0-beta.6](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.5...v3.8.0-beta.6) (2023-10-25)

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





# [3.8.0-beta.5](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.4...v3.8.0-beta.5) (2023-10-24)


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.8.0-beta.5",
"version": "3.8.0-beta.6",
"description": "OHIF extension for an SR Cornerstone Viewport",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -32,10 +32,10 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.8.0-beta.5",
"@ohif/extension-cornerstone": "3.8.0-beta.5",
"@ohif/extension-measurement-tracking": "3.8.0-beta.5",
"@ohif/ui": "3.8.0-beta.5",
"@ohif/core": "3.8.0-beta.6",
"@ohif/extension-cornerstone": "3.8.0-beta.6",
"@ohif/extension-measurement-tracking": "3.8.0-beta.6",
"@ohif/ui": "3.8.0-beta.6",
"dcmjs": "^0.29.11",
"dicom-parser": "^1.8.9",
"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.8.0-beta.6](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.5...v3.8.0-beta.6) (2023-10-25)


### Bug Fixes

* **toolbar:** allow customizable toolbar for active viewport and allow active tool to be deactivated via a click ([#3608](https://github.com/OHIF/Viewers/issues/3608)) ([dd6d976](https://github.com/OHIF/Viewers/commit/dd6d9768bbca1d3cc472e8c1e6d85822500b96ef))





# [3.8.0-beta.5](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.4...v3.8.0-beta.5) (2023-10-24)


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.8.0-beta.5",
"version": "3.8.0-beta.6",
"description": "OHIF extension for Cornerstone",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -37,8 +37,8 @@
"@cornerstonejs/codec-openjpeg": "^1.2.2",
"@cornerstonejs/codec-openjph": "^2.4.2",
"@cornerstonejs/dicom-image-loader": "^1.20.3",
"@ohif/core": "3.8.0-beta.5",
"@ohif/ui": "3.8.0-beta.5",
"@ohif/core": "3.8.0-beta.6",
"@ohif/ui": "3.8.0-beta.6",
"dcmjs": "^0.29.11",
"dicom-parser": "^1.8.21",
"hammerjs": "^2.0.8",
Expand Down
9 changes: 2 additions & 7 deletions extensions/cornerstone/src/commandsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,8 @@ function commandsModule({

const { viewport } = enabledElement;

if (viewport instanceof StackViewport) {
viewport.resetProperties();
viewport.resetCamera();
} else {
viewport.resetProperties();
viewport.resetCamera();
}
viewport.resetProperties?.();
viewport.resetCamera();

viewport.render();
},
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.8.0-beta.6](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.5...v3.8.0-beta.6) (2023-10-25)


### Bug Fixes

* **toolbar:** allow customizable toolbar for active viewport and allow active tool to be deactivated via a click ([#3608](https://github.com/OHIF/Viewers/issues/3608)) ([dd6d976](https://github.com/OHIF/Viewers/commit/dd6d9768bbca1d3cc472e8c1e6d85822500b96ef))





# [3.8.0-beta.5](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.4...v3.8.0-beta.5) (2023-10-24)


Expand Down
6 changes: 3 additions & 3 deletions extensions/default/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-default",
"version": "3.8.0-beta.5",
"version": "3.8.0-beta.6",
"description": "Common/default features and functionality for basic image viewing",
"author": "OHIF Core Team",
"license": "MIT",
Expand Down Expand Up @@ -30,8 +30,8 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.8.0-beta.5",
"@ohif/i18n": "3.8.0-beta.5",
"@ohif/core": "3.8.0-beta.6",
"@ohif/i18n": "3.8.0-beta.6",
"dcmjs": "^0.29.11",
"dicomweb-client": "^0.10.2",
"prop-types": "^15.6.2",
Expand Down
25 changes: 20 additions & 5 deletions extensions/default/src/Toolbar/Toolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
import React, { useEffect, useState, useCallback } from 'react';
import React, { useCallback, useEffect, useState } from 'react';
import classnames from 'classnames';
import { useViewportGrid } from '@ohif/ui';

export default function Toolbar({ servicesManager }) {
export default function Toolbar({
servicesManager,
}: Types.Extensions.ExtensionParams): React.ReactElement {
const { toolbarService } = servicesManager.services;

const [viewportGrid, viewportGridService] = useViewportGrid();

const [toolbarButtons, setToolbarButtons] = useState([]);

useEffect(() => {
const { unsubscribe } = toolbarService.subscribe(toolbarService.EVENTS.TOOL_BAR_MODIFIED, () =>
setToolbarButtons(toolbarService.getButtonSection('primary'))
const updateToolbar = () => {
const toolGroupId =
viewportGridService.getActiveViewportOptionByKey('toolGroupId') ?? 'default';
setToolbarButtons(toolbarService.getButtonSection(toolGroupId));
};

const { unsubscribe } = toolbarService.subscribe(
toolbarService.EVENTS.TOOL_BAR_MODIFIED,
updateToolbar
);

updateToolbar();

return () => {
unsubscribe();
};
}, [toolbarService]);
}, [toolbarService, viewportGrid]);

const onInteraction = useCallback(
args => toolbarService.recordInteraction(args),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ToolbarButtonWithServices.propTypes = {
state: PropTypes.shape({
primaryToolId: PropTypes.string,
toggles: PropTypes.objectOf(PropTypes.bool),
groups: PropTypes.objectOf(PropTypes.object),
groups: PropTypes.objectOf(PropTypes.any),
}).isRequired,
}).isRequired,
}).isRequired,
Expand Down
8 changes: 8 additions & 0 deletions extensions/dicom-microscopy/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.8.0-beta.6](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.5...v3.8.0-beta.6) (2023-10-25)

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





# [3.8.0-beta.5](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.4...v3.8.0-beta.5) (2023-10-24)

**Note:** Version bump only for package @ohif/extension-dicom-microscopy
Expand Down
10 changes: 5 additions & 5 deletions extensions/dicom-microscopy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-dicom-microscopy",
"version": "3.8.0-beta.5",
"version": "3.8.0-beta.6",
"description": "OHIF extension for DICOM microscopy",
"author": "Bill Wallace, md-prog",
"license": "MIT",
Expand Down Expand Up @@ -28,10 +28,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.8.0-beta.5",
"@ohif/extension-default": "3.8.0-beta.5",
"@ohif/i18n": "3.8.0-beta.5",
"@ohif/ui": "3.8.0-beta.5",
"@ohif/core": "3.8.0-beta.6",
"@ohif/extension-default": "3.8.0-beta.6",
"@ohif/i18n": "3.8.0-beta.6",
"@ohif/ui": "3.8.0-beta.6",
"prop-types": "^15.6.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
8 changes: 8 additions & 0 deletions extensions/dicom-pdf/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.8.0-beta.6](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.5...v3.8.0-beta.6) (2023-10-25)

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





# [3.8.0-beta.5](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.4...v3.8.0-beta.5) (2023-10-24)


Expand Down
6 changes: 3 additions & 3 deletions extensions/dicom-pdf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-dicom-pdf",
"version": "3.8.0-beta.5",
"version": "3.8.0-beta.6",
"description": "OHIF extension for PDF display",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -28,8 +28,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.8.0-beta.5",
"@ohif/ui": "3.8.0-beta.5",
"@ohif/core": "3.8.0-beta.6",
"@ohif/ui": "3.8.0-beta.6",
"dcmjs": "^0.29.11",
"dicom-parser": "^1.8.9",
"hammerjs": "^2.0.8",
Expand Down
8 changes: 8 additions & 0 deletions extensions/dicom-video/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.8.0-beta.6](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.5...v3.8.0-beta.6) (2023-10-25)

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





# [3.8.0-beta.5](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.4...v3.8.0-beta.5) (2023-10-24)


Expand Down
6 changes: 3 additions & 3 deletions extensions/dicom-video/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-dicom-video",
"version": "3.8.0-beta.5",
"version": "3.8.0-beta.6",
"description": "OHIF extension for video display",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -28,8 +28,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.8.0-beta.5",
"@ohif/ui": "3.8.0-beta.5",
"@ohif/core": "3.8.0-beta.6",
"@ohif/ui": "3.8.0-beta.6",
"dcmjs": "^0.29.11",
"dicom-parser": "^1.8.9",
"hammerjs": "^2.0.8",
Expand Down
8 changes: 8 additions & 0 deletions extensions/measurement-tracking/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.8.0-beta.6](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.5...v3.8.0-beta.6) (2023-10-25)

**Note:** Version bump only for package @ohif/extension-measurement-tracking





# [3.8.0-beta.5](https://github.com/OHIF/Viewers/compare/v3.8.0-beta.4...v3.8.0-beta.5) (2023-10-24)


Expand Down
Loading

0 comments on commit eeb488d

Please sign in to comment.