Skip to content

Commit 179e4de

Browse files
committed
fix: linting
1 parent 544cf7f commit 179e4de

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

spec/graphing/blips-spec.js

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,28 @@ describe('Blips', function () {
215215
const existingCoords = [
216216
{ coordinates: [500, 400], width: 22 },
217217
{ coordinates: [200, 200], width: 22 },
218-
{ coordinates: [40, 40], width: 22 }
218+
{ coordinates: [40, 40], width: 22 },
219219
]
220220

221-
expect(sortBlipCoordinates(existingCoords, 'first')).toEqual([{ "coordinates": [200, 200], "width": 22 }, { "coordinates": [40, 40], "width": 22 }, { "coordinates": [500, 400], "width": 22 }])
222-
expect(sortBlipCoordinates(existingCoords, 'third')).toEqual([{ "coordinates": [200, 200], "width": 22 }, { "coordinates": [40, 40], "width": 22 }, { "coordinates": [500, 400], "width": 22 }])
223-
expect(sortBlipCoordinates(existingCoords, 'second')).toEqual([{ "coordinates": [500, 400], "width": 22 }, { "coordinates": [200, 200], "width": 22 }, { "coordinates": [40, 40], "width": 22 })
224-
expect(sortBlipCoordinates(existingCoords, 'fourth')).toEqual([{ "coordinates": [500, 400], "width": 22 }, { "coordinates": [200, 200], "width": 22 }, { "coordinates": [40, 40], "width": 22 })
221+
expect(sortBlipCoordinates(existingCoords, 'first')).toEqual([
222+
{ coordinates: [200, 200], width: 22 },
223+
{ coordinates: [40, 40], width: 22 },
224+
{ coordinates: [500, 400], width: 22 },
225+
])
226+
expect(sortBlipCoordinates(existingCoords, 'third')).toEqual([
227+
{ coordinates: [200, 200], width: 22 },
228+
{ coordinates: [40, 40], width: 22 },
229+
{ coordinates: [500, 400], width: 22 },
230+
])
231+
expect(sortBlipCoordinates(existingCoords, 'second')).toEqual([
232+
{ coordinates: [500, 400], width: 22 },
233+
{ coordinates: [200, 200], width: 22 },
234+
{ coordinates: [40, 40], width: 22 },
235+
])
236+
expect(sortBlipCoordinates(existingCoords, 'fourth')).toEqual([
237+
{ coordinates: [500, 400], width: 22 },
238+
{ coordinates: [200, 200], width: 22 },
239+
{ coordinates: [40, 40], width: 22 },
240+
])
225241
})
226242
})

src/graphing/blips.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function thereIsCollision(coordinates, allCoordinates, blipWidth) {
5151
return allCoordinates.some(function (currentCoordinates) {
5252
return (
5353
Math.abs(currentCoordinates.coordinates[0] - coordinates[0]) <
54-
currentCoordinates.width / 2 + blipWidth / 2 + 10 &&
54+
currentCoordinates.width / 2 + blipWidth / 2 + 10 &&
5555
Math.abs(currentCoordinates.coordinates[1] - coordinates[1]) < currentCoordinates.width / 2 + blipWidth / 2 + 10
5656
)
5757
})
@@ -78,11 +78,11 @@ function findBlipCoordinates(blip, minRadius, maxRadius, startAngle, allBlipCoor
7878
const maxIterations = 200
7979
const chance = new Chance(
8080
Math.PI *
81-
graphConfig.quadrantWidth *
82-
graphConfig.quadrantHeight *
83-
graphConfig.quadrantsGap *
84-
graphConfig.blipWidth *
85-
maxIterations,
81+
graphConfig.quadrantWidth *
82+
graphConfig.quadrantHeight *
83+
graphConfig.quadrantsGap *
84+
graphConfig.blipWidth *
85+
maxIterations,
8686
)
8787
let coordinates = calculateRadarBlipCoordinates(minRadius, maxRadius, startAngle, quadrantOrder, chance, blip)
8888
let iterationCounter = 0
@@ -216,7 +216,7 @@ const findexistingBlipCoords = function (ringIndex, deg) {
216216
}
217217

218218
function findNewBlipCoords(existingCoords) {
219-
console.log("ADAM TRANSPOSE")
219+
console.log('ADAM TRANSPOSE')
220220

221221
const groupBlipGap = 5
222222
const offsetX = graphConfig.existingGroupBlipWidth - graphConfig.newGroupBlipWidth

0 commit comments

Comments
 (0)