I created a options.settings.textRotation option which accepts a number (angle) as a parameter. All words in the word cloud will be rotated at this angle, ie a 0 angle means no rotation.
If options.settings.textRotation is not specified then the default (existing) rotation function is used.
Alternatively options.settings.textRotation can accept a function which returns a number. This function is called for each word in the cloud.
I created a
options.settings.textRotation
option which accepts anumber
(angle) as a parameter. All words in the word cloud will be rotated at this angle, ie a 0 angle means no rotation.If
options.settings.textRotation
is not specified then the default (existing) rotation function is used.Alternatively
options.settings.textRotation
can accept a function which returns anumber
. This function is called for each word in the cloud.