MCPcopy Create free account
hub / github.com/microsoft/SandDance / applyColorButtons

Function applyColorButtons

docs/app/js/sanddance-app.js:15091–15096  ·  view source on GitHub ↗
(presenter, showLegend, props)

Source from the content-addressed store, hash-verified

15089 }
15090}
15091function applyColorButtons(presenter, showLegend, props) {
15092 const panel = presenter.getElement((0, _sanddanceReact.SandDance).VegaDeckGl.PresenterElement.panel);
15093 const div = ensureToolbar(panel);
15094 (0, _base.base).reactDOM.render(ColorMap(props), div);
15095 panel.style.display = showLegend ? "" : "none";
15096}
15097function ColorMap(props) {
15098 const menuProps = {
15099 items: [

Callers

nothing calls this directly

Calls 4

ensureToolbarFunction · 0.70
ColorMapFunction · 0.70
getElementMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected