(colorContext, presenter)
| 10434 | return map; |
| 10435 | } |
| 10436 | function populateColorContext(colorContext, presenter) { |
| 10437 | if (!colorContext.colorMap) { |
| 10438 | const cubes = presenter.getCubeData(); |
| 10439 | colorContext.colorMap = colorMapFromCubes(cubes); |
| 10440 | } |
| 10441 | colorContext.legend = _vegaDeckGl.util.clone(presenter.stage.legend); |
| 10442 | colorContext.legendElement = presenter.getElement(_vegaDeckGl.PresenterElement.legend).children[0]; |
| 10443 | } |
| 10444 | function applyColorMapToCubes(maps, cubes, unselectedColorMethod) { |
| 10445 | Object.keys(maps[0]).forEach((ordinal)=>{ |
| 10446 | const cube = cubes[+ordinal]; |
nothing calls this directly
no test coverage detected