Function link

  • Returns a new link generator using the specified curve. For example, to visualize links in a tree diagram rooted on the top edge of the display

    With the default settings the link generator accepts a link object conforming to the DefaultLinkObject interface.

    Parameters

    Returns Link<any, DefaultLinkObject, [number, number]>

  • Returns a new link generator using the specified curve. For example, to visualize links in a tree diagram rooted on the top edge of the display

    Important: Ensure that the accessor functions are configured to work with the link and node datum types specified in the generics.

    The first generic corresponds to the datum type of the link object for which the link is to be generated.

    The second generic corresponds to the datum type of the source/target node contained in the link object.

    Type Parameters

    • LinkDatum

    • NodeDatum

    Parameters

    Returns Link<any, LinkDatum, NodeDatum>

  • Returns a new link generator using the specified curve. For example, to visualize links in a tree diagram rooted on the top edge of the display

    Important: Ensure that the accessor functions are configured to work with the link and node datum types specified in the generics.

    The first generic corresponds to the type of the "this" context within which the link generator and its accessor functions will be invoked.

    The second generic corresponds to the datum type of the link object for which the link is to be generated.

    The third generic corresponds to the datum type of the source/target node contained in the link object.

    Type Parameters

    • This

    • LinkDatum

    • NodeDatum

    Parameters

    Returns Link<This, LinkDatum, NodeDatum>