computeBusNodeSpacing method

num computeBusNodeSpacing(
  1. TreeVertex child
)

Get the amount of space to insert between a child vertex and its parent spine when the parent's TreeVertex#alignment is Bus or BusBranching.

This function is called on each child vertex to determine the initial distance of a child from the spine that connects to its parent vertex. This function is not called on the last odd child because that vertex is placed at the end of the spine rather than to either side. @expose @param {TreeVertex} child @return {number} By default this returns the parent's TreeVertex#nodeSpacing; a small value may result in unpleasant routing of links, a negative value may cause the node overlaps.

Implementation

_i2.num computeBusNodeSpacing(_i3.TreeVertex child) => _i4.callMethod(
      this,
      'computeBusNodeSpacing',
      [child],
    );