MCPcopy Index your code
hub / github.com/microsoft/SandDance / populateColorContext

Function populateColorContext

docs/app/js/sanddance-app.js:10436–10443  ·  view source on GitHub ↗
(colorContext, presenter)

Source from the content-addressed store, hash-verified

10434 return map;
10435}
10436function 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}
10444function applyColorMapToCubes(maps, cubes, unselectedColorMethod) {
10445 Object.keys(maps[0]).forEach((ordinal)=>{
10446 const cube = cubes[+ordinal];

Callers

nothing calls this directly

Calls 4

colorMapFromCubesFunction · 0.70
getCubeDataMethod · 0.45
cloneMethod · 0.45
getElementMethod · 0.45

Tested by

no test coverage detected