| import {min} from "d3-array"; | |
| function targetDepth(d) { | |
| return d.target.depth; | |
| } | |
| export function left(node) { | |
| return node.depth; | |
| } | |
| export function right(node, n) { | |
| return n - 1 - node.height; | |
| } | |
| export function justify(node, n) { | |
| return node.sourceLinks.length ? node.depth : n - 1; | |
| } | |
| export function center(node) { | |
| return node.targetLinks.length ? node.depth | |
| : node.sourceLinks.length ? min(node.sourceLinks, targetDepth) - 1 | |
| : 0; | |
| } | |
Xet Storage Details
- Size:
- 460 Bytes
- Xet hash:
- 3e02ee45340dcbe448f4a88274109df069d8ee5c5577d02a170b42896de39f6c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.