(textBB, r, ring, halfAngle, midAngle)
| 800 | } |
| 801 | |
| 802 | function calcRadTransform(textBB, r, ring, halfAngle, midAngle) { |
| 803 | r = Math.max(0, r - 2 * TEXTPAD); |
| 804 | |
| 805 | // max size if text is rotated radially |
| 806 | var a = textBB.width / textBB.height; |
| 807 | var s = calcMaxHalfSize(a, halfAngle, r, ring); |
| 808 | return { |
| 809 | scale: (s * 2) / textBB.height, |
| 810 | rCenter: calcRCenter(a, s / r), |
| 811 | rotate: calcRotate(midAngle) |
| 812 | }; |
| 813 | } |
| 814 | |
| 815 | function calcTanTransform(textBB, r, ring, halfAngle, midAngle) { |
| 816 | r = Math.max(0, r - 2 * TEXTPAD); |
no test coverage detected
searching dependent graphs…