geostyler
Version:
Framework for styling geodata
16 lines (15 loc) • 662 B
TypeScript
import { default as React } from 'react';
import { Rule } from 'geostyler-style';
import { InterpolationMode } from 'chroma-js';
export type LevelOfMeasurement = 'nominal' | 'ordinal' | 'cardinal';
export interface RuleGeneratorComposableProps {
/** List of provided color ramps */
colorRamps?: Record<string, string[]>;
/** List of color spaces to use */
colorSpaces?: (InterpolationMode)[];
}
export interface RuleGeneratorInternalProps {
onRulesChange?: (rules: Rule[]) => void;
}
export type RuleGeneratorProps = RuleGeneratorInternalProps & RuleGeneratorComposableProps;
export declare const RuleGenerator: React.FC<RuleGeneratorProps>;