Spaces:
Paused
Paused
Download node_modules/@plotly/d3-sankey/src/align.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3-sankey/src/align.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/d3-sankey/src/align.js
-
curl -L -o align.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3-sankey/src/align.js
460 Bytes
| 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; | |
| } | |