Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return null
})}
)
}
)
SwarmPlot.displayName = 'SwarmPlot'
SwarmPlot.propTypes = SwarmPlotPropTypes
SwarmPlot.defaultProps = {
...SwarmPlotDefaultProps,
renderNode: props => , // eslint-disable-line react/display-name
}
export default withContainer(SwarmPlot)
areaGenerator,
})}
)
}
return layerById[layer]
})}
)
}
AreaBump.propTypes = AreaBumpPropTypes
AreaBump.defaultProps = AreaBumpDefaultProps
export default memo(withContainer(AreaBump))
height: outerHeight,
cursor: isInteractive ? 'auto' : 'normal',
}}
onMouseEnter={isInteractive ? handleMouseHover : undefined}
onMouseMove={isInteractive ? handleMouseHover : undefined}
onMouseLeave={isInteractive ? handleMouseLeave : undefined}
onClick={isInteractive ? handleClick : undefined}
/>
)
}
)
ChordCanvas.propTypes = ChordCanvasPropTypes
ChordCanvas.defaultProps = ChordCanvasDefaultProps
export default withContainer(ChordCanvas)
/>
)
})}
)
}
export default memo(withContainer(BumpChart))
containerWidth={width}
containerHeight={height}
data={legendData}
theme={theme}
/>
))}
)
}
)
Radar.displayName = 'Radar'
Radar.propTypes = RadarPropTypes
Radar.defaultProps = RadarDefaultProps
export default withContainer(Radar)
areaGenerator,
})}
)
}
return layerById[layer]
})}
)
}
Line.propTypes = LinePropTypes
Line.defaultProps = LineDefaultProps
export default withContainer(Line)
if (typeof layer === 'function') {
return (
{React.createElement(layer, customLayerProps)}
)
}
throw new Error(`Unknown layer (${layer})`)
})}
)
}
ScatterPlot.propTypes = ScatterPlotPropTypes
ScatterPlot.defaultProps = ScatterPlotDefaultProps
export default memo(withContainer(ScatterPlot))
return layerById[layer]
}
if (typeof layer === 'function') {
return {layer(layerContext)}
}
return null
})}
)
}
Chord.propTypes = ChordPropTypes
Chord.defaultProps = ChordDefaultProps
export default withContainer(Chord)
onMouseMove={isInteractive ? handleMouseHover : undefined}
onMouseLeave={isInteractive ? handleMouseLeave : undefined}
onClick={isInteractive ? handleClick : undefined}
/>
)
}
)
SwarmPlotCanvas.displayName = 'SwarmPlotCanvas'
SwarmPlotCanvas.propTypes = SwarmPlotCanvasPropTypes
SwarmPlotCanvas.defaultProps = {
...SwarmPlotCanvasDefaultProps,
renderNode: renderCanvasNode,
}
export default withContainer(SwarmPlotCanvas)
)
})
}
return {layer({})}
})}
)
}
)
Choropleth.displayName = 'Choropleth'
Choropleth.propTypes = ChoroplethPropTypes
Choropleth.defaultProps = ChoroplethDefaultProps
export default withContainer(Choropleth)