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 DiamondOptions = Record<string, any>; /** * ◆ */ export const Diamond: SC<DiamondOptions> = (options, context) => { return Color( { colorAttribute: 'fill', symbol: 'diamond', ...options }, context, ); }; Diamond.props = { defaultMarker: 'diamond', ...Color.props, };