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