Skip to content

Commit

Permalink
Remove unnecessary console.log() statements
Browse files Browse the repository at this point in the history
  • Loading branch information
fkettelhoit committed Mar 28, 2020
1 parent 6b45e88 commit 3a87c03
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions scripts/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ function Manager (client) {

const path = paths[id]
const matches = path.match(/\d+,\d+/g)
console.log(matches)
if (matches === null) { continue }

const coordinates = matches.map(p => p.split(/,/))
Expand All @@ -71,21 +70,14 @@ function Manager (client) {
const xMaxOfLayer = Math.max(...xs) + offset
const yMaxOfLayer = Math.max(...ys) + offset

console.log(xMinOfLayer)
console.log(yMinOfLayer)
console.log(xMaxOfLayer)
console.log(yMaxOfLayer)

if (xMin === null || xMinOfLayer < xMin) { xMin = xMinOfLayer }
if (yMin === null || yMinOfLayer < yMin) { yMin = yMinOfLayer }
if (xMax === null || xMaxOfLayer > xMax) { xMax = xMaxOfLayer }
if (yMax === null || yMaxOfLayer > yMax) { yMax = yMaxOfLayer }
}
if (xMin === null || yMin === null || xMax === null || yMax === null) { return '' }

const viewBox = xMin + ' ' + yMin + ' ' + (xMax - xMin) + ' ' + (yMax - yMin)
console.log(viewBox)
return viewBox
return xMin + ' ' + yMin + ' ' + (xMax - xMin) + ' ' + (yMax - yMin)
}

this.svg64 = function () {
Expand Down

0 comments on commit 3a87c03

Please sign in to comment.