Skip to content

Commit c14e375

Browse files
committed
feat: ship the layout js files instead of relying on a CDN
1 parent 00355eb commit c14e375

File tree

7 files changed

+39
-3
lines changed

7 files changed

+39
-3
lines changed

LICENSE.MIT

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 - present, iVis@Bilkent.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ Now, the pre-commit checks will be run before each commit.
5454
## Deployment
5555
The website is hosted on https://ocns.github.io/simselect
5656

57+
## Dependencies
58+
The layout is using the fCoSE algorithm by the [i-Vis Research Lab at Bilkent University](http://www.cs.bilkent.edu.tr/~ivis/).
59+
The files in the `assets/js` directory are minified versions of the original files, licensed under the [MIT license](LICENSE.MIT).
60+
5761
## Contributors
5862

5963
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->

assets/js/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
The files in this directory are minified versions of the files developed by the [i-Vis Research Lab at Bilkent University](http://www.cs.bilkent.edu.tr/~ivis/).
2+
3+
The respective repositories are:
4+
- https://github.com/iVis-at-Bilkent/cytoscape.js-fcose
5+
- https://github.com/iVis-at-Bilkent/cose-base
6+
- https://github.com/iVis-at-Bilkent/layout-base
7+
8+
These files are licensed under the [MIT license](../../LICENSE.MIT).

assets/js/cose-base.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/cytoscape-fcose.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/layout-base.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
77
<link rel="stylesheet" type="text/css" href="assets/style.css">
88
<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.28.1/cytoscape.min.js"></script>
9-
<script src="https://unpkg.com/layout-base/layout-base.js"></script>
10-
<script src="https://unpkg.com/cose-base/cose-base.js"></script>
11-
<script src="https://unpkg.com/cytoscape-fcose/cytoscape-fcose.js"></script>
9+
<script src="assets/js/layout-base.min.js"></script>
10+
<script src="assets/js/cose-base.min.js"></script>
11+
<script src="assets/js/cytoscape-fcose.min.js"></script>
1212
<script src="graph.js"></script>
1313
<script src="table.js"></script>
1414
<script src="index.js"></script>

0 commit comments

Comments
 (0)