🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

cytoscape-grid-guide

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-grid-guide - npm Package Compare versions

Comparing version

to
2.0.5

{
"name": "cytoscape-grid-guide",
"version": "2.0.3",
"version": "2.0.5",
"description": "A sophisticated and highly customizable Cytoscape.js extension for grid and guideline interactions.",

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

@@ -124,3 +124,3 @@ module.exports = function (cytoscape, cy, $) {

var ur = cy.undoRedo();
var ur = cy.undoRedo(null, true);

@@ -127,0 +127,0 @@ ur.action("align", function (args) {

@@ -13,2 +13,8 @@ module.exports = function (cy, snap) {

snapToGridDuringDrag.onTapStartNode = function (e) {
// If user intends to do box selection, then return. Related issue #28
if (e.originalEvent.altKey || e.originalEvent.ctrlKey
|| e.originalEvent.metaKey || e.originalEvent.shiftKey){
return;
}
var cyTarget = e.target || e.cyTarget;

@@ -22,8 +28,9 @@ if (cyTarget.selected())

attachedNode = cyTarget;
attachedNode.lock();
//attachedNode.trigger("grab");
cy.on("tapdrag", onTapDrag);
cy.on("tapend", onTapEndNode);
if (cyTarget.grabbable() && !cyTarget.locked()){
attachedNode = cyTarget;
attachedNode.lock();
//attachedNode.trigger("grab");
cy.on("tapdrag", onTapDrag);
cy.on("tapend", onTapEndNode);
}
};

@@ -30,0 +37,0 @@

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

Sorry, the diff of this file is not supported yet