{"action":"closed","issue":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent/issues/62","repository_url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent","labels_url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent/issues/62/comments","events_url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent/issues/62/events","html_url":"https://github.com/cytoscape/cytoscape.js-cose-bilkent/issues/62","id":272596856,"node_id":"MDU6SXNzdWUyNzI1OTY4NTY=","number":62,"title":"No such layout `cose-bilkent` found","user":{"login":"Habush","id":6312328,"node_id":"MDQ6VXNlcjYzMTIzMjg=","avatar_url":"https://avatars2.githubusercontent.com/u/6312328?v=4","gravatar_id":"","url":"https://api.github.com/users/Habush","html_url":"https://github.com/Habush","followers_url":"https://api.github.com/users/Habush/followers","following_url":"https://api.github.com/users/Habush/following{/other_user}","gists_url":"https://api.github.com/users/Habush/gists{/gist_id}","starred_url":"https://api.github.com/users/Habush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Habush/subscriptions","organizations_url":"https://api.github.com/users/Habush/orgs","repos_url":"https://api.github.com/users/Habush/repos","events_url":"https://api.github.com/users/Habush/events{/privacy}","received_events_url":"https://api.github.com/users/Habush/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-09T15:06:33Z","updated_at":"2018-06-11T07:40:29Z","closed_at":"2018-06-11T07:40:29Z","author_association":"NONE","body":"I am using Cytoscape on Angular 2 project and wanted to use **Cose-bilkent** layout. Hence I added the dependency to my project using _npm_. Since I am using Angular 2 with Typescript I have added the js module first to the **angular-cli.json** file then to the **index.html** file. After that in my _NetworkComponent_ , which is the angular component I am using to display the graph,  I am importing the library as follows:\r\n`declare var CoSELayout:any;`\r\n\r\nThen I am trying to use the layout as follows:\r\n```\r\n           this.cyto = cytoscape({\r\n                    container: document.getElementById(\"graph\"),\r\n                    elements: this.graph.elements,\r\n                    style: res.json()\r\n                    });\r\n            this.cyto.layout({name: \"cose-bilkent\"});\r\n```\r\nThe graph displays but the layout is **not set to `cose-bilkent`** and I get the following error in the console:\r\n`Can not apply layout: No such layout `cose-bilkent` found; did you include its JS file?`\r\n\r\nHow can I import cose-bilkent library and use it as my graph layout? What might be wrong here?\r\n\r\nThanks."}}
{"actor":{"display_login":"Habush"}}