@cornerstonejs/core 2.17.1 → 2.17.3

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
- const transferFunction = this.getTransferFunction();
643
- setTransferFunctionNodes(transferFunction, this.initialTransferFunctionNodes);
644
- const nodes = getTransferFunctionNodes(transferFunction);
645
- const RGBPoints = nodes.reduce((acc, node) => {
646
- acc.push(node[0], node[1], node[2], node[3]);
647
- return acc;
648
- }, []);
649
- const defaultActor = this.getDefaultActor();
650
- const matchedColormap = colormapUtils.findMatchingColormap(RGBPoints, defaultActor.actor);
651
- this.setColormap(matchedColormap);
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.1",
3
+ "version": "2.17.3",
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": "b68b0b87867bfe60b19cdadb8248654a09f9c8ce"
85
+ "gitHead": "8fe548248197e61fba869257fdebdd33714e42f8"
86
86
  }