getLinkPoint method

Point getLinkPoint(
  1. Node? node,
  2. GraphObject port,
  3. Spot spot,
  4. bool from,
  5. bool ortho,
  6. Node? othernode,
  7. GraphObject otherport, [
  8. Point? result,
])

Compute the point on a node/port in document coordinates at which the route of a link should end. @expose @param {Node} node @param {GraphObject} port the GraphObject representing a port on the node. @param {Spot} spot a Spot value describing where the link should connect. @param {boolean} from true if the link is coming out of the port; false if going to the port. @param {boolean} ortho whether the link should have orthogonal segments. @param {Node} othernode the node at the other end of the link. @param {GraphObject} otherport the GraphObject port at the other end of the link. @param {Point=} result an optional Point that is modified and returned; otherwise it allocates and returns a new Point @return {Point} in document coordinates. @since 1.2

Implementation

_i3.Point getLinkPoint(
  _i3.Node? node,
  _i3.GraphObject port,
  _i3.Spot spot,
  _i2.bool from,
  _i2.bool ortho,
  _i3.Node? othernode,
  _i3.GraphObject otherport, [
  _i3.Point? result,
]) =>
    _i4.callMethod(
      this,
      'getLinkPoint',
      [
        node ?? _i5.undefined,
        port,
        spot,
        from,
        ortho,
        othernode ?? _i5.undefined,
        otherport,
        result ?? _i5.undefined,
      ],
    );