(presenter: SandDance.VegaDeckGl.Presenter, showLegend: boolean, props: Props)
| 20 | } |
| 21 | |
| 22 | export 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 | |
| 30 | export interface Props { |
| 31 | canRemap?: boolean; |
no test coverage detected