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

chise

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chise - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.idea/chise.js.iml

2

package.json
{
"name": "chise",
"version": "1.0.0",
"version": "1.0.1",
"description": "SBGNPD editing library",

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

@@ -678,2 +678,35 @@ var options = require('./option-utilities').getOptions();

/*
* Shows all elements (the ones which are hidden if any) and perform given layout afterward. Layout parameter may be layout options
* or a function to call. Requires viewUtilities extension and considers undoable option.
*/
mainUtilities.showAllAndPerformLayout = function(layoutparam) {
var hiddenEles = cy.elements(':hidden');
if (hiddenEles.length === 0) {
return;
}
if (!options.undoable) {
var nodesWithHiddenNeighbor = cy.edges(":hidden").connectedNodes(':visible');
chise.thinBorder(nodesWithHiddenNeighbor);
elementUtilities.showAndPerformLayout(hiddenEles, layoutparam);
}
else {
var param = {
eles: hiddenEles,
layoutparam: layoutparam,
firstTime: true
};
var ur = cy.undoRedo();
ur.action("thickenBorder", chise.thickenBorder, chise.thinBorder);
ur.action("thinBorder", chise.thinBorder, chise.thickenBorder);
var actions = [];
var nodesWithHiddenNeighbor = cy.nodes("[thickBorder]");
actions.push({name: "thinBorder", param: nodesWithHiddenNeighbor});
actions.push({name: "showAndPerformLayout", param: param});
cy.undoRedo().do("batch", actions);
}
};
/*
* Unhide given eles (the ones which are hidden if any) and perform given layout afterward. Layout parameter may be layout options

@@ -680,0 +713,0 @@ * or a function to call. Requires viewUtilities extension and considers undoable option.

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