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