UNPKG

547 BTypeScriptView Raw
1import { OnChanges, SimpleChanges } from '@angular/core';
2export declare class ScaleLegendComponent implements OnChanges {
3 valueRange: number[];
4 colors: any;
5 height: number;
6 width: number;
7 horizontal: boolean;
8 gradient: string;
9 ngOnChanges(changes: SimpleChanges): void;
10 /**
11 * Generates the string used in the gradient stylesheet properties
12 * @param colors array of colors
13 * @param splits array of splits on a scale of (0, 1)
14 */
15 gradientString(colors: string[], splits: number[]): string;
16}