viewof features = {
const svg = DOM.svg(canvasTracing.width, canvasTracing.height);
const features = canvasTracing.polylines.map(poly => ({
type: "Feature",
properties: { color: "#A0F" },
geometry: { type: "LineString", coordinates: poly }
}));
svg.value = { type: "FeatureCollection", features };
const path = geoCurvePath(d3.curveBasis);
d3.select(svg)
.attr("fill", "none")
.attr("stroke-width", 2)
.selectAll("path")
.data(features)
.join("path")
.attr("stroke", d => d.properties.color)
.attr("d", path);
return svg;
}