geostyler
Version:
Framework for styling geodata
20 lines (19 loc) • 934 B
TypeScript
import { default as React } from 'react';
import { Rule as GsRule } from 'geostyler-style';
export interface RulesComposableProps {
disableClassification?: boolean;
}
export interface RulesInternalProps {
/** List of rules to display in rule table */
rules: GsRule[];
/** The callback function that is triggered when the rules change */
onRulesChange?: (rules: GsRule[]) => void;
/** The callback function that is triggered when the classification button was clicked */
onClassificationClick?: () => void;
/** The callback function that is triggered when the edit selection button was clicked */
onEditSelectionClick?: (selectedIdxs: number[]) => void;
/** The callback function that is triggered when the rule was clicked */
onEditRuleClick?: (ruleId: number) => void;
}
export type RulesProps = RulesInternalProps & RulesComposableProps;
export declare const Rules: React.FC<RulesProps>;