UNPKG

rlayers

Version:

React Components for OpenLayers

27 lines 736 B
/// <reference types="react" /> import { Fill, Stroke } from 'ol/style'; import { default as RBaseStyle, RBaseStyleProps } from './RBaseStyle'; /** * @propsfor RBackground */ export interface RBackgroundProps extends RBaseStyleProps { } type Background = { setFill: (f: Fill) => void; setStroke: (s: Stroke) => void; }; /** * Background element of a text * * Requires an `RText` context * * Provides an `RStyle` context - for `Fill` or `Stroke` */ export default class RBackground extends RBaseStyle<RBackgroundProps> { protected static classProps: any[]; ol: Background; protected create(props: RBackgroundProps): Background; render(): JSX.Element; } export {}; //# sourceMappingURL=RBackground.d.ts.map