@cornerstonejs/core 2.17.1 → 2.17.2
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.
|
@@ -639,16 +639,18 @@ class StackViewport extends Viewport {
|
|
|
639
639
|
this.setVOI(voiRange);
|
|
640
640
|
this.setInvertColor(this.initialInvert);
|
|
641
641
|
this.setInterpolationType(InterpolationType.LINEAR);
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
642
|
+
if (!this.useCPURendering) {
|
|
643
|
+
const transferFunction = this.getTransferFunction();
|
|
644
|
+
setTransferFunctionNodes(transferFunction, this.initialTransferFunctionNodes);
|
|
645
|
+
const nodes = getTransferFunctionNodes(transferFunction);
|
|
646
|
+
const RGBPoints = nodes.reduce((acc, node) => {
|
|
647
|
+
acc.push(node[0], node[1], node[2], node[3]);
|
|
648
|
+
return acc;
|
|
649
|
+
}, []);
|
|
650
|
+
const defaultActor = this.getDefaultActor();
|
|
651
|
+
const matchedColormap = colormapUtils.findMatchingColormap(RGBPoints, defaultActor.actor);
|
|
652
|
+
this.setColormap(matchedColormap);
|
|
653
|
+
}
|
|
652
654
|
}
|
|
653
655
|
resetToDefaultProperties() {
|
|
654
656
|
this.cpuRenderingInvalidated = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.2",
|
|
4
4
|
"description": "Cornerstone3D Core",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"type": "individual",
|
|
83
83
|
"url": "https://ohif.org/donate"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "26657751a6e715570cc44115ee8cc673aa453037"
|
|
86
86
|
}
|