@doe-casl/verain-view
Advanced tools
Comparing version 1.3.9 to 1.3.10
{ | ||
"name": "@doe-casl/verain-view", | ||
"version": "1.3.9", | ||
"version": "1.3.10", | ||
"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.", |
@@ -533,3 +533,3 @@ import 'antd/dist/antd.css'; | ||
<Menu.Item | ||
key={`materials:${m.title}`} | ||
key={`materials:${m.label}`} | ||
disabled | ||
@@ -539,5 +539,5 @@ className={style.materialSelector} | ||
<Color | ||
title={m.title} | ||
title={m.label} | ||
color={m.color} | ||
key={`mat-${m.title}`} | ||
key={`mat-${m.label}`} | ||
/> | ||
@@ -544,0 +544,0 @@ <Switch |
@@ -274,3 +274,4 @@ import vtkColorTransferFunction from 'vtk.js/Sources/Rendering/Core/ColorTransferFunction'; | ||
pointSets[cellId].coordinates.push(i * gridSpacing); | ||
pointSets[cellId].coordinates.push(j * gridSpacing); | ||
// reverse top-down image coords for 3D | ||
pointSets[cellId].coordinates.push((width - j - 1) * gridSpacing); | ||
pointSets[cellId].coordinates.push(0); | ||
@@ -999,3 +1000,4 @@ } else if (isCoreMap && cellId) { | ||
const offsetX = i * gridSpacing; | ||
const offsetY = j * gridSpacing; | ||
// reverse top-down image coords for 3D | ||
const offsetY = (coreSize - j - 1) * gridSpacing; | ||
for (let k = 0; k < processingList.length; k++) { | ||
@@ -1002,0 +1004,0 @@ const [container, keyMap] = processingList[k]; |
@@ -137,3 +137,3 @@ // import macro from 'vtk.js/Sources/macro'; | ||
// VERA wants angle counter-clockwise from positive-X. | ||
const center = (core.pad_azi_locs[countPads] + 180) % 360; | ||
const center = core.pad_azi_locs[countPads] % 360; | ||
const cell = { | ||
@@ -140,0 +140,0 @@ labelToUse: 'pad', |
@@ -702,5 +702,5 @@ import macro from 'vtk.js/Sources/macro'; | ||
const position = [].concat(focalPoint); | ||
const viewUp = [0, -1, 0]; | ||
// this matches 2D views, but puts the control rods under the core. | ||
position[2] += -10; | ||
// Set camera to match 2D views. | ||
const viewUp = [0, 1, 0]; | ||
position[2] += 10; | ||
model.camera.set({ viewUp, position }); | ||
@@ -707,0 +707,0 @@ model.renderer.resetCamera(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6221193
18317