All examples By author By category About

erkal

Directed Links with Polygons

Directed Links with Polygons.

This is an alternative to: Mobile Patent Suits

The mobile patent suits version is here

How? The width of the links and the length & width of arrow-heads are determined by parameters. These parameters are read from the link properties. Nodes must have a property named "r" which then determines the radius of representing circles. This property is used by the creation of the polygon to shorten the link preventing the arrow head disappearing behind the target node.

Explanation of the Code: Click here to see the picture

Why? svg markers don't seem to be easy to play with, particularly if node radii vary.

What more can be done? One may create curved links by using svg path instead of polygon.