Showing 711 of 1,553 total issues
Function copy
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
copy(source) {
super.copy(source)
this.fragmentShader = source.fragmentShader
this.vertexShader = source.vertexShader
Function build
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
build(complex) {
const geom = new BufferGeometry()
this._atom1 = this._getAtomFromName(complex, this._id1)
this._atom2 = this._getAtomFromName(complex, this._id2)
Function rebuild
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rebuild() {
if (this._building) {
this.logger.warn('Miew.rebuild(): already building!')
return
}
Function _resetComponentTransform
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_resetComponentTransform() {
const visual = this._complexVisual
const selection = this._complexVisual.getSelectionGeo()
let i
let j
Function _initRenderPanel
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Menu.prototype._initRenderPanel = function () {
const self = this
$(`${self._menuId} [data-toggle=resolution]`).on(
'click',
Function checkArg
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
checkArg(key, arg, modificate) {
if (key !== undefined && arg !== undefined) {
if (keyRemap(key) === 'selector') {
const res = selectors.parse(arg)
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
Function constructor
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor() {
super()
// set default values
this.setValues({
Function touchstartend
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ObjectControls.prototype.touchstartend = function (event) {
if (this.enabled === false) {
return
}
Function _rotate
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ObjectHandler.prototype._rotate = (function () {
const p = new Vector3()
const q = new Quaternion()
const s = new Vector3()
Function parseSync
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseSync() {
const complexes = []
const self = this
const moleculaSet = this._selectComponents(this._data)
moleculaSet.forEach((molSet) => {
Function parse
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse(stream) {
/** @type {?Assembly} */
let assembly = this._assembly
/** @type {?Matrix4} */
let matrix = this._matrix
Function _writeHeader
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_writeHeader() {
const FBXHeaderVersion = 1003 // 1003 is some number which appears to present in many 6.1 ASCII files
const FBXVersion = 6100 // Mandatory and only supported version
const date = new Date()
const timeStampVersion = 1000
Function load
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load() {
return new Promise((resolve, reject) => {
if (this._abort) {
throw new Error('Loading aborted')
}
Function _traverse
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_traverse(mmtfData) {
const self = this
// get metadata
const { metadata } = this._complex
Function decode
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function decode() {
// backwards compatible: old non-versioned view is the 0th version
if (expression.length === 40) {
expression = `0${expression}`
}
Function unput
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
unput: function (ch) {
var len = ch.length
var lines = ch.split(/(?:\r\n?|\n)/g)
this._input = ch + this._input
Function touchmove
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ObjectControls.prototype.touchmove = function (event) {
if (this.enabled === false || this._state === STATE.NONE) {
return
}
Function unput
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
unput: function (ch) {
var len = ch.length
var lines = ch.split(/(?:\r\n?|\n)/g)
this._input = ch + this._input