geostyler
Version:
Framework for styling geodata
20 lines (19 loc) • 953 B
TypeScript
import { FormItemProps } from 'antd';
import { SupportDef, Symbolizer, UnsupportedProperties } from 'geostyler-style';
import { UnsupportedPropertiesContext } from '../context/GeoStylerContext/GeoStylerContext';
export type SymbolizerName = `${Symbolizer['kind']}Symbolizer`;
type UnsupportedSymbolizerProps<T extends Symbolizer> = SupportDef | {
[key in keyof Required<T>]?: SupportDef;
};
/**
* @class UnsupportedPropertiesUtil
*/
declare class UnsupportedPropertiesUtil {
static getFormItemSupportProps: <T extends Symbolizer>({ propName, symbolizerName, context }: {
propName: keyof T;
symbolizerName: SymbolizerName;
context: UnsupportedPropertiesContext;
}) => Partial<FormItemProps>;
static getUnsupportedPropsForSymbolizer: <T extends Symbolizer>(unsupportedProperties: UnsupportedProperties, symbolizerName: SymbolizerName) => UnsupportedSymbolizerProps<T>;
}
export default UnsupportedPropertiesUtil;