UNPKG

geostyler

Version:
23 lines (22 loc) 1.03 kB
import { default as React } from 'react'; import { PointSymbolizer, GraphicType } from 'geostyler-style'; import { IconEditorProps } from '../IconEditor/IconEditor'; import { GraphicTypeFieldProps } from '../Field/GraphicTypeField/GraphicTypeField'; import { IconLibrary } from '../IconSelector/IconSelector'; export interface GraphicEditorProps { /** Label being used on TypeField */ graphicTypeFieldLabel?: string; /** PointSymbolizer that is being used as graphic */ value: PointSymbolizer; /** Currently selected GraphicType */ graphicType: GraphicType; /** Gets called when changing a graphic */ onGraphicChange?: (graphic: PointSymbolizer) => void; /** Default GraphicTypeFieldProps */ graphicTypeFieldProps?: GraphicTypeFieldProps; /** Default IconEditorProps */ iconEditorProps?: Partial<IconEditorProps>; iconLibraries?: IconLibrary[]; } /** GraphicEditor to select between different graphic options */ export declare const GraphicEditor: React.FC<GraphicEditorProps>;