UNPKG

geostyler

Version:
27 lines (26 loc) 1.29 kB
import { default as React } from 'react'; import { Expression, Rule, Symbolizer } from 'geostyler-style'; import { RuleComposableProps } from '../RuleCard/RuleCard'; export type RuleFieldContainerComposableProps = Pick<RuleComposableProps, 'maxScaleField' | 'minScaleField' | 'nameField' | 'elseRuleField'>; export interface RuleFieldContainerInternalProps { /** The callback method when the name changes */ onNameChange?: (name: string) => void; /** The callback method when the minScale changes */ onMinScaleChange?: (scale: number) => void; /** The callback method when the maxScale changes */ onMaxScaleChange?: (scale: number) => void; /** The name of the rule */ name?: string; /** The minScale of the rule */ minScale?: Expression<number>; /** The maxScale of the rule */ maxScale?: Expression<number>; /** The symbolizers of the rule */ symbolizers?: Symbolizer[]; /** The else rule flag */ elseRule?: Rule['elseRule']; /** The callback method when the elseRule changes */ onElseRuleChange?: (elseRule: Rule['elseRule']) => void; } export type RuleFieldContainerProps = RuleFieldContainerInternalProps & RuleFieldContainerComposableProps; export declare const RuleFieldContainer: React.FC<RuleFieldContainerProps>;