MCPcopy
hub / github.com/apache/echarts / updateLabelEl

Method updateLabelEl

src/component/axisPointer/BaseAxisPointer.ts:313–333  ·  view source on GitHub ↗

* @protected

(
        group: graphic.Group,
        elOption: AxisPointerElementOptions,
        updateProps: (el: Element, props: PathProps) => void,
        axisPointerModel: AxisPointerModel
    )

Source from the content-addressed store, hash-verified

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

Callers 1

renderMethod · 0.95

Calls 4

innerFunction · 0.85
updateLabelShowHideFunction · 0.85
setStyleMethod · 0.80
updatePropsFunction · 0.70

Tested by

no test coverage detected