Compare commits

..
Author SHA1 Message Date
ohif-bot 694f3e9611 chore(version): Update package versions [skip ci] 2025-03-17 15:51:26 +00:00
ohif-bot d33b1ade87 chore(version): version.json [skip ci] 2025-03-17 15:51:19 +00:00
Dan Rukasandsedghi abab3dc7ad ui(components): LayoutSelector recreated for ui-next (#4845)
Co-authored-by: sedghi <ar.sedghi@gmail.com>
2025-03-17 11:47:09 -04:00
Alireza b7fbf04230 fix(metadata): change the default values for cosines (#4863) 2025-03-17 11:44:05 -04:00
ohif-bot ec71721d49 chore(version): Update package versions [skip ci] 2025-03-17 15:09:28 +00:00
ohif-bot a265257569 chore(version): version.json [skip ci] 2025-03-17 15:09:22 +00:00
Dan Rukas 951c21fda8 ui(migrate) Migrate local view to new ui-next components (#4850) 2025-03-17 11:05:11 -04:00
Dan Rukas f916b2f40e ui(components): Adds InputFilter component to ui-next (#4848) 2025-03-17 11:04:42 -04:00
Pedro H. Köhler 841320adfb fix: max call stack exceeded for dicom tag browser (#4855) 2025-03-17 11:03:08 -04:00
ohif-bot 10976c2a48 chore(version): Update package versions [skip ci] 2025-03-17 15:01:31 +00:00
ohif-bot e2ab118217 chore(version): version.json [skip ci] 2025-03-17 15:01:24 +00:00
Alireza 8cd48c7f70 chore: run dependabot (#4862) 2025-03-17 10:56:39 -04:00
ohif-bot fd2f88920b chore(version): Update package versions [skip ci] 2025-03-17 14:25:30 +00:00
ohif-bot fdd33aea0f chore(version): version.json [skip ci] 2025-03-17 14:25:23 +00:00
Alireza ebe6fbaf31 feat: update vtk js (#4858) 2025-03-17 10:21:06 -04:00
104 changed files with 2423 additions and 639 deletions

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
version: 2
enable-beta-ecosystems: true
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
+41
View File
@@ -3,6 +3,47 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
### Bug Fixes
* **metadata:** change the default values for cosines ([#4863](https://github.com/OHIF/Viewers/issues/4863)) ([b7fbf04](https://github.com/OHIF/Viewers/commit/b7fbf04230ec71e1812d12020e0b48d35a51b285))
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
### Bug Fixes
* max call stack exceeded for dicom tag browser ([#4855](https://github.com/OHIF/Viewers/issues/4855)) ([841320a](https://github.com/OHIF/Viewers/commit/841320adfb4cd009350e70c43a7661dc42800c7d))
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package ohif-monorepo-root
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
### Features
* update vtk js ([#4858](https://github.com/OHIF/Viewers/issues/4858)) ([ebe6fba](https://github.com/OHIF/Viewers/commit/ebe6fbaf31a497b4941178cbb734176d2fb989c2))
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
+35
View File
@@ -3,6 +3,41 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @externals/devDependencies
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @externals/devDependencies
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @externals/devDependencies
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
### Features
* update vtk js ([#4858](https://github.com/OHIF/Viewers/issues/4858)) ([ebe6fba](https://github.com/OHIF/Viewers/commit/ebe6fbaf31a497b4941178cbb734176d2fb989c2))
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @externals/devDependencies
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@externals/devDependencies",
"description": "External dev dependencies - put dev build dependencies here",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"license": "MIT",
"private": true,
"engines": {
@@ -10,7 +10,7 @@
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"@kitware/vtk.js": "32.1.1",
"@kitware/vtk.js": "32.12.0",
"clsx": "^2.1.1",
"core-js": "^3.2.1",
"moment": "^2.9.4"
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@externals/dicom-microscopy-viewer",
"description": "External reference to dicom-microscopy-viewer",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"license": "MIT",
"dependencies": {
"dicom-microscopy-viewer": "^0.46.1"
+246 -191
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1 +1 @@
3f70617c629a0ef569dd2602e1f4a16fe1f77ba5
abab3dc7ad939e560b6a9e742c6d76385d5b8fe0
@@ -3,6 +3,41 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
### Features
* update vtk js ([#4858](https://github.com/OHIF/Viewers/issues/4858)) ([ebe6fba](https://github.com/OHIF/Viewers/commit/ebe6fbaf31a497b4941178cbb734176d2fb989c2))
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-pmap",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "DICOM Parametric Map read workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/i18n": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/i18n": "3.10.0-beta.125",
"prop-types": "^15.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
@@ -46,9 +46,9 @@
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"@cornerstonejs/adapters": "^3.0.4",
"@cornerstonejs/core": "^3.0.4",
"@kitware/vtk.js": "32.1.1",
"@cornerstonejs/adapters": "^3.5.0",
"@cornerstonejs/core": "^3.5.0",
"@kitware/vtk.js": "32.12.0",
"react-color": "^2.19.3"
}
}
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-rt",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "DICOM RT read workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/i18n": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/i18n": "3.10.0-beta.125",
"prop-types": "^15.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
@@ -3,6 +3,41 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
### Features
* update vtk js ([#4858](https://github.com/OHIF/Viewers/issues/4858)) ([ebe6fba](https://github.com/OHIF/Viewers/commit/ebe6fbaf31a497b4941178cbb734176d2fb989c2))
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-seg",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "DICOM SEG read workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/i18n": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/i18n": "3.10.0-beta.125",
"prop-types": "^15.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
@@ -46,9 +46,9 @@
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"@cornerstonejs/adapters": "^3.0.4",
"@cornerstonejs/core": "^3.0.4",
"@kitware/vtk.js": "32.1.1",
"@cornerstonejs/adapters": "^3.5.0",
"@cornerstonejs/core": "^3.5.0",
"@kitware/vtk.js": "32.12.0",
"react-color": "^2.19.3"
}
}
@@ -3,6 +3,41 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
### Features
* update vtk js ([#4858](https://github.com/OHIF/Viewers/issues/4858)) ([ebe6fba](https://github.com/OHIF/Viewers/commit/ebe6fbaf31a497b4941178cbb734176d2fb989c2))
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-sr",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "OHIF extension for an SR Cornerstone Viewport",
"author": "OHIF",
"license": "MIT",
@@ -34,10 +34,10 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-measurement-tracking": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-measurement-tracking": "3.10.0-beta.125",
"@ohif/ui": "3.10.0-beta.125",
"dcmjs": "*",
"dicom-parser": "^1.8.9",
"hammerjs": "^2.0.8",
@@ -46,9 +46,9 @@
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"@cornerstonejs/adapters": "^3.0.4",
"@cornerstonejs/core": "^3.0.4",
"@cornerstonejs/tools": "^3.0.4",
"@cornerstonejs/adapters": "^3.5.0",
"@cornerstonejs/core": "^3.5.0",
"@cornerstonejs/tools": "^3.5.0",
"classnames": "^2.3.2"
}
}
@@ -3,6 +3,41 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
### Features
* update vtk js ([#4858](https://github.com/OHIF/Viewers/issues/4858)) ([ebe6fba](https://github.com/OHIF/Viewers/commit/ebe6fbaf31a497b4941178cbb734176d2fb989c2))
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dynamic-volume",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "OHIF extension for 4D volumes data",
"author": "OHIF",
"license": "MIT",
@@ -29,11 +29,11 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/i18n": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/i18n": "3.10.0-beta.125",
"@ohif/ui": "3.10.0-beta.125",
"dcmjs": "*",
"dicom-parser": "^1.8.21",
"hammerjs": "^2.0.8",
@@ -42,8 +42,8 @@
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"@cornerstonejs/core": "^3.0.4",
"@cornerstonejs/tools": "^3.0.4",
"@cornerstonejs/core": "^3.5.0",
"@cornerstonejs/tools": "^3.5.0",
"classnames": "^2.3.2"
}
}
+35
View File
@@ -3,6 +3,41 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-cornerstone
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
### Features
* update vtk js ([#4858](https://github.com/OHIF/Viewers/issues/4858)) ([ebe6fba](https://github.com/OHIF/Viewers/commit/ebe6fbaf31a497b4941178cbb734176d2fb989c2))
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-cornerstone
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "OHIF extension for Cornerstone",
"author": "OHIF",
"license": "MIT",
@@ -38,9 +38,9 @@
"@cornerstonejs/codec-libjpeg-turbo-8bit": "^1.2.2",
"@cornerstonejs/codec-openjpeg": "^1.2.4",
"@cornerstonejs/codec-openjph": "^2.4.5",
"@cornerstonejs/dicom-image-loader": "^3.0.4",
"@ohif/core": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.121",
"@cornerstonejs/dicom-image-loader": "^3.5.0",
"@ohif/core": "3.10.0-beta.125",
"@ohif/ui": "3.10.0-beta.125",
"dcmjs": "*",
"dicom-parser": "^1.8.21",
"hammerjs": "^2.0.8",
@@ -51,12 +51,12 @@
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"@cornerstonejs/adapters": "^3.0.4",
"@cornerstonejs/core": "^3.0.4",
"@cornerstonejs/polymorphic-segmentation": "^3.0.1",
"@cornerstonejs/tools": "^3.0.4",
"@cornerstonejs/adapters": "^3.5.0",
"@cornerstonejs/core": "^3.5.0",
"@cornerstonejs/polymorphic-segmentation": "^3.5.0",
"@cornerstonejs/tools": "^3.5.0",
"@itk-wasm/morphological-contour-interpolation": "1.1.0",
"@kitware/vtk.js": "32.1.1",
"@kitware/vtk.js": "32.12.0",
"html2canvas": "^1.4.1",
"lodash.compact": "^3.0.1",
"lodash.debounce": "^4.0.8",
+35
View File
@@ -3,6 +3,41 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-default
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
### Bug Fixes
* max call stack exceeded for dicom tag browser ([#4855](https://github.com/OHIF/Viewers/issues/4855)) ([841320a](https://github.com/OHIF/Viewers/commit/841320adfb4cd009350e70c43a7661dc42800c7d))
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-default
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-default
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-default
Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-default",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "Common/default features and functionality for basic image viewing",
"author": "OHIF Core Team",
"license": "MIT",
@@ -32,8 +32,8 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/i18n": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/i18n": "3.10.0-beta.125",
"dcmjs": "*",
"dicomweb-client": "^0.10.4",
"prop-types": "^15.6.2",
@@ -2,7 +2,7 @@ import dcmjs from 'dcmjs';
import moment from 'moment';
import React, { useState, useMemo, useCallback } from 'react';
import { classes, Types } from '@ohif/core';
import { InputFilterText } from '@ohif/ui';
import { InputFilter } from '@ohif/ui-next';
import { Select, SelectTrigger, SelectContent, SelectItem, Slider } from '@ohif/ui-next';
import DicomTagTable from './DicomTagTable';
@@ -18,7 +18,7 @@ export type Row = {
depth: number;
parents?: string[];
children?: string[];
areChildrenVisible?: true;
areChildrenVisible?: boolean;
};
let rowCounter = 0;
@@ -91,7 +91,7 @@ const DicomTagBrowser = ({
setShouldShowInstanceList(isImageStack && activeDisplaySet.images.length > 1);
const tags = getSortedTags(metadata);
const rows = getFormattedRowsFromTags({ tags, metadata, depth: 0 });
const rows = getFormattedRowsFromTags({ tags, metadata });
return rows;
}, [getMetadata, activeDisplaySet]);
@@ -173,11 +173,17 @@ const DicomTagBrowser = ({
<span className="text-muted-foreground flex h-6 items-center text-xs">
Search metadata
</span>
<InputFilterText
placeholder="Search metadata..."
onDebounceChange={setFilterValue}
className="text-foreground"
/>
<InputFilter
className="text-muted-foreground"
onChange={setFilterValue}
>
<InputFilter.SearchIcon />
<InputFilter.Input
placeholder="Search metadata"
className="pl-9 pr-9"
/>
<InputFilter.ClearButton />
</InputFilter>
</div>
</div>
</div>
@@ -186,57 +192,78 @@ const DicomTagBrowser = ({
);
};
function getFormattedRowsFromTags({ tags, metadata, depth, parents }) {
function getFormattedRowsFromTags({ tags, metadata }) {
const rows: Row[] = [];
const stack = [{ tags, depth: 0, parents: null, index: 0, children: [] }];
const parentChildMap = new Map();
tags.forEach(tagInfo => {
const uid = generateRowId();
if (tagInfo.vr === 'SQ') {
const children = tagInfo.values.flatMap(value =>
getFormattedRowsFromTags({
tags: value,
metadata,
depth: depth + 1,
parents: parents ? [...parents, uid] : [uid],
})
);
const row: Row = {
uid,
tag: tagInfo.tag,
valueRepresentation: tagInfo.vr,
keyword: tagInfo.keyword,
value: '',
depth,
isVisible: true,
areChildrenVisible: true,
children: children.map(child => child.uid),
parents,
};
rows.push(row, ...children);
} else {
if (tagInfo.vr === 'xs') {
try {
const tag = dcmjs.data.Tag.fromPString(tagInfo.tag).toCleanString();
const originalTagInfo = metadata[tag];
tagInfo.vr = originalTagInfo.vr;
} catch (error) {
console.warn(`Failed to parse value representation for tag '${tagInfo.keyword}'`);
}
while (stack.length > 0) {
const current = stack.pop();
const { tags, depth, parents, index, children } = current;
for (let i = index; i < tags.length; i++) {
const tagInfo = tags[i];
const uid = generateRowId();
if (parents?.length > 0) {
parents.forEach(parent => {
parentChildMap.get(parent).push(uid);
});
}
const row: Row = {
uid,
tag: tagInfo.tag,
valueRepresentation: tagInfo.vr,
keyword: tagInfo.keyword,
value: tagInfo.value,
depth,
isVisible: true,
parents,
};
rows.push(row);
}
});
if (tagInfo.vr === 'SQ') {
const row = {
uid,
tag: tagInfo.tag,
valueRepresentation: tagInfo.vr,
keyword: tagInfo.keyword,
value: '',
depth,
isVisible: true,
areChildrenVisible: true,
children: [],
parents,
};
rows.push(row);
parentChildMap.set(uid, row.children);
const newParents = parents ? [...parents, uid] : [uid];
if (tagInfo.values.length > 0) {
stack.push({ tags, depth, parents, index: i + 1, children });
stack.push({
tags: tagInfo.values.flat(),
depth: depth + 1,
parents: newParents,
index: 0,
children: [],
});
break;
}
} else {
if (tagInfo.vr === 'xs') {
try {
const tag = dcmjs.data.Tag.fromPString(tagInfo.tag).toCleanString();
const originalTagInfo = metadata[tag];
tagInfo.vr = originalTagInfo.vr;
} catch (error) {
console.warn(`Failed to parse value representation for tag '${tagInfo.keyword}'`);
}
}
const row = {
uid,
tag: tagInfo.tag,
valueRepresentation: tagInfo.vr,
keyword: tagInfo.keyword,
value: tagInfo.value,
depth,
isVisible: true,
parents,
};
rows.push(row);
}
}
}
return rows;
}
@@ -1,169 +1,201 @@
import React, { useEffect, useState, useCallback, useRef } from 'react';
// Updated ToolbarLayoutSelector.tsx
import React, { useCallback } from 'react';
import PropTypes from 'prop-types';
import { LayoutSelector as OHIFLayoutSelector, ToolbarButton, LayoutPreset } from '@ohif/ui';
import { CommandsManager } from '@ohif/core';
import { LayoutSelector } from '../../../../platform/ui-next/src/components/LayoutSelector';
function ToolbarLayoutSelectorWithServices({
commandsManager,
servicesManager,
rows = 3,
columns = 4,
...props
}: withAppTypes) {
const [isDisabled, setIsDisabled] = useState(false);
}) {
const { customizationService } = servicesManager.services;
const handleMouseEnter = () => {
setIsDisabled(false);
};
// Get the presets from the customization service
const commonPresets = customizationService?.getCustomization('layoutSelector.commonPresets') || [
{
icon: 'layout-single',
commandOptions: {
numRows: 1,
numCols: 1,
},
},
{
icon: 'layout-side-by-side',
commandOptions: {
numRows: 1,
numCols: 2,
},
},
{
icon: 'layout-four-up',
commandOptions: {
numRows: 2,
numCols: 2,
},
},
{
icon: 'layout-three-row',
commandOptions: {
numRows: 3,
numCols: 1,
},
},
];
const onSelection = useCallback(props => {
commandsManager.run({
commandName: 'setViewportGridLayout',
commandOptions: { ...props },
});
setIsDisabled(true);
}, []);
// Get the advanced presets generator from the customization service
const advancedPresetsGenerator = customizationService?.getCustomization(
'layoutSelector.advancedPresetGenerator'
);
const onSelectionPreset = useCallback(props => {
commandsManager.run({
commandName: 'setHangingProtocol',
commandOptions: { ...props },
});
setIsDisabled(true);
}, []);
// Generate the advanced presets
const advancedPresets = advancedPresetsGenerator
? advancedPresetsGenerator({ servicesManager })
: [
{
title: 'MPR',
icon: 'layout-three-col',
commandOptions: {
protocolId: 'mpr',
},
},
{
title: '3D four up',
icon: 'layout-four-up',
commandOptions: {
protocolId: '3d-four-up',
},
},
{
title: '3D main',
icon: 'layout-three-row',
commandOptions: {
protocolId: '3d-main',
},
},
{
title: 'Axial Primary',
icon: 'layout-side-by-side',
commandOptions: {
protocolId: 'axial-primary',
},
},
{
title: '3D only',
icon: 'layout-single',
commandOptions: {
protocolId: '3d-only',
},
},
{
title: '3D primary',
icon: 'layout-side-by-side',
commandOptions: {
protocolId: '3d-primary',
},
},
{
title: 'Frame View',
icon: 'icon-stack',
commandOptions: {
protocolId: 'frame-view',
},
},
];
// Unified selection handler that dispatches to the appropriate command
const handleSelectionChange = useCallback(
(commandOptions, isPreset) => {
if (isPreset) {
// Advanced preset selection
commandsManager.run({
commandName: 'setHangingProtocol',
commandOptions,
});
} else {
// Common preset or custom grid selection
commandsManager.run({
commandName: 'setViewportGridLayout',
commandOptions,
});
}
},
[commandsManager]
);
return (
<div onMouseEnter={handleMouseEnter}>
<div
id="Layout"
data-cy="Layout"
>
<LayoutSelector
onSelectionChange={handleSelectionChange}
{...props}
onSelection={onSelection}
onSelectionPreset={onSelectionPreset}
servicesManager={servicesManager}
tooltipDisabled={isDisabled}
/>
>
<LayoutSelector.Trigger tooltip="Change layout" />
<LayoutSelector.Content>
{/* Left side - Presets */}
{(commonPresets.length > 0 || advancedPresets.length > 0) && (
<div className="bg-popover flex flex-col gap-2.5 rounded-lg p-2">
{commonPresets.length > 0 && (
<>
<LayoutSelector.PresetSection title="Common">
{commonPresets.map((preset, index) => (
<LayoutSelector.Preset
key={`common-preset-${index}`}
icon={preset.icon}
commandOptions={preset.commandOptions}
isPreset={false}
/>
))}
</LayoutSelector.PresetSection>
<LayoutSelector.Divider />
</>
)}
{advancedPresets.length > 0 && (
<LayoutSelector.PresetSection title="Advanced">
{advancedPresets.map((preset, index) => (
<LayoutSelector.Preset
key={`advanced-preset-${index}`}
title={preset.title}
icon={preset.icon}
commandOptions={preset.commandOptions}
disabled={preset.disabled}
isPreset={true}
/>
))}
</LayoutSelector.PresetSection>
)}
</div>
)}
{/* Right Side - Grid Layout */}
<div className="bg-muted flex flex-col gap-2.5 border-l-2 border-solid border-black p-2">
<div className="text-muted-foreground text-xs">Custom</div>
<LayoutSelector.GridSelector
rows={rows}
columns={columns}
/>
<LayoutSelector.HelpText>
Hover to select <br />
rows and columns <br /> Click to apply
</LayoutSelector.HelpText>
</div>
</LayoutSelector.Content>
</LayoutSelector>
</div>
);
}
function LayoutSelector({
rows = 3,
columns = 4,
onLayoutChange = () => {},
className,
onSelection,
onSelectionPreset,
servicesManager,
tooltipDisabled,
...rest
}: withAppTypes) {
const [isOpen, setIsOpen] = useState(false);
const dropdownRef = useRef(null);
const { customizationService } = servicesManager.services;
const commonPresets = customizationService.getCustomization('layoutSelector.commonPresets');
const advancedPresetsGenerator = customizationService.getCustomization(
'layoutSelector.advancedPresetGenerator'
);
const advancedPresets = advancedPresetsGenerator({ servicesManager });
const closeOnOutsideClick = event => {
if (isOpen && dropdownRef.current) {
setIsOpen(false);
}
};
useEffect(() => {
if (!isOpen) {
return;
}
setTimeout(() => {
window.addEventListener('click', closeOnOutsideClick);
}, 0);
return () => {
window.removeEventListener('click', closeOnOutsideClick);
dropdownRef.current = null;
};
}, [isOpen]);
const onInteractionHandler = () => {
setIsOpen(!isOpen);
};
const DropdownContent = isOpen ? OHIFLayoutSelector : null;
return (
<ToolbarButton
id="Layout"
label="Layout"
icon="tool-layout"
onInteraction={onInteractionHandler}
className={className}
rounded={rest.rounded}
disableToolTip={tooltipDisabled}
dropdownContent={
DropdownContent !== null && (
<div
className="flex"
ref={dropdownRef}
>
<div className="bg-secondary-dark flex flex-col gap-2.5 p-2">
<div className="text-aqua-pale text-xs">Common</div>
<div className="flex gap-4">
{commonPresets.map((preset, index) => (
<LayoutPreset
key={index}
classNames="hover:bg-primary-dark group p-1 cursor-pointer"
icon={preset.icon}
commandOptions={preset.commandOptions}
onSelection={onSelection}
/>
))}
</div>
<div className="h-[2px] bg-black"></div>
<div className="text-aqua-pale text-xs">Advanced</div>
<div className="flex flex-col gap-2.5">
{advancedPresets.map((preset, index) => (
<LayoutPreset
key={index + commonPresets.length}
classNames="hover:bg-primary-dark group flex gap-2 p-1 cursor-pointer"
icon={preset.icon}
title={preset.title}
disabled={preset.disabled}
commandOptions={preset.commandOptions}
onSelection={onSelectionPreset}
/>
))}
</div>
</div>
<div className="bg-primary-dark flex flex-col gap-2.5 border-l-2 border-solid border-black p-2">
<div className="text-aqua-pale text-xs">Custom</div>
<DropdownContent
rows={rows}
columns={columns}
onSelection={onSelection}
/>
<p className="text-aqua-pale text-xs leading-tight">
Hover to select <br></br>rows and columns <br></br> Click to apply
</p>
</div>
</div>
)
}
isActive={isOpen}
type="toggle"
/>
);
}
LayoutSelector.propTypes = {
ToolbarLayoutSelectorWithServices.propTypes = {
commandsManager: PropTypes.instanceOf(CommandsManager),
servicesManager: PropTypes.object,
rows: PropTypes.number,
columns: PropTypes.number,
onLayoutChange: PropTypes.func,
servicesManager: PropTypes.object.isRequired,
};
export default ToolbarLayoutSelectorWithServices;
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-dicom-microscopy",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "OHIF extension for DICOM microscopy",
"author": "Bill Wallace, md-prog",
"license": "MIT",
@@ -30,10 +30,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/i18n": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/i18n": "3.10.0-beta.125",
"@ohif/ui": "3.10.0-beta.125",
"prop-types": "^15.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-dicom-pdf",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "OHIF extension for PDF display",
"author": "OHIF",
"license": "MIT",
@@ -30,8 +30,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/ui": "3.10.0-beta.125",
"dcmjs": "*",
"dicom-parser": "^1.8.9",
"hammerjs": "^2.0.8",
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-dicom-video
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-dicom-video",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "OHIF extension for video display",
"author": "OHIF",
"license": "MIT",
@@ -30,8 +30,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/ui": "3.10.0-beta.125",
"dcmjs": "*",
"dicom-parser": "^1.8.9",
"hammerjs": "^2.0.8",
@@ -3,6 +3,41 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
### Features
* update vtk js ([#4858](https://github.com/OHIF/Viewers/issues/4858)) ([ebe6fba](https://github.com/OHIF/Viewers/commit/ebe6fbaf31a497b4941178cbb734176d2fb989c2))
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-measurement-tracking",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "Tracking features and functionality for basic image viewing",
"author": "OHIF Core Team",
"license": "MIT",
@@ -32,12 +32,12 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@cornerstonejs/core": "^3.0.4",
"@cornerstonejs/tools": "^3.0.4",
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.121",
"@cornerstonejs/core": "^3.5.0",
"@cornerstonejs/tools": "^3.5.0",
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/ui": "3.10.0-beta.125",
"classnames": "^2.3.2",
"dcmjs": "*",
"lodash.debounce": "^4.0.8",
@@ -49,7 +49,7 @@
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"@ohif/ui": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.125",
"@xstate/react": "^3.2.2",
"xstate": "^4.10.0"
}
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-test
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-test
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-test
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-test
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-test
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-test",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "OHIF extension used inside e2e testing",
"author": "OHIF",
"license": "MIT",
@@ -30,8 +30,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/ui": "3.10.0-beta.125",
"dcmjs": "0.38.0",
"dicom-parser": "^1.8.9",
"hammerjs": "^2.0.8",
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/extension-tmtv
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-tmtv",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "OHIF extension for Total Metabolic Tumor Volume",
"author": "OHIF",
"license": "MIT",
@@ -30,8 +30,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/ui": "3.10.0-beta.125",
"dcmjs": "*",
"dicom-parser": "^1.8.9",
"hammerjs": "^2.0.8",
+1 -1
View File
@@ -1,5 +1,5 @@
{
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"packages": ["extensions/*", "platform/*", "modes/*", "addOns/externals/*"],
"npmClient": "yarn"
}
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-basic-dev-mode",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "Basic OHIF Viewer Using Cornerstone",
"author": "OHIF",
"license": "MIT",
@@ -31,12 +31,12 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/extension-dicom-pdf": "3.10.0-beta.121",
"@ohif/extension-dicom-video": "3.10.0-beta.121"
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/extension-dicom-pdf": "3.10.0-beta.125",
"@ohif/extension-dicom-video": "3.10.0-beta.125"
},
"dependencies": {
"@babel/runtime": "^7.20.13",
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-test
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-test
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-test
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-test
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/mode-test
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-test",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "Basic mode for testing",
"author": "OHIF",
"license": "MIT",
@@ -34,14 +34,14 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/extension-dicom-pdf": "3.10.0-beta.121",
"@ohif/extension-dicom-video": "3.10.0-beta.121",
"@ohif/extension-measurement-tracking": "3.10.0-beta.121",
"@ohif/extension-test": "3.10.0-beta.121"
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/extension-dicom-pdf": "3.10.0-beta.125",
"@ohif/extension-dicom-video": "3.10.0-beta.125",
"@ohif/extension-measurement-tracking": "3.10.0-beta.125",
"@ohif/extension-test": "3.10.0-beta.125"
},
"dependencies": {
"@babel/runtime": "^7.20.13",
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/mode-longitudinal
+10 -10
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-longitudinal",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "Longitudinal Workflow",
"author": "OHIF",
"license": "MIT",
@@ -34,15 +34,15 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-rt": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-seg": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/extension-dicom-pdf": "3.10.0-beta.121",
"@ohif/extension-dicom-video": "3.10.0-beta.121",
"@ohif/extension-measurement-tracking": "3.10.0-beta.121"
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-rt": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-seg": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/extension-dicom-pdf": "3.10.0-beta.125",
"@ohif/extension-dicom-video": "3.10.0-beta.125",
"@ohif/extension-measurement-tracking": "3.10.0-beta.125"
},
"dependencies": {
"@babel/runtime": "^7.20.13",
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/mode-microscopy
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-microscopy",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "OHIF mode for DICOM microscopy",
"author": "OHIF",
"license": "MIT",
@@ -35,8 +35,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-dicom-microscopy": "3.10.0-beta.121"
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-dicom-microscopy": "3.10.0-beta.125"
},
"dependencies": {
"@babel/runtime": "^7.20.13",
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-preclinical-4d",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "4D Workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,12 +33,12 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-seg": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dynamic-volume": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/extension-tmtv": "3.10.0-beta.121"
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-seg": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dynamic-volume": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/extension-tmtv": "3.10.0-beta.125"
},
"dependencies": {
"@babel/runtime": "^7.20.13"
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/mode-segmentation
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-segmentation",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "OHIF segmentation mode which enables labelmap segmentation read/edit/export",
"author": "@ohif",
"license": "MIT",
@@ -35,14 +35,14 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-rt": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-seg": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/extension-dicom-pdf": "3.10.0-beta.121",
"@ohif/extension-dicom-video": "3.10.0-beta.121"
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-rt": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-seg": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/extension-dicom-pdf": "3.10.0-beta.125",
"@ohif/extension-dicom-video": "3.10.0-beta.125"
},
"dependencies": {
"@babel/runtime": "^7.20.13",
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/mode-tmtv
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-tmtv",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "Total Metabolic Tumor Volume Workflow",
"author": "OHIF",
"license": "MIT",
@@ -34,13 +34,13 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/extension-dicom-pdf": "3.10.0-beta.121",
"@ohif/extension-dicom-video": "3.10.0-beta.121",
"@ohif/extension-measurement-tracking": "3.10.0-beta.121"
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/extension-dicom-pdf": "3.10.0-beta.125",
"@ohif/extension-dicom-video": "3.10.0-beta.125",
"@ohif/extension-measurement-tracking": "3.10.0-beta.125"
},
"dependencies": {
"@babel/runtime": "^7.20.13",
+1
View File
@@ -94,6 +94,7 @@
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.13.0",
"prettier": "^3.3.3",
"patch-package": "^8.0.0",
"prettier-plugin-tailwindcss": "0.6.9"
},
"husky": {
+35
View File
@@ -3,6 +3,41 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/app
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/app
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/app
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
### Features
* update vtk js ([#4858](https://github.com/OHIF/Viewers/issues/4858)) ([ebe6fba](https://github.com/OHIF/Viewers/commit/ebe6fbaf31a497b4941178cbb734176d2fb989c2))
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
+19 -19
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/app",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"productVersion": "3.4.0",
"description": "OHIF Viewer",
"author": "OHIF Contributors",
@@ -54,25 +54,25 @@
"@cornerstonejs/codec-libjpeg-turbo-8bit": "^1.2.2",
"@cornerstonejs/codec-openjpeg": "^1.2.4",
"@cornerstonejs/codec-openjph": "^2.4.5",
"@cornerstonejs/dicom-image-loader": "^3.0.4",
"@cornerstonejs/dicom-image-loader": "^3.5.0",
"@emotion/serialize": "^1.1.3",
"@ohif/core": "3.10.0-beta.121",
"@ohif/extension-cornerstone": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-rt": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-seg": "3.10.0-beta.121",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.121",
"@ohif/extension-default": "3.10.0-beta.121",
"@ohif/extension-dicom-microscopy": "3.10.0-beta.121",
"@ohif/extension-dicom-pdf": "3.10.0-beta.121",
"@ohif/extension-dicom-video": "3.10.0-beta.121",
"@ohif/extension-test": "3.10.0-beta.121",
"@ohif/i18n": "3.10.0-beta.121",
"@ohif/mode-basic-dev-mode": "3.10.0-beta.121",
"@ohif/mode-longitudinal": "3.10.0-beta.121",
"@ohif/mode-microscopy": "3.10.0-beta.121",
"@ohif/mode-test": "3.10.0-beta.121",
"@ohif/ui": "3.10.0-beta.121",
"@ohif/ui-next": "3.10.0-beta.121",
"@ohif/core": "3.10.0-beta.125",
"@ohif/extension-cornerstone": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-rt": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-seg": "3.10.0-beta.125",
"@ohif/extension-cornerstone-dicom-sr": "3.10.0-beta.125",
"@ohif/extension-default": "3.10.0-beta.125",
"@ohif/extension-dicom-microscopy": "3.10.0-beta.125",
"@ohif/extension-dicom-pdf": "3.10.0-beta.125",
"@ohif/extension-dicom-video": "3.10.0-beta.125",
"@ohif/extension-test": "3.10.0-beta.125",
"@ohif/i18n": "3.10.0-beta.125",
"@ohif/mode-basic-dev-mode": "3.10.0-beta.125",
"@ohif/mode-longitudinal": "3.10.0-beta.125",
"@ohif/mode-microscopy": "3.10.0-beta.125",
"@ohif/mode-test": "3.10.0-beta.125",
"@ohif/ui": "3.10.0-beta.125",
"@ohif/ui-next": "3.10.0-beta.125",
"@svgr/webpack": "^8.1.0",
"@types/react": "^18.3.3",
"classnames": "^2.3.2",
+19 -18
View File
@@ -8,8 +8,7 @@ import filesToStudies from './filesToStudies';
import { extensionManager } from '../../App';
import { Button } from '@ohif/ui';
import { Icons } from '@ohif/ui-next';
import { Button, Icons } from '@ohif/ui-next';
const getLoadButton = (onDrop, text, isDir) => {
return (
@@ -20,11 +19,9 @@ const getLoadButton = (onDrop, text, isDir) => {
{({ getRootProps, getInputProps }) => (
<div {...getRootProps()}>
<Button
rounded="full"
variant="contained" // outlined
variant="default"
className="w-28"
disabled={false}
endIcon={<Icons.LaunchArrow />}
className={classnames('font-medium', 'ml-2')}
onClick={() => {}}
>
{text}
@@ -33,9 +30,13 @@ const getLoadButton = (onDrop, text, isDir) => {
{...getInputProps()}
webkitdirectory="true"
mozdirectory="true"
style={{ display: 'none' }}
/>
) : (
<input {...getInputProps()} />
<input
{...getInputProps()}
style={{ display: 'none' }}
/>
)}
</Button>
</div>
@@ -131,29 +132,29 @@ function Local({ modePath }: LocalProps) {
style={{ width: '100%', height: '100%' }}
>
<div className="flex h-screen w-screen items-center justify-center">
<div className="bg-secondary-dark mx-auto space-y-2 rounded-lg py-8 px-8 drop-shadow-md">
<div className="bg-muted border-primary/60 mx-auto space-y-2 rounded-xl border border-dashed py-12 px-12 drop-shadow-md">
<div className="flex items-center justify-center">
<Icons.OHIFLogoColorDarkBackground className="h-28" />
<Icons.OHIFLogoColorDarkBackground className="h-18" />
</div>
<div className="space-y-2 pt-4 text-center">
<div className="space-y-2 py-6 text-center">
{dropInitiated ? (
<div className="flex flex-col items-center justify-center pt-48">
<div className="flex flex-col items-center justify-center pt-12">
<LoadingIndicatorProgress className={'h-full w-full bg-black'} />
</div>
) : (
<div className="space-y-2">
<p className="text-base text-blue-300">
Note: You data is not uploaded to any server, it will stay in your local
browser application
<p className="text-primary pt-0 text-xl">
Drag and drop your DICOM files & folders here <br />
to load them locally.
</p>
<p className="text-xg text-primary-active pt-6 font-semibold">
Drag and Drop DICOM files here to load them in the Viewer
<p className="text-muted-foreground text-base">
Note: Your data remains locally within your browser
<br /> and is never uploaded to any server.
</p>
<p className="text-lg text-blue-300">Or click to </p>
</div>
)}
</div>
<div className="flex justify-around pt-4">
<div className="flex justify-center gap-2 pt-4">
{getLoadButton(onDrop, 'Load files', false)}
{getLoadButton(onDrop, 'Load folders', true)}
</div>
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/cli
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/cli
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/cli
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/cli
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/cli
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/cli",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "A CLI to bootstrap new OHIF extension or mode",
"type": "module",
"main": "src/index.js",
+38
View File
@@ -3,6 +3,44 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
### Bug Fixes
* **metadata:** change the default values for cosines ([#4863](https://github.com/OHIF/Viewers/issues/4863)) ([b7fbf04](https://github.com/OHIF/Viewers/commit/b7fbf04230ec71e1812d12020e0b48d35a51b285))
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/core
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/core
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
### Features
* update vtk js ([#4858](https://github.com/OHIF/Viewers/issues/4858)) ([ebe6fba](https://github.com/OHIF/Viewers/commit/ebe6fbaf31a497b4941178cbb734176d2fb989c2))
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/core
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/core",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "Generic business logic for web-based medical imaging applications",
"author": "OHIF Core Team",
"license": "MIT",
@@ -37,8 +37,8 @@
"@cornerstonejs/codec-libjpeg-turbo-8bit": "^1.2.2",
"@cornerstonejs/codec-openjpeg": "^1.2.4",
"@cornerstonejs/codec-openjph": "^2.4.5",
"@cornerstonejs/dicom-image-loader": "^3.0.4",
"@ohif/ui": "3.10.0-beta.121",
"@cornerstonejs/dicom-image-loader": "^3.5.0",
"@ohif/ui": "3.10.0-beta.125",
"cornerstone-math": "0.1.9",
"dicom-parser": "^1.8.21"
},
+31 -11
View File
@@ -512,7 +512,7 @@ export default metadataProvider;
const WADO_IMAGE_LOADER = {
imagePlaneModule: instance => {
const { ImageOrientationPatient } = instance;
const { ImageOrientationPatient, ImagePositionPatient } = instance;
// Fallback for DX images.
// TODO: We should use the rest of the results of this function
@@ -525,14 +525,33 @@ const WADO_IMAGE_LOADER = {
let rowCosines;
let columnCosines;
let usingDefaultValues = false;
let isDefaultValueSetForRowCosine = false;
let isDefaultValueSetForColumnCosine = false;
let imageOrientationPatient;
if (PixelSpacing) {
rowPixelSpacing = PixelSpacing[0];
columnPixelSpacing = PixelSpacing[1];
[rowPixelSpacing, columnPixelSpacing] = PixelSpacing;
} else {
rowPixelSpacing = columnPixelSpacing = 1;
usingDefaultValues = true;
}
if (ImageOrientationPatient) {
rowCosines = ImageOrientationPatient.slice(0, 3);
columnCosines = ImageOrientationPatient.slice(3, 6);
imageOrientationPatient = ImageOrientationPatient;
} else {
rowCosines = [1, 0, 0];
columnCosines = [0, 1, 0];
imageOrientationPatient = [1, 0, 0, 0, 1, 0];
usingDefaultValues = true;
isDefaultValueSetForRowCosine = true;
isDefaultValueSetForColumnCosine = true;
}
const imagePositionPatient = ImagePositionPatient || [0, 0, 0];
if (!ImagePositionPatient) {
usingDefaultValues = true;
}
return {
@@ -540,17 +559,18 @@ const WADO_IMAGE_LOADER = {
rows: toNumber(instance.Rows),
columns: toNumber(instance.Columns),
spacingBetweenSlices: toNumber(instance.SpacingBetweenSlices),
imageOrientationPatient: toNumber(ImageOrientationPatient) || [0, 1, 0, 0, 0, -1],
rowCosines: toNumber(rowCosines || [0, 1, 0]),
isDefaultValueSetForRowCosine: toNumber(rowCosines) ? false : true,
columnCosines: toNumber(columnCosines || [0, 0, -1]),
isDefaultValueSetForColumnCosine: toNumber(columnCosines) ? false : true,
imagePositionPatient: toNumber(instance.ImagePositionPatient || [0, 0, 0]),
imageOrientationPatient,
rowCosines,
isDefaultValueSetForRowCosine,
columnCosines,
isDefaultValueSetForColumnCosine,
imagePositionPatient,
sliceThickness: toNumber(instance.SliceThickness),
sliceLocation: toNumber(instance.SliceLocation),
pixelSpacing: toNumber(PixelSpacing || 1),
rowPixelSpacing: rowPixelSpacing ? toNumber(rowPixelSpacing) : null,
columnPixelSpacing: columnPixelSpacing ? toNumber(columnPixelSpacing) : null,
rowPixelSpacing,
columnPixelSpacing,
usingDefaultValues,
};
},
};
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package ohif-docs
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package ohif-docs
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package ohif-docs
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package ohif-docs
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package ohif-docs
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ohif-docs",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/i18n
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/i18n
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/i18n
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/i18n
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
**Note:** Version bump only for package @ohif/i18n
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/i18n",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "Internationalization library for The OHIF Viewer",
"author": "OHIF",
"license": "MIT",
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/ui-next
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/ui-next
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/ui-next
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/ui-next
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/ui-next",
"version": "3.10.0-beta.121",
"version": "3.10.0-beta.125",
"description": "Next version of OHIF Viewers UI, more customizable using shadcn/ui",
"main": "dist/ohif-ui-next.umd.js",
"module": "src/index.ts",
@@ -0,0 +1,206 @@
import * as React from 'react';
import { createContext, useContext, useState, useEffect, useMemo, useCallback } from 'react';
import debounce from 'lodash.debounce';
import { cn } from '../../lib/utils';
import { Input } from '../Input';
import { Icons } from '../Icons';
// Context to share state between compound components
type InputFilterContextType = {
value: string;
setValue: (value: string) => void;
handleChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
clearValue: () => void;
inputRef: React.RefObject<HTMLInputElement>;
};
const InputFilterContext = createContext<InputFilterContextType | undefined>(undefined);
function useInputFilterContext() {
const context = useContext(InputFilterContext);
if (!context) {
throw new Error('InputFilter compound components must be used within InputFilter');
}
return context;
}
// Root component
interface RootProps {
children: React.ReactNode;
className?: string;
defaultValue?: string;
value?: string;
onChange?: (value: string) => void;
debounceTime?: number;
}
function Root({
children,
className,
defaultValue = '',
value: controlledValue,
onChange,
debounceTime = 200,
}: RootProps) {
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
const inputRef = React.useRef<HTMLInputElement>(null);
// Determine if this is a controlled or uncontrolled component
const isControlled = controlledValue !== undefined;
const value = isControlled ? controlledValue : uncontrolledValue;
const debouncedOnChange = useMemo(() => {
return onChange ? debounce(onChange, debounceTime) : undefined;
}, [onChange, debounceTime]);
useEffect(() => {
return () => debouncedOnChange?.cancel();
}, [debouncedOnChange]);
const setValue = useCallback(
(newValue: string) => {
if (!isControlled) {
setUncontrolledValue(newValue);
}
if (debouncedOnChange) {
debouncedOnChange(newValue);
}
},
[isControlled, debouncedOnChange]
);
const handleChange = useCallback(
(event: React.ChangeEvent<HTMLInputElement>) => {
setValue(event.target.value);
},
[setValue]
);
const clearValue = useCallback(() => {
setValue('');
inputRef.current?.focus();
}, [setValue]);
return (
<InputFilterContext.Provider value={{ value, setValue, handleChange, clearValue, inputRef }}>
<div className={cn('relative', className)}>{children}</div>
</InputFilterContext.Provider>
);
}
// Input component
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
className?: string;
}
function InputComponent({ className, placeholder, ...props }: InputProps) {
const { value, handleChange, inputRef } = useInputFilterContext();
return (
<Input
ref={inputRef}
className={cn('w-full', className)}
placeholder={placeholder}
value={value}
onChange={handleChange}
{...props}
/>
);
}
// Search icon component
interface SearchIconProps {
className?: string;
}
function SearchIcon({ className }: SearchIconProps) {
return (
<span className={cn('absolute inset-y-0 left-0 flex items-center pl-2', className)}>
<Icons.Search className="text-muted-foreground" />
</span>
);
}
// Clear button component
interface ClearButtonProps {
className?: string;
}
function ClearButton({ className }: ClearButtonProps) {
const { value, clearValue } = useInputFilterContext();
if (!value) {
return null;
}
return (
<span className={cn('absolute inset-y-0 right-0 flex items-center pr-2', className)}>
<Icons.Clear
className={cn('cursor-pointer', className)}
onClick={clearValue}
/>
</span>
);
}
// Main InputFilter component
interface InputFilterProps {
children?: React.ReactNode;
className?: string;
placeholder?: string;
value?: string;
defaultValue?: string;
onChange?: (value: string) => void;
debounceTime?: number;
}
function InputFilter({
children,
className,
placeholder = 'Search...',
value,
defaultValue = '',
onChange,
debounceTime = 200,
}: InputFilterProps) {
// If children are provided, act as a container (former Root)
if (children) {
return (
<Root
className={className}
value={value}
defaultValue={defaultValue}
onChange={onChange}
debounceTime={debounceTime}
>
{children}
</Root>
);
}
// Otherwise act as the complete pre-composed component
return (
<Root
className={className}
value={value}
defaultValue={defaultValue}
onChange={onChange}
debounceTime={debounceTime}
>
<SearchIcon />
<InputComponent
placeholder={placeholder}
className="pl-9 pr-9"
/>
<ClearButton />
</Root>
);
}
// Attach subcomponents as static properties
InputFilter.Input = InputComponent;
InputFilter.SearchIcon = SearchIcon;
InputFilter.ClearButton = ClearButton;
export { InputFilter, type InputFilterProps };
@@ -0,0 +1,2 @@
export { InputFilter } from './InputFilter';
export type { InputFilterProps } from './InputFilter';
@@ -0,0 +1,365 @@
import React, { createContext, useContext, useState, useCallback } from 'react';
import { Popover, PopoverTrigger, PopoverContent } from '../Popover/Popover';
import { Tooltip, TooltipTrigger, TooltipContent } from '../Tooltip';
import { Button } from '../Button';
import { cn } from '../../lib/utils';
import { Icons } from '../Icons';
import * as PropTypes from 'prop-types';
// Types
type LayoutCommandOptions = {
numRows?: number;
numCols?: number;
protocolId?: string;
[key: string]: any;
};
type LayoutPresetType = {
title?: string;
icon: string;
commandOptions: LayoutCommandOptions;
disabled?: boolean;
};
// Context
type LayoutSelectorContextType = {
isOpen: boolean;
setIsOpen: (isOpen: boolean) => void;
onSelection: (commandOptions: LayoutCommandOptions) => void;
onSelectionPreset: (commandOptions: LayoutCommandOptions) => void;
};
const LayoutSelectorContext = createContext<LayoutSelectorContextType | undefined>(undefined);
const useLayoutSelector = () => {
const context = useContext(LayoutSelectorContext);
if (context === undefined) {
throw new Error('useLayoutSelector must be used within a LayoutSelector component');
}
return context;
};
// Main component
type LayoutSelectorProps = {
onSelectionChange?: (commandOptions: LayoutCommandOptions, isPreset: boolean) => void;
onSelection?: (commandOptions: LayoutCommandOptions) => void;
onSelectionPreset?: (commandOptions: LayoutCommandOptions) => void;
children: React.ReactNode;
open?: boolean;
onOpenChange?: (open: boolean) => void;
tooltipDisabled?: boolean; // Keep this prop for now as it might be used elsewhere
};
const LayoutSelector = ({
onSelectionChange,
onSelection = commandOptions => {},
onSelectionPreset = commandOptions => {},
children,
open,
onOpenChange,
tooltipDisabled,
}: LayoutSelectorProps) => {
const [isOpenInternal, setIsOpenInternal] = useState(false);
const isControlled = open !== undefined;
const isOpen = isControlled ? open : isOpenInternal;
const setIsOpen = isControlled ? onOpenChange! : setIsOpenInternal;
const handleSelection = useCallback(
(commandOptions: LayoutCommandOptions) => {
onSelection(commandOptions);
if (onSelectionChange) {
onSelectionChange(commandOptions, false);
}
setIsOpen(false);
},
[onSelection, onSelectionChange, setIsOpen]
);
const handlePresetSelection = useCallback(
(commandOptions: LayoutCommandOptions) => {
onSelectionPreset(commandOptions);
if (onSelectionChange) {
onSelectionChange(commandOptions, true);
}
setIsOpen(false);
},
[onSelectionPreset, onSelectionChange, setIsOpen]
);
return (
<LayoutSelectorContext.Provider
value={{
isOpen,
setIsOpen,
onSelection: handleSelection,
onSelectionPreset: handlePresetSelection,
}}
>
<Popover
open={isOpen}
onOpenChange={setIsOpen}
>
{children}
</Popover>
</LayoutSelectorContext.Provider>
);
};
// Sub-components
type TriggerProps = {
children?: React.ReactNode;
className?: string;
tooltip?: string;
disabled?: boolean;
disabledText?: string;
};
const Trigger = ({
children,
className,
tooltip = 'Change layout',
disabled = false,
disabledText,
}: TriggerProps) => {
const { isOpen } = useLayoutSelector();
// Style constants matching ToolButton
const baseClasses = '!rounded-lg inline-flex items-center justify-center';
const defaultClasses =
'bg-transparent text-foreground/80 hover:bg-background hover:text-highlight';
const activeClasses = 'bg-background text-foreground/80';
const disabledClasses =
'text-common-bright hover:bg-primary-dark hover:text-primary-light opacity-40 cursor-not-allowed';
const buttonSizeClass = 'w-10 h-10';
const iconSizeClass = 'h-7 w-7';
const buttonClasses = cn(
baseClasses,
buttonSizeClass,
disabled ? disabledClasses : isOpen ? activeClasses : defaultClasses
);
const hasTooltip = tooltip || (disabled && disabledText);
if (children) {
return (
<PopoverTrigger
asChild
className={className}
>
{children}
</PopoverTrigger>
);
}
return (
<Tooltip>
<TooltipTrigger
asChild
className={cn(disabled && 'cursor-not-allowed')}
>
<span data-cy="layout-button">
<PopoverTrigger asChild>
<Button
className={buttonClasses}
variant="ghost"
size="icon"
aria-label={tooltip}
disabled={disabled}
>
<Icons.ByName
name="tool-layout"
className={iconSizeClass}
/>
</Button>
</PopoverTrigger>
</span>
</TooltipTrigger>
{hasTooltip && (
<TooltipContent side="bottom">
{tooltip && <div>{tooltip}</div>}
{disabled && disabledText && <div className="text-muted-foreground">{disabledText}</div>}
</TooltipContent>
)}
</Tooltip>
);
};
type ContentProps = {
children: React.ReactNode;
className?: string;
align?: 'center' | 'start' | 'end';
sideOffset?: number;
};
const Content = ({ children, className, align = 'center', sideOffset = 8 }: ContentProps) => {
return (
<PopoverContent
align={align}
sideOffset={sideOffset}
className={cn('w-auto rounded-lg border-none p-0 shadow-lg', className)}
>
<div className="flex">{children}</div>
</PopoverContent>
);
};
type PresetSectionProps = {
children: React.ReactNode;
title: string;
className?: string;
};
const PresetSection = ({ children, title, className }: PresetSectionProps) => {
return (
<div className={cn('flex flex-col gap-2', className)}>
<div className="text-muted-foreground text-xs">{title}</div>
{React.Children.count(children) > 0 && (
<div
className={cn(title.toLowerCase() === 'common' ? 'flex gap-2' : 'flex flex-col gap-0')}
>
{children}
</div>
)}
</div>
);
};
type PresetProps = LayoutPresetType & {
className?: string;
isPreset?: boolean;
iconSize?: string; // Add new prop for icon size
};
const Preset = ({
title,
icon,
commandOptions,
disabled = false,
className,
isPreset = false,
iconSize, // New prop
}: PresetProps) => {
const { onSelection, onSelectionPreset } = useLayoutSelector();
const handleClick = () => {
if (disabled) {
return;
}
if (isPreset) {
onSelectionPreset(commandOptions);
} else {
onSelection(commandOptions);
}
};
return (
<div
className={cn(
'group cursor-pointer rounded transition',
'hover:bg-accent flex items-center gap-2 p-1.5',
disabled && 'pointer-events-none opacity-50',
className
)}
onClick={handleClick}
data-cy={title}
>
<div className="flex-shrink-0">
<Icons.ByName
name={icon}
className={cn('group-hover:text-primary', iconSize)}
/>
</div>
{title && <div className="text-foreground text-base">{title}</div>}
</div>
);
};
type GridSelectorProps = {
rows?: number;
columns?: number;
className?: string;
};
const GridSelector = ({ rows = 3, columns = 4, className }: GridSelectorProps) => {
const [hoveredIndex, setHoveredIndex] = useState<number | undefined>(undefined);
const { onSelection } = useLayoutSelector();
const hoverX = hoveredIndex !== undefined ? hoveredIndex % columns : -1;
const hoverY = hoveredIndex !== undefined ? Math.floor(hoveredIndex / columns) : -1;
const isHovered = (index: number) => {
if (hoveredIndex === undefined) {
return false;
}
const x = index % columns;
const y = Math.floor(index / columns);
return x <= hoverX && y <= hoverY;
};
const handleSelection = (index: number) => {
const x = index % columns;
const y = Math.floor(index / columns);
onSelection({
numRows: y + 1,
numCols: x + 1,
});
};
return (
<div
className={cn(className)}
style={{
display: 'grid',
gridTemplateColumns: `repeat(${columns}, 20px)`,
gridTemplateRows: `repeat(${rows}, 20px)`,
gap: '2px',
}}
>
{Array.from(Array(rows * columns).keys()).map(index => (
<div
key={index}
className={cn('cursor-pointer', isHovered(index) ? 'bg-primary-active' : 'bg-[#04225b]')}
data-cy={`Layout-${index % columns}-${Math.floor(index / columns)}`}
onClick={() => handleSelection(index)}
onMouseEnter={() => setHoveredIndex(index)}
onMouseLeave={() => setHoveredIndex(undefined)}
/>
))}
</div>
);
};
const Divider = ({ className }: { className?: string }) => (
<div className={cn('h-px bg-black', className)}></div>
);
const HelpText = ({ children, className }: { children: React.ReactNode; className?: string }) => (
<p className={cn('text-muted-foreground text-xs leading-tight', className)}>{children}</p>
);
// Assemble the compound component
LayoutSelector.Trigger = Trigger;
LayoutSelector.Content = Content;
LayoutSelector.PresetSection = PresetSection;
LayoutSelector.Preset = Preset;
LayoutSelector.GridSelector = GridSelector;
LayoutSelector.Divider = Divider;
LayoutSelector.HelpText = HelpText;
// PropTypes
LayoutSelector.propTypes = {
onSelectionChange: PropTypes.func,
onSelection: PropTypes.func,
onSelectionPreset: PropTypes.func,
children: PropTypes.node.isRequired,
open: PropTypes.bool,
onOpenChange: PropTypes.func,
tooltipDisabled: PropTypes.bool,
};
export { LayoutSelector };
export default LayoutSelector;
@@ -0,0 +1,4 @@
import { LayoutSelector } from './LayoutSelector';
export { LayoutSelector };
export default LayoutSelector;
+2
View File
@@ -58,6 +58,7 @@ import { InputDialog, PresetDialog } from './OHIFDialogs';
import { AboutModal, ImageModal, UserPreferencesModal } from './OHIFModals';
import Modal from './Modal/Modal';
import { FooterAction } from './FooterAction';
import { InputFilter } from './InputFilter';
import {
DropdownMenu,
@@ -237,4 +238,5 @@ export {
UserPreferencesModal,
FooterAction,
ToolSettings,
InputFilter,
};
+3 -1
View File
@@ -107,6 +107,7 @@ import {
ImageModal,
UserPreferencesModal,
FooterAction,
InputFilter,
} from './components';
import { DataRow } from './components/DataRow';
@@ -245,4 +246,5 @@ export {
useDialog,
ManagedDialog,
ToolSettings,
};
InputFilter,
};
+32
View File
@@ -3,6 +3,38 @@
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.125](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.124...v3.10.0-beta.125) (2025-03-17)
**Note:** Version bump only for package @ohif/ui
# [3.10.0-beta.124](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.123...v3.10.0-beta.124) (2025-03-17)
**Note:** Version bump only for package @ohif/ui
# [3.10.0-beta.123](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.122...v3.10.0-beta.123) (2025-03-17)
**Note:** Version bump only for package @ohif/ui
# [3.10.0-beta.122](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.121...v3.10.0-beta.122) (2025-03-17)
**Note:** Version bump only for package @ohif/ui
# [3.10.0-beta.121](https://github.com/OHIF/Viewers/compare/v3.10.0-beta.120...v3.10.0-beta.121) (2025-03-11)
Loaded 100 of 104 files, more files were not shown because too many files have changed in this diff. Show more