computeBusLastRowSpacing method

num computeBusLastRowSpacing(
  1. TreeVertex lastchild,
  2. num dist
)

Get the amound of space to leave between the sibling child vertexes and this last odd vertex when the parent's TreeVertex#alignment is Bus or BusBranching.

This function is called only when there is an odd number of child vertexes. This function is not called when the parent vertex only has one child. In that case there is no spine separating the two columns of child vertexes. @expose @param {TreeVertex} lastchild @param {number} dist the length of the central line (spine) separating the two sides, so far excluding the initial TreeVertex#nodeSpacing that extends form the parent's spine. @return {number} By default this returns the parent's TreeVertex#rowSpacing; a negative value may cause node overlaps.

Implementation

_i2.num computeBusLastRowSpacing(
  _i3.TreeVertex lastchild,
  _i2.num dist,
) =>
    _i4.callMethod(
      this,
      'computeBusLastRowSpacing',
      [
        lastchild,
        dist,
      ],
    );