From 7bb150f48becbbf2ccd0cedeb71d0a99fc4cce8b Mon Sep 17 00:00:00 2001 From: Thomas Neirynck Date: Wed, 30 Nov 2016 17:31:01 -0500 Subject: [PATCH] Remove time-interval 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. --- src/core_plugins/tagcloud/public/tag_cloud.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core_plugins/tagcloud/public/tag_cloud.js b/src/core_plugins/tagcloud/public/tag_cloud.js index e1e34691b8e0b..78571c3472ca6 100644 --- a/src/core_plugins/tagcloud/public/tag_cloud.js +++ b/src/core_plugins/tagcloud/public/tag_cloud.js @@ -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 @@ -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(); }