Type Alias SimplexWeight<NodeDatum, LinkDatum>

SimplexWeight:
    | readonly [number, number, number]
    | CallableSimplexWeight<NodeDatum, LinkDatum>

an accessor to get how vertical a weight should be.

A weight accessor returns three postitive numbers, where higher numbers indicate than edge should be more vertical. The first number corresponds to short edges, the second to medium edges, and the last one to the middle of long edges. These numbers should generally be increasing.

Type Parameters

  • NodeDatum = never
  • LinkDatum = never