import min from "../node_modules/d3-array/src/min.js";
function targetDepth(e) {
	return e.target.depth;
}
function left(e) {
	return e.depth;
}
function right(e, i) {
	return i - 1 - e.height;
}
function justify(e, i) {
	return e.sourceLinks.length ? e.depth : i - 1;
}
function center(a) {
	return a.targetLinks.length ? a.depth : a.sourceLinks.length ? min(a.sourceLinks, targetDepth) - 1 : 0;
}
export { center, justify, left, right };
