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

Function updateProps

src/component/axisPointer/BaseAxisPointer.ts:520–536  ·  view source on GitHub ↗
(
    animationModel: AxisPointerModel,
    moveAnimation: boolean,
    el: Element,
    props: DisplayableProps
)

Source from the content-addressed store, hash-verified

518
519
520function updateProps(
521 animationModel: AxisPointerModel,
522 moveAnimation: boolean,
523 el: Element,
524 props: DisplayableProps
525) {
526 // Animation optimize.
527 if (!propsEqual(inner(el).lastProp, props)) {
528 inner(el).lastProp = props;
529 moveAnimation
530 ? graphic.updateProps(el, props, animationModel as Model<
531 // Ignore animation property
532 Pick<CommonAxisPointerOption, 'animationDurationUpdate' | 'animationEasingUpdate'>
533 >)
534 : (el.stopAnimation(), el.attr(props));
535 }
536}
537
538function propsEqual(lastProps: any, newProps: any) {
539 if (zrUtil.isObject(lastProps) && zrUtil.isObject(newProps)) {

Callers 5

updatePointerElMethod · 0.70
updateLabelElMethod · 0.70
_moveHandleToValueMethod · 0.70
_renderNormalMethod · 0.50

Calls 2

propsEqualFunction · 0.85
innerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…