picasso.js
picasso.js copied to clipboard
feat: add callback to decide if labels should be tilted
This PR is to add a callback shouldAutoTilt to label to allow the user to approve if labels should be tilted or not. The problem is that picasso.js has internal function to decide if labels are tilted or not but in a number of scenarios this is not good enough, e.g. after tilting the labels take too much space comparing to the main area. In this case the user can override the picasso's decision.
I'm missing the added property/properties in the default setting and some describing documentation?
Also add some unit tests.
@quanho Should this remain open?