MCPcopy
hub / github.com/microsoft/SandDance / applyColorButtons

Function applyColorButtons

packages/sanddance-explorer/src/colorMap.tsx:22–28  ·  view source on GitHub ↗
(presenter: SandDance.VegaDeckGl.Presenter, showLegend: boolean, props: Props)

Source from the content-addressed store, hash-verified

20}
21
22export function applyColorButtons(presenter: SandDance.VegaDeckGl.Presenter, showLegend: boolean, props: Props) {
23 const panel = presenter.getElement(SandDance.VegaDeckGl.PresenterElement.panel);
24 const div = ensureToolbar(panel);
25 base.reactDOM.render(ColorMap(props), div);
26
27 panel.style.display = showLegend ? '' : 'none';
28}
29
30export interface Props {
31 canRemap?: boolean;

Callers 1

manageColorToolbarMethod · 0.90

Calls 4

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

Tested by

no test coverage detected