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

Function getItemStyleModel

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

Source from the content-addressed store, hash-verified

717 : data.getItemModel(dataIndexInside);
718 }
719 function getItemStyleModel(dataIndexInside: number, state: DisplayState) {
720 return !data.hasItemOption
721 ? seriesItemStyleModels[state]
722 : dataIndexInside === currDataIndexInside
723 ? (currItemStyleModels[state] || (
724 currItemStyleModels[state] = getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state])
725 ))
726 : getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state]);
727 }
728 function getLabelModel(dataIndexInside: number, state: DisplayState) {
729 return !data.hasItemOption
730 ? seriesLabelModels[state]

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…