{"version":3,"file":"renderShape.mjs","names":[],"sources":["../../src/ScatterChart/renderShape.tsx"],"sourcesContent":["import React from 'react';\nimport { Dot } from 'recharts';\n\nimport { deepEqual } from '@/common/utils';\n\nexport const renderShape = (\n  props: any,\n  activeNode: any | undefined,\n  activeLegend: string | undefined,\n) => {\n  const { cx, cy, width, node, fillOpacity, name } = props;\n\n  return (\n    <Dot\n      cx={cx}\n      cy={cy}\n      opacity={\n        activeNode || (activeLegend && activeLegend !== name)\n          ? deepEqual(activeNode, node)\n            ? fillOpacity\n            : 0.3\n          : fillOpacity\n      }\n      r={width / 2}\n    />\n  );\n};\n"],"mappings":";;;;;AAKA,MAAa,eACX,OACA,YACA,iBACG;CACH,MAAM,EAAE,IAAI,IAAI,OAAO,MAAM,aAAa,SAAS;CAEnD,OACE,oBAAC,KAAD;EACM;EACA;EACJ,SACE,cAAe,gBAAgB,iBAAiB,OAC5C,UAAU,YAAY,IAAI,IACxB,cACA,KACF;EAEN,GAAG,QAAQ;CACZ,CAAA;AAEL"}