UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

20 lines (16 loc) 371 B
import { ShapeComponent as SC } from '../../runtime'; import { Color } from './color'; export type PlusOptions = Record<string, any>; /** * + */ export const Plus: SC<PlusOptions> = (options, context) => { return Color( { colorAttribute: 'stroke', symbol: 'plus', ...options }, context, ); }; Plus.props = { defaultMarker: 'plus', ...Color.props, };