Hareeshchandera / jsplumb

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

selectEndpoints method #264

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
it might be nice to add a 'selectEndpoints' method that works in the same way 
as the 'select' method does for Connections.

Original issue reported on code.google.com by simon.po...@gmail.com on 19 Jul 2012 at 7:51

GoogleCodeExporter commented 8 years ago
proposed methods available on selectEndpoints return value:

- detachAll (connections)
- delete  (endpoint)
- setHover
- removeAllOverlays
- setLabel
- addOverlay
- removeOverlay
- removeOverlays
- showOverlay
- hideOverlay
- showOverlays
- hideOverlays
- setPaintStyle
- setHoverPaintStyle
- getLabel
- getOverlay
- isHover
- isDetachable
- getParameter
- getParameters
- getPaintStyle
- getHoverPaintStyle
- length
- get (a particular endpoint in the returned list)
- each (iterator)

Original comment by simon.po...@gmail.com on 21 Jul 2012 at 7:14

GoogleCodeExporter commented 8 years ago
proposed filters:

element  - a string, a selector, a DOM element, or an array of any mixture of 
these.  match either source or target endpoints from anything matched by this 
parameter

source - as for element, but only match endpoints marked 'isSource'

target - as for element, but only match endpoints marked 'isTarget'

scope - a single string or array of strings, denoting scope for retrieved 
endpoints.

Original comment by simon.po...@gmail.com on 24 Jul 2012 at 11:10

GoogleCodeExporter commented 8 years ago
this is checked in to dev in 1.3.11 now.  final list of supported methods is:

- detachAll (connections)
- delete  (endpoint)
- setHover
- removeAllOverlays
- setLabel
- addOverlay
- removeOverlay
- removeOverlays
- showOverlay
- hideOverlay
- showOverlays
- hideOverlays
- setPaintStyle
- setHoverPaintStyle
- getLabel
- getOverlay
- isHover
- getParameter
- getParameters
- getPaintStyle
- getHoverPaintStyle
- length
- get (a particular endpoint in the returned list)
- each (iterator)

Original comment by simon.po...@gmail.com on 24 Jul 2012 at 11:45

GoogleCodeExporter commented 8 years ago

Original comment by simon.po...@gmail.com on 29 Jul 2012 at 5:25