cytoscape / cytoscape.js-edgehandles

Edge creation UI extension for Cytoscape.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

arthabus opened this issue · comments

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
    }
}
commented

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.