| 1234567891011 |
- import { curveLinearClosed, curveLinear } from 'd3-shape';
- import { isPolar } from '../../utils/coordinate';
- import { Curve } from './curve';
- export const Area = (options) => {
- return (P, value, coordinate, theme) => {
- const curve = isPolar(coordinate) ? curveLinearClosed : curveLinear;
- return Curve(Object.assign({ curve: curve }, options))(P, value, coordinate, theme);
- };
- };
- Area.props = Object.assign(Object.assign({}, Curve.props), { defaultMarker: 'square' });
- //# sourceMappingURL=area.js.map
|