fix: Cobb angle not working in basic-test mode and open contour (#4280)
This commit is contained in:
1 parent
a2084f319b
commit
6fd3c7e293
12 files changed
+998
-799
No files matched your search
@@ -12,7 +12,7 @@ describe('OHIF MPR', () => {
|
||||
|
||||
it('should go MPR for reconstructible displaySets and come back', () => {
|
||||
cy.wait(250);
|
||||
cy.get(':nth-child(3) > [data-cy="study-browser-thumbnail"]').dblclick();
|
||||
cy.get('[data-cy="study-browser-thumbnail"][data-series="4"]').dblclick();
|
||||
cy.wait(250);
|
||||
|
||||
cy.get('[data-cy="MPR"]').click();
|
||||
@@ -27,7 +27,7 @@ describe('OHIF MPR', () => {
|
||||
it('should render correctly the MPR', () => {
|
||||
cy.wait(250);
|
||||
|
||||
cy.get(':nth-child(3) > [data-cy="study-browser-thumbnail"]').dblclick();
|
||||
cy.get('[data-cy="study-browser-thumbnail"][data-series="4"]').dblclick();
|
||||
cy.wait(250);
|
||||
cy.get('[data-cy="MPR"]').click();
|
||||
|
||||
@@ -61,7 +61,7 @@ describe('OHIF MPR', () => {
|
||||
});
|
||||
|
||||
it('should correctly render Crosshairs for MPR', () => {
|
||||
cy.get(':nth-child(3) > [data-cy="study-browser-thumbnail"]').dblclick();
|
||||
cy.get('[data-cy="study-browser-thumbnail"][data-series="4"]').dblclick();
|
||||
cy.get('[data-cy="MPR"]').click();
|
||||
cy.get('[data-cy="Crosshairs"]').click();
|
||||
|
||||
@@ -93,7 +93,7 @@ describe('OHIF MPR', () => {
|
||||
});
|
||||
|
||||
it('should activate window level when the active Crosshairs tool for MPR is clicked', () => {
|
||||
cy.get(':nth-child(3) > [data-cy="study-browser-thumbnail"]').dblclick();
|
||||
cy.get('[data-cy="study-browser-thumbnail"][data-series="4"]').dblclick();
|
||||
cy.get('[data-cy="MPR"]').click();
|
||||
cy.get('[data-cy="Crosshairs"]').click();
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"@cornerstonejs/codec-libjpeg-turbo-8bit": "^1.2.2",
|
||||
"@cornerstonejs/codec-openjpeg": "^1.2.3",
|
||||
"@cornerstonejs/codec-openjph": "^2.4.5",
|
||||
"@cornerstonejs/dicom-image-loader": "^1.78.1",
|
||||
"@cornerstonejs/dicom-image-loader": "^1.81.6",
|
||||
"@ohif/ui": "3.9.0-beta.58",
|
||||
"cornerstone-math": "0.1.9",
|
||||
"dicom-parser": "^1.8.21"
|
||||
|
||||
@@ -57,6 +57,7 @@ const Thumbnail = ({
|
||||
)}
|
||||
id={`thumbnail-${displaySetInstanceUID}`}
|
||||
data-cy={`study-browser-thumbnail`}
|
||||
data-series={seriesNumber}
|
||||
onClick={onClick}
|
||||
onDoubleClick={onDoubleClick}
|
||||
onTouchEnd={handleTouchEnd}
|
||||
@@ -95,10 +96,8 @@ const Thumbnail = ({
|
||||
/>
|
||||
{` ${numInstances}`}
|
||||
</div>
|
||||
<div className="flex mr-2 last:mr-0">
|
||||
{loadingProgress && loadingProgress < 1 && (
|
||||
<>{Math.round(loadingProgress * 100)}%</>
|
||||
)}
|
||||
<div className="mr-2 flex last:mr-0">
|
||||
{loadingProgress && loadingProgress < 1 && <>{Math.round(loadingProgress * 100)}%</>}
|
||||
{loadingProgress && loadingProgress === 1 && (
|
||||
<Icon
|
||||
name={'database'}
|
||||
|
||||
Reference in new issue
Block a user