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

Function updateZForEachState

src/chart/custom/CustomView.ts:608–625  ·  view source on GitHub ↗
(
    elDisplayable: Displayable,
    elOption: CustomDisplayableOption,
    state: DisplayState
)

Source from the content-addressed store, hash-verified

606}
607
608function updateZForEachState(
609 elDisplayable: Displayable,
610 elOption: CustomDisplayableOption,
611 state: DisplayState
612): void {
613 const isNormal = state === NORMAL;
614 const elStateOpt = isNormal ? elOption : retrieveStateOption(
615 elOption as CustomElementOption,
616 state as DisplayStateNonNormal
617 );
618 const optZ2 = elStateOpt ? elStateOpt.z2 : null;
619 let stateObj;
620 if (optZ2 != null) {
621 // Do not `ensureState` until required.
622 stateObj = isNormal ? elDisplayable : elDisplayable.ensureState(state);
623 stateObj.z2 = optZ2 || 0;
624 }
625}
626
627function makeRenderItem(
628 customSeries: CustomSeriesModel,

Callers 1

updateZFunction · 0.85

Calls 1

retrieveStateOptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…