(layout: RectLayout, coordSys: CoordSysOfBar)
| 1272 | } |
| 1273 | |
| 1274 | function getLabelPositionForHorizontal(layout: RectLayout, coordSys: CoordSysOfBar): 'top' | 'bottom' { |
| 1275 | if (layout.height === 0) { |
| 1276 | // For zero height, determine position based on axis inverse status |
| 1277 | const valueAxis = (coordSys as Cartesian2D).getOtherAxis((coordSys as Cartesian2D).getBaseAxis()); |
| 1278 | return valueAxis.inverse ? 'bottom' : 'top'; |
| 1279 | } |
| 1280 | return layout.height > 0 ? 'bottom' : 'top'; |
| 1281 | } |
| 1282 | |
| 1283 | function getLabelPositionForVertical(layout: RectLayout, coordSys: CoordSysOfBar): 'left' | 'right' { |
| 1284 | if (layout.width === 0) { |
no test coverage detected
searching dependent graphs…