Skip to content

Commit b9d74a4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1ccd1f2 commit b9d74a4

File tree

7 files changed

+17
-16
lines changed

7 files changed

+17
-16
lines changed

components/desktop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Desktop() {
3232
const data = getSelectedData(
3333
map,
3434
['biomass', 'fire', 'drought', 'insects'],
35-
region
35+
region,
3636
)
3737
setSelectedData(data)
3838
}, [map, options, region, bounds])

components/map/enhancers/filters/circle-filter/circle-picker/circle-renderer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function CircleRenderer({
4747
const r = distance(
4848
map.unproject(e.point).toArray(),
4949
[center.lng, center.lat],
50-
{ units: 'miles' }
50+
{ units: 'miles' },
5151
)
5252
setRadius(r)
5353
onDrag(circle)
@@ -193,7 +193,7 @@ export default function CircleRenderer({
193193
const lineEnd = rhumbDestination(
194194
[center.lng, center.lat],
195195
radius * 2,
196-
guidelineAngle
196+
guidelineAngle,
197197
)
198198

199199
const line = lineString([
@@ -222,7 +222,7 @@ export default function CircleRenderer({
222222
.text(radius.toFixed(0) + 'mi')
223223
.attr(
224224
'transform',
225-
`rotate(${-1 * guidelineAngle + 90}) ` + `translate(0, ${translateY})`
225+
`rotate(${-1 * guidelineAngle + 90}) ` + `translate(0, ${translateY})`,
226226
)
227227

228228
const translateX = (() => {
@@ -234,7 +234,7 @@ export default function CircleRenderer({
234234
svgRadiusTextContainer.attr(
235235
'transform',
236236
`rotate(${guidelineAngle - 90}, ${handleXY.x}, ${handleXY.y}) ` +
237-
`translate(${handleXY.x + translateX}, ${handleXY.y})`
237+
`translate(${handleXY.x + translateX}, ${handleXY.y})`,
238238
)
239239
}
240240

components/map/enhancers/filters/helpers.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function dedupedPoints(points) {
99
const duplicatePoint = deduped.find(
1010
(d) =>
1111
d.properties.lat === point.properties.lat &&
12-
d.properties.lon === point.properties.lon
12+
d.properties.lon === point.properties.lon,
1313
)
1414

1515
if (duplicatePoint) console.log('duplicate point!')
@@ -52,7 +52,8 @@ function turfPointsInCircle(points, circle) {
5252
const { lng, lat } = circle.properties.center
5353
return points.filter(
5454
(p) =>
55-
distance(p.geometry.coordinates, [lng, lat], { units: 'miles' }) <= radius
55+
distance(p.geometry.coordinates, [lng, lat], { units: 'miles' }) <=
56+
radius,
5657
)
5758
}
5859

components/map/enhancers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function Enhancers({
2525
if (region) region.properties.type = activeFilter
2626
onChangeRegion(region)
2727
},
28-
[activeFilter]
28+
[activeFilter],
2929
)
3030

3131
useEffect(() => {

components/map/enhancers/ruler.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function useRuler(map, mode = AXES) {
5656
axisBottom(x)
5757
.tickValues(x.domain())
5858
.tickFormat((d) => `${d}°`)
59-
.tickSize(TICK_SIZE)
59+
.tickSize(TICK_SIZE),
6060
)
6161
.call((g) => g.select('.domain').remove())
6262

@@ -74,7 +74,7 @@ function useRuler(map, mode = AXES) {
7474
axisLeft(y)
7575
.tickValues(y.domain())
7676
.tickFormat((d) => `${d}°`)
77-
.tickSize(TICK_SIZE)
77+
.tickSize(TICK_SIZE),
7878
)
7979
.call((g) => g.select('.domain').remove())
8080

@@ -105,10 +105,10 @@ function useRuler(map, mode = AXES) {
105105
.attr('y1', xTickHeight + TICK_MARGIN)
106106
.attr('y2', height),
107107
(update) => update,
108-
(exit) => exit.remove()
108+
(exit) => exit.remove(),
109109
)
110110
.attr('x1', (d) => 0.5 + x(d))
111-
.attr('x2', (d) => 0.5 + x(d))
111+
.attr('x2', (d) => 0.5 + x(d)),
112112
)
113113
.call((g) =>
114114
g
@@ -117,7 +117,7 @@ function useRuler(map, mode = AXES) {
117117
.join(
118118
(enter) => enter.append('line').classed('y', true),
119119
(update) => update,
120-
(exit) => exit.remove()
120+
(exit) => exit.remove(),
121121
)
122122
.attr('y1', (d) => 0.5 + y(d))
123123
.attr('y2', (d) => 0.5 + y(d))
@@ -126,7 +126,7 @@ function useRuler(map, mode = AXES) {
126126
? yTickNodes[i].getBoundingClientRect().width
127127
: 0
128128
return width - yTickWidth - TICK_MARGIN
129-
})
129+
}),
130130
)
131131
},
132132
}

components/sidebar/layers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function Layers({ options, setOptions, children }) {
194194
setTick(
195195
setTimeout(() => {
196196
setSliderChanging(false)
197-
}, 250)
197+
}, 250),
198198
)
199199
}}
200200
onKeyUp={(e) => setSlider('year', e.target.value)}

components/visualization/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function Visualization({ data, options }) {
3737
const counts = binEdges
3838
.map((b, i) => {
3939
return biomassDeltas.filter(
40-
(d) => (d >= binEdges[i]) & (d < binEdges[i + 1])
40+
(d) => (d >= binEdges[i]) & (d < binEdges[i + 1]),
4141
).length
4242
})
4343
.slice(0, nBins)

0 commit comments

Comments
 (0)