Skip to content
Snippets Groups Projects
Commit 55c8059d authored by Mathis Neumann's avatar Mathis Neumann
Browse files

prepare layout "cose bilkent"

parent b12cc436
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,12 @@ export default Ember.Component.extend({ ...@@ -4,8 +4,12 @@ export default Ember.Component.extend({
graph: null, graph: null,
layoutAlgorithm: 'cose', layoutAlgorithm: 'cose',
layoutAlgorithms: [ layoutAlgorithms: [
"cose", 'cose',
"cola" // 'cose-bilkent', // broken
'cola',
'grid',
'concentric',
'breadthfirst'
], ],
init() { init() {
this._super(); this._super();
......
...@@ -4,6 +4,9 @@ import cycola from 'npm:cytoscape-cola'; ...@@ -4,6 +4,9 @@ import cycola from 'npm:cytoscape-cola';
import cytoscapeStyle from './style'; import cytoscapeStyle from './style';
// import cola from 'npm:webcola'; // import cola from 'npm:webcola';
import _ from 'npm:lodash'; import _ from 'npm:lodash';
import coseBilkent from 'npm:cytoscape-cose-bilkent';
coseBilkent(cytoscape); // register
export default Ember.Component.extend({ export default Ember.Component.extend({
layoutAlgorithm: 'cose', layoutAlgorithm: 'cose',
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
"dependencies": { "dependencies": {
"cytoscape": "^2.6.12", "cytoscape": "^2.6.12",
"cytoscape-cola": "^1.4.0", "cytoscape-cola": "^1.4.0",
"cytoscape-cose-bilkent": "^1.3.6",
"klayjs": "^0.4.1", "klayjs": "^0.4.1",
"klayjs-d3": "^0.3.4", "klayjs-d3": "^0.3.4",
"webcola": "^3.1.2" "webcola": "^3.1.2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment