@antv/g2
Version:
the Grammar of Graphics in Javascript
20 lines (16 loc) • 377 B
text/typescript
import { ShapeComponent as SC } from '../../runtime';
import { Color } from './color';
export type PointOptions = Record<string, any>;
/**
* ●
*/
export const Point: SC<PointOptions> = (options, context) => {
return Color(
{ colorAttribute: 'fill', symbol: 'point', ...options },
context,
);
};
Point.props = {
defaultMarker: 'point',
...Color.props,
};