plot = {
const height = 600;
const ctx = DOM.context2d(width, height);
const l = width
const r = width / height
const w = l / Math.sqrt(1 + 1 / (r * r))
const h = l / Math.sqrt(1 + (r * r))
ctx.clearRect(0, 0, width, height)
ctx.fillStyle = '#000'
ctx.fillRect(0, 0, width, height)
ctx.strokeStyle = 'blue'
ctx.lineWidth = 2
ctx.strokeRect((l - w) / 2, (l - h) / 2, w, h)
const projection = d3['geoEquirectangular']().rotate(30).clipAngle(30).fitExtent([[0, 0], [width,height]], stars);
const geoPath = d3.geoPath(projection, ctx)
ctx.beginPath()
geoPath(map)
return d3.select(ctx.canvas)
.node();
}