UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

20 lines (16 loc) 386 B
import { ShapeComponent as SC } from '../../runtime'; import { Color } from './color'; export type BowtieOptions = Record<string, any>; /** * ▶◀ */ export const Bowtie: SC<BowtieOptions> = (options, context) => { return Color( { colorAttribute: 'fill', symbol: 'bowtie', ...options }, context, ); }; Bowtie.props = { defaultMarker: 'bowtie', ...Color.props, };