Fix rotated label meaasurements (#2879, #3354). When measuring the first width and last width, the fact that arrays of text are present must be considered. In addition to fixing this, I did some general code cleanup in the fit and calculateLabelRotation methods.
Fix rotated label meaasurements (#2879, #3354). When measuring the first width and last width, the fact that arrays of text are
present must be considered. In addition to fixing this, I did some general code cleanup in the fit and calculateLabelRotation methods.

bokysan/Chart.js,jtcorbett/Chart.js,potatopeelings/Chart.js,touletan/Chart.js,salzhrani/Chart.js,avlcodemonkey/Chart.js,touletan/Chart.js,supernovel/Chart.js,2Ring/Chart.js,salzhrani/Chart.js,2Ring/Chart.js,amir-hadzic/Chart.js,simonbrunel/Chart.js,ldwformat/Chart.js,jtcorbett/Chart.js,supernovel/Chart.js,Magnetic/Chart.js,chartjs/Chart.js,panzarino/Chart.js,touletan/Chart.js,bokysan/Chart.js,Magnetic/Chart.js,potatopeelings/Chart.js,nicktiberi/Chart.js,amir-hadzic/Chart.js,chartjs/Chart.js,simonbrunel/Chart.js,chartjs/Chart.js,panzarino/Chart.js,ritesrnjn/charts,ritesrnjn/charts,nicktiberi/Chart.js,chartjs/Chart.js,ldwformat/Chart.js,el-ee/Chart.js,el-ee/Chart.js,avlcodemonkey/Chart.js,touletan/Chart.js,nnnick/Chart.js