@doe-casl/verain-view
Advanced tools
Comparing version 1.3.5 to 1.3.6
{ | ||
"name": "@doe-casl/verain-view", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "VeraInView is a standalone HTML file that can act as an application to visualize your VERAin XML files.", | ||
@@ -5,0 +5,0 @@ "author": "Kitware, Inc.", |
@@ -134,5 +134,14 @@ import React from 'react'; | ||
if (this.props.data.value && this.props.data.value.length) { | ||
items = this.props.data.value[0].stack.map((layer, idx) => | ||
Object.assign({ key: idx }, layer) | ||
); | ||
items = this.props.data.value[0].stack.map((layer, idx) => { | ||
const color = this.props.ui.domain.cells[layer.label].color; | ||
// adds alpha channel | ||
const background = ColorManager.toRGBA(color.concat([1])); | ||
return Object.assign( | ||
{ | ||
key: idx, | ||
color: background, | ||
}, | ||
layer | ||
); | ||
}); | ||
} | ||
@@ -139,0 +148,0 @@ |
6221488
18327