All files / packages/core/src/constants mprCameraValues.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21    1x                               1x    
import deepFreeze from '../utilities/deepFreeze';
 
const MPR_CAMERA_VALUES = {
  axial: {
    viewPlaneNormal: [0, 0, -1],
    viewUp: [0, -1, 0],
  },
  sagittal: {
    viewPlaneNormal: [1, 0, 0],
    viewUp: [0, 0, 1],
  },
  coronal: {
    viewPlaneNormal: [0, -1, 0],
    viewUp: [0, 0, 1],
  },
};
 
// Note: Object.freeze is only shallow, so we need to deepFreeze
const mprCameraValues = deepFreeze(MPR_CAMERA_VALUES);
export default mprCameraValues;