MCPcopy Index your code
hub / github.com/apache/echarts / ownRoamViewUpdateDirectlyInAction

Function ownRoamViewUpdateDirectlyInAction

src/coord/View.ts:709–722  ·  view source on GitHub ↗
(
    payload: RoamPayload,
    componentOrSeries: ComponentModel,
    ecModel: GlobalModel,
    api: ExtensionAPI
)

Source from the content-addressed store, hash-verified

707}
708
709export function ownRoamViewUpdateDirectlyInAction(
710 payload: RoamPayload,
711 componentOrSeries: ComponentModel,
712 ecModel: GlobalModel,
713 api: ExtensionAPI
714): void {
715 // Tricky: disable animation in `updateProps` of `graphic.ts`.
716 ecModel.setUpdatePayload(payloadDisableAnimation(payload));
717
718 const componentOrSeriesView = getViewOfComponentOrSeries(api, componentOrSeries);
719 if (componentOrSeriesView && (componentOrSeriesView as ChartComponentRoamHostView).__updateOnOwnRoam) {
720 (componentOrSeriesView as ChartComponentRoamHostView).__updateOnOwnRoam(payload, componentOrSeries, api);
721 }
722}
723
724function applyRoamPayloadToOverallTrans(
725 targetOverallTrans: Transformable,

Callers 2

registerRoamActionSimplyFunction · 0.90
installFunction · 0.90

Calls 4

payloadDisableAnimationFunction · 0.90
setUpdatePayloadMethod · 0.80
__updateOnOwnRoamMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…