From 7efe55a2abf5cdbff449d28f78e7e921932aa30d Mon Sep 17 00:00:00 2001 From: mrsfy Date: Wed, 28 Sep 2016 14:59:33 +0300 Subject: [PATCH] #1 done --- README.md | 23 +++++++++++++++++++++-- demo.html | 1 + package.json | 4 ++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 21ba0c0..2e9466a 100644 --- a/README.md +++ b/README.md @@ -17,11 +17,30 @@ Import the graph as GraphML. `cy.graphml( optionsObj )` Updates the specified options of extension. +## optionsObj + +```js +{ + node: { + css: false, + data: true, + position: true, + discludeds: [] + }, + edge: { + css: false, + data: true, + discludeds: [] + }, + layoutBy: "cose" // string of layout name or layout function +} +``` + ## Dependencies - * Cytoscape.js ^2.0 - * jQuery ^1.4 || ^2.0 || ^3.0 + * Cytoscape.js ^2.7.0 + * jQuery ^1.7 || ^2.0 || ^3.0 ## Usage instructions diff --git a/demo.html b/demo.html index 360e532..e28667b 100644 --- a/demo.html +++ b/demo.html @@ -89,6 +89,7 @@ var gml = this.graphml(); this.$("").remove(); this.graphml({ options: ""}); + console.log(gml); this.graphml(gml); } }); diff --git a/package.json b/package.json index 192030d..9762aa5 100644 --- a/package.json +++ b/package.json @@ -36,5 +36,9 @@ "run-sequence": "^1.1.4", "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.1.0" + }, + "peerDependencies": { + "cytoscape": "^2.7.0", + "jquery": "^1.7.0 || ^2.0.0 || ^3.0.0" } }