"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const min = require("../d3-array/src-min2.cjs");
function targetDepth(d) {
  return d.target.depth;
}
function left(node) {
  return node.depth;
}
function right(node, n) {
  return n - 1 - node.height;
}
function justify(node, n) {
  return node.sourceLinks.length ? node.depth : n - 1;
}
function center(node) {
  return node.targetLinks.length ? node.depth : node.sourceLinks.length ? min.default(node.sourceLinks, targetDepth) - 1 : 0;
}
exports.center = center;
exports.justify = justify;
exports.left = left;
exports.right = right;
//# sourceMappingURL=src-align.cjs.map
