(
value: ScaleDataValue,
elOption: AxisPointerElementOptions,
layoutInfo: AxisTransformedPositionLayoutInfo,
axisModel: CartesianAxisModel | SingleAxisModel,
axisPointerModel: AxisPointerModel,
api: ExtensionAPI
)
| 208 | } |
| 209 | |
| 210 | export function buildCartesianSingleLabelElOption( |
| 211 | value: ScaleDataValue, |
| 212 | elOption: AxisPointerElementOptions, |
| 213 | layoutInfo: AxisTransformedPositionLayoutInfo, |
| 214 | axisModel: CartesianAxisModel | SingleAxisModel, |
| 215 | axisPointerModel: AxisPointerModel, |
| 216 | api: ExtensionAPI |
| 217 | ) { |
| 218 | const textLayout = AxisBuilder.innerTextLayout( |
| 219 | layoutInfo.rotation, 0, layoutInfo.labelDirection |
| 220 | ); |
| 221 | layoutInfo.labelMargin = axisPointerModel.get(['label', 'margin']); |
| 222 | buildLabelElOption(elOption, axisModel, axisPointerModel, api, { |
| 223 | position: getTransformedPosition(axisModel.axis, value, layoutInfo), |
| 224 | align: textLayout.textAlign, |
| 225 | verticalAlign: textLayout.textVerticalAlign |
| 226 | }); |
| 227 | } |
| 228 | |
| 229 | export function makeLineShape(p1: number[], p2: number[], xDimIndex?: number) { |
| 230 | xDimIndex = xDimIndex || 0; |
nothing calls this directly
no test coverage detected
searching dependent graphs…