UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

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