(
animationModel: AxisPointerModel,
moveAnimation: boolean,
el: Element,
props: DisplayableProps
)
| 518 | |
| 519 | |
| 520 | function 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 | |
| 538 | function propsEqual(lastProps: any, newProps: any) { |
| 539 | if (zrUtil.isObject(lastProps) && zrUtil.isObject(newProps)) { |
no test coverage detected
searching dependent graphs…