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

Function applyViewCoordSysTransToElement

src/coord/View.ts:608–631  ·  view source on GitHub ↗
(
    syncBackEl: Element | NullUndefined,
    syncBackType: typeof VIEW_COORD_SYS_TRANS_ROAM | typeof VIEW_COORD_SYS_TRANS_OVERALL,
    viewCoordSys: View,
    // If NullUndefined, no animation.
    // Typically, there should be no animation in the first render and in `__updateOnOwnRoam`.
    animatableModel: Model<AnimationOptionMixin> | NullUndefined
)

Source from the content-addressed store, hash-verified

606 * But in this case, `dataToPoint` can only reach the space of `syncBackEl` itself.
607 */
608export function applyViewCoordSysTransToElement(
609 syncBackEl: Element | NullUndefined,
610 syncBackType: typeof VIEW_COORD_SYS_TRANS_ROAM | typeof VIEW_COORD_SYS_TRANS_OVERALL,
611 viewCoordSys: View,
612 // If NullUndefined, no animation.
613 // Typically, there should be no animation in the first render and in `__updateOnOwnRoam`.
614 animatableModel: Model<AnimationOptionMixin> | NullUndefined
615): void {
616 const viewInner = inner(viewCoordSys);
617 viewInner.syncBackEl = syncBackEl;
618 viewInner.syncBackType = syncBackType;
619
620 if (!animatableModel) {
621 viewCoordSysCopyTrans(syncBackEl, viewCoordSys, syncBackType);
622 syncBackEl.dirty();
623 }
624 else {
625 updateProps(
626 syncBackEl,
627 viewCoordSysCopyTrans(null, viewCoordSys, syncBackType),
628 animatableModel
629 );
630 }
631}
632
633/**
634 * FIXME: [FIXME_VIEW_COORD_SYS_SYNC_BACK]

Callers 8

__updateOnOwnRoamMethod · 0.90
_updateViewCoordSysMethod · 0.90
renderMethod · 0.90
__updateOnOwnRoamMethod · 0.90
__updateOnOwnRoamMethod · 0.90
_updateViewCoordSysMethod · 0.90
drawMethod · 0.90
__updateOnOwnRoamMethod · 0.90

Calls 4

innerFunction · 0.85
viewCoordSysCopyTransFunction · 0.85
updatePropsFunction · 0.50
dirtyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…