linkPath: makeLinkPath()

in src/SankeyDiagram.js [1135:1164]


                linkPath: makeLinkPath(link),
              };
              return <SankeyLink {...linkProps} />;
            },
          )}
          {mapNodesInGroupIf(
            this.props.showNodes,
            'rct-sankey-nodes',
            (node, i, key) => {
              return <SankeyNode {...this.props} {...{ key, graph, node }} />;
            },
          )}
          ;
          {mapNodesInGroupIf(
            this.props.showNodeTerminals,
            'rct-sankey-node-terminals',
            (node, i, key) => {
              return (
                <SankeyNodeTerminal {...this.props} {...{ key, graph, node }} />
              );
            },
          )}
          ;
          {/* the three types of link labels (link, link source, link target) use textpath to follow the link's path */}
          {/* to minimize dom elements, first render one set of path definitions to be used by all three label types */}
          {this.props.showLinkLabels ||
          this.props.showLinkSourceLabels ||
          this.props.showLinkTargetLabels ? (
            <defs>
              {graph.links.map(link => {