mhlr / canviz

Automatically exported from code.google.com/p/canviz
0 stars 0 forks source link

edges div-tag overlaps nodes a-tag #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. generate a graph where edges overlap clickable node

What is the expected output? What do you see instead?
i expect the a-element representing a node to be clickable. since the 
div-element representing an edge overlaps - think of an arrow at 45°, which 
generates a pretty large div - the node it is not clickable.

What version of the product are you using? On what operating system?
any

Please provide any additional information below.
patching canvas.js to render edges prior to nodes solved the problem for me.

~/> diff canviz.js.dist canviz.js
402c402
< [this.subgraphs, this.nodes, this.edges].each(function(type) {

---
> [this.subgraphs, this.edges, this.nodes].each(function(type) {

Original issue reported on code.google.com by jeich...@googlemail.com on 24 Jan 2012 at 2:39

GoogleCodeExporter commented 9 years ago
Yes, that would make the node div be on top of the edge div. But what if you 
were actually trying to click the arrowhead of the edge? See also issue #50: 
the arrowhead could have a different URL than the tail or the rest of the edge. 
I think the real solution for correct handling of clickable regions will be 
finishing either issue #56 or issue #11.

Original comment by ryandesi...@gmail.com on 25 Jan 2012 at 7:47

GoogleCodeExporter commented 9 years ago
I just realized that issue #69 is a duplicate of #63.  I have a patch uploaded 
there against the released version, if the OP is interested.

Original comment by tilgh...@meg.abyt.es on 26 Feb 2013 at 4:59