@cornerstonejs/tools 4.5.20 → 4.6.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.
|
@@ -54,6 +54,11 @@ class CrosshairsTool extends AnnotationTool {
|
|
|
54
54
|
referenceLinesCenterGapRatio: null,
|
|
55
55
|
filterActorUIDsToSetSlabThickness: [],
|
|
56
56
|
slabThicknessBlendMode: Enums.BlendModes.MAXIMUM_INTENSITY_BLEND,
|
|
57
|
+
centerPoint: {
|
|
58
|
+
enabled: false,
|
|
59
|
+
color: 'rgba(255, 255, 0, 0.5)',
|
|
60
|
+
size: 2,
|
|
61
|
+
},
|
|
57
62
|
mobile: {
|
|
58
63
|
enabled: false,
|
|
59
64
|
opacity: 0.8,
|
|
@@ -680,6 +685,17 @@ class CrosshairsTool extends AnnotationTool {
|
|
|
680
685
|
const circleUID = '0';
|
|
681
686
|
drawCircleSvg(svgDrawingHelper, annotationUID, circleUID, referenceColorCoordinates, circleRadius, { color, fill: color });
|
|
682
687
|
}
|
|
688
|
+
if (this.configuration.centerPoint?.enabled) {
|
|
689
|
+
const defaultColor = 'rgba(255, 255, 0, 0.5)';
|
|
690
|
+
const defaultSize = 2;
|
|
691
|
+
const maxAllowedSize = 5;
|
|
692
|
+
const centerPointColor = this.configuration.centerPoint.color || defaultColor;
|
|
693
|
+
const centerPointSize = Math.min(this.configuration.centerPoint.size || defaultSize, maxAllowedSize);
|
|
694
|
+
drawCircleSvg(svgDrawingHelper, annotationUID, 'centerPoint', crosshairCenterCanvas, centerPointSize, {
|
|
695
|
+
color: centerPointColor,
|
|
696
|
+
fill: centerPointColor,
|
|
697
|
+
});
|
|
698
|
+
}
|
|
683
699
|
return renderStatus;
|
|
684
700
|
};
|
|
685
701
|
this._getAnnotations = (enabledElement) => {
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.
|
|
1
|
+
export declare const version = "4.6.0";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.6.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.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": "4.
|
|
111
|
+
"@cornerstonejs/core": "4.6.0",
|
|
112
112
|
"@kitware/vtk.js": "32.12.1",
|
|
113
113
|
"@types/d3-array": "3.2.1",
|
|
114
114
|
"@types/d3-interpolate": "3.0.4",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"type": "individual",
|
|
128
128
|
"url": "https://ohif.org/donate"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "290f99b7c8a36710a4751c5c905afbf7c27b5786"
|
|
131
131
|
}
|