import { Path , path } from 'd3-path' ; export function drawSquare ( context , width ) { if ( ! context ) { context = path ( ) ; } const x = - width / 2 ; context . rect ( x , x , width , width ) ; return context ; }