import { select as e } from "d3-selection";
function t(t, n) {
	let { width: r, height: i, margin: a, compact: o } = n;
	return t.replaceChildren(), o && (t.style.height = i + "px", t.style.lineHeight = i + "px"), e(t).append("svg").attr("width", r + a.left + a.right).attr("height", i + a.top + a.bottom).append("g").attr("transform", `translate(${a.left},${a.top})`);
}
export { t as createSvgContainer };

//# sourceMappingURL=createSvgContainer.js.map