You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.
Is it possible to add support for selecting edges? Something like this:
{{visjs-edge eId=edge.id from=1 to=2 select=(action 'edgeClicked')}}
So that the action can take the edge-id (eID) as first paramerer if set.
I think this should be enough is visjs-network.js:
network.on('selectEdge', (e) => { let [ selectedEdge ] = e.edges; let matchingChildEdge = _this.get('_childLayers').find((c) => { return '${c.get('eId')}' === '${selectedEdge}'; }); if (matchingChildEdge) { matchingChildEdge.get('select')(selectedEdge, e); } });
I can send a pull request if the feature is wanted. Thanks for a great addon.
The text was updated successfully, but these errors were encountered: