@tycho-platform/cytoscape-context-menus
Advanced tools
Comparing version 4.1.1 to 4.1.2
{ | ||
"name": "@tycho-platform/cytoscape-context-menus", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "A Cytoscape.js extension to provide context menu around elements and core instance.", | ||
@@ -5,0 +5,0 @@ "main": "cytoscape-context-menus.js", |
@@ -52,3 +52,5 @@ import * as utils from './utils.js'; | ||
// TODO: move this to ContextMenu, just do the binding here | ||
let onCxttap = (event, position) => { | ||
let onCxttap = (event, position, someNode) => { | ||
// Luiz Veronesi: this line has been added in order to retrieve the node within the event | ||
if (typeof someNode !== 'undefined') event.data = { node: someNode }; | ||
setScratchProp('currentCyEvent', event); | ||
@@ -313,2 +315,6 @@ adjustCxtMenu(event, position); // adjust the position of context menu | ||
}, | ||
// Luiz Veronesi - adds hide function | ||
hide: function hide() { | ||
cxtMenu.hide(); | ||
}, | ||
// Sets whether the menuItem with given ID will have a following divider. | ||
@@ -315,0 +321,0 @@ setTrailingDivider: function (itemID, status) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175786
22
2498