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

cytoscape-automove

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-automove - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

demo-multiple-mean.html

9

cytoscape-automove.js
(function(){ 'use strict';
/* eslint-disable no-unused-vars */
var defaults = {

@@ -58,2 +60,4 @@ // specify nodes that should be automoved with one of

/* eslint-enable */
var typeofStr = typeof '';

@@ -187,2 +191,7 @@ var typeofObj = typeof {};

// the position should remain unchanged if we would stack the nodes on top of each other
if( nhoodSize < 2 ){
return undefined;
}
avgPos.x /= nhoodSize;

@@ -189,0 +198,0 @@ avgPos.y /= nhoodSize;

5

gulpfile.js
var gulp = require('gulp');
var path = require('path');
var replace = require('gulp-replace');
var child_process = require('child_process');
var fs = require('fs');
var shell = require('gulp-shell');
var jshint = require('gulp-jshint');
var jshStylish = require('jshint-stylish');
var exec = require('child_process').exec;

@@ -10,0 +5,0 @@ var runSequence = require('run-sequence');

{
"name": "cytoscape-automove",
"version": "1.6.0",
"version": "1.6.1",
"description": "An extension for Cytoscape.js that automatically updates node positions based on specified rules",
"main": "cytoscape-automove.js",
"scripts": {
"publish": "gulp publish",
"lint": "eslint cytoscape-automove.js",

@@ -30,7 +29,5 @@ "test": "echo \"Error: no test specified\" && exit 1"

"gulp": "^3.8.8",
"gulp-jshint": "^1.8.5",
"gulp-prompt": "^0.1.1",
"gulp-replace": "^0.4.0",
"gulp-shell": "^0.2.9",
"jshint-stylish": "^1.0.0",
"run-sequence": "^1.0.0"

@@ -37,0 +34,0 @@ },

demo.html

Sorry, the diff of this file is not supported yet

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