packages/miew/src/gfx/VolumeBounds.js
Function constructor
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(bBox, volInfo) {
const { delta } = volInfo // {x: XY, y : XZ, z: YZ}
const { obtuseAngle } = volInfo // 1 - obtuse, 0 - acute
const bSize = new Vector3()
Function _getBaseVertices
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getBaseVertices(delta, obtuseAngle) {
const projTable = VolumeBounds._projectionTable
const proj = (index, inv) => {
// tricky function to take account of projections: their position(related to box) and sign