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

Method updateEffectAnimation

src/chart/helper/EffectSymbol.ts:124–140  ·  view source on GitHub ↗

* Update effect symbol

(effectCfg: RippleEffectCfg)

Source from the content-addressed store, hash-verified

122 * Update effect symbol
123 */
124 updateEffectAnimation(effectCfg: RippleEffectCfg) {
125 const oldEffectCfg = this._effectCfg;
126 const rippleGroup = this.childAt(1) as Group;
127
128 // Must reinitialize effect if following configuration changed
129 const DIFFICULT_PROPS = ['symbolType', 'period', 'rippleScale', 'rippleNumber'] as const;
130 for (let i = 0; i < DIFFICULT_PROPS.length; i++) {
131 const propName = DIFFICULT_PROPS[i];
132 if (oldEffectCfg[propName] !== effectCfg[propName]) {
133 this.stopEffectAnimation();
134 this.startEffectAnimation(effectCfg);
135 return;
136 }
137 }
138
139 updateRipplePath(rippleGroup, effectCfg);
140 }
141
142 /**
143 * Highlight symbol

Callers 1

updateDataMethod · 0.95

Calls 3

stopEffectAnimationMethod · 0.95
startEffectAnimationMethod · 0.95
updateRipplePathFunction · 0.85

Tested by

no test coverage detected