UNPKG

d3-hierarchy

Version:

Layout algorithms for visualizing hierarchical data.

7 lines (5 loc) 176 B
import dice from "./dice.js"; import slice from "./slice.js"; export default function(parent, x0, y0, x1, y1) { (parent.depth & 1 ? slice : dice)(parent, x0, y0, x1, y1); }