Permalink
Browse files

Replaced tabs by spaces in relativeSize plugin

  • Loading branch information...
1 parent 700004e commit 8aa022cea61d0b748bb58fbfec6c8a60170b5859 @jacomyal committed Jun 21, 2014
Showing with 8 additions and 7 deletions.
  1. +8 −7 plugins/sigma.plugins.relativeSize/sigma.plugins.relativeSize.js
@@ -13,15 +13,16 @@
* This function will change size for all nodes depending to their degree
*
* @param {sigma} s The related sigma instance.
- * @param {object} initialSize Start size property
+ * @param {object} initialSize Start size property
*/
sigma.plugins.relativeSize = function(s, initialSize) {
var nodes = s.graph.nodes();
- // second create size for every node
- for(var i = 0; i < nodes.length; i++) {
- var degree = s.graph.degree(nodes[i].id);
- nodes[i].size = initialSize * Math.sqrt(degree);
- }
- s.refresh();
+
+ // second create size for every node
+ for(var i = 0; i < nodes.length; i++) {
+ var degree = s.graph.degree(nodes[i].id);
+ nodes[i].size = initialSize * Math.sqrt(degree);
+ }
+ s.refresh();
};
}).call(window);

0 comments on commit 8aa022c

Please sign in to comment.