@cornerstonejs/adapters 1.63.3 → 1.63.5
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/adapters.es.js +21 -19
- package/dist/adapters.es.js.map +1 -1
- package/package.json +5 -5
package/dist/adapters.es.js
CHANGED
|
@@ -41343,6 +41343,24 @@ var transferFunctionUtils = /*#__PURE__*/Object.freeze({
|
|
|
41343
41343
|
setTransferFunctionNodes: setTransferFunctionNodes
|
|
41344
41344
|
});
|
|
41345
41345
|
|
|
41346
|
+
const _colormaps = new Map();
|
|
41347
|
+
function registerColormap(colormap) {
|
|
41348
|
+
_colormaps.set(colormap.Name, colormap);
|
|
41349
|
+
}
|
|
41350
|
+
function getColormap(name) {
|
|
41351
|
+
return _colormaps.get(name);
|
|
41352
|
+
}
|
|
41353
|
+
function getColormapNames() {
|
|
41354
|
+
return Array.from(_colormaps.keys());
|
|
41355
|
+
}
|
|
41356
|
+
|
|
41357
|
+
var colormap = /*#__PURE__*/Object.freeze({
|
|
41358
|
+
__proto__: null,
|
|
41359
|
+
getColormap: getColormap,
|
|
41360
|
+
getColormapNames: getColormapNames,
|
|
41361
|
+
registerColormap: registerColormap
|
|
41362
|
+
});
|
|
41363
|
+
|
|
41346
41364
|
class BaseVolumeViewport extends Viewport$1 {
|
|
41347
41365
|
constructor(props) {
|
|
41348
41366
|
super(props);
|
|
@@ -41422,7 +41440,9 @@ class BaseVolumeViewport extends Viewport$1 {
|
|
|
41422
41440
|
acc.push(node.x, node.r, node.g, node.b);
|
|
41423
41441
|
return acc;
|
|
41424
41442
|
}, []);
|
|
41425
|
-
const
|
|
41443
|
+
const colormapsVTK = vtkColorMaps.rgbPresetNames.map(presetName => vtkColorMaps.getPresetByName(presetName));
|
|
41444
|
+
const colormapsCS3D = getColormapNames().map(colormapName => getColormap(colormapName));
|
|
41445
|
+
const colormaps = colormapsVTK.concat(colormapsCS3D);
|
|
41426
41446
|
const matchedColormap = colormaps.find(colormap => {
|
|
41427
41447
|
const {
|
|
41428
41448
|
RGBPoints: presetRGBPoints
|
|
@@ -42856,24 +42876,6 @@ var planar = /*#__PURE__*/Object.freeze({
|
|
|
42856
42876
|
threePlaneIntersection: threePlaneIntersection
|
|
42857
42877
|
});
|
|
42858
42878
|
|
|
42859
|
-
const _colormaps = new Map();
|
|
42860
|
-
function registerColormap(colormap) {
|
|
42861
|
-
_colormaps.set(colormap.Name, colormap);
|
|
42862
|
-
}
|
|
42863
|
-
function getColormap(name) {
|
|
42864
|
-
return _colormaps.get(name);
|
|
42865
|
-
}
|
|
42866
|
-
function getColormapNames() {
|
|
42867
|
-
return Array.from(_colormaps.keys());
|
|
42868
|
-
}
|
|
42869
|
-
|
|
42870
|
-
var colormap = /*#__PURE__*/Object.freeze({
|
|
42871
|
-
__proto__: null,
|
|
42872
|
-
getColormap: getColormap,
|
|
42873
|
-
getColormapNames: getColormapNames,
|
|
42874
|
-
registerColormap: registerColormap
|
|
42875
|
-
});
|
|
42876
|
-
|
|
42877
42879
|
var utilities = /*#__PURE__*/Object.freeze({
|
|
42878
42880
|
__proto__: null,
|
|
42879
42881
|
PointsManager: PointsManager$2,
|