Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tycho-platform/cytoscape-context-menus

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tycho-platform/cytoscape-context-menus - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

@tycho-platform/cytoscape-context-menus.js

2

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc