Commit 4f2c3b78 by Victor Shnayder

fix order of operations to make things rotate correctly

parent f8a72e5c
...@@ -165,7 +165,7 @@ define('WordCloudMain', ['logme'], function (logme) { ...@@ -165,7 +165,7 @@ define('WordCloudMain', ['logme'], function (logme) {
d3.layout.cloud().size([this.width, this.height]) d3.layout.cloud().size([this.width, this.height])
.words(words) .words(words)
.rotate(function () { .rotate(function () {
return Math.floor((Math.random() * 2) * 90); return Math.floor((Math.random() * 2)) * 90;
}) })
.font('Impact') .font('Impact')
.fontSize(function (d) { .fontSize(function (d) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment