(
rect: RectModel | StackTotalModel,
centerYAxis?: CenterYAxisData
)
| 783 | } |
| 784 | |
| 785 | getDataLabelDirection( |
| 786 | rect: RectModel | StackTotalModel, |
| 787 | centerYAxis?: CenterYAxisData |
| 788 | ): RectDirection { |
| 789 | let direction: RectDirection; |
| 790 | |
| 791 | if (this.isBar) { |
| 792 | const basePos = centerYAxis ? this.leftBasePosition : this.basePosition; |
| 793 | direction = rect.x < basePos ? 'left' : 'right'; |
| 794 | } else { |
| 795 | direction = rect.y >= this.basePosition ? 'bottom' : 'top'; |
| 796 | } |
| 797 | |
| 798 | return direction; |
| 799 | } |
| 800 | |
| 801 | getOffsetSizeWithDiverging(centerYAxis: CenterYAxisData) { |
| 802 | return centerYAxis ? centerYAxis.xAxisHalfSize : this.getOffsetSize() / 2; |
no outgoing calls
no test coverage detected