{"id":13554677,"url":"https://github.com/DennisSchwartz/multilayerlayout3d","last_synced_at":"2025-04-03T07:32:18.664Z","repository":{"id":57305226,"uuid":"43967173","full_name":"DennisSchwartz/multilayerlayout3d","owner":"DennisSchwartz","description":"A layout for multilayer networks in ngraph.three.","archived":false,"fork":false,"pushed_at":"2015-10-20T15:55:58.000Z","size":248,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-04T03:32:07.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DennisSchwartz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-09T16:23:28.000Z","updated_at":"2018-02-01T00:53:52.000Z","dependencies_parsed_at":"2022-09-20T21:22:12.578Z","dependency_job_id":null,"html_url":"https://github.com/DennisSchwartz/multilayerlayout3d","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSchwartz%2Fmultilayerlayout3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSchwartz%2Fmultilayerlayout3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSchwartz%2Fmultilayerlayout3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSchwartz%2Fmultilayerlayout3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DennisSchwartz","download_url":"https://codeload.github.com/DennisSchwartz/multilayerlayout3d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246956643,"owners_count":20860471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T12:02:52.734Z","updated_at":"2025-04-03T07:32:18.412Z","avatar_url":"https://github.com/DennisSchwartz.png","language":"JavaScript","readme":"# Multilayerlayout3d [![Build Status](https://secure.travis-ci.org/DennisSchwartz/multilayerlayout3d.png?branch=master)](http://travis-ci.org/DennisSchwartz/multilayerlayout3d) [![NPM version](https://badge-me.herokuapp.com/api/npm/multilayerlayout3d.png)](http://badges.enytc.com/for/npm/multilayerlayout3d)\n\n\u003e A multilayer layout for ngraph.three\n\nThis is a custom layout for the great [ngraph](https://github.com/anvaka/ngraph) project, more specifically for\n[ngraph.three](https://github.com/anvaka/ngraph.three).\nIt is heavily based on ngraph.forcelayout and [ngraph.forcelayout3d](https://github.com/anvaka/ngraph.forcelayout3d)\n\nIt is used in my multilayer network visualisation module [mplexviz-ngraph](https://github.com/DennisSchwartz/mplexviz-ngraph).\nEvery layer of the graph is calculated separately as a 2d force-directed graph.\n\n## Getting Started\nInstall the module with: `npm install multilayerlayout3d`\n\nInitialize ngraph.three with this layout:\n\n```javascript\nvar mplexLayout = require('multilayerlayout3d');\n/*\n    Initialize ngraph.three\n */\nvar graphics = nthree(this.graph, {\n    container: document.body,\n    layout: mplexLayout(this.graph, physicsSettings)\n});\n```\n\nCompare to [ngraph.three](https://github.com/anvaka/ngraph.three)\n\nYou can also specify the distance between layers in the options, passed as an additional input value/\n\n```javascript\n\n/*\n    Set options\n*/\nvar options = {\n    interLayerDistance: 100\n};\n\n/*\n    Initialize ngraph.three\n */\nvar graphics = nthree(this.graph, {\n    container: document.body,\n    layout: mplexLayout(this.graph, physicsSettings, options)\n});\n```\n\n## Contributing\n\nPlease submit all issues and pull requests to the [DennisSchwartz/multilayerlayout3d](https://github.com/DennisSchwartz/multilayerlayout3d) repository!\n\n## Support\nIf you have any problem or suggestion please open an issue [here](https://github.com/DennisSchwartz/multilayerlayout3d/issues).\n\n## License \n\nThe MIT License\n\nCopyright (c) 2015, Dennis Schwartz\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDennisSchwartz%2Fmultilayerlayout3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDennisSchwartz%2Fmultilayerlayout3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDennisSchwartz%2Fmultilayerlayout3d/lists"}