d3-process-map icon indicating copy to clipboard operation
d3-process-map copied to clipboard

Possible to connect a vertex to itself?

Open plarem opened this issue 11 years ago • 2 comments

Is it possible to show a connection from a vertex to vertex itself? I want to display an ontology and I will use the d3-process-map. But now you cannot connect a vertex to itself.

plarem avatar Aug 22 '14 14:08 plarem

There's no functionality in the project to do that. It's certainly possible to add it, but I don't have time to work on it right now.

SVG paths only support cubic beziers, which is probably not enough degrees of freedom to make a nice-looking curve from one edge of the rectangle to another. You'd want to splice together 2 or more bezier curves, and make sure the code to show dependencies works with self-references like this.

Here's an example implementation of higher-order curves: http://www.jasondavies.com/animated-bezier/

nylen avatar Aug 22 '14 17:08 nylen

Reopening as this would be a nice enhancement.

nylen avatar Aug 29 '14 19:08 nylen