source: node_modules/recharts/es6/util/ScatterUtils.js@ ba17441

Last change on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Added visualizations

  • Property mode set to 100644
File size: 1.6 KB
Line 
1var _excluded = ["option", "isActive"];
2function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5import * as React from 'react';
6import { Symbols } from '../shape/Symbols';
7import { Shape } from './ActiveShapeUtils';
8import { DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME } from './Constants';
9export function ScatterSymbol(_ref) {
10 var {
11 option,
12 isActive
13 } = _ref,
14 props = _objectWithoutProperties(_ref, _excluded);
15 if (typeof option === 'string') {
16 return /*#__PURE__*/React.createElement(Shape, _extends({
17 option: /*#__PURE__*/React.createElement(Symbols, _extends({
18 type: option
19 }, props)),
20 isActive: isActive,
21 shapeType: "symbols"
22 }, props));
23 }
24 return /*#__PURE__*/React.createElement(Shape, _extends({
25 option: option,
26 isActive: isActive,
27 shapeType: "symbols"
28 }, props));
29}
Note: See TracBrowser for help on using the repository browser.