@antv/g2
Version:
the Grammar of Graphics in Javascript
22 lines (18 loc) • 477 B
text/typescript
import { ShapeComponent as SC } from '../../runtime';
import { Color } from './color';
// @todo
export type PathOptions = {
[key: string]: any;
};
/**
* A hollow path.
*/
export const Hollow: SC<PathOptions> = (options, context) => {
return Color({ fill: 'none', colorAttribute: 'stroke', ...options }, context);
};
Hollow.props = {
defaultMarker: 'hvh',
defaultEnterAnimation: 'fadeIn',
defaultUpdateAnimation: 'morphing',
defaultExitAnimation: 'fadeOut',
};