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

Function eachItem

src/visual/visualSolution.ts:167–189  ·  view source on GitHub ↗
(valueOrIndex: ParsedValue | number, index?: number)

Source from the content-addressed store, hash-verified

165 }
166
167 function eachItem(valueOrIndex: ParsedValue | number, index?: number) {
168 dataIndex = dimension == null
169 ? valueOrIndex as number // First argument is index
170 : index;
171
172 const rawDataItem = data.getRawDataItem(dataIndex);
173 // Consider performance
174 // @ts-ignore
175 if (rawDataItem && rawDataItem.visualMap === false) {
176 return;
177 }
178
179 const valueState = getValueState.call(scope, valueOrIndex);
180 const mappings = visualMappings[valueState];
181 const visualTypes = visualTypesMap[valueState];
182
183 for (let i = 0, len = visualTypes.length; i < len; i++) {
184 const type = visualTypes[i];
185 mappings[type] && mappings[type].applyVisual(
186 valueOrIndex, getVisual, setVisual
187 );
188 }
189 }
190}
191
192/**

Callers

nothing calls this directly

Calls 2

applyVisualMethod · 0.80
getRawDataItemMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…