MCPcopy Index your code
hub / github.com/tdewolff/minify / toggleHighlight

Function toggleHighlight

_benchmarks/sample_echarts.js:23055–23068  ·  view source on GitHub ↗
(data, payload, state)

Source from the content-addressed store, hash-verified

23053 }
23054
23055 function toggleHighlight(data, payload, state) {
23056 var dataIndex = queryDataIndex(data, payload);
23057 var highlightDigit = payload && payload.highlightKey != null ? getHighlightDigit(payload.highlightKey) : null;
23058
23059 if (dataIndex != null) {
23060 each(normalizeToArray(dataIndex), function (dataIdx) {
23061 elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit);
23062 });
23063 } else {
23064 data.eachItemGraphicEl(function (el) {
23065 elSetState(el, state, highlightDigit);
23066 });
23067 }
23068 }
23069
23070 enableClassExtend(ChartView, ['dispose']);
23071 enableClassManagement(ChartView);

Callers 1

sample_echarts.jsFile · 0.85

Calls 5

queryDataIndexFunction · 0.85
getHighlightDigitFunction · 0.85
normalizeToArrayFunction · 0.85
elSetStateFunction · 0.85
eachFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…