import { Path , path } from 'd3-path' ; export function drawDiamond ( context , radius ) { if ( ! context ) { context = path ( ) ; } context . moveTo ( - radius , 0 ) ; context . lineTo ( 0 , - radius ) ; context . lineTo ( radius , 0 ) ; context . lineTo ( 0 , radius ) ; context . closePath ( ) ; return context ; }