geostyler
Version:
Framework for styling geodata
22 lines (21 loc) • 839 B
TypeScript
import { default as React } from 'react';
import { InputNumberProps } from 'antd/lib/input-number';
import { FunctionUIProps } from '../../FunctionUI/FunctionUI';
import { Expression, GeoStylerNumberFunction } from 'geostyler-style';
type SliderProps = {
min?: number;
max?: number;
step?: number;
};
export interface NumberExpressionInputProps {
className?: string;
slider?: boolean;
sliderProps?: SliderProps;
functionUiProps?: FunctionUIProps<GeoStylerNumberFunction>;
inputProps?: Omit<InputNumberProps, 'value' | 'onChange' | 'className'>;
onCancel?: (type: 'number') => void;
onChange?: (newValue: Expression<number> | undefined) => void;
value?: Expression<number>;
}
export declare const NumberExpressionInput: React.FC<NumberExpressionInputProps>;
export default NumberExpressionInput;