(valueOrIndex: ParsedValue | number, index?: number)
| 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 | /** |
nothing calls this directly
no test coverage detected
searching dependent graphs…