My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 45: [xdot] Adding URL support for edges
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----

Sign in to add a comment
Reported by musically.ut, Nov 20, 2010
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.

1.7 KB   View   Download
Feb 13, 2011
Project Member #1
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
Project Member #2
(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

Powered by Google Project Hosting