UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

17 lines (13 loc) 403 B
import { curveStepAfter } from '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 (...params) => { return Curve({ curve: curveStepAfter, ...options }, context)(...params); }; }; HV.props = { ...Curve.props, defaultMarker: 'hv', };