Interface CoordCenter

A Coord that spaces every node out by node size, and then centers them.

This is a very fast operator, but doesn't produce very pleasing layouts.

Create with coordCenter.

Hierarchy

  • Coord<unknown, unknown>
    • CoordCenter
  • assign coordinates to a layered graph

    Type Parameters

    • N extends unknown

    • L extends unknown

    Parameters

    • layers: SugiNode<N, L>[][]

      a layered graph of sugiyama nodes

    • sep: SugiSeparation<N, L>

      how much horizontal separation should exist between nodes

    Returns number

    width - the total width of the layout

Generated using TypeDoc