geostyler
Version:
Framework for styling geodata
15 lines (14 loc) • 649 B
TypeScript
import { default as React } from 'react';
import { CapType, Expression, LineSymbolizer } from 'geostyler-style';
import { StringExpressionSelectProps } from '../../../ExpressionInput/StringExpressionSelect/StringExpressionSelect';
export interface LineCapFieldProps {
capOptions?: CapType[];
onChange?: (cap: LineSymbolizer['cap'] | Expression<string>) => void;
value?: LineSymbolizer['cap'] | Expression<string>;
}
type SelectProps = StringExpressionSelectProps['selectProps'];
/**
* LineCapField to select between different line-cap options
*/
export declare const LineCapField: React.FC<LineCapFieldProps & SelectProps>;
export {};