Skip to content

Commit

Permalink
#1 done
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsfy committed Sep 28, 2016
1 parent 95385a5 commit 7efe55a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
var gml = this.graphml();
this.$("").remove();
this.graphml({ options: ""});
console.log(gml);
this.graphml(gml);
}
});
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 7efe55a

Please sign in to comment.