geostyler
Version:
Framework for styling geodata
17 lines (16 loc) • 767 B
TypeScript
import { default as React } from 'react';
import { Rule } from 'geostyler-style';
import { InterpolationMode } from 'chroma-js';
import { RuleComposableProps } from '../RuleCard/RuleCard';
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 & Pick<RuleComposableProps, 'elseRuleField'>;
export declare const RuleGenerator: React.FC<RuleGeneratorProps>;