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

Function prepareTransformAllPropsFinal

src/animation/customGraphicTransition.ts:559–580  ·  view source on GitHub ↗
(
    el: Element,
    elOption: TransitionElementOption,
    allProps: ElementProps
)

Source from the content-addressed store, hash-verified

557}
558
559function prepareTransformAllPropsFinal(
560 el: Element,
561 elOption: TransitionElementOption,
562 allProps: ElementProps
563): void {
564 for (let i = 0; i < LEGACY_TRANSFORM_PROPS.length; i++) {
565 const legacyName = LEGACY_TRANSFORM_PROPS[i];
566 const xyName = LEGACY_TRANSFORM_PROPS_MAP[legacyName];
567 const legacyArr = (elOption as any)[legacyName];
568 if (legacyArr) {
569 allProps[xyName[0]] = legacyArr[0];
570 allProps[xyName[1]] = legacyArr[1];
571 }
572 }
573
574 for (let i = 0; i < TRANSFORMABLE_PROPS.length; i++) {
575 const key = TRANSFORMABLE_PROPS[i];
576 if (elOption[key] != null) {
577 allProps[key] = elOption[key];
578 }
579 }
580}
581
582function prepareStyleTransitionFrom(
583 fromEl: Element,

Callers 1

applyUpdateTransitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…