cytoscape-klay
Advanced tools
Comparing version 1.0.0 to 3.0.0
@@ -6,3 +6,3 @@ { | ||
"dependencies": { | ||
"cytoscape": "^3.0.0" | ||
"cytoscape": "^3.2.0" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -82,12 +82,14 @@ ;(function(){ 'use strict'; | ||
var defaults = { | ||
nodeDimensionsIncludeLabels: false, // Boolean which changes whether label dimensions are included when calculating node dimensions | ||
fit: true, | ||
padding: 20, // padding on fit | ||
animate: false, // whether to transition the node positions | ||
animationDuration: 500, // duration of animation in ms if enabled | ||
animationEasing: undefined, // easing of animation if enabled | ||
ready: undefined, // callback on layoutready | ||
stop: undefined, // callback on layoutstop | ||
nodeDimensionsIncludeLabels: undefined, // Boolean which changes whether label dimensions are included when calculating node dimensions (default true) | ||
fit: true, // Whether to fit | ||
padding: 20, // Padding on fit | ||
animate: false, // Whether to transition the node positions | ||
animateFilter: function( node, i ){ return true; }, // Whether to animate specific nodes when animation is on; non-animated nodes immediately go to their final positions | ||
animationDuration: 500, // Duration of animation in ms if enabled | ||
animationEasing: undefined, // Easing of animation if enabled | ||
transform: function( node, pos ){ return pos; }, // A function that applies a transform to the final node position | ||
ready: undefined, // Callback on layoutready | ||
stop: undefined, // Callback on layoutstop | ||
klay: { | ||
// following descriptions taken from http://layout.rtsys.informatik.uni-kiel.de:9444/Providedlayout.html?algorithm=de.cau.cs.kieler.klay.layered | ||
// Following descriptions taken from http://layout.rtsys.informatik.uni-kiel.de:9444/Providedlayout.html?algorithm=de.cau.cs.kieler.klay.layered | ||
addUnnecessaryBendpoints: false, // Adds bend points even if an edge does not change direction. | ||
@@ -94,0 +96,0 @@ aspectRatio: 1.6, // The aimed aspect ratio of the drawing, that is the quotient of width by height |
{ | ||
"name": "cytoscape-klay", | ||
"version": "1.0.0", | ||
"version": "3.0.0", | ||
"description": "KLayJS for Cytoscape", | ||
@@ -33,3 +33,3 @@ "main": "cytoscape-klay.js", | ||
"peerDependencies": { | ||
"cytoscape": "^3.0.0" | ||
"cytoscape": "^3.2.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "dependencies": { |
@@ -14,3 +14,3 @@ cytoscape-klay | ||
* Cytoscape.js ^3.0.0 | ||
* Cytoscape.js ^3.2.0 | ||
@@ -48,13 +48,14 @@ | ||
var options = { | ||
nodeDimensionsIncludeLabels: false, // Boolean which changes whether label dimensions are included when calculating node dimensions | ||
fit: true, // fit viewport to graph | ||
padding: 20, // padding on fit | ||
animate: false, // whether to transition the node positions | ||
animationDuration: 500, // duration of animation in ms if enabled | ||
animationEasing: undefined, // easing of animation if enabled | ||
ready: undefined, // callback on layoutready | ||
stop: undefined, // callback on layoutstop | ||
nodeDimensionsIncludeLabels: undefined, // Boolean which changes whether label dimensions are included when calculating node dimensions (default true) | ||
fit: true, // Whether to fit | ||
padding: 20, // Padding on fit | ||
animate: false, // Whether to transition the node positions | ||
animateFilter: function( node, i ){ return true; }, // Whether to animate specific nodes when animation is on; non-animated nodes immediately go to their final positions | ||
animationDuration: 500, // Duration of animation in ms if enabled | ||
animationEasing: undefined, // Easing of animation if enabled | ||
transform: function( node, pos ){ return pos; }, // A function that applies a transform to the final node position | ||
ready: undefined, // Callback on layoutready | ||
stop: undefined, // Callback on layoutstop | ||
klay: { | ||
// following descriptions taken from http://layout.rtsys.informatik.uni-kiel.de:9444/Providedlayout.html?algorithm=de.cau.cs.kieler.klay.layered | ||
// for more info see https://github.com/OpenKieler/klayjs | ||
// Following descriptions taken from http://layout.rtsys.informatik.uni-kiel.de:9444/Providedlayout.html?algorithm=de.cau.cs.kieler.klay.layered | ||
addUnnecessaryBendpoints: false, // Adds bend points even if an edge does not change direction. | ||
@@ -103,4 +104,2 @@ aspectRatio: 1.6, // The aimed aspect ratio of the drawing, that is the quotient of width by height | ||
priority: function( edge ){ return null; }, // Edges with a non-nil value are skipped when geedy edge cycle breaking is enabled | ||
nodeDimensionsIncludeLabels: false, // Boolean which changes whether label dimensions are included when calculating node dimensions | ||
fit: true | ||
}; | ||
@@ -119,1 +118,2 @@ | ||
1. If publishing to bower for the first time, you'll need to run `bower register cytoscape-klay https://github.com/cytoscape/cytoscape.js-klay.git` | ||
1. [Create a Github release](https://github.com/cytoscape/cytoscape.js-klay/releases/new) for the new version so that Zenodo picks it up. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33741
418
3