import React from 'react'; import { GeoGraticuleGenerator } from '@visx/vendor/d3-geo'; import { LineString, MultiLineString, Polygon } from 'geojson'; export declare type GraticuleProps = { /** * Render function for graticules which is passed a GeoJSON MultiLineString geometry object * representing all meridians and parallels for the graticule. */ graticule?: (multiLineString: MultiLineString) => string; /** * Render function for graticule lines, which is invoked once for each meridian or parallel for the graticule, * and is passed the GeoJSON LineString object representing said meridian or parallel. */ lines?: (lineString: LineString) => string; /** * Render function for the outline of the graticule (i.e. along the meridians and parallels defining its extent). * It is passed a GeoJSON Polygon geometry object representing the outline. */ outline?: (polygon: Polygon) => string; /** Override render function, which is passed the configured graticule generator. */ children?: ({ graticule }: { graticule: GeoGraticuleGenerator; }) => React.ReactNode; /** Sets the major and minor extents of the graticule generator, which defaults to ⟨⟨-180°, -80° - ε⟩, ⟨180°, 80° + ε⟩⟩. */ extent?: [[number, number], [number, number]]; /** Sets the major extent of the graticule generator, which defaults to ⟨⟨-180°, -90° + ε⟩, ⟨180°, 90° - ε⟩⟩. */ extentMajor?: [[number, number], [number, number]]; /** Sets the major extent of the graticule generator, which defaults to ⟨⟨-180°, -80° - ε⟩, ⟨180°, 80° + ε⟩⟩. */ extentMinor?: [[number, number], [number, number]]; /** Sets both the major and minor step of the graticule generator. */ step?: [number, number]; /** Sets the major step of the graticule generator, which defaults to ⟨90°, 360°⟩. */ stepMajor?: [number, number]; /** Sets the major step of the graticule generator, which defaults to ⟨10°, 10°⟩. */ stepMinor?: [number, number]; /** Sets the precision of the graticule generator, which defaults to 2.5°. */ precision?: number; }; export default function Graticule({ graticule, lines, outline, extent, extentMajor, extentMinor, step, stepMajor, stepMinor, precision, children, ...restProps }: GraticuleProps & Omit, keyof GraticuleProps>): JSX.Element; //# sourceMappingURL=Graticule.d.ts.map