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.4 to 3.0.5

14

cytoscape-context-menus.js

@@ -202,5 +202,3 @@ ;(function(){ 'use strict';

if (currentCxtMenuPosition != cyPos) {
var cxtMenuWidth = $cxtMenu.width();
var cxtMenuHeight = $cxtMenu.height();
if( currentCxtMenuPosition != cyPos ) {
hideMenuItemComponents();

@@ -215,13 +213,3 @@ setScratchProp('anyVisibleChild', false);// we hide all children there is no visible child remaining

var top = containerPos.top + renderedPos.y;
var windowHeight = window.innerHeight;
var windowWidth = window.innerWidth;
if (left + cxtMenuWidth > windowWidth) {
left = left - cxtMenuWidth;
}
if (top + cxtMenuHeight > windowHeight) {
top = top - cxtMenuHeight
}
$cxtMenu.css('left', left);

@@ -228,0 +216,0 @@ $cxtMenu.css('top', top);

2

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

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

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