|
Last change
on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
1.6 KB
|
| Line | |
|---|
| 1 | var _excluded = ["option", "isActive"];
|
|---|
| 2 | function _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); }
|
|---|
| 3 | function _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; }
|
|---|
| 4 | function _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; }
|
|---|
| 5 | import * as React from 'react';
|
|---|
| 6 | import { Symbols } from '../shape/Symbols';
|
|---|
| 7 | import { Shape } from './ActiveShapeUtils';
|
|---|
| 8 | import { DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME } from './Constants';
|
|---|
| 9 | export 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.