{
const svg = d3.create("svg"),
components = gridLayout(6, 3, 25, true);
svg.attr("viewBox", [0, 0, components.outer_width, components.outer_height]);
const cmp = svg
.selectAll("g")
.data(components.items)
.enter();
cmp
.append("rect")
.attr("class", (_, i) => `item_${i + 1}`)
.attr("transform", d => `translate(${d.x}, ${d.y})`)
.attr("width", d => d.width)
.attr("height", d => d.height)
.attr("fill", "white")
.attr("stroke", "black");
return svg.node();
}