(vega: VegaDeckGl.types.VegaBase)
| 27 | createDualColorSchemes(); |
| 28 | |
| 29 | export function registerColorSchemes(vega: VegaDeckGl.types.VegaBase) { |
| 30 | colorSchemes.forEach(cs => { |
| 31 | if (cs.colors.length === 1) { |
| 32 | vega.scheme(cs.scheme, x => cs.colors[0]); |
| 33 | } else { |
| 34 | vega.scheme(cs.scheme, cs.colors); |
| 35 | } |
| 36 | }); |
| 37 | } |
| 38 | |
| 39 | function createPair(names: string[], colors: string[]) { |
| 40 | const scheme = `dual_${names[0]}${names[1]}`; |
no test coverage detected