alhazmy13 / Angular4-word-cloud

Word cloud directive for Angular4
https://alhazmy13.github.io/Angular4-word-cloud/index.html
10 stars 12 forks source link

Specify word rotation angle #24

Closed umairda closed 5 years ago

umairda commented 5 years ago

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.