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

cytoscape-expand-collapse

Package Overview
Dependencies
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-expand-collapse - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

package.json
{
"name": "cytoscape-expand-collapse",
"version": "3.2.0",
"version": "3.2.1",
"description": "This extension provides an interface to expand-collapse nodes.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -28,2 +28,3 @@ var debounce = require('./debounce');

var $canvas = document.createElement('canvas');
$canvas.classList.add("expand-collapse-canvas");
var $container = cy.container();

@@ -45,4 +46,4 @@ var ctx = $canvas.getContext( '2d' );

var _sizeCanvas = debounce(function () {
$canvas.height = cy.height();
$canvas.width = cy.width();
$canvas.height = cy.container().offsetHeight;
$canvas.width = cy.container().offsetWidth;
$canvas.style.position = 'absolute';

@@ -80,5 +81,2 @@ $canvas.style.top = 0;

// }
window.addEventListener('resize', data.eWindowResize = function () {
sizeCanvas();
});

@@ -207,2 +205,6 @@ function options() {

{
cy.on('resize', data.eCyResize = function () {
sizeCanvas();
});
cy.on('expandcollapse.clearvisualcue', function() {

@@ -365,5 +367,4 @@

.off('free', 'node', data.eFree)
.off('zoom pan', data.eZoom);
window.removeEventListener('resize', data.eWindowResize);
.off('zoom pan', data.eZoom)
.off('resize', data.eCyResize);
},

@@ -390,5 +391,4 @@ rebind: function () {

.on('free', 'node', data.eFree)
.on('zoom pan', data.eZoom);
window.addEventListener('resize', data.eWindowResize);
.on('zoom pan', data.eZoom)
.on('resize', data.eCyResize);
}

@@ -395,0 +395,0 @@ };

@@ -28,3 +28,3 @@ module.exports = function (cy, api) {

var currentPositions = {};
cy.nodes().positions(function (ele, i) {
cy.nodes().not(":parent").positions(function (ele, i) {
if(typeof ele === "number") {

@@ -31,0 +31,0 @@ ele = i;

Sorry, the diff of this file is too big to display

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