align method

  1. @override
int align(
  1. SankeyNode node,
  2. int n
)
override

Implementation

@override
int align(SankeyNode node, int n) {
  if (node.outLinks.isEmpty) {
    return n - 1;
  }
  return node.depth;
}