src/grid-viewer.js
Function cut
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cut () {
let views = []
if (this.size[0] >= this.size[1]) {
views.push(new GridView({
grid: this.grid,
Function getViews
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getViews () {
let views = []
if (this.grid.bounds[2] > 180) {
let westSize = (this.grid.bounds[2] - 180) / this.grid.resolution[0]
let eastSize = this.grid.size[0] - westSize