@antv/g2
Version:
the Grammar of Graphics in Javascript
15 lines (11 loc) • 372 B
text/typescript
import { curveStepAfter } from '@antv/vendor/d3-shape';
import { ShapeComponent as SC } from '../../runtime';
import { Curve } from './curve';
export type HVOptions = Record<string, any>;
export const HV: SC<HVOptions> = (options, context) => {
return Curve({ curve: curveStepAfter, ...options }, context);
};
HV.props = {
...Curve.props,
defaultMarker: 'hv',
};