UNPKG

d3-hierarchy

Version:

Layout algorithms for visualizing hierarchical data.

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