@doe-casl/verain-view
Advanced tools
Comparing version 1.3.40 to 1.3.41
{ | ||
"name": "@doe-casl/verain-view", | ||
"version": "1.3.40", | ||
"version": "1.3.41", | ||
"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.", |
@@ -125,3 +125,9 @@ import React from 'react'; | ||
gridSize={viz.assemblyGridSize} | ||
items={['0'].concat(Object.keys(viz.rods))} | ||
items={['0'].concat( | ||
Object.keys(viz.rods).filter( | ||
(id) => | ||
viz.rods[id].type === | ||
this.props.viewData.mapInfo.type.value[0] | ||
) | ||
)} | ||
names={viz.names} | ||
@@ -128,0 +134,0 @@ colors={convertToRGB(viz.colors)} |
@@ -102,2 +102,3 @@ import React from 'react'; | ||
const vizData = Object.assign({ selected: this.props.viewData.id }, viz); | ||
const types = viz.core.types[this.props.viewData.id] || []; | ||
return ( | ||
@@ -125,3 +126,7 @@ <div className={style.container}> | ||
gridSize={viz.coreGridSize} | ||
items={['0'].concat(Object.keys(viz.assembly))} | ||
items={['0'].concat( | ||
Object.keys(viz.assembly).filter( | ||
(id) => types.indexOf(viz.assembly[id].type) !== -1 | ||
) | ||
)} | ||
names={viz.names} | ||
@@ -128,0 +133,0 @@ colors={convertToRGB(viz.colors)} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6299127
20418