@cornerstonejs/tools 3.16.4 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/tools/annotation/CircleROITool.js +5 -1
- package/dist/esm/tools/annotation/EllipticalROITool.js +5 -1
- package/dist/esm/tools/annotation/PlanarFreehandROITool.js +5 -1
- package/dist/esm/tools/annotation/RectangleROITool.js +3 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +3 -3
|
@@ -545,6 +545,7 @@ class CircleROITool extends AnnotationTool {
|
|
|
545
545
|
area,
|
|
546
546
|
mean: stats.mean?.value,
|
|
547
547
|
max: stats.max?.value,
|
|
548
|
+
min: stats.min?.value,
|
|
548
549
|
pointsInShape,
|
|
549
550
|
stdDev: stats.stdDev?.value,
|
|
550
551
|
statsArray: stats.array,
|
|
@@ -621,7 +622,7 @@ class CircleROITool extends AnnotationTool {
|
|
|
621
622
|
}
|
|
622
623
|
function defaultGetTextLines(data, targetId) {
|
|
623
624
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
624
|
-
const { radius, radiusUnit, area, mean, stdDev, max, isEmptyArea, areaUnit, modalityUnit, } = cachedVolumeStats;
|
|
625
|
+
const { radius, radiusUnit, area, mean, stdDev, max, min, isEmptyArea, areaUnit, modalityUnit, } = cachedVolumeStats;
|
|
625
626
|
const textLines = [];
|
|
626
627
|
if (radius) {
|
|
627
628
|
const radiusLine = isEmptyArea
|
|
@@ -641,6 +642,9 @@ function defaultGetTextLines(data, targetId) {
|
|
|
641
642
|
if (max) {
|
|
642
643
|
textLines.push(`Max: ${csUtils.roundNumber(max)} ${modalityUnit}`);
|
|
643
644
|
}
|
|
645
|
+
if (min) {
|
|
646
|
+
textLines.push(`Min: ${csUtils.roundNumber(min)} ${modalityUnit}`);
|
|
647
|
+
}
|
|
644
648
|
if (stdDev) {
|
|
645
649
|
textLines.push(`Std Dev: ${csUtils.roundNumber(stdDev)} ${modalityUnit}`);
|
|
646
650
|
}
|
|
@@ -621,6 +621,7 @@ class EllipticalROITool extends AnnotationTool {
|
|
|
621
621
|
area,
|
|
622
622
|
mean: stats.mean?.value,
|
|
623
623
|
max: stats.max?.value,
|
|
624
|
+
min: stats.min?.value,
|
|
624
625
|
stdDev: stats.stdDev?.value,
|
|
625
626
|
statsArray: stats.array,
|
|
626
627
|
pointsInShape,
|
|
@@ -699,7 +700,7 @@ class EllipticalROITool extends AnnotationTool {
|
|
|
699
700
|
}
|
|
700
701
|
function defaultGetTextLines(data, targetId) {
|
|
701
702
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
702
|
-
const { area, mean, stdDev, max, isEmptyArea, areaUnit, modalityUnit } = cachedVolumeStats;
|
|
703
|
+
const { area, mean, stdDev, max, isEmptyArea, areaUnit, modalityUnit, min } = cachedVolumeStats;
|
|
703
704
|
const textLines = [];
|
|
704
705
|
if (area) {
|
|
705
706
|
const areaLine = isEmptyArea
|
|
@@ -713,6 +714,9 @@ function defaultGetTextLines(data, targetId) {
|
|
|
713
714
|
if (max) {
|
|
714
715
|
textLines.push(`Max: ${csUtils.roundNumber(max)} ${modalityUnit}`);
|
|
715
716
|
}
|
|
717
|
+
if (min) {
|
|
718
|
+
textLines.push(`Min: ${csUtils.roundNumber(min)} ${modalityUnit}`);
|
|
719
|
+
}
|
|
716
720
|
if (stdDev) {
|
|
717
721
|
textLines.push(`Std Dev: ${csUtils.roundNumber(stdDev)} ${modalityUnit}`);
|
|
718
722
|
}
|
|
@@ -509,6 +509,7 @@ class PlanarFreehandROITool extends ContourSegmentationBaseTool {
|
|
|
509
509
|
perimeter: calculatePerimeter(canvasCoordinates, closed) / scale,
|
|
510
510
|
mean: stats.mean?.value,
|
|
511
511
|
max: stats.max?.value,
|
|
512
|
+
min: stats.min?.value,
|
|
512
513
|
stdDev: stats.stdDev?.value,
|
|
513
514
|
statsArray: stats.array,
|
|
514
515
|
pointsInShape: pointsInShape,
|
|
@@ -529,7 +530,7 @@ class PlanarFreehandROITool extends ContourSegmentationBaseTool {
|
|
|
529
530
|
}
|
|
530
531
|
function defaultGetTextLines(data, targetId) {
|
|
531
532
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
532
|
-
const { area, mean, stdDev, length, perimeter, max, isEmptyArea, unit, areaUnit, modalityUnit, } = cachedVolumeStats || {};
|
|
533
|
+
const { area, mean, stdDev, length, perimeter, max, min, isEmptyArea, unit, areaUnit, modalityUnit, } = cachedVolumeStats || {};
|
|
533
534
|
const textLines = [];
|
|
534
535
|
if (area) {
|
|
535
536
|
const areaLine = isEmptyArea
|
|
@@ -543,6 +544,9 @@ function defaultGetTextLines(data, targetId) {
|
|
|
543
544
|
if (Number.isFinite(max)) {
|
|
544
545
|
textLines.push(`Max: ${csUtils.roundNumber(max)} ${modalityUnit}`);
|
|
545
546
|
}
|
|
547
|
+
if (Number.isFinite(min)) {
|
|
548
|
+
textLines.push(`Min: ${csUtils.roundNumber(min)} ${modalityUnit}`);
|
|
549
|
+
}
|
|
546
550
|
if (stdDev) {
|
|
547
551
|
textLines.push(`Std Dev: ${csUtils.roundNumber(stdDev)} ${modalityUnit}`);
|
|
548
552
|
}
|
|
@@ -498,6 +498,7 @@ class RectangleROITool extends AnnotationTool {
|
|
|
498
498
|
mean: stats.mean?.value,
|
|
499
499
|
stdDev: stats.stdDev?.value,
|
|
500
500
|
max: stats.max?.value,
|
|
501
|
+
min: stats.min?.value,
|
|
501
502
|
statsArray: stats.array,
|
|
502
503
|
pointsInShape: pointsInShape,
|
|
503
504
|
areaUnit,
|
|
@@ -560,7 +561,7 @@ class RectangleROITool extends AnnotationTool {
|
|
|
560
561
|
}
|
|
561
562
|
function defaultGetTextLines(data, targetId) {
|
|
562
563
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
563
|
-
const { area, mean, max, stdDev, areaUnit, modalityUnit } = cachedVolumeStats;
|
|
564
|
+
const { area, mean, max, stdDev, areaUnit, modalityUnit, min } = cachedVolumeStats;
|
|
564
565
|
if (mean === undefined || mean === null) {
|
|
565
566
|
return;
|
|
566
567
|
}
|
|
@@ -568,6 +569,7 @@ function defaultGetTextLines(data, targetId) {
|
|
|
568
569
|
textLines.push(`Area: ${csUtils.roundNumber(area)} ${areaUnit}`);
|
|
569
570
|
textLines.push(`Mean: ${csUtils.roundNumber(mean)} ${modalityUnit}`);
|
|
570
571
|
textLines.push(`Max: ${csUtils.roundNumber(max)} ${modalityUnit}`);
|
|
572
|
+
textLines.push(`Min: ${csUtils.roundNumber(min)} ${modalityUnit}`);
|
|
571
573
|
textLines.push(`Std Dev: ${csUtils.roundNumber(stdDev)} ${modalityUnit}`);
|
|
572
574
|
return textLines;
|
|
573
575
|
}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.
|
|
1
|
+
export declare const version = "3.17.0";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.
|
|
1
|
+
export const version = '3.17.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"canvas": "^3.1.0"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
|
-
"@cornerstonejs/core": "^3.
|
|
111
|
+
"@cornerstonejs/core": "^3.17.0",
|
|
112
112
|
"@kitware/vtk.js": "32.12.1",
|
|
113
113
|
"@types/d3-array": "^3.0.4",
|
|
114
114
|
"@types/d3-interpolate": "^3.0.1",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"type": "individual",
|
|
128
128
|
"url": "https://ohif.org/donate"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "2aaea4759f5efd508a96551cc4d5ed53cde138d3"
|
|
131
131
|
}
|