cytoscape / cytoscape.js-edgehandles

Edge creation UI extension for Cytoscape.js
MIT License
167 stars 87 forks source link

Feature request: add an option to enable/disable extension on a per node basis #167

Closed arthabus closed 2 years ago

arthabus commented 2 years ago

Is it possible to provide an option that would check if a node accepts handles before showing the handles?

Something like an additional function in options that would get a node as a parameter and return true/false to indicate if a specific node should be considered for the handles logic:

options: {
    ...
    isEdgeHandleEnabled: (node) => {
        return true
    }
}
stale[bot] commented 2 years ago

This issue has been automatically marked as stale, because it has not had activity within the past 30 days. It will be closed if no further activity occurs within the next 30 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.