import React from 'react' ; import { CommonProps } from '../Group' ; import { CommonShapeProps , GPath } from './common' ; export interface MarkerStyle extends CommonShapeProps { description description r : number ; description description symbol : 'circle' | 'square' | 'diamond' | 'triangle' | 'triangle-down' | ( ( x : number , y : number , r : number ) => GPath [ ] ) ; } interface MarkerProps extends CommonProps { description style : MarkerStyle ; } const Marker = ( props ) => { const { children , ... rest } = props ; return ( < div data - attr = { { ... rest , type : 'marker' , } } > { children } < /div>); } ; export default Marker ;