@semcore/chart
Version:
Semrush Chart Component
46 lines • 1.86 kB
JavaScript
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _inherits from "@babel/runtime/helpers/inherits";
import _createSuper from "@babel/runtime/helpers/createSuper";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
var _excluded = ["fillOpacity", "activeFillOpacity", "active"];
import React from 'react';
import propsForElement from '@semcore/utils/lib/propsForElement';
import { colors } from '../../utils/colors';
/**
* @deprecated Please, use package `@semcore/ui/d3-chart` instead. Package `@semcore/chart` is deprecated.
*/
var VennArea = /*#__PURE__*/function (_React$PureComponent) {
_inherits(VennArea, _React$PureComponent);
var _super = _createSuper(VennArea);
function VennArea() {
_classCallCheck(this, VennArea);
return _super.apply(this, arguments);
}
_createClass(VennArea, [{
key: "render",
value: function render() {
var _this$props = this.props,
fillOpacity = _this$props.fillOpacity,
activeFillOpacity = _this$props.activeFillOpacity,
active = _this$props.active,
other = _objectWithoutProperties(_this$props, _excluded);
return /*#__PURE__*/React.createElement("circle", _extends({
fillOpacity: active ? activeFillOpacity : fillOpacity
}, propsForElement(other)));
}
}]);
return VennArea;
}(React.PureComponent);
_defineProperty(VennArea, "displayName", 'VennArea');
_defineProperty(VennArea, "defaultProps", {
fill: colors['blue-01'],
fillOpacity: 0.5,
activeFillOpacity: 0.7,
stroke: colors['white'],
strokeWidth: 2
});
export { VennArea as default };
//# sourceMappingURL=VennArea.js.map