drawCountries = {
const context = DOM.context2d(width, height),
path = d3.geoPath(projection, context);
yield context.canvas;
context.beginPath();
path({ type: "Sphere" });
context.stroke();
context.lineWidth = .5;
for (const circle of countries.features.map(encloseFeature)) {
context.beginPath();
path(
d3
.geoCircle()
.center(circle.c)
.radius(circle.r)()
);
context.fillStyle = color(circle.r);
context.globalAlpha = .2;
context.fill();
context.globalAlpha = 1;
context.stroke();
}
context.globalAlpha = .1;
context.fillStyle = "#000";
context.beginPath();
path(countries);
context.fill();
}