Blame view

天文台pc/tianwentai-ui/node_modules/recharts/es6/shape/Dot.js 971 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
  /**
   * @fileOverview Dot
   */
  import React from 'react';
  import clsx from 'clsx';
  import { adaptEventHandlers } from '../util/types';
  import { filterProps } from '../util/ReactUtils';
  export var Dot = function Dot(props) {
    var cx = props.cx,
      cy = props.cy,
      r = props.r,
      className = props.className;
    var layerClass = clsx('recharts-dot', className);
    if (cx === +cx && cy === +cy && r === +r) {
      return /*#__PURE__*/React.createElement("circle", _extends({}, filterProps(props, false), adaptEventHandlers(props), {
        className: layerClass,
        cx: cx,
        cy: cy,
        r: r
      }));
    }
    return null;
  };