Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{interpolatedStyles.map(({ key, style, data }) => {
const color = getInterpolatedColor(style)
return (
)
{interpolatedStyles.map(({ key, style, data: node }) => {
const color = getInterpolatedColor(style)
return (
{interpolatedStyles.map(({ key, style, data: marker }) => {
const color = getInterpolatedColor(style)
return React.createElement(component, {
key,
...marker,
...style,
color,
data: marker,
onMouseEnter: partial(this.handleMouseEnter, marker),
onMouseMove: partial(this.handleMouseEnter, marker),
onMouseLeave: partial(this.handleMouseLeave, marker),
onClick: partial(this.handleClick, marker),
})
})}
{interpolatedStyles.map(({ style, data: node }) => {
style.color = getInterpolatedColor(style)
return React.createElement(nodeComponent, {
key: node.path,
node,
style: {
...style,
fill: node.fill,
borderWidth,
borderColor: getBorderColor(style),
labelTextColor: getLabelTextColor(style),
orientLabel,
},
handlers: getHandlers(node, showTooltip, hideTooltip),
})
})}
{interpolatedStyles.map(({ key, style, data: arc }) => {
const color = getInterpolatedColor(style)
return (
{interpolatedStyles.map(({ style, data: node }) => {
style.color = getInterpolatedColor(style)
return React.createElement(nodeComponent, {
key: node.path,
node,
style: {
...style,
fill: node.fill,
borderWidth,
borderColor: getBorderColor(style),
labelTextColor: getLabelTextColor(style),
orientLabel,
},
handlers: getHandlers(node, showTooltip, hideTooltip),
theme,
})
})}
{interpolatedStyles.map(({ style, data: node }) => {
style.color = getInterpolatedColor(style)
return React.createElement(nodeComponent, {
key: node.path,
node,
style: {
...style,
fill: node.fill,
borderWidth,
borderColor: getBorderColor(style),
labelTextColor: getLabelTextColor(style),
},
handlers: getHandlers(node, showTooltip, hideTooltip),
theme,
})
})}
({ key, style, data: node }) => {
const color = getInterpolatedColor(style)
return React.createElement(Cell, {
key,
data: node,
value: node.value,
x: style.x,
y: style.y,
width: Math.max(style.width, 0),
height: Math.max(style.height, 0),
color,
opacity: style.opacity,
borderWidth: cellBorderWidth,
borderColor: getCellBorderColor({
...node,
color,
}),
{interpolatedStyles.map(({ key, style, data: ribbon }) => {
const color = getInterpolatedColor(style)
return (
{interpolatedStyles.map(({ key, style, data }) => {
const color = getInterpolatedColor(style)
return React.createElement(component, {
key,
index: Number(key),
data,
x: style.x,
y: style.y,
width: Math.max(style.width, 0),
height: Math.max(style.height, 0),
color,
onMouseEnter: partial(this.handleMouseEnter, data),
onMouseMove: partial(this.handleMouseEnter, data),
onMouseLeave: partial(this.handleMouseLeave, data),
onClick: partial(this.handleClick, data),
})
})}