sankeyLeft function

int sankeyLeft(
  1. SankeyNode node,
  2. int n
)

Positions the node at the left side, using its depth as the column index

This alignment is equivalent to the d3‑sankey "left" alignment

Implementation

int sankeyLeft(SankeyNode node, int n) => node.depth;