(textBB, rotate)
| 746 | } |
| 747 | |
| 748 | function getRotatedTextSize(textBB, rotate) { |
| 749 | var a = (Math.PI / 180) * rotate; |
| 750 | var absSin = Math.abs(Math.sin(a)); |
| 751 | var absCos = Math.abs(Math.cos(a)); |
| 752 | |
| 753 | return { |
| 754 | x: textBB.width * absCos + textBB.height * absSin, |
| 755 | y: textBB.width * absSin + textBB.height * absCos |
| 756 | }; |
| 757 | } |
| 758 | |
| 759 | function toMoveInsideBar(x0, x1, y0, y1, textBB, opts) { |
| 760 | var isHorizontal = !!opts.isHorizontal; |
no outgoing calls
no test coverage detected
searching dependent graphs…