geostyler
Version:
Framework for styling geodata
23 lines (22 loc) • 1.09 kB
TypeScript
import { default as React } from 'react';
import { Expression, Symbolizer } from 'geostyler-style';
import { RuleComposableProps } from '../RuleCard/RuleCard';
export type RuleFieldContainerComposableProps = Pick<RuleComposableProps, 'maxScaleField' | 'minScaleField' | 'nameField'>;
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[];
}
export type RuleFieldContainerProps = RuleFieldContainerInternalProps & RuleFieldContainerComposableProps;
export declare const RuleFieldContainer: React.FC<RuleFieldContainerProps>;