Skip to content

Commit 1375ce2

Browse files
committed
Started rewriting with sigmajs.
1 parent 48bc420 commit 1375ce2

28 files changed

+24281
-21
lines changed

index.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,21 @@
33
<head>
44
<title>Graph Creator</title>
55
</head>
6+
7+
<style type = "text/css">
8+
body {
9+
margin: 0px;
10+
}
11+
#container {
12+
width: 1080px;
13+
max-width: 1080px;
14+
height: 720px;
15+
}
16+
17+
</style>
618

7-
<body style="margin: 0px">
8-
<canvas id = "cytoBkg"></canvas>
19+
<body>
20+
<div id = "container"></div>
921

1022
<div align = "left" id = "controlButtons">
1123
<button id = "addNode">Add Nodes </button>
@@ -17,6 +29,8 @@
1729

1830
</body>
1931

32+
<script src = "sigma/sigma.js"></script>
33+
<script src = "src/sigmaInit.js"></script>
2034
<script src = "src/creator.js"></script>
2135
<script src = "src/fileWrite.js"></script>
2236
<script src = "src/menu.js"></script>

sigma/.DS_Store

6 KB
Binary file not shown.

sigma/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[![Build Status](https://travis-ci.org/jacomyal/sigma.js.svg)](https://travis-ci.org/jacomyal/sigma.js)
2+
3+
sigma.js - v1.2.0
4+
=================
5+
6+
Sigma is a JavaScript library dedicated to graph drawing, mainly developed by [@jacomyal](https://github.com/jacomyal) and [@Yomguithereal](https://github.com/Yomguithereal).
7+
8+
### Resources
9+
10+
[The website](http://sigmajs.org) provides a global overview of the project, and the documentation is available in the [Github Wiki](https://github.com/jacomyal/sigma.js/wiki).
11+
12+
Also, the `plugins` and `examples` directories contain various use-cases that might help you understand how to use sigma.
13+
14+
### How to use it
15+
16+
To use it, clone the repository:
17+
18+
```
19+
git clone git@github.com:jacomyal/sigma.js.git
20+
```
21+
22+
To build the code:
23+
24+
- Install [Node.js](http://nodejs.org/).
25+
- Install [gjslint](https://developers.google.com/closure/utilities/docs/linter_howto?hl=en).
26+
- Use `npm install` to install sigma development dependencies.
27+
- Use `npm run build` to minify the code with [Uglify](https://github.com/mishoo/UglifyJS). The minified file `sigma.min.js` will then be accessible in the `build/` folder.
28+
29+
Also, you can customize the build by adding or removing files from the `coreJsFiles` array in `Gruntfile.js` before applying the grunt task.
30+
31+
### Contributing
32+
33+
You can contribute by submitting [issues tickets](http://github.com/jacomyal/sigma.js/issues) and proposing [pull requests](http://github.com/jacomyal/sigma.js/pulls). Make sure that tests and linting pass before submitting any pull request by running the command `grunt`.
34+
35+
The whole source code is validated by the [Google Closure Linter](https://developers.google.com/closure/utilities/) and [JSHint](http://www.jshint.com/), and the comments are written in [JSDoc](http://en.wikipedia.org/wiki/JSDoc) (tags description is available [here](https://developers.google.com/closure/compiler/docs/js-for-compiler)).

sigma/plugins/sigma.exporters.svg.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.

sigma/plugins/sigma.layout.forceAtlas2.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.

0 commit comments

Comments
 (0)