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

Function updateLeaveTo

src/animation/customGraphicTransition.ts:210–226  ·  view source on GitHub ↗
(el: Element, elOption: TransitionElementOption)

Source from the content-addressed store, hash-verified

208}
209
210export function updateLeaveTo(el: Element, elOption: TransitionElementOption) {
211 // Try merge to previous set leaveTo
212 let leaveToProps: ElementProps = transitionInnerStore(el).leaveToProps;
213 for (let i = 0; i < ELEMENT_ANIMATABLE_PROPS.length; i++) {
214 const propName = ELEMENT_ANIMATABLE_PROPS[i];
215 const prop: TransitionOptionMixin = propName ? elOption[propName] : elOption;
216 if (prop && prop.leaveTo) {
217 if (!leaveToProps) {
218 leaveToProps = transitionInnerStore(el).leaveToProps = {};
219 }
220 if (propName) {
221 (leaveToProps as any)[propName] = (leaveToProps as any)[propName] || {};
222 }
223 extend(propName ? (leaveToProps as any)[propName] : leaveToProps, prop.leaveTo);
224 }
225 }
226}
227
228export function applyLeaveTransition(
229 el: Element,

Callers 2

_updateElementsMethod · 0.90
applyUpdateTransitionFunction · 0.85

Calls 1

extendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…