getLinkPointFromPoint method

Point getLinkPointFromPoint(
  1. Node? node,
  2. GraphObject? port,
  3. Point focus,
  4. Point p,
  5. bool from, [
  6. Point? result,
])

Compute the intersection point in document coordinates for the edge of a particular port GraphObject, given a point, when no particular spot or side has been specified. @expose @param {Node} node @param {GraphObject} port the GraphObject representing a port on the node. @param {Point} focus the point in document coordinates to/from which the link should point, normally the center of the port. @param {Point} p often this point is far away from the node, to give a general direction, particularly an orthogonal one. @param {boolean} from true if the link is coming out of the port; false if going to the port. @param {Point=} result an optional Point that is modified and returned; otherwise it allocates and returns a new Point @return {Point} the point in document coordinates of the intersection point on the edge of the port. @since 1.2

Implementation

_i3.Point getLinkPointFromPoint(
  _i3.Node? node,
  _i3.GraphObject? port,
  _i3.Point focus,
  _i3.Point p,
  _i2.bool from, [
  _i3.Point? result,
]) =>
    _i4.callMethod(
      this,
      'getLinkPointFromPoint',
      [
        node ?? _i5.undefined,
        port ?? _i5.undefined,
        focus,
        p,
        from,
        result ?? _i5.undefined,
      ],
    );