|Issue 45:||[xdot] Adding URL support for edges|
|3 people starred this issue and may be notified of changes.||Back to list|
The Nodes have the attribute URL which allows for catching the 'click' signal while embedding the widget and doing awesome things. However, the edges do not have this attribute. This patch should correct the issue. PS: The indentation might be a little off.
Feb 13, 2011
Your Edge::get_url computes the distance to the edge end points only. This is the opposite of the desired here, as it will interfere with the edge-jumps, and it will ignore clicks on the middle of the edge. The right way would be to: compute the minimum distance to each line segment for each successive line pair of the edge; and each point; accept if less than a threshold and neares point not the start/end point.
Labels: -Type-Defect Type-Enhancement
Apr 8, 2013
(No comment was entered for this change.)
Summary: [xdot] Adding URL support for edges (was: Adding URL support for edges)
|► Sign in to add a comment|