UNPKG

@lobehub/charts

Version:

React modern charts components built on recharts

18 lines 595 B
import React from 'react'; import { Dot } from 'recharts'; import { deepEqual } from "../common/utils"; import { jsx as _jsx } from "react/jsx-runtime"; export var renderShape = function renderShape(props, activeNode, activeLegend) { var cx = props.cx, cy = props.cy, width = props.width, node = props.node, fillOpacity = props.fillOpacity, name = props.name; return /*#__PURE__*/_jsx(Dot, { cx: cx, cy: cy, opacity: activeNode || activeLegend && activeLegend !== name ? deepEqual(activeNode, node) ? fillOpacity : 0.3 : fillOpacity, r: width / 2 }); };