Hareeshchandera / jsplumb

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

Can we toggle (visbility) one or more end-point(s)? #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1)Can we toggle the visibility of an end point?
2)Associated connections and their other end end-points should behave same.  

Original issue reported on code.google.com by rkkil...@gmail.com on 12 Apr 2011 at 9:42

GoogleCodeExporter commented 8 years ago
in point (2) do you mean that hiding an Endpoint should result in all 
Connections emanating from the Endpoint being hidden too? that would make sense 
of course.  if a Connection goes to an Endpoint that has Connections to other 
elements, though, the other Endpoint would not be hidden.

targeting 1.2.6 for this.

Original comment by simon.po...@gmail.com on 12 Apr 2011 at 11:53

GoogleCodeExporter commented 8 years ago

Original comment by simon.po...@gmail.com on 29 Apr 2011 at 8:38

GoogleCodeExporter commented 8 years ago
the work for this is done and is in 1.2.6-RC1 in the repo now.

i added two methods to both Endpoint and Connection:

boolean isVisible()
void setVisible(boolean visible)

all Connections attached to an Endpoint have their visibility changed whenever 
the Endpoint's visibility is changed, and the visibility of the other Endpoints 
in each of those Connections is also changed, unless the other Endpoint has 
Connections elsewhere.

Original comment by simon.po...@gmail.com on 29 Apr 2011 at 9:34