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