Skip to content

Commit d41ec08

Browse files
committed
linting
1 parent 63e725c commit d41ec08

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

src/components/OrdinalFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import {
3333
calculateMargin,
3434
objectifyType,
3535
keyAndObjectifyBarData,
36-
generateOrdinalFrameEventListeners,
36+
// generateOrdinalFrameEventListeners,
3737
adjustedPositionSize,
3838
orFrameConnectionRenderer,
3939
orFrameAxisGenerator

src/components/XYFrame.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,7 @@ class XYFrame extends React.Component {
160160
}
161161
}
162162

163-
screenScales({
164-
xExtent,
165-
yExtent,
166-
currentProps,
167-
adjustedSize,
168-
xScaleType,
169-
yScaleType
170-
}) {
163+
screenScales({ xExtent, yExtent, adjustedSize, xScaleType, yScaleType }) {
171164
const xDomain = [0, adjustedSize[0]]
172165
const yDomain = [adjustedSize[1], 0]
173166

src/components/svg/areaDrawing.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { contourDensity } from "d3-contour"
22
import { scaleLinear } from "d3-scale"
33
import polylabel from "@mapbox/polylabel"
44
import { hexbin } from "d3-hexbin"
5-
import { circlePath } from "./frameFunctions"
65

76
export function contouring({ areaType, data, finalXExtent, finalYExtent }) {
87
let projectedAreas = []
@@ -78,7 +77,7 @@ export function hexbinning({
7877
}
7978

8079
const {
81-
binGraphic = "hex",
80+
// binGraphic = "hex",
8281
bins = 0.05,
8382
cellPx,
8483
binValue = d => d.length
@@ -106,8 +105,7 @@ export function hexbinning({
106105

107106
const hexMax = Math.max(...hexes.map(d => binValue(d)))
108107

109-
//Option for blank hexes?
110-
const hexastring = hexbinner.hexagon()
108+
//Option for blank hexe
111109
const hexBase = [
112110
[0, -1],
113111
[0.866, -0.5],
@@ -125,7 +123,7 @@ export function hexbinning({
125123
d[1] * hexHeight
126124
])
127125

128-
const hexbinProjectedAreas = hexes.map((d, i) => {
126+
const hexbinProjectedAreas = hexes.map(d => {
129127
const hexValue = binValue(d)
130128
d.x = hexBinXScale.invert(d.x)
131129
d.y = hexBinYScale.invert(d.y)
@@ -150,18 +148,15 @@ export function heatmapping({
150148
data,
151149
finalXExtent,
152150
finalYExtent,
153-
size,
154-
xScale,
155-
yScale
151+
size
156152
}) {
157153
let projectedAreas = []
158154
if (!areaType.type) {
159155
areaType = { type: areaType }
160156
}
161157

162158
const {
163-
binGraphic = "square",
164-
resolution = 0.05,
159+
// binGraphic = "square",
165160
binValue = d => d.length,
166161
xBins = areaType.yBins || 0.05,
167162
yBins = xBins,

0 commit comments

Comments
 (0)