@@ -2,7 +2,6 @@ import { contourDensity } from "d3-contour"
22import { scaleLinear } from "d3-scale"
33import polylabel from "@mapbox/polylabel"
44import { hexbin } from "d3-hexbin"
5- import { circlePath } from "./frameFunctions"
65
76export 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