picasso.js icon indicating copy to clipboard operation
picasso.js copied to clipboard

feat: add callback to decide if labels should be tilted

Open quanho opened this issue 3 years ago • 1 comments

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.

quanho avatar Apr 01 '21 12:04 quanho

I'm missing the added property/properties in the default setting and some describing documentation?

Also add some unit tests.

cbt1 avatar Apr 07 '21 05:04 cbt1

@quanho Should this remain open?

niekvanstaveren avatar Jan 03 '24 10:01 niekvanstaveren