(
axis: Axis,
value: ScaleDataValue,
layoutInfo: AxisTransformedPositionLayoutInfo
)
| 192 | } |
| 193 | |
| 194 | export function getTransformedPosition( |
| 195 | axis: Axis, |
| 196 | value: ScaleDataValue, |
| 197 | layoutInfo: AxisTransformedPositionLayoutInfo |
| 198 | ): number[] { |
| 199 | const transform = matrix.create(); |
| 200 | matrix.rotate(transform, transform, layoutInfo.rotation); |
| 201 | matrix.translate(transform, transform, layoutInfo.position); |
| 202 | |
| 203 | return graphic.applyTransform([ |
| 204 | axis.dataToCoord(value), |
| 205 | (layoutInfo.labelOffset || 0) |
| 206 | + (layoutInfo.labelDirection || 1) * (layoutInfo.labelMargin || 0) |
| 207 | ], transform); |
| 208 | } |
| 209 | |
| 210 | export function buildCartesianSingleLabelElOption( |
| 211 | value: ScaleDataValue, |
no test coverage detected
searching dependent graphs…