diff --git a/app/components/architecture-viewer.js b/app/components/architecture-viewer.js index db4e486b92e911d2eca69d0467be219f208e2a87..bc0595cfdd8d982f76a40dbdd227ae8c2bc30621 100644 --- a/app/components/architecture-viewer.js +++ b/app/components/architecture-viewer.js @@ -4,8 +4,12 @@ export default Ember.Component.extend({ graph: null, layoutAlgorithm: 'cose', layoutAlgorithms: [ - "cose", - "cola" + 'cose', + // 'cose-bilkent', // broken + 'cola', + 'grid', + 'concentric', + 'breadthfirst' ], init() { this._super(); diff --git a/app/components/architecture-visualisation-cytoscape/component.js b/app/components/architecture-visualisation-cytoscape/component.js index 05da65697ebae3f4c88fcde84a6ad9b5e923b1b1..215d492233d8f2c8735abea7b6af659d6c0a4bf8 100644 --- a/app/components/architecture-visualisation-cytoscape/component.js +++ b/app/components/architecture-visualisation-cytoscape/component.js @@ -4,6 +4,9 @@ import cycola from 'npm:cytoscape-cola'; import cytoscapeStyle from './style'; // import cola from 'npm:webcola'; import _ from 'npm:lodash'; +import coseBilkent from 'npm:cytoscape-cose-bilkent'; + +coseBilkent(cytoscape); // register export default Ember.Component.extend({ layoutAlgorithm: 'cose', diff --git a/package.json b/package.json index 95085c4abf89114d371921150337b3bba7cbf0e5..7b621aa58a48e47c0a6b2bf3d9e7e24bf8330ff4 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "dependencies": { "cytoscape": "^2.6.12", "cytoscape-cola": "^1.4.0", + "cytoscape-cose-bilkent": "^1.3.6", "klayjs": "^0.4.1", "klayjs-d3": "^0.3.4", "webcola": "^3.1.2"