function draw (context) {
context.save();
context.clearRect(0, 0, width, height);
context.translate(transform.x, transform.y);
context.scale(transform.k, transform.k);
context.strokeStyle = "#fff";
context.lineWidth = communePathWidth / transform.k;
for (let i = 0, n = data.communes.length; i < n; i++) {
const d = data.communes[i];
context.fillStyle = d.properties.color;
context.beginPath();
path(d);
context.fill();
if (communePathWidth > 0) context.stroke();
}
context.strokeStyle = color_dep;
context.lineWidth = depPathWidth / transform.k;
for (let i = 0, n = data.dep_borders.length; i < n; i++) {
const d = data.dep_borders[i];
context.beginPath();
path(d);
context.stroke();
}
context.restore();
}