import { Path , path } from 'd3-path' ; export function drawCross ( context , radius ) { if ( ! context ) { context = path ( ) ; } const s = radius / 2.5 ; context . moveTo ( - radius , - s ) ; context . lineTo ( - radius , s ) ; context . lineTo ( - s , s ) ; context . lineTo ( - s , radius ) ; context . lineTo ( s , radius ) ; context . lineTo ( s , s ) ; context . lineTo ( radius , s ) ; context . lineTo ( radius , - s ) ; context . lineTo ( s , - s ) ; context . lineTo ( s , - radius ) ; context . lineTo ( - s , - radius ) ; context . lineTo ( - s , - s ) ; context . closePath ( ) ; return context ; }