@doe-casl/verain-view
Advanced tools
Comparing version 1.3.25 to 1.3.26
{ | ||
"name": "@doe-casl/verain-view", | ||
"version": "1.3.25", | ||
"version": "1.3.26", | ||
"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.", |
@@ -44,2 +44,6 @@ import React from 'react'; | ||
// }, | ||
// rodsOffset: { | ||
// 1: 0, | ||
// 2: 4.5, | ||
// }, | ||
// map: { | ||
@@ -64,2 +68,3 @@ // size: 17, | ||
rods: {}, | ||
rodsOffset: {}, | ||
map: { | ||
@@ -97,2 +102,3 @@ size: assemblySize, | ||
result.rods[rodId] = rods[rodId].rodStack.rod.value[0].stack; | ||
result.rodsOffset[rodId] = rods[rodId].rodInfo.offset.value[0] || 0; | ||
} | ||
@@ -99,0 +105,0 @@ |
@@ -130,2 +130,6 @@ import macro from 'vtk.js/Sources/macro'; | ||
// }, | ||
// rodsOffset: { | ||
// 1: 0, | ||
// 2: 4.5, | ||
// }, | ||
// map: { | ||
@@ -141,3 +145,10 @@ // size: 17, | ||
const { pitch, colors, cells, rods, map: { size, grid } } = rodMap; | ||
const { | ||
pitch, | ||
colors, | ||
cells, | ||
rods, | ||
map: { size, grid }, | ||
rodsOffset, | ||
} = rodMap; | ||
const matIdMapping = processColors(colors, model.lookupTable); | ||
@@ -155,2 +166,3 @@ const cellMap = processCells(cells, matIdMapping); | ||
const rod = rodsCells[grid[idx]]; | ||
const offset = rodsOffset[grid[idx]]; | ||
if (rod) { | ||
@@ -165,3 +177,3 @@ const cellIds = Object.keys(rod); | ||
cell.center.push(y); | ||
cell.center.push(z); | ||
cell.center.push(z + offset); | ||
cell.scale.push(1); | ||
@@ -168,0 +180,0 @@ cell.scale.push(1); |
@@ -11,2 +11,3 @@ import React from 'react'; | ||
props.totalLength - | ||
props.offset - | ||
props.stack.map((i) => i.length).reduce((a, b) => a + b, 0) | ||
@@ -13,0 +14,0 @@ ).toFixed(1); |
6258207
19459