Skip to content

Commit af6917e

Browse files
Eric RowellEric Rowell
authored andcommitted
more stuff
1 parent 89b12aa commit af6917e

3 files changed

Lines changed: 22 additions & 11 deletions

File tree

README.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,29 @@ let graph = new ElGrapho({
7171

7272
* ```model.edges``` - object that defines the edges between nodes based on their indices. Each edge is defined by a from-node-index and a to-node-index. In the example above, the first edge begins at node ```0``` and ends at node ```1```. For non directed graphs, or bi-directional graphs, ```from``` and ```to``` are interchangeable.
7373

74-
* ```width``` - number that defines the width of the El Grapho viewport in pixels. The default is 500;
74+
* ```width``` - number that defines the width of the El Grapho viewport in pixels. The default is ```500```.
7575

76-
* ```height``` - number defines the height of the El Grapho viewport in pixels. The default is 500;
76+
* ```height``` - number defines the height of the El Grapho viewport in pixels. The default is ```500```.
7777

78-
* ```nodeSize``` - number between 0 and 1 which defines the node size. The default is 1.
78+
* ```nodeSize``` - number between 0 and 1 which defines the node size. The default is ```1```.
7979

80-
* ```edgeSize``` - number between 0 and 1 which defines the edge size. Edge sizes are relative to the connecting node size. The default is 0.25.
80+
* ```nodeOutline``` - boolean that enables or disables node outlines. The default is ```true```.
8181

82-
* ```fillContainer``` - boolean that enables or disables auto filling the container. When true, El Grapho will automatically detect anytime its container has changed shape, and will auto resize itself. The default is false.
82+
* ```edgeSize``` - number between 0 and 1 which defines the edge size. Edge sizes are relative to the connecting node size. The default is ```0.25```.
8383

84-
* ```tooltips``` - boolean that enables or disables tooltips. The default is true.
84+
* ```darkMode``` - boolean that enables or disables dark mode. The default is ```false```.
8585

86-
* ```arrows``` - boolean that enables or disables edge arrows. The default is false. For non directed or bi-directional graphs, you should keep ```arrows``` as ```false```.
86+
* ```globalAlpha``` - number between 0 and 1 that defines the global alpha of nodes and edges. Alphas are blended where nodes and edges intersect, resulting in a brightening effect at the intersections. The default is ```1```.
8787

88-
* ```animations``` - boolean that defines animation strategy. When animations is true, zoom and pan transitions will be animated. Otherwise the transitions will be immediate. Although animations utilize requestAnimationFrame for dynamic frame rates, in some situations you may prefer to set animations to false to improve transition performance for very high cardinality graphs with millions of nodes and edges. The default is true.
88+
* ```fillContainer``` - boolean that enables or disables auto filling the container. When true, El Grapho will automatically detect anytime its container has changed shape, and will auto resize itself. The default is ```false```.
8989

90-
* ```debug``` - boolean that can be used to enable debug mode. Debug mode will show the node and edge count in the bottom right corner of the visualization. The default is false.
90+
* ```tooltips``` - boolean that enables or disables tooltips. The default is ```true```.
91+
92+
* ```arrows``` - boolean that enables or disables edge arrows. For non directed or bi-directional graphs, you should keep ```arrows``` as ```false```. The default is ```false```.
93+
94+
* ```animations``` - boolean that defines animation strategy. When animations is true, zoom and pan transitions will be animated. Otherwise the transitions will be immediate. Although animations utilize requestAnimationFrame for dynamic frame rates, in some situations you may prefer to set animations to false to improve transition performance for very high cardinality graphs with millions of nodes and edges. The default is ```true```.
95+
96+
* ```debug``` - boolean that can be used to enable debug mode. Debug mode will show the node and edge count in the bottom right corner of the visualization. The default is ```false```.
9197

9298

9399
### Layouts
@@ -358,6 +364,11 @@ graph.on('node-mouseover', function(evt) {
358364

359365
* ```graph.setSize(width, height)``` - set the graph size in pixels
360366

367+
* ```graph.setDarkMode(mode)``` - set dark mode to true or false
368+
369+
* new selectNode() method
370+
* new deselectNode() method
371+
361372
## About the Name and Logo
362373

363374
Why is this called El Grapho? - *Why not?*

gallery/big-clusters.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h1>El Grapho Big Clusters</h1>
4949
edgeSize: 0.1,
5050
debug: true,
5151
darkMode: true,
52-
globalAlpha: 0.5,
52+
globalAlpha: 0.1,
5353
nodeOutline: false
5454
});
5555

gallery/network-hairball-graph.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
edgeSize: 1,
5252
fillContainer: true,
5353
darkMode: true,
54-
globalAlpha: 0.9,
54+
globalAlpha: 0.1,
5555
nodeOutline: false
5656
});
5757
</script>

0 commit comments

Comments
 (0)