UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

22 lines (18 loc) 457 B
import { ShapeComponent as SC } from '../../runtime'; import { Color } from './color'; // @todo export type PathOptions = { [key: string]: any; }; /** * A filled path. */ export const Path: SC<PathOptions> = (options, context) => { return Color({ colorAttribute: 'fill', ...options }, context); }; Path.props = { defaultMarker: 'hvh', defaultEnterAnimation: 'fadeIn', defaultUpdateAnimation: 'morphing', defaultExitAnimation: 'fadeOut', };