Skip to content

Commit

Permalink
Remove time-interval
Browse files Browse the repository at this point in the history
This does not put a limit on the duration of each layout-tick. This setting is a safety measure, but currently unnecessary. We already limit the amount of tags a cloud can contain, to avoid excessive running times.
  • Loading branch information
thomasneirynck committed Nov 30, 2016
1 parent b79ec60 commit 7bb150f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core_plugins/tagcloud/public/tag_cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class TagCloud extends EventEmitter {
this._fontStyle = 'normal';
this._fontWeight = 'normal';
this._spiral = 'archimedean';//layout shape
this._timeInterval = 1000;//time allowed for layout algorithm
this._padding = 5;

//OPTIONS
Expand Down Expand Up @@ -281,7 +280,6 @@ class TagCloud extends EventEmitter {
tagCloudLayoutGenerator.spiral(this._spiral);
tagCloudLayoutGenerator.words(job.words);
tagCloudLayoutGenerator.text(getText);
tagCloudLayoutGenerator.timeInterval(this._timeInterval);
tagCloudLayoutGenerator.on('end', () => this._scheduleLayout(job));
tagCloudLayoutGenerator.start();
}
Expand Down

0 comments on commit 7bb150f

Please sign in to comment.