geostyler
Version:
Framework for styling geodata
48 lines (47 loc) • 1.3 kB
TypeScript
import { default as React } from 'react';
import { Rule as GsRule } from 'geostyler-style';
export interface RuleComposableProps {
amountField?: {
visibility?: boolean;
};
duplicateField?: {
visibility?: boolean;
};
maxScaleField?: {
visibility?: boolean;
};
minScaleField?: {
visibility?: boolean;
};
scalesField?: {
visibility?: boolean;
};
filterField?: {
visibility?: boolean;
};
nameField?: {
visibility?: boolean;
};
actionsField?: {
visibility?: boolean;
/** ignored if actionsField.visibility is falsy */
clone?: boolean;
/** ignored if actionsField.visibility is falsy */
remove?: boolean;
};
elseRuleField?: {
visibility?: boolean;
};
}
export interface RuleCardInternalProps {
/** The rule to display. */
rule: GsRule;
/** The number of features that are also matched by other rules. */
duplicates?: number;
/** The number of features that are matched by this rule. */
amount?: number;
/** The callback when the card was clicked. */
onClick?: () => void;
}
export type RuleCardProps = RuleCardInternalProps & RuleComposableProps;
export declare const RuleCard: React.FC<RuleCardProps>;