* @protected
(
group: graphic.Group,
elOption: AxisPointerElementOptions,
updateProps: (el: Element, props: PathProps) => void,
axisPointerModel: AxisPointerModel
)
| 311 | * @protected |
| 312 | */ |
| 313 | updateLabelEl( |
| 314 | group: graphic.Group, |
| 315 | elOption: AxisPointerElementOptions, |
| 316 | updateProps: (el: Element, props: PathProps) => void, |
| 317 | axisPointerModel: AxisPointerModel |
| 318 | ) { |
| 319 | const labelEl = inner(group).labelEl; |
| 320 | if (labelEl) { |
| 321 | labelEl.setStyle(elOption.label.style); |
| 322 | updateProps(labelEl, { |
| 323 | // Consider text length change in vertical axis, animation should |
| 324 | // be used on shape, otherwise the effect will be weird. |
| 325 | // TODOTODO |
| 326 | // shape: elOption.label.shape, |
| 327 | x: elOption.label.x, |
| 328 | y: elOption.label.y |
| 329 | }); |
| 330 | |
| 331 | updateLabelShowHide(labelEl, axisPointerModel); |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | /** |
| 336 | * @private |
no test coverage detected