cytoscape / cytoscape.js-cxtmenu

Context menu for Cytoscape.js
MIT License
165 stars 83 forks source link

Implemented outsideMenuCancel option #114

Closed HEmile closed 3 years ago

HEmile commented 3 years ago

Hi there, This implements the behavior discussed in https://github.com/cytoscape/cytoscape.js-cxtmenu/issues/81#issuecomment-523057425 , with the option to set extra padding outside the spotlight before canceling. The default option is set to false. Implementation is relatively straightforward, but let me know if there are issues.

maxkfranz commented 3 years ago

Looks good, @HEmile!

Would you add your new feature to the readme? It would be good to also have a demo to show it off.

HEmile commented 3 years ago

Should this do?

maxkfranz commented 3 years ago

Released as v3.4.0. Thanks for the PR, @HEmile!