(pt)
| 642 | }; |
| 643 | |
| 644 | function getInscribedRadiusFraction(pt) { |
| 645 | if (pt.rpx0 === 0 && Lib.isFullCircle([pt.x0, pt.x1])) { |
| 646 | // special case of 100% with no hole |
| 647 | return 1; |
| 648 | } else { |
| 649 | return Math.max(0, Math.min(1 / (1 + 1 / Math.sin(pt.halfangle)), pt.ring / 2)); |
| 650 | } |
| 651 | } |
| 652 | |
| 653 | function getTextXY(d) { |
| 654 | return getCoords(d.rpx1, d.transform.textPosAngle); |
no outgoing calls
no test coverage detected
searching dependent graphs…