preview = {
const svg = d3
.create("svg")
.attr("width", 400)
.attr("height", 400)
.style("background-color", "#333");
const paths = svg
.selectAll("path")
.data(coords)
.enter()
.append("path")
.attr("d", (d) => {
return d;
})
.style("fill", "rgba(255,255,255,.05)")
.style("stroke", "rgba(255,255,255,.25)")
.attr("transform", "translate(50, 25)");
return svg.node();
}