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

Function getLabelModel

src/chart/custom/CustomView.ts:728–736  ·  view source on GitHub ↗
(dataIndexInside: number, state: DisplayState)

Source from the content-addressed store, hash-verified

726 : getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state]);
727 }
728 function getLabelModel(dataIndexInside: number, state: DisplayState) {
729 return !data.hasItemOption
730 ? seriesLabelModels[state]
731 : dataIndexInside === currDataIndexInside
732 ? (currLabelModels[state] || (
733 currLabelModels[state] = getItemModel(dataIndexInside).getModel(PATH_LABEL[state])
734 ))
735 : getItemModel(dataIndexInside).getModel(PATH_LABEL[state]);
736 }
737
738 return function (dataIndexInside: number, payload: Payload): CustomElementOption {
739 currDataIndexInside = dataIndexInside;

Callers 2

styleFunction · 0.85
styleEmphasisFunction · 0.85

Calls 2

getItemModelFunction · 0.70
getModelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…