New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cytoscape-edge-bend-editing

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-edge-bend-editing - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

2

package.json
{
"name": "cytoscape-edge-bend-editing",
"version": "1.4.1",
"version": "1.4.2",
"description": "A Cytoscape.js extension enables editing edge bend points",

@@ -5,0 +5,0 @@ "main": "cytoscape-edge-bend-editing.js",

@@ -77,5 +77,10 @@ cytoscape-edge-bend-editing

```js
cy.contextMenus('get');
cy.edgeBendEditing('get'); // Returns undefined if the extension is not initialized yet
```
Or you can check if the extension is initilized before
```js
cy.edgeBendEditing('initialized');
```
## Default Options

@@ -82,0 +87,0 @@ ```js

@@ -31,2 +31,3 @@ ;(function(){ 'use strict';

var options;
var initilized = false;

@@ -51,5 +52,10 @@ // Merge default options with the ones coming from parameter

if( opts === 'initilized' ) {
return initilized;
}
if( opts !== 'get' ) {
// merge the options with default ones
options = extend(defaults, opts);
initilized = true;

@@ -79,3 +85,3 @@ // define edgebendediting-hasbendpoints css class

var instance = {
var instance = initilized ? {
/*

@@ -93,3 +99,3 @@ * get segment points of the given edge in an array A,

}
};
} : undefined;

@@ -96,0 +102,0 @@ return instance; // chainability

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