d3-dag
    Preparing search index...

    Function tweakShape

    • tweak the layout by truncating edges early

      This tweak ends each link where it leaves the Shape of each node it connects, sized by the node's bounding box. It scans the link from each end, dropping every segment inside the node, and cuts the first segment that leaves it. After applying this tweak, edge endings like arrows can be easily rendered in the appropriate place.

      There are three built in Shapes:

      Type Parameters

      • N
      • L

      Parameters

      Returns Tweak<N, L>

      if a link lies entirely inside a node, as when nodes overlap