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

cytoscape-context-menus

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-context-menus - npm Package Compare versions

Comparing version 3.0.7 to 3.1.0

nbproject/private/private.properties

15

cytoscape-context-menus.js

@@ -10,2 +10,5 @@ ;(function(){ 'use strict';

var defaults = {
// Customize event to bring up the context menu
// Possible options https://js.cytoscape.org/#events/user-input-device-events
evtType: 'cxttap',
// List of initial menu items

@@ -162,5 +165,5 @@ menuItems: [

var cxtCoreFcn;
if(coreAsWell) {
cy.on('cxttap', cxtCoreFcn = function(event) {
cy.on(options.evtType, cxtCoreFcn = function(event) {
var target = event.target || event.cyTarget;

@@ -176,3 +179,3 @@ if( target != cy ) {

if(selector) {
cy.on('cxttap', selector, cxtfcn = function(event) {
cy.on(options.evtType, selector, cxtfcn = function(event) {
_cxtfcn(event);

@@ -367,9 +370,9 @@ });

var cxtCoreFcn = $component.data('cy-context-menus-cxtcorefcn');
if(cxtfcn) {
cy.off('cxttap', selector, cxtfcn);
cy.off(options.evtType, selector, cxtfcn);
}
if(cxtCoreFcn) {
cy.off('cxttap', cxtCoreFcn);
cy.off(options.evtType, cxtCoreFcn);
}

@@ -376,0 +379,0 @@

2

package.json
{
"name": "cytoscape-context-menus",
"version": "3.0.7",
"version": "3.1.0",
"description": "A Cytoscape.js extension to provide context menu around elements and core instance.",

@@ -5,0 +5,0 @@ "main": "cytoscape-context-menus.js",

@@ -11,2 +11,6 @@ cytoscape-context-menus

Please cite the following paper when using this extension:
U. Dogrusoz , A. Karacelik, I. Safarli, H. Balci, L. Dervishi, and M.C. Siper, "[Efficient methods and readily customizable libraries for managing complexity of large networks](https://doi.org/10.1371/journal.pone.0197238)", PLoS ONE, 13(5): e0197238, 2018.
## Demo

@@ -66,2 +70,5 @@

var options = {
// Customize event to bring up the context menu
// Possible options https://js.cytoscape.org/#events/user-input-device-events
evtType: 'cxttap',
// List of initial menu items

@@ -68,0 +75,0 @@ menuItems: [/*

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