fix(SR): KO series being displayed in browser list (#3382)

* fix: KO series being displayed in browser list

* fix sr for volume viewports

* move highlight labelmap to RAF

* remove commented code

* fix the hydration bug for the SR

* apply review comments

* revert the key images for sr

* Remove some obsolete changes

* set initial image for sr instead of jump

* Remove viewportType stack

---------

Co-authored-by: Alireza <ar.sedghi@gmail.com>
This commit is contained in:
Bill WallaceandAlireza authored and GitHub committed 2023-05-15 08:23:13 -04:00
1 parent 4172d0427b
commit d5c5951e57
20 files changed
+243 -223

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@
"author": "OHIF Contributors",
"license": "MIT",
"dependencies": {
"@babel/core": "^7.13.10",
"@babel/core": "^7.21.4",
"chalk": "^5.0.0",
"commander": "^8.3.0",
"axios": "^0.26.1",
@@ -32,7 +32,7 @@
"@babel/runtime": "^7.20.13"
},
"devDependencies": {
"@babel/core": "^7.17.8",
"@babel/core": "^7.21.4",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-object-rest-spread": "^7.17.3",
"@babel/plugin-proposal-private-methods": "^7.18.6",
@@ -23,7 +23,7 @@
"@babel/runtime": "^7.20.13"
},
"devDependencies": {
"@babel/core": "^7.17.8",
"@babel/core": "^7.21.4",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-object-rest-spread": "^7.17.3",
"@babel/plugin-proposal-private-methods": "^7.18.6",
@@ -78,7 +78,7 @@ export default class DisplaySetService extends PubSubService {
if (!activeDisplaySetsMap.has(displaySet.displaySetInstanceUID)) {
this.activeDisplaySetsChanged = true;
activeDisplaySets.push(displaySet);
activeDisplaySetsMap.set(displaySet.displayInstanceUID, displaySet);
activeDisplaySetsMap.set(displaySet.displaySetInstanceUID, displaySet);
}
});
}
@@ -2,26 +2,9 @@ import React, { useEffect, useCallback } from 'react';
import PropTypes from 'prop-types';
import { ServicesManager, Types, MeasurementService } from '@ohif/core';
import { ViewportGrid, ViewportPane, useViewportGrid } from '@ohif/ui';
import { utils } from '@ohif/core';
import EmptyViewport from './EmptyViewport';
import classNames from 'classnames';
const { isEqualWithin } = utils;
const ORIENTATION_MAP = {
axial: {
viewPlaneNormal: [0, 0, -1],
viewUp: [0, -1, 0],
},
sagittal: {
viewPlaneNormal: [1, 0, 0],
viewUp: [0, 0, 1],
},
coronal: {
viewPlaneNormal: [0, 1, 0],
viewUp: [0, 0, 1],
},
};
function ViewerViewportGrid(props) {
const { servicesManager, viewportComponents, dataSource } = props;