UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

15 lines (11 loc) 354 B
import { curveStep } from 'd3-shape'; import { ShapeComponent as SC } from '../../runtime'; import { Curve } from './curve'; export type HVHOptions = Record<string, any>; export const HVH: SC<HVHOptions> = (options, context) => { return Curve({ curve: curveStep, ...options }, context); }; HVH.props = { ...Curve.props, defaultMarker: 'hvh', };