UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

20 lines (16 loc) 389 B
import { ShapeComponent as SC } from '../../runtime'; import { Color } from './color'; export type HexagonOptions = Record<string, any>; /** * ⭓ */ export const Hexagon: SC<HexagonOptions> = (options, context) => { return Color( { colorAttribute: 'fill', symbol: 'hexagon', ...options }, context, ); }; Hexagon.props = { defaultMarker: 'hexagon', ...Color.props, };